Bug #20133
closedKatello upgrade from 3.4.1 to 3.4.2 fail 2 issues
Description
This issue apparently is try to re-register to foreman that is the default but fail i just pass the option --foreman-proxy-register-in-foreman false and is continue but i don't think is the good way
[ERROR 2017-06-28 11:13:37 verbose] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]: Could not evaluate: Proxy satellite.example.com cannot be retrieved: unknown error (response 500)
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:7:in `proxy'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in `id'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/type.rb:1048:in `retrieve'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/type.rb:1076:in `retrieve_resource'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `from_resource'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:19:in `evaluate'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
[ERROR 2017-06-28 11:13:37 verbose] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
[ERROR 2017-06-28 11:13:37 verbose] /usr/bin/puppet:8:in `<main>'
[ WARN 2017-06-28 11:13:38 verbose] Finished catalog run in 35.08 seconds
This is the second issue after pass the first one with the option --foreman-proxy-register-in-foreman false and her i'm stuck i all the services are up and is complain foreman task is down but is up also no firewall or selinux are enable
foreman-rake db:seed finished successfully!
Upgrade Step: correct_repositories (this may take a while) ...
[ INFO 2017-06-28 11:21:18 verbose] Upgrade Step: correct_repositories (this may take a while) ...
rake aborted!
Not all the services have been started. Check the status report above and try again.
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.2/lib/katello/tasks/reimport.rake:10:in `block (2 levels) in <top (required)>'
Tasks: TOP => katello:correct_repositories => katello:check_ping
(See full trace by running task with --trace)
{:services=>
{:pulp=>{:status=>"ok", :duration_ms=>"137"},
:pulp_auth=>{:status=>"ok", :duration_ms=>"43"},
:candlepin=>{:status=>"ok", :duration_ms=>"35"},
:candlepin_auth=>{:status=>"ok", :duration_ms=>"49"},
:foreman_tasks=>
{:status=>"FAIL",
:message=>"foreman-tasks service not running or is not ready yet"}},
:status=>"FAIL"}
foreman-rake katello:correct_repositories COMMIT=true failed! Check the output for error!
[ERROR 2017-06-28 11:21:30 verbose] foreman-rake katello:correct_repositories COMMIT=true failed! Check the output for error!
Upgrade step correct_repositories failed. Check logs for more information.
[ERROR 2017-06-28 11:21:30 verbose] Upgrade step correct_repositories failed. Check logs for more information.
[ INFO 2017-06-28 11:21:30 verbose] Installer finished in 216.912369853 seconds
Updated by Eric Helms over 7 years ago
- Status changed from New to Need more information
Mario,
Could you provide us with the production.log or portion of the log when the 500 occurred during registration?
Would you mind filing a separate bug for one of these issue so we can track them separately?
Thanks!
Updated by Mario Gamboa over 7 years ago
Sorry eric i don't know what happen i paste the error is looks like the new openscap plugin make the foreman crash let me tomorrow again in the office copy and paste the issue
Updated by Mario Gamboa over 7 years ago
Ok sorry for the delay here is the issue
2017-07-03 10:15:57 [foreman-tasks/dynflow] [I] start terminating client dispatcher...
2017-07-03 10:15:57 [foreman-tasks/dynflow] [I] stop listening for new events...
2017-07-03 10:15:57 [foreman-tasks/dynflow] [I] start terminating clock...
2017-07-03 10:16:09 [app] [W] Failed running foreman-tasks daemon
| NameError: uninitialized constant ForemanOpenscap::ApplicationRecord
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.7.3/app/models/foreman_openscap/asset.rb:2:in `<module:ForemanOpenscap>'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.7.3/app/models/foreman_openscap/asset.rb:1:in `<top (required)>'
| /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
| /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:471:in `each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:471:in `block in eager_load!'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:469:in `each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:469:in `eager_load!'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:346:in `eager_load!'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:56:in `each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in `instance_exec'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in `run'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in `block in run_initializers'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:in `block in tsort_each'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:in `each_strongly_connected_component_from'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in `block in each_strongly_connected_component'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `call'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each_strongly_connected_component'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in `tsort_each'
| /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:in `tsort_each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in `run_initializers'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:in `initialize!'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `public_send'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `method_missing'
| /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
| /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
| /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.3/lib/foreman_tasks/dynflow/daemon.rb:43:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.3/lib/foreman_tasks/dynflow/daemon.rb:73:in `block (2 levels) in run_background'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/application.rb:265:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/application.rb:265:in `block in start_proc'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/daemonize.rb:84:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/daemonize.rb:84:in `call_as_daemon'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/application.rb:269:in `start_proc'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/application.rb:295:in `start'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/controller.rb:56:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons.rb:193:in `block in run_proc'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/cmdline.rb:88:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons/cmdline.rb:88:in `catch_exceptions'
| /opt/theforeman/tfm/root/usr/share/gems/gems/daemons-1.2.3/lib/daemons.rb:192:in `run_proc'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.3/lib/foreman_tasks/dynflow/daemon.rb:67:in `block in run_background'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.3/lib/foreman_tasks/dynflow/daemon.rb:66:in `times'
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.3/lib/foreman_tasks/dynflow/daemon.rb:66:in `run_background'
| /usr/bin/foreman-tasks:5:in `<main>'
Updated by Anonymous over 7 years ago
update foreman_openscap to 0.7.4 and report back, please.
Updated by Mario Gamboa over 7 years ago
Works like a charm with the new version of openscap
Updated by Mario Gamboa over 7 years ago
- Status changed from Need more information to Resolved
Solved
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 267 to 281