Project

General

Profile

Actions

Bug #16441

closed

Upgrade from Katello 3.0 to Katello 3.1 fails on apipie:cache task

Added by Javier Vela over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Upgrades
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Following the instructions to upgrade from 3.0 to 3.1 in a RHEL 7 server, when running the last step (foreman-installer --scenario katello --upgrade) fails in the apipie:cache update

Executing it manually:

Upgrade Step: migrate_foreman...
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
rake aborted!
NameError: uninitialized constant Api::V2::Rendering
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.11/lib/foreman_hooks.rb:90:in `load_missing_constant_with_hooks'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.rb:5:in `<class:ApiController>'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.rb:2:in `<module:Katello>'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.rb:1:in `<top (required)>'
/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/katello-3.1.0.1/lib/katello/engine.rb:222:in `block in <class:Engine>'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:in `instance_exec'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:in `block in make_lambda'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:in `block in simple'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `block in call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_prepare_callbacks'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:83:in `prepare!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:55:in `prepare!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:50: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/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/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/application.rb:328:in `require_environment!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Tasks: TOP => config => environment
(See full trace by running task with --trace)

[]# foreman-rake apipie:cache --trace
  • Invoke apipie:cache (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    NameError: uninitialized constant Api::V2::Rendering
    /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.11/lib/foreman_hooks.rb:90:in `load_missing_constant_with_hooks'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.rb:5:in `<class:ApiController>'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.rb:2:in `<module:Katello>'
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.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/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/lib/katello/engine.rb:222:in `block in <class:Engine>'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:in `instance_exec'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:in `block in make_lambda'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:in `call'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:in `block in simple'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `call'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `block in call'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `each'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `call'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_prepare_callbacks'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:83:in `prepare!'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:55:in `prepare!'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:50: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/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:328:in `require_environment!'
    /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
    /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
    /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
    /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
    /opt/rh/rh-ruby22/root/usr/bin/rake:33:in `<main>'
    Tasks: TOP => apipie:cache => environment

Repositories:

centos-sclo-rh/x86_64 CentOS-7 - SCLo rh 4,130
centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo 319
*epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 10,532
foreman/x86_64 Foreman 1.12 421
foreman-plugins/x86_64 Foreman plugins 1.12 243
katello/x86_64 Katello 3.1 33
katello-candlepin/x86_64 Candlepin: an open source entitlement management system. 3
katello-client/x86_64 Katello Client 3.1 15
katello-pulp/x86_64 Pulp Community Releases 49
puppetlabs-deps/x86_64 Puppet Labs Dependencies El 7 - x86_64 17
puppetlabs-products/x86_64 Puppet Labs Products El 7 - x86_64 222
rhscl-rh-ror41-epel-7-x86_64 Ruby on Rails 4.1 - epel-7-x86_64 180
rhscl-rh-ruby22-epel-7-x86_64 Ruby 2.2 - epel-7-x86_64 34
rhscl-ruby193-epel-7-x86_64 Ruby193 - epel-7-x86_64 203
rhscl-v8314-epel-7-x86_64 V8 3.14.5.10 - epel-7-x86_64

RPMs installed:

