Upgrading from Katello 3.6 RC2 to Katello 3.6 (Imperial IPA)

Problem:
Following Foreman :: Plugin Manuals
Ate the step foreman-installer --scenario katello --upgrade fails with the below diagnostics… Please help what’s to do beside of reverting to backup VM snashot. Below is the relevant part of /var/log/foreman-installer/katello.log

Expected outcome:

Foreman and Proxy versions:
1.17.0 (katello 3.6.0.1.rc2)

Foreman and Proxy plugin versions:

Other relevant data:

> [ INFO 2018-04-20 16:40:50 main] Upgrade Step: add_export_distributor (this may take a while) ...
> [DEBUG 2018-04-20 16:40:50 main] /opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Fixnum is deprecated
> [DEBUG 2018-04-20 16:40:50 main] /opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Bignum is deprecated
> [DEBUG 2018-04-20 16:40:52 main] /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
> [DEBUG 2018-04-20 16:40:52 main] /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
> [DEBUG 2018-04-20 16:40:52 main] /usr/share/foreman/lib/core_extensions.rb:183: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER
> [DEBUG 2018-04-20 16:40:52 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here
> [DEBUG 2018-04-20 16:40:52 main] /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/appender.rb:139: warning: constant ::Fixnum is deprecated
> [DEBUG 2018-04-20 16:40:52 main] /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/logger.rb:295: warning: constant ::Fixnum is deprecated
> [DEBUG 2018-04-20 16:40:58 main] The PGconn, PGresult, and PGError constants are deprecated, and will be
> [DEBUG 2018-04-20 16:40:58 main] removed as of version 1.0.
> [DEBUG 2018-04-20 16:40:58 main] 
> [DEBUG 2018-04-20 16:40:58 main] You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
> [DEBUG 2018-04-20 16:40:58 main] 
> [DEBUG 2018-04-20 16:40:58 main] Called from /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
> [DEBUG 2018-04-20 16:41:00 main] rake aborted!
> [DEBUG 2018-04-20 16:41:00 main] ArgumentError: wrong number of arguments (given 4, expected 2..3)
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/runcible-2.6.0/lib/runcible/models/iso_distributor.rb:15:in `initialize'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/models/katello/glue/pulp/repo.rb:291:in `new'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/models/katello/glue/pulp/repo.rb:291:in `generate_distributors'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/lib/actions/pulp/repository/refresh.rb:44:in `block in update_or_associate_distributors'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:368:in `switch_flow'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:389:in `concurrence'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/lib/actions/pulp/repository/refresh.rb:41:in `update_or_associate_distributors'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/lib/actions/pulp/repository/refresh.rb:13:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:486:in `block (3 levels) in execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/lib/actions/middleware/backend_services_check.rb:23:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/lib/actions/middleware/remote_action.rb:9:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:35:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:35:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:35:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/world.rb:30:in `execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:485:in `block (2 levels) in execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:368:in `switch_flow'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:389:in `concurrence'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:484:in `block in execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `block in with_error_handling'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `catch'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `with_error_handling'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:483:in `execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:277:in `execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:417:in `plan_action'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/lib/actions/katello/repository/refresh_repository.rb:8:in `block in plan'
> [DEBUG 2018-04-20 16:41:00 main] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:93:in `as'
> [DEBUG 2018-04-20 16:41:00 main] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:99:in `as_anonymous_admin'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/app/lib/actions/katello/repository/refresh_repository.rb:6:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:486:in `block (3 levels) in execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:35:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:35:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:35:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/world.rb:30:in `execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:485:in `block (2 levels) in execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:368:in `switch_flow'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:389:in `concurrence'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:484:in `block in execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `block in with_error_handling'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `catch'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:444:in `with_error_handling'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:483:in `execute_plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/action.rb:277:in `execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:270:in `block (2 levels) in plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:368:in `switch_flow'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:358:in `with_planning_scope'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:269:in `block in plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:43:in `plan_phase'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:43:in `plan_phase'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:26:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware.rb:18:in `pass'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:16:in `block in rollback_on_error'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/transaction_adapters/active_record.rb:5:in `transaction'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:15:in `rollback_on_error'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/common/transaction.rb:5:in `plan_phase'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/stack.rb:22:in `call'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/middleware/world.rb:30:in `execute'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/execution_plan.rb:268:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/world.rb:174:in `block in plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/world.rb:172:in `tap'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/world.rb:172:in `plan'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.37/lib/dynflow/world.rb:148:in `trigger'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:19:in `trigger'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:25:in `block in trigger_task'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:39:in `block in rails_safe_trigger_task'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:46:in `block in permit_concurrent_loads'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:185:in `yield_shares'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:45:in `permit_concurrent_loads'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:38:in `rails_safe_trigger_task'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:23:in `trigger_task'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.11.2/lib/foreman_tasks.rb:51:in `sync_task'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/lib/katello/tasks/upgrades/3.0/add_export_distributor.rake:9:in `block (5 levels) in <top (required)>'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:63:in `block (2 levels) in find_each'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:63:in `each'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:63:in `block in find_each'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:129:in `block in find_in_batches'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:230:in `block in in_batches'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:214:in `loop'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:214:in `in_batches'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:128:in `find_in_batches'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/batches.rb:62:in `find_each'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/querying.rb:9:in `find_each'
> [DEBUG 2018-04-20 16:41:00 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.6.0.1.rc2/lib/katello/tasks/upgrades/3.0/add_export_distributor.rake:8:in `block (4 levels) in <top (required)>'
> [DEBUG 2018-04-20 16:41:00 main] /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
> [DEBUG 2018-04-20 16:41:00 main] Tasks: TOP => katello:upgrades:3.0:add_export_distributor
> [DEBUG 2018-04-20 16:41:00 main] (See full trace by running task with --trace)
> [DEBUG 2018-04-20 16:41:01 main] Refreshing existing repositories to add export distributor
> [ERROR 2018-04-20 16:41:01 main] foreman-rake katello:upgrades:3.0:add_export_distributor failed! Check the output for error!
> [ERROR 2018-04-20 16:41:01 main] Upgrade step add_export_distributor failed. Check logs for more information.
> [DEBUG 2018-04-20 16:41:01 main] Exit with status code: 1 (signal was 1)
> [ERROR 2018-04-20 16:41:01 main] Errors encountered during run:
> [ERROR 2018-04-20 16:41:01 main] foreman-rake katello:upgrades:3.0:add_export_distributor failed! Check the output for error!
> [ERROR 2018-04-20 16:41:01 main] Upgrade step add_export_distributor failed. Check logs for more information.
> [DEBUG 2018-04-20 16:41:01 main] Cleaning /tmp/kafo_puppet20180420-9169-4jiefz.conf
> [DEBUG 2018-04-20 16:41:01 main] Cleaning /tmp/kafo_hiera20180420-9169-piuaxm
> [DEBUG 2018-04-20 16:41:01 main] Cleaning /tmp/kafo_puppet20180420-9169-1sd2day.conf
> [DEBUG 2018-04-20 16:41:01 main] Cleaning /tmp/default_values.yaml
> [ INFO 2018-04-20 16:41:01 main] Installer finished in 629.399528023 seconds

Anybody? Please advise what’s to do.

I had the same issue with a file repository upgrading from 3.5.1 to 3.6.

I just removed the file repository to go through.

I had one file repo yes. Deleted it and upgrade went through
Thank you!

Now when i try to re-create this deleted file repo, I’m getting a small pop up window with message

wrong number of arguments (given 4, expected 2…3)

looks like Bug #22768: unable to create a file repo - Katello - Foreman

https://fedorapeople.org/groups/katello/releases/yum/nightly/katello/el7/x86_64/tfm-rubygem-runcible-2.8.0-1.el7.noarch.rpm

seems to fix it indeed.

Upgrade Step: republish_file_repos (this may take a while) …
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Bignum is deprecated
/usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
/usr/share/foreman/lib/core_extensions.rb:183: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/appender.rb:139: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/logger.rb:295: warning: constant ::Fixnum is deprecated
The PGconn, PGresult, and PGError constants are deprecated, and will be
removed as of version 1.0.

You should use PG::Connection, PG::Result, and PG::Error instead, respectively.

Called from /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require’
Republishing file repo EL6 (210)…
Republishing file repo EL6 (211)…
Republishing file repo CIS (233)…
Republishing file repo EL6 (202)…
Republishing file repo EL6 (212)…
Republishing file repo EL6 (213)…
foreman-rake katello:upgrades:3.6:republish_file_repos finished successfully!

Hi!
It did help - thanks!

  1. installed RPM
  2. run "foreman-rake katello:upgrades:3.6:republish_file_repos"
  3. tried to create repo and got the same error message
  4. restarted Katello with katello-service restart
  5. logged in and created previously deleted file repo

Another issue brought by upgrade to the latest Katello release

Certain RedHat repos and namely

  • Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.4
  • Red Hat Enterprise Linux 7 Server RPMs x86_64 7.4

now failing to sync with the below diagnostic in Sync manager

Sync Incomplete

In the sync task I see:

State: stopped
100% Complete
Output:
No new packages.
Errors:
RPM1008: Checksum type “sha1” is not available for all units in the repository. Make sure those units have been downloaded.

Only these two RH repos are affected (so far) and there were no changes since they were enabled for the first time.

Ok the “Sync Incomplete” issue seem to be solved by going into repo’s properties and selecting “Advanced Sync” action and “Complete Sync” menu option…