-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#9966 from hmlanigan/watchapplxdprofile
juju#9966 ## Description of change Add a watcher to model cache to notify when the lxd profiles applied to a machine may need to change. ## QA steps 1. `export JUJU_DEV_FEATURE_FLAGS=instance-mutater` 2. `bootstrap lxd with --config logging-config='<root>=DEBUG;unit=DEBUG;juju.core.cache=TRACE;juju.worker.instancemuter=TRACE'` 2. `juju debug-log -m controller --replay --include-module juju.worker.instancemutater --include-module juju.core.cache` 3. download the ubuntu charm to a local directory (~/charms) 4. `juju deploy ~/charms/ubunu` 3. the worker should log that a notify was recieved. 3. `juju upgrade-charm ubuntu --path ~/charms/ubuntu` 3. the worker should not log that a notify was recieved. 4. `juju deploy ./testcharms/charm-repo/quantal/lxd-profile` 3. the worker should log that a notify was recieved. 4. `juju upgrade-charm lxd-profile --path ./testcharms/charm-repo/quantal/lxd-profile` 3. the worker should log that a notification was received. 3. `juju add-unit ubuntu --to 1` 4. the worker should not log that no notification should be received for machine 1. 3. `juju add-unit lxd-profile --to 0` 3. the worker should not log that notification should be received for machine 0.
- Loading branch information
Showing
19 changed files
with
730 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
apiserver/facades/agent/instancemutater/mocks/modelcache_mock.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.