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