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

Run acceptance tests in CI #383

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 27, 2024

No description provided.

@ekohl
Copy link
Member Author

ekohl commented Jan 27, 2024

voxpupuli/beaker-vagrant#80 appears to work. Some notes:

@ekohl
Copy link
Member Author

ekohl commented Jan 27, 2024

I think the failure is due to preloading, resulting in duplicate definitions:

   1) selinux class behaves like an idempotent resource applies a second time without changes
     Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
     Beaker::Host::CommandFailure:
       Host 'rocky8-64-puppet7.example.com' exited with 1 running:
        puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_141930551.pp.SVobXK
       Last 10 lines of output were:
       	Info: Loading facts
       	Info: Loading facts
       	Warning: This function is deprecated, please use stdlib::ensure_packages instead. at ["/etc/puppetlabs/code/environments/production/modules/selinux/manifests/refpolicy_package.pp", 14]:["/etc/puppetlabs/code/environments/production/modules/selinux/manifests/module.pp", 72]
       	   (location: /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/deprecation.rb:35:in `deprecation')
       	Notice: Compiled catalog for rocky8-64-puppet7.example.com in environment production in 0.19 seconds
       	Info: Using environment 'production'
       	Error: Failed to apply catalog: Cannot alias Selinux_fcontext[absent] to ["/tmp/fcontexts_source(/.*)?_a"]; resource ["Selinux_fcontext", "/tmp/fcontexts_source(/.*)?_a"] already declared (file: /etc/puppetlabs/code/environments/production/modules/selinux/manifests/fcontext.pp, line: 59)

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

Successfully merging this pull request may close these issues.

1 participant