foreman-nightly-rpm-pipeline 1143 failed

Foreman RPM nightly pipeline failed:

https://ci.theforeman.org/job/foreman-nightly-rpm-pipeline/1143/

foreman-pipeline-foreman-nightly-centos8-stream-install (failed) (remote job)
foreman-pipeline-foreman-nightly-centos7-install (failed) (remote job)
foreman-pipeline-foreman-nightly-centos8-install (failed) (remote job)
foreman-pipeline-foreman-nightly-centos7-upgrade (failed) (remote job)
foreman-pipeline-foreman-nightly-centos8-upgrade (failed) (remote job)

Looks like our workaround didn’t work:

# hammer --debug
[ INFO 2021-08-04T10:05:22 Init] Initialization of Hammer CLI (3.0.0.pre.develop) has started...
[DEBUG 2021-08-04T10:05:22 Init] Running at ruby 2.7.3-p183
[ INFO 2021-08-04T10:05:22 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2021-08-04T10:05:22 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2021-08-04T10:05:22 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_puppet.yml has been loaded
[ INFO 2021-08-04T10:05:22 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded
[DEBUG 2021-08-04T10:05:22 SSLoptions] SSL options: {
    :ssl_ca_file => "/etc/puppetlabs/puppet/ssl/certs/ca.pem",
     :verify_ssl => true
}
[DEBUG 2021-08-04T10:05:22 API] Global headers: {
        :content_type => "application/json",
              :accept => "application/json;version=2",
    "Accept-Language" => "en"
}
[DEBUG 2021-08-04T10:05:22 API] Follow redirects: never
[DEBUG 2021-08-04T10:05:22 Connection] Registered: foreman
[DEBUG 2021-08-04T10:05:22 HammerCLIForeman::CommandExtensions::OptionSources] Added predefined options for HammerCLIForeman::Command: 
[ INFO 2021-08-04T10:05:22 Extensions] Applied HammerCLIForeman::CommandExtensions::OptionSources for *all* except *nothing* on HammerCLIForeman::Command.
[DEBUG 2021-08-04T10:05:22 HammerCLIForeman::CommandExtensions::Fields] Added predefined options for HammerCLIForeman::ListCommand: [:fields]
[ INFO 2021-08-04T10:05:22 Extensions] Applied HammerCLIForeman::CommandExtensions::Fields for *all* except *nothing* on HammerCLIForeman::ListCommand.
[DEBUG 2021-08-04T10:05:22 HammerCLIForeman::CommandExtensions::Fields] Added predefined options for HammerCLIForeman::InfoCommand: [:fields]
[ INFO 2021-08-04T10:05:22 Extensions] Applied HammerCLIForeman::CommandExtensions::Fields for *all* except *nothing* on HammerCLIForeman::InfoCommand.
[DEBUG 2021-08-04T10:05:22 HammerCLIForeman::CommandExtensions::UpdateCommon] Added predefined options for HammerCLIForeman::UpdateCommand: 
[ INFO 2021-08-04T10:05:22 Extensions] Applied HammerCLIForeman::CommandExtensions::UpdateCommon for *all* except *nothing* on HammerCLIForeman::UpdateCommand.
[ INFO 2021-08-04T10:05:22 Modules] Extension module hammer_cli_foreman (3.0.0.pre.develop) loaded.
[ERROR 2021-08-04T10:05:22 Modules] Error while loading module hammer_cli_foreman_puppet.
Warning: An error occured while loading module hammer_cli_foreman_puppet.
[ERROR 2021-08-04T10:05:22 Modules] <Gem::ConflictError> Unable to activate hammer_cli_foreman_puppet-0.0.2, because hammer_cli_foreman-3.0.0.pre.develop conflicts with hammer_cli_foreman (>= 3.0.0, < 4.0.0)
	/usr/share/rubygems/rubygems/specification.rb:2247:in `raise_if_conflicts'
	/usr/share/rubygems/rubygems/specification.rb:1369:in `activate'
	/usr/share/rubygems/rubygems.rb:217:in `rescue in try_activate'
	/usr/share/rubygems/rubygems.rb:210:in `try_activate'
	/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
	/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:147:in `require'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:75:in `require_module'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:54:in `load!'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:69:in `load'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:80:in `block in load_all'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:79:in `each'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:79:in `load_all'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/bin/hammer:134:in `<top (required)>'
	/bin/hammer:23:in `load'
	/bin/hammer:23:in `<main>'
	--- Caused by ---
	<Gem::ConflictError> Unable to activate hammer_cli_foreman_puppet-0.0.2, because hammer_cli_foreman-3.0.0.pre.develop conflicts with hammer_cli_foreman (>= 3.0.0, < 4.0.0)
	/usr/share/rubygems/rubygems/specification.rb:2247:in `raise_if_conflicts'
	/usr/share/rubygems/rubygems/specification.rb:1369:in `activate'
	/usr/share/rubygems/rubygems.rb:211:in `try_activate'
	/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
	/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:147:in `require'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:75:in `require_module'
	--- Caused by ---
	<LoadError> cannot load such file -- hammer_cli_foreman_puppet
	/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
	/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:75:in `require_module'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:54:in `load!'
	/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/lib/hammer_cli/modules.rb:69:in `load'
[DEBUG 2021-08-04T10:05:22 Init] Using locale 'en'
[DEBUG 2021-08-04T10:05:22 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-3.0.0.pre.develop/locale'
[DEBUG 2021-08-04T10:05:22 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-3.0.0.pre.develop/locale'
[ INFO 2021-08-04T10:05:22 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
[DEBUG 2021-08-04T10:05:22 Exception] Using exception handler HammerCLI::ExceptionHandler#handle_help_wanted
Usage:

I manually changed the gemspec so it would load:

# ./fb-test-puppet.bats 
 ✓ check smart proxy is registered 
 ✓ assert puppet version 
 ✓ wake up puppet agent 
 ✓ check host is registered 
 ✓ install puppet module 
 ✓ import motd puppet class 
 ✓ Assign puppet-environment to default taxonomies 
 - Assign proxy to default taxonomies (skipped: Assignment not needed)
 ✓ assign puppet class to host 
 ✓ apply class with puppet agent 

10 tests, 0 failures, 1 skipped

I’d suggest we start releasing Hammer and get that into nightly, then proceed with branching once pipelines are green.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.