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-11233: Aborted package installation if backup directory exists non-empty (3.21) #1428

Merged
merged 1 commit into from
May 29, 2024

Conversation

nickanderson
Copy link
Member

We have observed the presence of an old backup directory causing issues during
upgrade. This change avoids proceeding with package installation if a backup
directory exists and is not empty.

Previously this was restricted to when we thought we would be doing a database
migration, but we have seen issues with failed migration when the backup
directory is non-empty and we are not doing any migration, so it is better to
simply avoid installing the package if the backup directory is not empty even if
we don't expect to use it for migration.

Ticket: ENT-11233
Changelog: Title
(cherry picked from commit b7364b8)

We have observed the presence of an old backup directory causing issues during
upgrade. This change avoids proceeding with package installation if a backup
directory exists and is not empty.

Previously this was restricted to when we thought we would be doing a database
migration, but we have seen issues with failed migration when the backup
directory is non-empty and we are not doing any migration, so it is better to
simply avoid installing the package if the backup directory is not empty even if
we don't expect to use it for migration.

Ticket: ENT-11233
Changelog: Title
(cherry picked from commit b7364b8)
@nickanderson
Copy link
Member Author

nickanderson commented May 24, 2024

For #1394

Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

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

Looks good. Can we check on Jenkins and some manual tests with the ubu20 hub packages that should be available from the GitHub actions?

@nickanderson
Copy link
Member Author

@cf-bottom jenkins, please.

@nickanderson
Copy link
Member Author

Looks good. Can we check on Jenkins and some manual tests with the ubu20 hub packages that should be available from the GitHub actions?

The gh actions are failing here.

@cf-bottom
Copy link

@craigcomstock
Copy link
Contributor

craigcomstock commented May 28, 2024

@nickanderson jenkins failure looks unrelated, I added a ticket for it: https://northerntech.atlassian.net/browse/ENT-11829

@olehermanse olehermanse merged commit 8e4fbba into cfengine:3.21.x May 29, 2024
37 of 38 checks passed
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.

4 participants