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

(MODULES-1341) Recover when deleting absent rules #577

Merged
merged 1 commit into from
Nov 24, 2015

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Nov 4, 2015

Some types, specifically the resources type, will call Firewall instances and then use generate to build and add to the catalog firewall resources very early in a Puppet run. Later, those resources might be removed as a side effect of another action, such as shutting down the firewalld service.

Prior to this commit, Puppet would try to delete firewall resources which were already absent, and throw an error. This commit adds an exception catcher which will check to see if the rule being removed is absent, and if so, consider the change a success even if the firewall command failed. It will adjust the change message to reflect the uncertainty over how the rule was removed, though it was verified removed.

Some types, specifically the resources type, will call Firewall
instances and then use generate to build and add to the catalog firewall
resources very early in a Puppet run. Later, those resources might be
removed as a side effect of another action, such as shutting down the
firewalld service.

Prior to this commit, Puppet would try to delete firewall resources
which were already absent, and throw an error. This commit adds an
exception catcher which will check to see if the rule being removed is
absent, and if so, consider the change a success even if the firewall
command failed. It will adjust the change message to reflect the
uncertainty over how the rule was removed, though it was verified
removed.
@tphoney
Copy link
Contributor

tphoney commented Nov 17, 2015

@reidmv there is further work required in puppet core, that is due to go into the next release. Until that is done, we cannot merge this PR. As we do not know what the final behaviour will be. Following MODULES-1341 is the best source of information for now.

@bmjen
Copy link
Contributor

bmjen commented Nov 23, 2015

Hi @reidmv is the explanation from @tphoney sufficient? Can we close this PR?

@reidmv
Copy link
Contributor Author

reidmv commented Nov 23, 2015

@bmjen No, I don't think so. I believe @tphoney was referring to PUP-1963 as the work in Puppet core scheduled for the next release, and as I described in MODULES-1341 in my last comment, my understanding of (and testing with) PUP-1963 indicates that solving PUP-1963 has not solved this issue.

There are three example error messages described in MODULES-1341. PUP-1963 solves the cause of two of them, but not the third.

@bmjen or @tphoney, could one of you arrange for someone to review the comments in MODULES-1341 either to a) clarify what core work you believe will solve this problem, b) to suggest an alternative means of solving this remaining problem, or c) provide feedback on moving this fix forward? Thanks!

jonnytdevops added a commit that referenced this pull request Nov 24, 2015
(MODULES-1341) Recover when deleting absent rules
@jonnytdevops jonnytdevops merged commit 1b6cc91 into puppetlabs:master Nov 24, 2015
cegeka-jenkins pushed a commit to cegeka/puppet-firewall that referenced this pull request Oct 23, 2017
(MODULES-1341) Recover when deleting absent rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants