-
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
(MODULES-10666) Stop agent run after an upgrade #496
(MODULES-10666) Stop agent run after an upgrade #496
Conversation
bc58bf1
to
9d717fe
Compare
CLA signed by all contributors. |
4a78fd6
to
7d4d3d5
Compare
7d4d3d5
to
6ed2d85
Compare
I added a note in the readme to reflect this change in functionality. This should be ready to merge now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small remark about method naming, otherwise LGTM.
false | ||
end | ||
|
||
def needs_upgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could rename this to needs_upgrade?
as it is the convention for methods that return a boolean
LE: also you could make this method private
5214a6c
to
92f4f73
Compare
eb8b0e7
to
4883763
Compare
Previously, when evaluating additional resources after a puppet-agent upgrade, we could get to a point where we had a mixture of old/new Ruby code loaded in memory. This may cause unexpected behavior if the new code tries to execute something not available in the already loaded old code. This commit introduces a new type/provider that is evaluated whenever a puppet-agent upgrade happens on a platform managed with the package resource (AIX, Debian, EL, Suse). The newly added resource attempts to figure out if a Puppet upgrade was performed, then stops the run altogether. If Puppet is being run as a service, the HUP signal will have the daemon trigger a subsequent Puppet run that will evaluate the remaining resources. When running `puppet agent -t` manually, it is up to the user to rerun the command after the puppet-agent upgrade.
4883763
to
d26fab5
Compare
We've chosen to do a major release due to the significant changes brought on by MODULES-10666. See: puppetlabs#496
We've chosen to do a major release due to the significant changes brought on by MODULES-10666. See: puppetlabs#496
Previously, when evaluating additional resources after a puppet-agent
upgrade, we could get to a point where we had a mixture of old/new
Ruby code loaded in memory. This may cause unexpected behavior if the
new code tries to execute something not available in the already
loaded old code.
This commit introduces a new type/provider that is evaluated whenever
a puppet-agent upgrade happens on a platform managed with the package
resource (AIX, Debian, EL, Suse).
The newly added resource attempts to figure out if a Puppet upgrade
was performed, then stops the run altogether. If Puppet is being run
as a service, the HUP signal will have the daemon trigger a subsequent
Puppet run that will evaluate the remaining resources.
When running
puppet agent -t
manually, it is up to the user to rerunthe command after the puppet-agent upgrade.