-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DPE-4345] Disable pgBackRest service initialisation #41
[DPE-4345] Disable pgBackRest service initialisation #41
Conversation
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
snap/snapcraft.yaml
Outdated
@@ -239,7 +240,7 @@ parts: | |||
- locales-all | |||
# Landscape deps | |||
- postgresql-14-debversion=1.1.1-5 | |||
- postgresql-plpython3-14=14.11-0ubuntu0.22.04.1 | |||
- postgresql-plpython3-14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move the pin here to 14.12-0ubuntu0.22.04.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Pinned on c0472ff.
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
We will need to bump the Postgresql version in the rock as well once we publish the snap. |
Issue
The pgBackRest TLS service is enabled in the Snap, which makes it start automatically on boot in the charm, creating some noise in the system logs, like the following (from canonical/postgresql-operator#468):
charmed-postgresql.pgbackrest-service[7546]: ERROR: [037]: server command requires option: tls-server-auth
Solution
Disable the service initialisation in the snap.
Also, update the snap version to 14.12 (because that's the PostgreSQL version we have in the repositories now) and fix the name of the
plpython3
package to match the new PostgreSQL version.Services in the charm after this fix (
charmed-postgresql.prometheus-postgres-exporter
needs to be disabled in the charm code, but this will probably be done after we add some logic to handle its start after COS is related to the PG charm):ubuntu@juju-337094-0:~$ sudo snap services charmed-postgresql Service Startup Current Notes charmed-postgresql.patroni disabled active - charmed-postgresql.pgbackrest-exporter disabled inactive - charmed-postgresql.pgbackrest-service disabled inactive - charmed-postgresql.prometheus-postgres-exporter enabled inactive -