tfm-rubygem-responders-2.1.1-1.el7.noarch
tfm-rubygem-ancestry-2.0.0-5.el7.noarch
rh-ruby22-rubygem-rdoc-4.2.0-12.el7.noarch
sclo-ror42-rubygem-execjs-2.2.0-2.el7.noarch
tfm-rubygem-foreman-tasks-0.7.18-1.fm1_12.el7.noarch
tfm-rubygem-passenger-native-libs-4.0.18-9.11.el7.x86_64
tfm-rubygem-retriable-1.4.1-4.el7.noarch
tfm-rubygem-unf_ext-0.0.6-6.el7.x86_64
tfm-rubygem-concurrent-ruby-1.0.0-2.fm1_11.el7.noarch
sclo-ror42-rubygem-i18n-0.7.0-3.el7.noarch
tfm-rubygem-rest-client-1.8.0-1.el7.noarch
tfm-rubygem-multipart-post-1.2.0-4.el7.noarch
tfm-rubygem-hammer_cli_katello-0.0.26-1.201606161944gita9fa180.el7.noarch
tfm-rubygem-audited-4.2.0-1.el7.noarch
tfm-rubygem-concurrent-ruby-edge-0.2.0-4.fm1_12.el7.noarch
tfm-rubygem-apipie-params-0.0.4-4.el7.noarch
tfm-rubygem-fog-vsphere-0.7.0-1.el7.noarch
tfm-rubygem-rack-jsonp-1.3.1-5.el7.noarch
tfm-rubygem-angular-rails-templates-0.1.2-5.el7.noarch
sclo-ror42-rubygem-activerecord-4.2.5.1-3.el7.noarch
rh-ruby22-ruby-irb-2.2.2-12.el7.noarch
tfm-rubygem-activerecord-session_store-0.1.2-2.el7.noarch
rh-ruby22-rubygem-rake-10.4.2-12.el7.noarch
tfm-rubygem-foreman_bootdisk-8.0.1-1.fm1_12.el7.noarch
tfm-rubygem-awesome_print-1.7.0-1.el7.noarch
tfm-rubygem-http-cookie-1.0.2-1.el7.noarch
tfm-rubygem-hashr-0.0.22-7.el7.noarch
tfm-rubygem-sequel-4.20.0-5.el7.noarch
tfm-rubygem-commonjs-0.2.7-4.el7.noarch
sclo-ror42-rubygem-multi_json-1.10.1-3.el7.noarch
tfm-rubygem-fog-google-0.1.0-2.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.7.0-1.el7.noarch
sclo-ror42-rubygem-tzinfo-1.2.2-2.el7.noarch
sclo-ror42-rubygem-globalid-0.3.3-3.el7.noarch
tfm-rubygem-fog-rackspace-0.1.1-1.el7.noarch
tfm-rubygem-daemons-1.2.3-3.el7.noarch
tfm-rubygem-autoparse-0.3.3-5.el7.noarch
sclo-ror42-rubygem-rails-html-sanitizer-1.0.3-1.el7.noarch
sclo-ror42-rubygem-actionmailer-4.2.5.1-1.el7.noarch
rh-ruby22-rubygem-io-console-0.4.3-12.el7.x86_64
tfm-rubygem-will_paginate-3.1.0-2.el7.noarch
tfm-runtime-3.1-3.el7.x86_64
sclo-ror42-rubygem-coffee-rails-4.1.0-3.el7.noarch
tfm-rubygem-deface-1.0.2-3.el7.noarch
tfm-rubygem-net-ssh-3.0.2-2.el7.noarch
tfm-rubygem-net-scp-1.1.0-6.el7.noarch
tfm-rubygem-launchy-2.4.3-4.el7.noarch
tfm-rubygem-domain_name-0.5.20160310-1.el7.noarch
tfm-rubygem-jwt-1.2.0-4.el7.noarch
rh-ruby22-rubygem-minitest-5.4.3-12.el7.noarch
tfm-rubygem-sexp_processor-4.4.4-3.el7.noarch
tfm-rubygem-gettext_i18n_rails-1.2.1-3.el7.noarch
rh-ruby22-rubygem-thor-0.19.1-1.el7.centos.noarch
sclo-ror42-rubygem-rack-1.6.2-2.el7.noarch
tfm-rubygem-formatador-0.2.1-9.el7.noarch
sclo-ror42-rubygem-sprockets-3.5.2-1.el7.noarch
tfm-rubygem-hammer_cli-0.7.0-1.el7.noarch
tfm-rubygem-facter-2.4.0-3.el7.x86_64
sclo-ror42-rubygem-mail-2.6.1-1.el7.noarch
tfm-rubygem-ldap_fluff-0.4.3-1.el7.noarch
tfm-rubygem-fog-libvirt-0.2.0-1.el7.noarch
tfm-rubygem-signet-0.6.0-5.el7.noarch
sclo-ror42-rubygem-loofah-2.0.2-3.el7.noarch
sclo-ror42-rubygem-actionpack-4.2.5.1-2.el7.noarch
tfm-rubygem-rails-i18n-4.0.8-3.el7.noarch
sclo-ror42-rubygem-coffee-script-source-1.10.0-1.el7.noarch
tfm-rubygem-oauth-0.4.7-8.el7.noarch
tfm-rubygem-net-ldap-0.14.0-1.el7.noarch
tfm-rubygem-ipaddress-0.8.0-9.el7.noarch
tfm-rubygem-algebrick-0.7.3-4.el7.noarch
sclo-ror42-rubygem-nokogiri-1.6.7-0.4.rc3.el7.x86_64
tfm-rubygem-fog-core-1.36.0-2.el7.noarch
sclo-ror42-rubygem-concurrent-ruby-1.0.0-2.el7.noarch
sclo-ror42-rubygem-thread_safe-0.3.5-2.el7.noarch
tfm-rubygem-apipie-bindings-0.0.16-2.el7.noarch
tfm-rubygem-faraday-0.9.1-3.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-2.el7.noarch
tfm-rubygem-rbovirt-0.1.2-1.el7.noarch
sclo-ror42-rubygem-activemodel-4.2.5.1-1.el7.noarch
tfm-rubygem-protected_attributes-1.1.3-3.el7.noarch
sclo-ror42-rubygem-rails-deprecated_sanitizer-1.0.3-5.el7.noarch
tfm-rubygem-dynflow-0.8.11-1.fm1_12.el7.noarch
tfm-rubygem-fog-openstack-0.1.2-1.el7.noarch
tfm-rubygem-fog-1.38.0-1.el7.noarch
sclo-ror42-rubygem-rack-protection-1.5.3-4.el7.noarch
tfm-rubygem-anemone-0.7.2-14.el7.noarch
sclo-ror42-rubygem-actionview-4.2.5.1-3.el7.noarch
rh-ruby22-rubygem-psych-2.0.8-12.el7.x86_64
tfm-rubygem-wicked-1.1.0-4.el7.noarch
rh-ruby22-rubygem-bigdecimal-1.2.6-12.el7.x86_64
tfm-rubygem-scoped_search-3.2.2-4.el7.noarch
sclo-ror42-runtime-3.0-2.el7.x86_64
tfm-rubygem-audited-activerecord-4.2.0-2.el7.noarch
sclo-ror42-rubygem-turbolinks-2.5.3-2.el7.noarch
tfm-rubygem-bastion-3.2.2-2.fm1_12.el7.noarch
tfm-rubygem-excon-0.49.0-3.el7.noarch
tfm-rubygem-foreman_docker-2.1.1-1.fm1_12.el7.noarch
tfm-rubygem-fast_gettext-1.1.0-1.el7.noarch
tfm-rubygem-foreman_remote_execution-1.0.0-1.fm1_12.el7.noarch
tfm-rubygem-passenger-4.0.18-9.11.el7.x86_64
tfm-rubygem-secure_headers-1.4.1-4.el7.noarch
tfm-rubygem-pg-0.15.1-3.el7.x86_64
tfm-rubygem-qpid_messaging-0.34.1-1.el7.x86_64
tfm-rubygem-unf-0.1.3-5.el7.noarch
tfm-rubygem-table_print-1.5.1-6.el7.noarch
tfm-rubygem-powerbar-1.0.17-1.el7.noarch
tfm-rubygem-strong_parameters-0.2.1-13.el7.noarch
tfm-rubygem-sshkey-1.6.0-4.el7.noarch
rh-ruby22-rubygem-net-http-persistent-2.9.4-4.el7.centos.noarch
sclo-ror42-rubygem-railties-4.2.5.1-2.el7.noarch
sclo-ror42-rubygem-arel-6.0.3-2.el7.noarch
rh-ruby22-ruby-2.2.2-12.el7.x86_64
tfm-rubygem-validates_lengths_from_database-0.5.0-3.el7.noarch
tfm-rubygem-katello-3.1.0.1-3.el7.noarch
tfm-rubygem-foreman_discovery-6.0.0-1.fm1_12.el7.noarch
tfm-rubygem-colorize-0.7.7-4.el7.noarch
tfm-rubygem-clamp-1.0.0-5.el7.noarch
rhscl-rh-ruby22-epel-7-x86_64-1-2.noarch
tfm-rubygem-hashie-2.0.5-4.el7.noarch
sclo-ror42-rubygem-builder-3.2.2-2.el7.noarch
tfm-rubygem-logging-1.8.2-4.el7.noarch
tfm-rubygem-hammer_cli_import-0.10.23-1.el7.noarch
sclo-ror42-rubygem-activesupport-4.2.5.1-1.el7.noarch
sclo-ror42-rubygem-activejob-4.2.5.1-1.el7.noarch
tfm-rubygem-trollop-2.0-5.el7.noarch
tfm-rubygem-fog-aws-0.9.1-1.el7.noarch
tfm-rubygem-google-api-client-0.8.2-5.el7.noarch
sclo-ror42-rubygem-erubis-2.7.0-9.el7.noarch
tfm-rubygem-jquery-ui-rails-4.1.2-5.el7.noarch
tfm-rubygem-deep_cloneable-2.1.1-4.el7.noarch
rh-ruby22-rubygem-json-1.8.1-12.el7.x86_64
sclo-ror42-rubygem-coffee-script-2.4.1-1.el7.noarch
tfm-rubygem-extlib-0.9.16-4.el7.noarch
sclo-ror42-rubygem-polyglot-0.3.4-2.el7.noarch
tfm-rubygem-bundler_ext-0.3.0-9.el7.noarch
tfm-rubygem-passenger-native-4.0.18-9.11.el7.x86_64
tfm-rubygem-docker-api-1.28.0-2.el7.noarch
tfm-rubygem-highline-1.6.21-5.el7.noarch
tfm-rubygem-robotex-1.0.0-19.el7.noarch
tfm-rubygem-hooks-0.2.2-7.el7.noarch
tfm-rubygem-ruby_parser-3.6.3-4.el7.noarch
tfm-rubygem-apipie-rails-0.3.6-1.el7.noarch
tfm-rubygem-netrc-0.7.7-7.el7.noarch
tfm-rubygem-fog-json-1.0.2-4.el7.noarch
sclo-ror42-rubygem-mime-types-1.25.1-2.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.10-2.fm1_12.el7.noarch
tfm-rubygem-rabl-0.12.0-2.el7.noarch
rh-ruby22-runtime-2.0-6.sc1.el7.x86_64
tfm-rubygem-runcible-1.7.2-3.el7.noarch
tfm-rubygem-rbvmomi-1.8.2-4.el7.noarch
sclo-ror42-rubygem-rack-test-0.6.3-3.el7.noarch
sclo-ror42-rubygem-sprockets-rails-2.3.3-1.el7.noarch
sclo-ror42-rubygem-rails-4.2.5.1-1.el7.noarch
rh-ruby22-rubygems-2.4.5-12.el7.x86_64
tfm-rubygem-friendly_id-5.1.0-3.el7.noarch
rh-ruby22-rubygem-bundler-1.7.8-2.sc1.el7.noarch
tfm-rubygem-foreman_hooks-0.3.11-1.fm1_12.el7.noarch
tfm-rubygem-little-plugger-1.1.3-21.el7.noarch
tfm-rubygem-safemode-1.2.4-2.el7.noarch
tfm-rubygem-addressable-2.3.6-3.el7.noarch
tfm-rubygem-ruby-libvirt-0.5.2-4.el7.x86_64
tfm-rubygem-ruby2ruby-2.1.3-4.el7.noarch
tfm-rubygem-locale-2.0.9-11.el7.noarch
tfm-rubygem-fog-xml-0.1.2-4.el7.noarch
sclo-ror42-rubygem-tilt-1.4.1-2.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-5.el7.noarch
tfm-rubygem-rails-observers-0.1.2-7.el7.noarch
sclo-ror42-rubygem-rails-dom-testing-1.0.5-3.el7.noarch
rh-ruby22-ruby-libs-2.2.2-12.el7.x86_64
tfm-rubygem-parse-cron-0.1.4-2.fm1_11.el7.noarch
tfm-rubygem-fog-xenserver-0.2.3-1.el7.noarch
sclo-ror42-rubygem-sinatra-1.4.6-4.el7.noarch

