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

Fixes #36877 - Add a pre-upgrade check for katello-agent #782

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

wbclark
Copy link
Contributor

@wbclark wbclark commented Oct 23, 2023

No description provided.

Copy link

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

Thanks @wbclark!

definitions/checks/katello_agent.rb Outdated Show resolved Hide resolved
@wbclark wbclark force-pushed the check_katello_agent branch 4 times, most recently from 889efcf to b7fbd46 Compare October 23, 2023 15:27
@wbclark wbclark changed the title Add a pre-upgrade check for katello-agent Fixes #36877 - Add a pre-upgrade check for katello-agent Oct 30, 2023
Comment on lines +30 to +32
" before proceeding with the upgrade. Alternatively, you may skip this check and proceed by"\
" running #{maintain_command} again with the `--whitelist` option, which will automatically"\
" uninstall katello-agent."

Choose a reason for hiding this comment

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

As someone new to foreman-maintain, I'm still not sure what command it's telling me to run here. I assume it's not just foreman-maintain --whitelist? Can it give me the exact command I would run?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to figure out how the name to pass to --whitelist is constructed from the label :check_katello_agent_enabled

Copy link
Contributor Author

@wbclark wbclark Oct 31, 2023

Choose a reason for hiding this comment

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

OK, so it would be --whitelist="check-katello-agent-enabled" but it turns out the exact language shouldn't be necessary here.

The reason why is that if ANY checks fail, there is general language explaining how to whitelist the failed step.

Copy link

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

In that case, LGTM 👍

@wbclark
Copy link
Contributor Author

wbclark commented Nov 1, 2023

@evgeni it looks like we need a green ACK, do you have a moment to look?

@ehelms ehelms merged commit 10f40f2 into theforeman:master Nov 1, 2023
7 checks passed
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.

6 participants