Actions
Bug #17703
closed"Wrong Number of Arguments" Upgrading From 3.2 to 3.2.1
Difficulty:
trivial
Triaged:
Description
Upgrading from Katello 3.2 to 3.2.1 yields the following error:
# foreman-installer --scenario katello --upgrade --verbose [ INFO 2016-12-15 19:01:26 verbose] Executing hooks in group pre_migrations [ INFO 2016-12-15 19:01:26 verbose] All hooks in group pre_migrations finished [ INFO 2016-12-15 19:01:26 verbose] Executing hooks in group boot [ INFO 2016-12-15 19:01:26 verbose] All hooks in group boot finished [ INFO 2016-12-15 19:01:26 verbose] Executing hooks in group init [ INFO 2016-12-15 19:01:26 verbose] All hooks in group init finished [ INFO 2016-12-15 19:01:26 verbose] Loading default values from puppet modules... [ INFO 2016-12-15 19:01:26 verbose] ... finished [ INFO 2016-12-15 19:01:26 verbose] Executing hooks in group pre_values [ INFO 2016-12-15 19:01:26 verbose] All hooks in group pre_values finished [ INFO 2016-12-15 19:01:26 verbose] Executing hooks in group pre_validations [ INFO 2016-12-15 19:01:26 verbose] All hooks in group pre_validations finished [ INFO 2016-12-15 19:01:26 verbose] Running validation checks [ INFO 2016-12-15 19:01:26 verbose] Executing hooks in group pre_commit [ INFO 2016-12-15 19:01:26 verbose] All hooks in group pre_commit finished [ INFO 2016-12-15 19:01:26 verbose] Executing hooks in group pre Upgrading... [ INFO 2016-12-15 19:01:26 verbose] Upgrading... Upgrade Step: stop_services... [ INFO 2016-12-15 19:01:26 verbose] Upgrade Step: stop_services... Redirecting to /bin/systemctl stop foreman-tasks.service Redirecting to /bin/systemctl stop httpd.service Redirecting to /bin/systemctl stop pulp_workers.service Redirecting to /bin/systemctl stop foreman-proxy.service Redirecting to /bin/systemctl stop pulp_streamer.service Redirecting to /bin/systemctl stop pulp_resource_manager.service Redirecting to /bin/systemctl stop pulp_celerybeat.service Redirecting to /bin/systemctl stop smart_proxy_dynflow_core.service Redirecting to /bin/systemctl stop tomcat.service Redirecting to /bin/systemctl stop squid.service Redirecting to /bin/systemctl stop qdrouterd.service Redirecting to /bin/systemctl stop qpidd.service Success! Upgrade Step: start_databases... [ INFO 2016-12-15 19:01:38 verbose] Upgrade Step: start_databases... Redirecting to /bin/systemctl start mongod.service Redirecting to /bin/systemctl start postgresql.service Success! Upgrade Step: update_http_conf... [ INFO 2016-12-15 19:01:48 verbose] Upgrade Step: update_http_conf... Upgrade Step: migrate_pulp... [ INFO 2016-12-15 19:01:48 verbose] Upgrade Step: migrate_pulp... 1492 Attempting to connect to localhost:27017 Attempting to connect to localhost:27017 Write concern for Mongo connection: {} Loading content types. Loading type descriptors [] Parsing type descriptors Validating type descriptor syntactic integrity Validating type descriptor semantic integrity Loading unit model: docker_blob = pulp_docker.plugins.models:Blob Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest Loading unit model: docker_image = pulp_docker.plugins.models:Image Loading unit model: docker_tag = pulp_docker.plugins.models:Tag Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM Loading unit model: package_group = pulp_rpm.plugins.db.models:PackageGroup Loading unit model: package_category = pulp_rpm.plugins.db.models:PackageCategory Loading unit model: iso = pulp_rpm.plugins.db.models:ISO Loading unit model: package_environment = pulp_rpm.plugins.db.models:PackageEnvironment Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM Loading unit model: package_langpacks = pulp_rpm.plugins.db.models:PackageLangpacks Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile Updating the database with types [] Found the following type definitions that were not present in the update collection [puppet_module, docker_tag, docker_manifest, docker_blob, erratum, distribution, yum_repo_metadata_file, package_group, package_category, iso, package_environment, drpm, package_langpacks, rpm, srpm, docker_image] Updating the database with types [puppet_module, drpm, package_langpacks, erratum, docker_blob, docker_manifest, yum_repo_metadata_file, package_group, package_category, iso, package_environment, docker_tag, distribution, rpm, srpm, docker_image] Content types loaded. Ensuring the admin role and user are in place. Admin role and user are in place. Beginning database migrations. Migration package pulp.server.db.migrations is up to date at version 24 Migration package pulp_docker.plugins.migrations is up to date at version 2 Migration package pulp_puppet.plugins.migrations is up to date at version 5 Migration package pulp_rpm.plugins.migrations is up to date at version 35 Loading unit model: docker_blob = pulp_docker.plugins.models:Blob Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest Loading unit model: docker_image = pulp_docker.plugins.models:Image Loading unit model: docker_tag = pulp_docker.plugins.models:Tag Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM Loading unit model: package_group = pulp_rpm.plugins.db.models:PackageGroup Loading unit model: package_category = pulp_rpm.plugins.db.models:PackageCategory Loading unit model: iso = pulp_rpm.plugins.db.models:ISO Loading unit model: package_environment = pulp_rpm.plugins.db.models:PackageEnvironment Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM Loading unit model: package_langpacks = pulp_rpm.plugins.db.models:PackageLangpacks Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile Database migrations complete. Upgrade Step: start_httpd... [ INFO 2016-12-15 19:01:50 verbose] Upgrade Step: start_httpd... Redirecting to /bin/systemctl start httpd.service Success! Upgrade Step: start_qpidd... [ INFO 2016-12-15 19:01:55 verbose] Upgrade Step: start_qpidd... Redirecting to /bin/systemctl start qpidd.service Redirecting to /bin/systemctl start qdrouterd.service Success! Upgrade Step: start_pulp... [ INFO 2016-12-15 19:01:55 verbose] Upgrade Step: start_pulp... Redirecting to /bin/systemctl start pulp_celerybeat.service Redirecting to /bin/systemctl start pulp_resource_manager.service Redirecting to /bin/systemctl start pulp_workers.service Success! /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:84:in `upgrade_step': wrong number of arguments (2 for 1) (ArgumentError) from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:125:in `block (4 levels) in load' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:34:in `instance_eval' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:34:in `block (4 levels) in load' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hook_context.rb:13:in `instance_exec' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hook_context.rb:13:in `execute' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:51:in `block in execute' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:49:in `each' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:49:in `execute' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/kafo_configure.rb:408:in `run_installation' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/kafo_configure.rb:147:in `execute' from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run' from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/kafo_configure.rb:154:in `run' from /sbin/foreman-installer:8:in `<main>'
RPMs updated to were:
foreman-installer-katello.noarch 0:3.2.2-2.el7 katello.noarch 0:3.2.1-1.el7 katello-common.noarch 0:3.2.1-1.el7 katello-debug.noarch 0:3.2.1-1.el7 katello-installer-base.noarch 0:3.2.2-2.el7 katello-service.noarch 0:3.2.1-1.el7 tfm-rubygem-hammer_cli_katello.noarch 0:0.1.3-1.el7 tfm-rubygem-katello.noarch 0:3.2.1.1-1.el7
Actions