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

Add option to skip the update/reboot on pre-upgraded server #227

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rjo-uk
Copy link
Contributor

@rjo-uk rjo-uk commented Oct 4, 2024

As part of the upgrade role, an initial update and reboot is performed in https://github.com/redhat-cop/infra.leapp/blob/main/roles/upgrade/tasks/leapp-upgrade.yml

Whilst this is good practice, it would be useful to have the option of disabling this so that:

  • Any updates that are available on the server are not automatically applied. For example, updates from a third party repository may bring in unwanted packages (eg a new third party kernel) and result in a server that cannot be upgraded
  • Later code in the playbook may fail gracefully (for example, due lack of disk space) before the upgrade is performed. If no additional updates have been installed on the current operating system, it is easier to recover the server to the pre-upgrade state.
  • The pre-upgrade update can be performed during a different change window ahead of upgrade work. This will reduce upgrade time by not having to perform a reboot.

This initial draft is intended to not change workflows for existing users. If the variable skip_pre_upgrade_update_reboot is not provided, the update and reboot will occur as it does today.

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.

1 participant