-
Notifications
You must be signed in to change notification settings - Fork 193
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
(PE-23563) Stop MCO and Puppet prior to MSI install #274
(PE-23563) Stop MCO and Puppet prior to MSI install #274
Conversation
Previously it was possible to get into a strange race condition where the MSI was able to propertly stop the MCollective service prior to upgrade. This commit attempts to stop the mco service prior to the MSI being invoked, giving the service more time to stop correctly.
Previously it was possible to get into a strange race condition where the MSI was able to propertly stop the Puppet Agent service prior to upgrade. This commit attempts to stop the puppet service prior to the MSI being invoked, giving the service more time to stop correctly.
Previously it was difficult to debug failed upgrades as it was not possible to know what rights the installation user had at install time. This commit logs the current user's rights prior to the upgrade.
This PR is based on the work by @Iristyle on https://github.com/iristyle/puppetlabs-puppet_agent/tree/PE-23563-tests |
CLA signed by all contributors. |
Is CI fixed with the other PR? |
This PR seems fine. |
Rerunning Travis CI... |
Travis is now green but Jenkins is Red due to some other issue. |
I'm a bit surprised that we were able to merge a PR using a PE ticket number, since those tickets are private / not searchable.... we have taken lengths in other projects to making sure we use public tickets for public / open source projects like this module. That said, I see some prior art in the PR merge history... but we should probably be a bit more careful about this in the future. |
@Iristyle Whoops true. I shall remember that for next time. |
Previously it was possible to get into a strange race condition where the MSI
was able to propertly stop the MCollective and Puppet service prior to upgrade. This
PR attempts to stop the mco and puppet services prior to the MSI being invoked, giving
the service more time to stop correctly.
This PR also adds some helpful information into the installation log for use during debugging failed installations.