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

ENT-10647: Fixed and improved postgresql server state handling in package scriptlets #1303

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

craigcomstock
Copy link
Contributor

One typo fix. This was causing failure in ALL upgrades. Ouch.

Changed wait time for server stop/start from 5 seconds to 60.

Added cf_console to pg_upgrade failure tailing so it is visible in console.

Changed condition to test for stopped/started to something that works with tighter restrictions.
Using a select as root was failing due to lack of an account in postgresql at the moment we
were checking: bare database without any further manipulation by setup scripts.

Ticket: ENT-10647
Changelog: title

…lets

One typo fix. This was causing failure in ALL upgrades. Ouch.

Changed wait time for server stop/start from 5 seconds to 60.

Added cf_console to pg_upgrade failure tailing so it is visible in console.

Changed condition to test for stopped/started to something that works with tighter restrictions.
Using a select as root was failing due to lack of an account in postgresql at the moment we
were checking: bare database without any further manipulation by setup scripts.

Ticket: ENT-10647
Changelog: title
@craigcomstock
Copy link
Contributor Author

@cf-bottom jenkins please

@cf-bottom
Copy link

@craigcomstock
Copy link
Contributor Author

When this is committed and cherry picks are merged, changelog entries are here:
cfengine/core#5338
cfengine/core#5337

@craigcomstock
Copy link
Contributor Author

I confirmed that an upgrade on rhel-7 from 3.18.5 to this package (3.23.0a) worked well with no errors. Both with all services running before upgrade as well as with all services stopped.

Also that in both cases, pg_update was used for the upgrade as I think it has not been recently due to the change removing tcp access to root by default.

@craigcomstock
Copy link
Contributor Author

cherry picks
#1304
#1305

@craigcomstock
Copy link
Contributor Author

I would consider jenkins CI to be "green enough" as the only failure is something surfaced by the additional logging of why pg_upgrade failed. I logged https://northerntech.atlassian.net/browse/ENT-10710 to investigate why ubuntu 16 pg_upgrade fails and try to workaround the issue there specifically.

@craigcomstock craigcomstock merged commit bb4287d into master Sep 29, 2023
3 of 4 checks passed
@craigcomstock craigcomstock deleted the ENT-10647-2/master branch September 29, 2023 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants