Bug #15523
closedKatello 2.4 -> upgrade issue (import_distributions)
Description
While performing an upgrade from Katello 2.4 to 3.0.1, the upgrade step 'import_distributions' failed:
Upgrade step import_distributions failed. Check logs for more information.
/usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:108:in `error': wrong number of arguments (24 for 1) (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:108:in `send'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:108:in `dump_buffer'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:108:in `each'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:108:in `dump_buffer'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:107:in `each'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:107:in `dump_buffer'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:98:in `dump_errors'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/logger.rb:103:in `dump_errors'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/exit_handler.rb:28:in `exit'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/kafo_configure.rb:156:in `exit'
from /usr/share/katello-installer-base/hooks/post/30-upgrade.rb:78:in `fail_and_exit'
from /usr/share/katello-installer-base/hooks/post/30-upgrade.rb:72:in `upgrade_step'
from /usr/share/katello-installer-base/hooks/post/30-upgrade.rb:88:in `load'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/hook_context.rb:13:in `instance_exec'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/hook_context.rb:13:in `execute'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/hooking.rb:51:in `execute'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/hooking.rb:49:in `each'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/hooking.rb:49:in `execute'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/kafo_configure.rb:416:in `run_installation'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/exit_handler.rb:26:in `call'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/exit_handler.rb:26:in `exit'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/kafo_configure.rb:156:in `exit'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/kafo_configure.rb:415:in `run_installation'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/kafo_configure.rb:143:in `execute'
from /usr/lib/ruby/gems/1.8/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
from /usr/lib/ruby/gems/1.8/gems/kafo-0.7.4/lib/kafo/kafo_configure.rb:150:in `run'
from /usr/sbin/foreman-installer:12
Trying to publish a new Content View version gets to almost complete, and then fails, with the error in the log:
2016-06-27 11:05:19 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2016-06-27 11:05:19 [app] [I] Parameters: {"id"=>"77bad137-4012-4b5e-aef3-fc4eaca316f9"}
2016-06-27 11:05:19 [app] [I] Completed 200 OK in 233ms (Views: 4.6ms | ActiveRecord: 2.7ms)
2016-06-27 11:05:19 [foreman-tasks/action] [E] undefined method `[]' for nil:NilClass (NoMethodError)
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/pulp/repository/distributor_publish.rb:24:in `distributor_id'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/pulp/repository/distributor_publish.rb:16:in `invoke_external_task'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/polling.rb:83:in `initiate_external_action'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/polling.rb:18:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/cancellable.rb:9:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/pulp/abstract_async_task.rb:45:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:30:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:16:in `block in run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/models/katello/concerns/user_extensions.rb:20:in `cp_config'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.1/app/lib/actions/middleware/remote_action.rb:16:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
...
I'll add a link to a foreman-debug dump once it has finished.
Files
Updated by John Beranek almost 10 years ago
Apologies, missed the 3.0.1 in the subject!
Updated by John Beranek almost 10 years ago
Updated by John Beranek almost 10 years ago
An update, I have managed to get past this upgrade error, by correcting a broken RHEL subscription in Katello, whereby RHEL had been disabled, but Katello still thought some RHEL repo's existed, but Pulp didn't have them.
The upgrade is continuing as I speak...
Updated by John Beranek almost 10 years ago
Furthermore, after forcibly killing my existing "Content view publish" task, I was able to publish a new version with no errors at all. I guess that means that this issue can be closed.
Updated by Justin Sherrill almost 10 years ago
- Status changed from New to Closed
- Translation missing: en.field_release set to 166