Skip to content
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

Merged

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Jun 19, 2024

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  -

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
@@ -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
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Pinned on c0472ff.

@dragomirp dragomirp self-requested a review July 12, 2024 12:21
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
@dragomirp
Copy link
Contributor

We will need to bump the Postgresql version in the rock as well once we publish the snap.

@marceloneppel marceloneppel merged commit 5020547 into 14/edge Jul 15, 2024
6 checks passed
@marceloneppel marceloneppel deleted the dpe-4345-disable-pgbackrest-service-initialisation branch July 15, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants