diff --git a/src/backups.py b/src/backups.py index ef5bedc7ca..a4659cdda6 100644 --- a/src/backups.py +++ b/src/backups.py @@ -642,7 +642,7 @@ def _on_restore_action(self, event): logger.info("Removing previous cluster information") return_code, _, stderr = self._execute_command( [ - "charmed-postgresql.patronictl", + "charmed-postgresql.constrained=patronictl", "-c", f"{PATRONI_CONF_PATH}/patroni.yaml", "remove", diff --git a/src/constants.py b/src/constants.py index 2f8aa8dddf..a0d9da37f3 100644 --- a/src/constants.py +++ b/src/constants.py @@ -32,7 +32,7 @@ # Snap constants. PGBACKREST_EXECUTABLE = "charmed-postgresql.constrained-pgbackrest" POSTGRESQL_SNAP_NAME = "charmed-postgresql" -SNAP_PACKAGES = [(POSTGRESQL_SNAP_NAME, {"revision": "71"})] +SNAP_PACKAGES = [(POSTGRESQL_SNAP_NAME, {"revision": "72"})] SNAP_COMMON_PATH = "/var/snap/charmed-postgresql/common" SNAP_CURRENT_PATH = "/var/snap/charmed-postgresql/current" diff --git a/tests/unit/test_backups.py b/tests/unit/test_backups.py index 9e153b46bd..e9fd41fd9a 100644 --- a/tests/unit/test_backups.py +++ b/tests/unit/test_backups.py @@ -989,7 +989,7 @@ def test_on_restore_action( ) _execute_command.assert_called_once_with( [ - "charmed-postgresql.patronictl", + "charmed-postgresql.constrained=patronictl", "-c", "/var/snap/charmed-postgresql/current/etc/patroni/patroni.yaml", "remove",