Actions #1

Updated by Javier Vela over 7 years ago

I've also tried to remove the hooks rpm to try to workaround the problem, but another similar error appears:
  1. yum remove tfm-rubygem-hooks-0.2.2-7.el7.noarch tfm-rubygem-foreman_hooks-0.3.11-1.fm1_12.el7.noarch
    [~]# foreman-rake apipie:cache --trace
    • Invoke apipie:cache (first_time)
    • Invoke environment (first_time)
    • Execute environment
      rake aborted!
      NameError: uninitialized constant Api::V2::Rendering
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.rb:5:in `<class:ApiController>'
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.rb:2:in `<module:Katello>'
      /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/app/controllers/katello/api/v2/api_controller.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/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/lib/katello/engine.rb:222:in `block in <class:Engine>'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:in `instance_exec'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:446:in `block in make_lambda'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:in `call'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:192:in `block in simple'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `call'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `block in call'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `each'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:504:in `call'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_prepare_callbacks'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:83:in `prepare!'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/reloader.rb:55:in `prepare!'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:50: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/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:328:in `require_environment!'
      /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
      /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
      /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
      /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
      /opt/rh/rh-ruby22/root/usr/bin/rake:33:in `<main>'
      Tasks: TOP => apipie:cache => environment
Actions #2

Updated by Justin Sherrill over 7 years ago

  • translation missing: en.field_release changed from 143 to 184
Actions #3

Updated by Justin Sherrill over 7 years ago

Yes, that was only meant when upgrading from 2.4. I will remove it from the docs on katello.org

Actions #4

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello.org/pull/301 added
Actions #5

Updated by Justin Sherrill over 7 years ago

  • Status changed from Ready For Testing to Assigned
  • Pull request deleted (https://github.com/Katello/katello.org/pull/301)
Actions #6

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello.org/pull/301 added
Actions #7

Updated by Justin Sherrill over 7 years ago

  • Status changed from Ready For Testing to Assigned
  • Pull request deleted (https://github.com/Katello/katello.org/pull/301)
Actions #8

Updated by Justin Sherrill over 7 years ago

Please ignore that previous comment, was meant for a different issue :)

Actions #9

Updated by Justin Sherrill over 7 years ago

This is quite a strange error, could you try adding:

```
require_dependency "#{Katello::Engine.root}/app/lib/katello/api/v2/rendering"
```
to /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0.1/lib/katello/engine.rb (around line 222)

so that it looks like this:

```
require_dependency "#{Katello::Engine.root}/app/lib/katello/api/v2/rendering"
require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/api_controller"
require_dependency "#{Katello::Engine.root}/app/controllers/katello/api/v2/api_controller"
require_dependency "#{Katello::Engine.root}/app/services/katello/proxy_status/pulp"
require_dependency "#{Katello::Engine.root}/app/services/katello/proxy_status/pulp_node"
```

Actions #10

Updated by Javier Vela over 7 years ago

Hi,

After adding the line

require_dependency "#{Katello::Engine.root}/app/lib/katello/api/v2/rendering"

The upgrade has finished without problems. Also the rake apipie:cache command has worked. Thanks for the help.

This problem happened in staging. Now I have to update production. I imagine the problem will happen again. There is going to be a pull request to fix the problem or was a one-time error in this particular server/upgrade?

Regards.

Actions #11

Updated by Justin Sherrill over 7 years ago

  • Target version set to 126
  • Difficulty set to trivial

Yes, i will open a PR now and release this as part of 3.1.1

Actions #12

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6304 added
Actions #13

Updated by Justin Sherrill over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF