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

Infra upgrade improvement #139

Merged
merged 3 commits into from Jan 13, 2021
Merged

Infra upgrade improvement #139

merged 3 commits into from Jan 13, 2021

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Jan 12, 2021

Catch exit code 11, indicating PuppetDB is not fully synced, but the replica is otherwise ready to go.

In order to boost confidence that this is working correctly, the puppet_infra_upgrade task has been refactored to support unit testing, and unit tests have been added.

Code 11 means "PuppetDB sync in progress but not yet complete". We don't
want to abort upgrade on this code.

Commit also refactors task to make it easier to unit test.
Print better data when something goes wrong. Example: when the token
used to connect to the orchestrator is not permitted to perform the
requested operation.
This feels more user-defined and unlikely to be affected by future Bolt
product changes, compared to relying on whether or not a tty is present.
@reidmv reidmv requested a review from a team as a code owner January 12, 2021 22:33
Copy link
Contributor

@timidri timidri 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 and the unit tests pass.

@reidmv reidmv merged commit 7433df7 into main Jan 13, 2021
@reidmv reidmv deleted the infra-upgrade-improvement branch January 13, 2021 19:22
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.

None yet

2 participants