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

idempotency issues: "check package signature in repo files" and "remove_suid_from_blacklists" #257

Open
Rudikza opened this issue Oct 4, 2019 · 1 comment

Comments

@Rudikza
Copy link

Rudikza commented Oct 4, 2019

Describe the bug
When running kitchen acceptance testing with the enforce_idempotency: true option set under the provisioner.

Expected behavior
On multiple chef runs, when nothing changes, no changes should be made.

Actual behavior
Two resources are updated even though the SUT hasn't changed:

       Running handlers:
       First chef run should have reached a converged state.
       Resources updated in a second chef-client run:
       - ruby_block[check package signature in repo files]
       - ruby_block[remove_suid_from_blacklists]

Example code

provisioner:
  name: chef_solo
<% if ENV['CHEF_VERSION'] %>
  require_chef_omnibus: <%= ENV['CHEF_VERSION'] %>
<% end %>
  chef_license: accept
  enforce_idempotency: true

OS / Environment

Target version of OS is Centos 7. I haven't tried any of the others.

Chef Version

Chef Workstation version: 1.0.11
Chef Infra Client version: 15.2.20
Chef InSpec version: 4.10.4
Test Kitchen version: 2.2.5
Foodcritic version: 16.1.1
Cookstyle version: 0.72.0

Cookbook Version

4.0.0

Additional context
I am happy to help write code if someone can point me in the right direction.

@Rudikza Rudikza changed the title Idemptoteny issues: "check package signature in repo files" and "remove_suid_from_blacklists" idempotentcy issues: "check package signature in repo files" and "remove_suid_from_blacklists" Oct 8, 2019
@Rudikza Rudikza changed the title idempotentcy issues: "check package signature in repo files" and "remove_suid_from_blacklists" idempotency issues: "check package signature in repo files" and "remove_suid_from_blacklists" Oct 8, 2019
@sean-nixon
Copy link
Contributor

I too would love to see this fixed.

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

No branches or pull requests

2 participants