-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Issue Statuses are not properly reported for shards in update status hook ## Solution Report statuses ## Testing ``` # deploy charms juju deploy ./*charm --config role="config-server" config-server-one juju deploy ./*charm --config role="shard" shard-one juju deploy ./*charm --config role="shard" shard-two # speed up frequency of status checks juju model-config update-status-hook-interval=10s # monitor `juju status --watch 1s` Unit Workload Agent Machine Public address Ports Message config-server-one/0* active idle 2 10.61.64.75 27017-27018/tcp Primary shard-one/0* blocked idle 0 10.61.64.126 27017/tcp missing relation to config server shard-two/0* blocked idle 1 10.61.64.216 27017/tcp missing relation to config server # relate application juju integrate config-server-one:config-server shard-one:sharding juju integrate config-server-one:config-server shard-two:sharding # monitor `juju status --watch 1s` Unit Workload Agent Machine Public address Ports Message config-server-one/0* active idle 2 10.61.64.75 27017-27018/tcp Primary shard-one/0* active idle 0 10.61.64.126 27017/tcp Shard connected to config-server: config-server-one shard-two/0* active idle 1 10.61.64.216 27017/tcp Shard connected to config-server: config-server-one # remove a relation to shard juju remove-relation config-server-one:config-server shard-two:sharding # monitor `juju status --watch 1s` config-server-one/0* active idle 0 10.61.64.50 27017-27018/tcp Primary shard-one/0* active idle 1 10.61.64.235 27017/tcp Shard connected to config-server: config-server-one shard-two/0* active idle 2 10.61.64.128 27017/tcp Shard drained from cluster, ready for removal # add non supported relation cd mongodb-operator/tests/integration/relation_tests/new_relations/application-charm charmcraft pack juju deploy ./*charm juju relation shard-one application # monitor `juju status --watch 1s` application/0* active idle 3 10.61.64.203 config-server-one/0* active idle 0 10.61.64.43 27017-27018/tcp shard-one/0* blocked idle 1 10.61.64.31 27017/tcp Sharding roles do not support mongodb_client interface. shard-two/0* active idle 2 10.61.64.239 27017/tcp ```
- Loading branch information
1 parent
3dcab70
commit cc52ce1
Showing
6 changed files
with
249 additions
and
49 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
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.