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

Check for clobber issues within a single catalog #27

Merged
merged 1 commit into from Feb 12, 2017
Merged

Check for clobber issues within a single catalog #27

merged 1 commit into from Feb 12, 2017

Conversation

igalic
Copy link
Contributor

@igalic igalic commented Feb 12, 2017

There is code that checks for multiple windows_env instances with
clobber enabled on the same variable. This check makes use of the
instance variable @mergemode, which gets the entire contents of the
previously instantiated resource.

This was causing issues in the case where Puppet restarts mid-way
through its run to account for agent-specified environment conflicts.
When Puppet does this, it does not clear, or re-instantiate, its
types. This caused all instance variables to stick around for the next
run.

The check was looking at the instance variable that it already made;
which was technically coming from a different catalog (a different,
albeit stunted, Puppet run).

This commit fixes the issue by adding some logic that checks to see that
we are only validating for duplicate clobber within the same catalog.

Ideally, this fix shouldn't be needed because Puppet should
re-instantiate its types when it restarts a Puppet run.

There is code that checks for multiple windows_env instances with
clobber enabled on the same variable. This check makes use of the
instance variable @mergemode, which gets the entire contents of the
previously instantiated resource.

This was causing issues in the case where Puppet restarts mid-way
through its run to account for agent-specified environment conflicts.
When Puppet does this, it does not clear, or re-instantiate, its
types. This caused all instance variables to stick around for the next
run.

The check was looking at the instance variable that it already made;
which was technically coming from a different catalog (a different,
albeit stunted, Puppet run).

This commit fixes the issue by adding some logic that checks to see that
we are only validating for duplicate clobber within the same catalog.

Ideally, this fix shouldn't be needed because Puppet should
re-instantiate its types when it restarts a Puppet run.
@igalic
Copy link
Contributor Author

igalic commented Feb 12, 2017

this pull request replaces #17

@bastelfreak bastelfreak merged commit df5b7a0 into puppetlabs:master Feb 12, 2017
@bastelfreak bastelfreak added the bug Something isn't working label Feb 12, 2017
@igalic igalic deleted the natemccurdy-one_catalog branch February 12, 2017 18:25
@Ramesh7 Ramesh7 added the bugfix label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants