diff --git a/lib/charms/mongodb/v1/mongos.py b/lib/charms/mongodb/v1/mongos.py index 8311f9c03..774b3da14 100644 --- a/lib/charms/mongodb/v1/mongos.py +++ b/lib/charms/mongodb/v1/mongos.py @@ -21,7 +21,7 @@ # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 2 +LIBPATCH = 3 # path to store mongodb ketFile logger = logging.getLogger(__name__) diff --git a/lib/charms/mongodb/v1/shards_interface.py b/lib/charms/mongodb/v1/shards_interface.py index c8d5b8996..a94a1f16c 100644 --- a/lib/charms/mongodb/v1/shards_interface.py +++ b/lib/charms/mongodb/v1/shards_interface.py @@ -51,7 +51,7 @@ # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 2 +LIBPATCH = 3 KEYFILE_KEY = "key-file" HOSTS_KEY = "host" OPERATOR_PASSWORD_KEY = MongoDBUser.get_password_key_name_for_user(OperatorUser.get_username()) @@ -649,8 +649,6 @@ def update_keyfile(self, key_file_contents: str) -> None: # match what is on the machine. current_key_file = self.charm.get_keyfile_contents() if not key_file_contents or key_file_contents == current_key_file: - logger.info(f"Skipping update. proposed keyfile {key_file_contents}") - logger.info(f"Skipping update. current keyfile {current_key_file}") return # put keyfile on the machine with appropriate permissions @@ -658,9 +656,7 @@ def update_keyfile(self, key_file_contents: str) -> None: parent_dir=Config.MONGOD_CONF_DIR, file_name=KEY_FILE, file_contents=key_file_contents ) - logger.info(f"Updated keyfile from {current_key_file} to {key_file_contents}") current_key_file = self.charm.get_keyfile_contents() - logger.info(f"Now {current_key_file}") # when the contents of the keyfile change, we must restart the service self.charm.restart_mongod_service()