-
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 When relation is broken between `mongos` charm and `config-server` charm the user created for the `mongos` application is still accessible ## Solution When relation is broken between mongos charm and config-sever process users ## Tested by hand ``` # deploy both charms cd ~/mongos-operator # juju add-model test-0 tox -e build juju deploy ./*charm cd ~/mongos-operator/tests/integration/application charmcraft pack juju deploy ./*charm -n2 # get shared cluster up and running cd ~/mongodb-operator charmcraft pack juju deploy ./*charm --config role="config-server" config-server -n2 juju deploy ./*charm --config role="shard" shard # integrate juju integrate mongos application juju integrate config-server:config-server shard:sharding juju integrate config-server:cluster mongos:cluster # get URI juju show-unit application/0 juju show-secret --reveal <secret URI> # access user juju ssh application/0 sudo charmed-mongodb.mongosh <URI> # scale application and repeat access user step juju remove-unit config-server/1 juju remove-unit application/0 # remove relation and repeat access user step (except this time verify we cannot access the user) juju remove-relation config-server:cluster mongos:cluster ``` ## Future PRs 1. [user int tests](https://warthogs.atlassian.net/browse/DPE-3292) 2. [have mongos sub-charm remove connection info for host application]()
- Loading branch information
1 parent
1048c2a
commit 7d7e80f
Showing
3 changed files
with
55 additions
and
29 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