Project

General

Profile

Actions

Bug #14171

closed

Upgrade from Katello 2.3 or 2.4 to 3.0 nightly fail

Added by Mario Gamboa about 8 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
-
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

Redirecting to /bin/systemctl stop tomcat.service

Redirecting to /bin/systemctl stop qdrouterd.service

Redirecting to /bin/systemctl stop qpidd.service

Success!

[ INFO 2016-03-14 14:38:27 main] Upgrade Step: start_databases...
[DEBUG 2016-03-14 14:38:37 main] Redirecting to /bin/systemctl start mongod.service

Redirecting to /bin/systemctl start postgresql.service

Success!

[ INFO 2016-03-14 14:38:37 main] Upgrade Step: migrate_pulp...
[DEBUG 2016-03-14 14:38:37 main]
[DEBUG 2016-03-14 14:38:37 main]
[DEBUG 2016-03-14 14:38:37 main] 13689

[ERROR 2016-03-14 14:40:38 main] 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
Updating the database with types []
Found the following type definitions that were not present in the update collection [puppet_module, erratum, srpm, package_group, package_category, iso, package_environment, drpm, distribution, rpm, yum_repo_metadata_file, docker_image]
Content types loaded.
Ensuring the admin role and user are in place.
Admin role and user are in place.
Beginning database migrations.
/usr/lib/python2.7/site-packages/mongoengine/document.py:324: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
object_id = collection.save(doc, **write_concern)

Applying pulp.server.db.migrations version 13
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0013_role_schema_change.py:16: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
collection.save(role)

/usr/lib/python2.7/site-packages/mongoengine/document.py:367: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
upsert=upsert, **write_concern)

Migration to pulp.server.db.migrations version 13 complete.
Applying pulp.server.db.migrations version 14
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0014_pulp_user_metadata.py:25: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. {'$set': {constants.PULP_USER_METADATA_FIELDNAME: {}}}, multi=True)

Migration to pulp.server.db.migrations version 14 complete.
Applying pulp.server.db.migrations version 15
Loading type descriptors []
Parsing type descriptors
Validating type descriptor syntactic integrity
Validating type descriptor semantic integrity
Updating the database with types []
Found the following type definitions that were not present in the update collection [puppet_module, erratum, srpm, package_group, package_category, iso, package_environment, drpm, distribution, rpm, yum_repo_metadata_file, docker_image]
Migration to pulp.server.db.migrations version 15 complete.
Applying pulp.server.db.migrations version 16
Creating index to assist with removal of duplicates
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0016_remove_repo_content_unit_owner_type_and_id.py:54: DeprecationWarning: ensure_index is deprecated. Use create_index instead.
collection.ensure_index([(i, -1) for i in index])

Removing duplicate repo_content_units
Removing unused fields (owner_type, owner_id) from repo_content_units
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0016_remove_repo_content_unit_owner_type_and_id.py:34: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {'$unset': {'owner_type': "", 'owner_id': ''}}, multi=True)

Dropping the uniqueness index that included the owner_type & owner_id
Migration to pulp.server.db.migrations version 16 complete.
Applying pulp.server.db.migrations version 17
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0017_distributor_last_published.py:17: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
collection.save(distributor)

Migration to pulp.server.db.migrations version 17 complete.
Applying pulp.server.db.migrations version 18
Deleted the archived_calls collection.
Migration to pulp.server.db.migrations version 18 complete.
Applying pulp.server.db.migrations version 19
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0019_repo_collection_id.py:18: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "repo_id"}})

Migration to pulp.server.db.migrations version 19 complete.
Applying pulp.server.db.migrations version 20
Migration to pulp.server.db.migrations version 20 complete.
Applying pulp.server.db.migrations version 21
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0021_remove_extra_importer_fields.py:18: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$unset": {"id": True}}, multi=True)

/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0021_remove_extra_importer_fields.py:20: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$unset": {"scheduled_syncs": ""}}, multi=True)

Migration to pulp.server.db.migrations version 21 complete.
Applying pulp.server.db.migrations version 22
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0022_distributor_collection_trim.py:19: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "distributor_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0022_distributor_collection_trim.py:20: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$unset": {"scheduled_publishes": ""}}, multi=True)

Migration to pulp.server.db.migrations version 22 complete.
Applying pulp_docker.plugins.migrations version 1
Migration to pulp_docker.plugins.migrations version 1 complete.
Applying pulp_puppet.plugins.migrations version 3
Migration to pulp_puppet.plugins.migrations version 3 complete.
Applying pulp_rpm.plugins.migrations version 22
/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:31: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "distribution_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:35: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "errata_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:36: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"from": "errata_from"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:41: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "package_group_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:46: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "package_category_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:51: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "package_environment_id"}}, multi=True)

Migration to pulp_rpm.plugins.migrations version 22 complete.
Applying pulp_rpm.plugins.migrations version 23
/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0023_fix_translated_fields_type.py:19: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({"translated_name": ""}, {'$set': {'translated_name': {}}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0023_fix_translated_fields_type.py:23: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
multi=True

Migration to pulp_rpm.plugins.migrations version 23 complete.
Applying pulp_rpm.plugins.migrations version 24
Migration to pulp_rpm.plugins.migrations version 24 complete.
Applying pulp_rpm.plugins.migrations version 25
Applying migration pulp_rpm.plugins.migrations.0025_export_relative_url failed.

Halting migrations due to a migration failure.
'repo_id'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 193, in main
return _auto_manage_db(options)
File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 256, in _auto_manage_db
migrate_database(options)
File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 124, in migrate_database
update_current_version=not options.test)
File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 186, in apply_migration
migration.migrate()
File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0025_export_relative_url.py", line 60, in migrate
distributors = list(repo_distributors.find({'repo_id': repo_object['repo_id']}))
KeyError: 'repo_id'

[ERROR 2016-03-14 14:40:38 main] Upgrade step migrate_pulp failed. Check logs for more information.
[DEBUG 2016-03-14 14:40:38 main] Exit with status code: 1 (signal was 1)
[ERROR 2016-03-14 14:40:38 main] Errors encountered during run:
[ERROR 2016-03-14 14:40:38 main] 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
Updating the database with types []
Found the following type definitions that were not present in the update collection [puppet_module, erratum, srpm, package_group, package_category, iso, package_environment, drpm, distribution, rpm, yum_repo_metadata_file, docker_image]
Content types loaded.
Ensuring the admin role and user are in place.
Admin role and user are in place.
Beginning database migrations.
/usr/lib/python2.7/site-packages/mongoengine/document.py:324: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
object_id = collection.save(doc, **write_concern)

Applying pulp.server.db.migrations version 13
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0013_role_schema_change.py:16: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
collection.save(role)

/usr/lib/python2.7/site-packages/mongoengine/document.py:367: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
upsert=upsert, **write_concern)

Migration to pulp.server.db.migrations version 13 complete.
Applying pulp.server.db.migrations version 14
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0014_pulp_user_metadata.py:25: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. {'$set': {constants.PULP_USER_METADATA_FIELDNAME: {}}}, multi=True)

Migration to pulp.server.db.migrations version 14 complete.
Applying pulp.server.db.migrations version 15
Loading type descriptors []
Parsing type descriptors
Validating type descriptor syntactic integrity
Validating type descriptor semantic integrity
Updating the database with types []
Found the following type definitions that were not present in the update collection [puppet_module, erratum, srpm, package_group, package_category, iso, package_environment, drpm, distribution, rpm, yum_repo_metadata_file, docker_image]
Migration to pulp.server.db.migrations version 15 complete.
Applying pulp.server.db.migrations version 16
Creating index to assist with removal of duplicates
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0016_remove_repo_content_unit_owner_type_and_id.py:54: DeprecationWarning: ensure_index is deprecated. Use create_index instead.
collection.ensure_index([(i, -1) for i in index])

Removing duplicate repo_content_units
Removing unused fields (owner_type, owner_id) from repo_content_units
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0016_remove_repo_content_unit_owner_type_and_id.py:34: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {'$unset': {'owner_type': "", 'owner_id': ''}}, multi=True)

Dropping the uniqueness index that included the owner_type & owner_id
Migration to pulp.server.db.migrations version 16 complete.
Applying pulp.server.db.migrations version 17
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0017_distributor_last_published.py:17: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
collection.save(distributor)

Migration to pulp.server.db.migrations version 17 complete.
Applying pulp.server.db.migrations version 18
Deleted the archived_calls collection.
Migration to pulp.server.db.migrations version 18 complete.
Applying pulp.server.db.migrations version 19

What i did was

1.- Upgrade katello 2.3 directly to nightly result: fail with same issue
2.- Clean install katello 2.3 and upgrade to nightly result: fail with same issue
3.- Clean install katello 2.3 and upgrade to nightly result : fail with the same issue
4.- upgrade from 2.3 to 2.4 katello and after to 3.0 nightly result: fail with same issue

Also per instructions it say to use nightly foreman i just replace to use the RC foreman 1.11 that would be the version supported by 3.0

i will roll back my vm to 2.3


Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #14168: Try to upgrade katello 2.4 with nightly Katello 3.0 and is failedDuplicate03/11/2016Actions
Actions #1

Updated by Mario Gamboa about 8 years ago

Update point 3
3.- Clean install katello 2.4 and upgrade to nightly result : fail with the same issue

Actions #3

Updated by Mario Gamboa about 8 years ago

Ok the release of 2.8 pulp resolve this issue

What i did was replace the pulp repo in katello.repo for

https://repos.fedorapeople.org/repos/pulp/pulp/stable/2.8/7/x86_64/

and run

yum update -y --disablerepo=epel

with this fix the issue of the migration of pulp and continue the upgrade and now i found another 2 issues

[root@nz2zsat01 yum.repos.d]# foreman-installer --scenario katello --upgrade
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: migrate_pulp...
Upgrade Step: start_httpd...
Upgrade step start_httpd failed. Check logs for more information.

this one is because on the file /etc/httpd/conf.d/pulp_content.conf

<Location /pulp/content/>
XSendFile on <---- it's no recognize this parameter
XSendFilePath /var/lib/pulp/content
XSendFilePath /var/lib/pulp/published
</Location>

I solved loading the module

<IfModule mod_xsendfile.c>
<Location /pulp/content/>
XSendFile on
XSendFilePath /var/lib/pulp/content
XSendFilePath /var/lib/pulp/published
</Location>
</IfModule>

After that is pass httpd but now stuck in foreman.

[root@nz2zsat01 httpd]# foreman-installer --scenario katello --upgrade
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: migrate_pulp...
Upgrade Step: start_httpd...
Upgrade Step: migrate_candlepin...
Upgrade Step: migrate_foreman...
Upgrade step migrate_foreman failed. Check logs for more information.

[ INFO 2016-03-16 13:58:00 main] Upgrade Step: migrate_foreman...
[ERROR 2016-03-16 13:58:15 main] /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

A backend service [ Candlepin ] is unreachable/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:204:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:202:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:244:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:299:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Katello::Errors::ConnectionRefusedException: A backend service [ Candlepin ] is unreachable
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:204:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:202:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:244:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:299:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8443
/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:84:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:204:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:202:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:244:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:299:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
20150930183738 MigrateContentHosts: migrating ============================

[ERROR 2016-03-16 13:58:15 main] Upgrade step migrate_foreman failed. Check logs for more information.
[DEBUG 2016-03-16 13:58:15 main] Exit with status code: 1 (signal was 1)
[ERROR 2016-03-16 13:58:15 main] Errors encountered during run:
[ERROR 2016-03-16 13:58:15 main] /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
A backend service [ Candlepin ] is unreachable/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:204:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:202:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:244:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:299:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Katello::Errors::ConnectionRefusedException: A backend service [ Candlepin ] is unreachable
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:204:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:202:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:244:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:299:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8443
/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:84:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:204:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:202:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:244:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:299:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
20150930183738 MigrateContentHosts: migrating ============================

[ERROR 2016-03-16 13:58:15 main] Upgrade step migrate_foreman failed. Check logs for more information.
[DEBUG 2016-03-16 13:58:15 main] Cleaning /etc/foreman-installer/scenarios.d/d20160316-29452-1ponjoh
[DEBUG 2016-03-16 13:58:15 main] Cleaning /tmp/default_values.yaml

Actions #4

Updated by Mario Gamboa about 8 years ago

Just to let you the system doesn't have any firewall or selinux enable

Actions #5

Updated by Eric Helms almost 8 years ago

  • Has duplicate Bug #14168: Try to upgrade katello 2.4 with nightly Katello 3.0 and is failed added
Actions #6

Updated by Mario Gamboa almost 8 years ago

try to make the upgrade from 2.4 to 3.0 RC2

when start the yum update -y just fail

--> Finished Dependency Resolution
Error: Package: pulp-nodes-common-2.6.4-1.el7.noarch (@katello-pulp)
Requires: python-pulp-bindings = 2.6.4
Removing: python-pulp-bindings-2.6.4-1.el7.noarch (@katello-pulp)
python-pulp-bindings = 2.6.4-1.el7
Updated By: python-pulp-bindings-2.8.0-1.el7.noarch (katello-pulp)
python-pulp-bindings = 2.8.0-1.el7
Error: Package: pulp-nodes-parent-2.6.4-1.el7.noarch (@katello-pulp)
Requires: pulp-server = 2.6.4
Removing: pulp-server-2.6.4-1.el7.noarch (@katello-pulp)
pulp-server = 2.6.4-1.el7
Updated By: pulp-server-2.8.0-1.el7.noarch (katello-pulp)
pulp-server = 2.8.0-1.el7
Error: Package: pulp-nodes-common-2.6.4-1.el7.noarch (@katello-pulp)
Requires: pulp-server = 2.6.4
Removing: pulp-server-2.6.4-1.el7.noarch (@katello-pulp)
pulp-server = 2.6.4-1.el7
Updated By: pulp-server-2.8.0-1.el7.noarch (katello-pulp)
pulp-server = 2.8.0-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

is no try to install any package

Actions #7

Updated by Mario Gamboa almost 8 years ago

Also try from 2.3 to 3.0 RC2

This one install all the packages but after make the foreman-installer --scenario katello --upgrade

i got the following in the step of migrate foreman database and stop the migration

[ INFO 2016-04-14 14:27:00 main] Upgrade Step: migrate_foreman...
[ERROR 2016-04-14 14:27:16 main] /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

A backend service [ Candlepin ] is unreachable/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Katello::Errors::ConnectionRefusedException: A backend service [ Candlepin ] is unreachable
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8443
/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:84:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
20150930183738 MigrateContentHosts: migrating ============================

[ERROR 2016-04-14 14:27:16 main] Upgrade step migrate_foreman failed. Check logs for more information.
[DEBUG 2016-04-14 14:27:16 main] Exit with status code: 1 (signal was 1)
[ERROR 2016-04-14 14:27:16 main] Errors encountered during run:
[ERROR 2016-04-14 14:27:16 main] /opt/theforeman/tfm/root/usr/share/gems/gems/docker-api-1.17.0/lib/docker.rb:103: warning: circular argument reference - connection
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

A backend service [ Candlepin ] is unreachable/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Katello::Errors::ConnectionRefusedException: A backend service [ Candlepin ] is unreachable
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8443
/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/http_resource.rb:84:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.rc1/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
20150930183738 MigrateContentHosts: migrating ============================

[ERROR 2016-04-14 14:27:16 main] Upgrade step migrate_foreman failed. Check logs for more information.
[DEBUG 2016-04-14 14:27:16 main] Cleaning /etc/foreman-installer/scenarios.d/d20160414-8082-qmbyko
[DEBUG 2016-04-14 14:27:16 main] Cleaning /tmp/default_values.yaml

Actions #8

Updated by Mario Gamboa almost 8 years ago

I try today again an upgrade from 2.4 to 3.0 RC2

All looks good until the foreman installer fail on the foreman-rake foreman-rake db:migrate

foreman-rake db:migrate --trace

Invoke db:migrate (first_time)
Invoke environment (first_time)
Execute environment
Invoke db:load_config (first_time)
Execute db:load_config
Execute db:migrate
20160222143432 MoveSystemDescriptionToHost: migrating ====================
-- add_column(:hosts, :description, :text)
-> 0.0023s
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

undefined method `description=' for nil:NilClass/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20160222143432_move_system_description_to_host.rb:14:in `block in up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in `block (2 levels) in find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in `block in find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:125:in `find_in_batches'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:51:in `find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/querying.rb:9:in `find_each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20160222143432_move_system_description_to_host.rb:13:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:288:in `measure'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
/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: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>'
NoMethodError: undefined method `description=' for nil:NilClass
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20160222143432_move_system_description_to_host.rb:14:in `block in up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in `block (2 levels) in find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:52:in `block in find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:125:in `find_in_batches'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/batches.rb:51:in `find_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/querying.rb:9:in `find_each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20160222143432_move_system_description_to_host.rb:13:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:288:in `measure'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
/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: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 => db:migrate

Actions #9

Updated by Justin Sherrill almost 8 years ago

Mario,

Would you be able to get the output from:

#foreman-rake console

> Katello::System.select(:host_id, :id)

If the output is very very long, you may want to attach it.

Thanks!
-Justin

Actions #10

Updated by Mario Gamboa almost 8 years ago

it's the result

Katello::System.select(:host_id, :id)
/usr/share/foreman/lib/tasks/console.rake:4: warning: already initialized consta nt ARGV
Loading production environment (Rails 4.1.5)
irb(main):001:0>
irb(main):002:0* Katello::System.select(:host_id, :id)
=> #<ActiveRecord::Relation [#<Katello::System id: 37, host_id: nil>, #<Katello: :System id: 2, host_id: nil>, #<Katello::System id: 3, host_id: nil>, #<Katello: :System id: 4, host_id: nil>, #<Katello::System id: 5, host_id: nil>, #<Katello: :System id: 6, host_id: nil>, #<Katello::System id: 7, host_id: nil>, #<Katello: :System id: 8, host_id: nil>, #<Katello::System id: 11, host_id: nil>, #<Katello ::System id: 16, host_id: nil>, ...]>
irb(main):003:0>

Actions #11

Updated by Mario Gamboa almost 8 years ago

Continue the testing now with RC3

Step i did to upgrade from 2.4 to RC3

rpm e pulp-nodes* --nodeps

yum update -y

foreman-installer --scenario katello --upgrade

Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: update_http_conf...
Upgrade Step: migrate_pulp...
Upgrade Step: start_httpd...
Upgrade Step: migrate_candlepin...
Upgrade Step: migrate_foreman...
Upgrade step migrate_foreman failed. Check logs for more information.

Katello.log
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_migrations/01-migrate_legacy_foreman_installer_config.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_migrations/10-migrate_legacy_capsule_config.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_migrations/11-migrate_legacy_katello_config.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/01-helpers.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/10-reset_hook.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/11-clear_pulp_data_hook.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/12-clear_puppet_environments.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/20-certs_update.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/30-upgrade.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/init/10-puppet-profile-on-el6.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/10-reset_feature.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/11-clear_pulp_data_feature.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/12-clear_puppet_environments_feature.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/15-check_java.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/16-set_umask.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/20-certs_update.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/post/10-post_install.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/post/30-upgrade.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_validations/10-check_capsule_pulp.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_validations/11-check_proxy_url.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_migrations/01-migrate_legacy_foreman_installer_config.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_migrations/10-migrate_legacy_capsule_config.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_migrations/11-migrate_legacy_katello_config.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/01-helpers.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/10-reset_hook.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/11-clear_pulp_data_hook.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/12-clear_puppet_environments.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/20-certs_update.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/boot/30-upgrade.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/init/10-puppet-profile-on-el6.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/10-reset_feature.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/11-clear_pulp_data_feature.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/12-clear_puppet_environments_feature.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/15-check_java.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/16-set_umask.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/20-certs_update.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/post/10-post_install.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/post/30-upgrade.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_validations/10-check_capsule_pulp.rb
[DEBUG 2016-04-21 10:53:13 main] Loading hook /usr/share/katello-installer-base/hooks/pre_validations/11-check_proxy_url.rb
[ INFO 2016-04-21 10:53:13 main] Executing hooks in group pre_migrations
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre_migrations/01-migrate_legacy_foreman_installer_config.rb returned nil
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre_migrations/10-migrate_legacy_capsule_config.rb returned nil
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre_migrations/11-migrate_legacy_katello_config.rb returned nil
[ INFO 2016-04-21 10:53:13 main] All hooks in group pre_migrations finished
[ INFO 2016-04-21 10:53:13 main] Executing hooks in group boot
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/boot/01-helpers.rb returned nil
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/boot/10-reset_hook.rb returned #<Clamp::Option::Definition:0x0000000215a0c0 @switches=["--reset"], @type=:flag, @description="This option will drop the Katello database and clear all subsequent backend data stores.You will lose all data! Unfortunately we\ncan't detect a failure at the moment so you should verify the success\nmanually. e.g. dropping can fail when DB is currently in use.", @default_value=false, @multivalued=nil, @attribute_name="reset">
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/boot/11-clear_pulp_data_hook.rb returned #<Clamp::Option::Definition:0x0000000215fe08 @switches=["--clear-pulp-content"], @type=:flag, @description="This option will clear all Pulp content from disk located in '/var/lib/pulp/content/'.", @default_value=false, @multivalued=nil, @attribute_name="clear_pulp_content">
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/boot/12-clear_puppet_environments.rb returned #<Clamp::Option::Definition:0x0000000215e968 @switches=["--clear-puppet-environments"], @type=:flag, @description="This option will clear all Puppet environments from disk located in '/etc/puppet/environments/'.", @default_value=false, @multivalued=nil, @attribute_name="clear_puppet_environments">
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/boot/20-certs_update.rb returned #<Clamp::Option::Definition:0x00000002166be0 @switches=["--certs-skip-check"], @type=:flag, @description="This option will cause skipping the certificates sanity check. Use with caution", @default_value=false, @multivalued=nil, @attribute_name="certs_skip_check">
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/boot/30-upgrade.rb returned #<Clamp::Option::Definition:0x00000002164e58 @switches=["--upgrade"], @type=:flag, @description="Run the steps neccessary for an upgrade such as migrations, rake tasks, etc.", @default_value=false, @multivalued=nil, @attribute_name="upgrade">
[ INFO 2016-04-21 10:53:13 main] All hooks in group boot finished
[ INFO 2016-04-21 10:53:13 main] Executing hooks in group init
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/init/10-puppet-profile-on-el6.rb returned nil
[ INFO 2016-04-21 10:53:13 main] All hooks in group init finished
[DEBUG 2016-04-21 10:53:13 main] Creating tmp dir within /etc/foreman-installer/scenarios.d...
[ INFO 2016-04-21 10:53:13 main] Loading default values from puppet modules...
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/capsule/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/certs/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/plugin/discovery/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/plugin/discovery/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/plugin/openscap/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/plugin/openscap/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/plugin/puppetdb/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/plugin/puppetdb/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/plugin/remote_execution/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/plugin/remote_execution/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/plugin/tasks/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/plugin/tasks/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman_proxy/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman_proxy/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman_proxy/manifests/plugin/openscap/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman_proxy/manifests/plugin/openscap/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman_proxy/manifests/plugin/pulp/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman_proxy/manifests/plugin/pulp/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/foreman_proxy/manifests/plugin/remote_execution/ssh/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/foreman-installer/modules/foreman_proxy/manifests/plugin/remote_execution/ssh/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/katello/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] checking presence of /usr/share/katello-installer-base/modules/katello/manifests/params.pp
[DEBUG 2016-04-21 10:53:13 main] echo '$kafo_config_file="/etc/foreman-installer/scenarios.d/katello.yaml" $kafo_add_progress=true $temp_dir="/etc/foreman-installer/scenarios.d/d20160421-32159-zja7ce" include capsule::params include certs::params include foreman::params include foreman::plugin::discovery::params include foreman::plugin::openscap::params include foreman::plugin::puppetdb::params include foreman::plugin::tasks::params include foreman_proxy::params include foreman_proxy::plugin::openscap::params include foreman_proxy::plugin::pulp::params include foreman_proxy::plugin::remote_execution::ssh::params include katello::params dump_values("capsule::params::parent_fqdn","capsule::params::certs_tar","capsule::params::pulp_master","capsule::params::pulp_admin_password","capsule::params::pulp_oauth_effective_user","capsule::params::pulp_oauth_key","capsule::params::pulp_oauth_secret","capsule::params::puppet","capsule::params::puppet_ca_proxy","capsule::params::reverse_proxy","capsule::params::reverse_proxy_port","capsule::params::rhsm_url","capsule::params::qpid_router","capsule::params::qpid_router_hub_addr","capsule::params::qpid_router_hub_port","capsule::params::qpid_router_agent_addr","capsule::params::qpid_router_agent_port","capsule::params::qpid_router_broker_addr","capsule::params::qpid_router_broker_port","capsule::params::enable_ostree","certs::params::log_dir","certs::params::node_fqdn","certs::params::generate","certs::params::regenerate","certs::params::regenerate_ca","certs::params::deploy","certs::params::ca_common_name","certs::params::country","certs::params::state","certs::params::city","certs::params::org","certs::params::org_unit","certs::params::expiration","certs::params::ca_expiration","certs::params::server_cert","certs::params::server_key","certs::params::server_cert_req","certs::params::server_ca_cert","certs::params::pki_dir","certs::params::ssl_build_dir","certs::params::password_file_dir","certs::params::user","certs::params::group","certs::params::default_ca_name","certs::params::server_ca_name","::foreman::params::foreman_url","::foreman::params::puppetrun","::foreman::params::unattended","::foreman::params::authentication","::foreman::params::passenger","::foreman::params::passenger_ruby","::foreman::params::passenger_ruby_package","::foreman::params::plugin_prefix","::foreman::params::use_vhost","::foreman::params::servername",::foreman::params::serveraliases,"::foreman::params::ssl","::foreman::params::custom_repo","::foreman::params::repo","::foreman::params::configure_epel_repo","::foreman::params::configure_scl_repo","::foreman::params::configure_brightbox_repo","::foreman::params::selinux","::foreman::params::gpgcheck","::foreman::params::version","::foreman::params::db_manage","::foreman::params::db_type","::foreman::params::db_username","::foreman::params::db_password",::foreman::params::db_pool,"::foreman::params::apipie_task","::foreman::params::app_root","::foreman::params::manage_user","::foreman::params::user","::foreman::params::group",::foreman::params::user_groups,"::foreman::params::environment","::foreman::params::puppet_home","::foreman::params::locations_enabled","::foreman::params::organizations_enabled","::foreman::params::passenger_interface","::foreman::params::server_ssl_ca","::foreman::params::server_ssl_chain","::foreman::params::server_ssl_cert","::foreman::params::server_ssl_certs_dir","::foreman::params::server_ssl_key","::foreman::params::server_ssl_crl","::foreman::params::oauth_active","::foreman::params::oauth_map_users","::foreman::params::oauth_consumer_key","::foreman::params::oauth_consumer_secret","::foreman::params::passenger_prestart","::foreman::params::passenger_min_instances","::foreman::params::passenger_start_timeout","::foreman::params::admin_username","::foreman::params::admin_password","::foreman::params::admin_first_name","::foreman::params::admin_last_name","::foreman::params::admin_email","::foreman::params::initial_organization","::foreman::params::initial_location","::foreman::params::ipa_authentication","::foreman::params::http_keytab","::foreman::params::pam_service","::foreman::params::ipa_manage_sssd","::foreman::params::websockets_encrypt","::foreman::params::websockets_ssl_key","::foreman::params::websockets_ssl_cert","::foreman::params::logging_level",::foreman::params::loggers,"::foreman::params::email_conf","::foreman::params::email_source","::foreman::params::email_delivery_method","::foreman::params::email_smtp_address",::foreman::params::email_smtp_port,"::foreman::params::email_smtp_domain","::foreman::params::email_smtp_authentication","::foreman::params::email_smtp_user_name","::foreman::params::email_smtp_password","::foreman::plugin::discovery::params::install_images","::foreman::plugin::discovery::params::tftp_root","::foreman::plugin::discovery::params::source_url","::foreman::plugin::discovery::params::image_name","::foreman::plugin::openscap::params::configure_openscap_repo","foreman::plugin::puppetdb::params::package","foreman::plugin::puppetdb::params::address","foreman::plugin::puppetdb::params::dashboard_address","foreman::plugin::tasks::params::package","foreman::plugin::tasks::params::service","foreman_proxy::params::repo","foreman_proxy::params::gpgcheck","foreman_proxy::params::custom_repo","foreman_proxy::params::version","foreman_proxy::params::plugin_version","foreman_proxy::params::bind_host",foreman_proxy::params::port,foreman_proxy::params::http_port,foreman_proxy::params::ssl_port,"foreman_proxy::params::dir","foreman_proxy::params::user","foreman_proxy::params::log","foreman_proxy::params::log_level",foreman_proxy::params::log_buffer,foreman_proxy::params::log_buffer_errors,"foreman_proxy::params::http","foreman_proxy::params::ssl","foreman_proxy::params::ssl_ca","foreman_proxy::params::ssl_cert","foreman_proxy::params::ssl_key","foreman_proxy::params::foreman_ssl_ca","foreman_proxy::params::foreman_ssl_cert","foreman_proxy::params::foreman_ssl_key",foreman_proxy::params::trusted_hosts,"foreman_proxy::params::manage_sudoersd","foreman_proxy::params::use_sudoersd","foreman_proxy::params::puppetca","foreman_proxy::params::puppetca_listen_on","foreman_proxy::params::ssldir","foreman_proxy::params::puppetdir","foreman_proxy::params::autosign_location","foreman_proxy::params::puppetca_cmd","foreman_proxy::params::puppet_group","foreman_proxy::params::puppetrun","foreman_proxy::params::puppetrun_listen_on","foreman_proxy::params::puppetrun_cmd","foreman_proxy::params::puppetrun_provider","foreman_proxy::params::customrun_cmd","foreman_proxy::params::customrun_args","foreman_proxy::params::puppetssh_sudo","foreman_proxy::params::puppetssh_command","foreman_proxy::params::puppetssh_user","foreman_proxy::params::puppetssh_keyfile","foreman_proxy::params::puppetssh_wait","foreman_proxy::params::salt_puppetrun_cmd","foreman_proxy::params::puppet_user","foreman_proxy::params::puppet_url","foreman_proxy::params::ssl_ca","foreman_proxy::params::ssl_cert","foreman_proxy::params::ssl_key","foreman_proxy::params::puppet_use_environment_api","foreman_proxy::params::templates","foreman_proxy::params::templates_listen_on","foreman_proxy::params::template_url","foreman_proxy::params::logs","foreman_proxy::params::logs_listen_on","foreman_proxy::params::tftp","foreman_proxy::params::tftp_listen_on","foreman_proxy::params::tftp_manage_wget","foreman_proxy::params::tftp_syslinux_root",foreman_proxy::params::tftp_syslinux_files,foreman_proxy::params::tftp_syslinux_filenames,"foreman_proxy::params::tftp_root",foreman_proxy::params::tftp_dirs,"foreman_proxy::params::tftp_servername","foreman_proxy::params::dhcp","foreman_proxy::params::dhcp_split_config_files","foreman_proxy::params::dhcp_listen_on","foreman_proxy::params::dhcp_managed","foreman_proxy::params::dhcp_provider","foreman_proxy::params::dhcp_vendor",foreman_proxy::params::dhcp_option_domain,"foreman_proxy::params::dhcp_interface","foreman_proxy::params::dhcp_gateway","foreman_proxy::params::dhcp_range","foreman_proxy::params::dhcp_nameservers","foreman_proxy::params::dhcp_server","foreman_proxy::params::dhcp_config","foreman_proxy::params::dhcp_leases","foreman_proxy::params::dhcp_key_name","foreman_proxy::params::dhcp_key_secret",foreman_proxy::params::dhcp_omapi_port,"foreman_proxy::params::dns","foreman_proxy::params::dns_split_config_files","foreman_proxy::params::dns_listen_on","foreman_proxy::params::dns_managed","foreman_proxy::params::dns_provider","foreman_proxy::params::dns_interface","foreman_proxy::params::dns_zone","foreman_proxy::params::dns_reverse","foreman_proxy::params::dns_server","foreman_proxy::params::dns_ttl","foreman_proxy::params::dns_tsig_keytab","foreman_proxy::params::dns_tsig_principal",foreman_proxy::params::dns_forwarders,"foreman_proxy::params::virsh_network","foreman_proxy::params::bmc","foreman_proxy::params::bmc_listen_on","foreman_proxy::params::bmc_default_provider","foreman_proxy::params::realm","foreman_proxy::params::realm_listen_on","foreman_proxy::params::realm_provider","foreman_proxy::params::realm_keytab","foreman_proxy::params::realm_principal","foreman_proxy::params::freeipa_remove_dns","foreman_proxy::params::keyfile","foreman_proxy::params::register_in_foreman","foreman_proxy::params::foreman_base_url","foreman_proxy::params::registered_name","foreman_proxy::params::registered_proxy_url","foreman_proxy::params::oauth_effective_user","foreman_proxy::params::oauth_consumer_key","foreman_proxy::params::oauth_consumer_secret","foreman_proxy::params::puppet_use_cache","foreman_proxy::params::puppet_cache_location","::foreman_proxy::plugin::openscap::params::enabled","::foreman_proxy::plugin::openscap::params::version","::foreman_proxy::plugin::openscap::params::listen_on","::foreman_proxy::plugin::openscap::params::openscap_send_log_file","::foreman_proxy::plugin::openscap::params::spooldir","::foreman_proxy::plugin::pulp::params::enabled","::foreman_proxy::plugin::pulp::params::listen_on","::foreman_proxy::plugin::pulp::params::pulpnode_enabled","::foreman_proxy::plugin::pulp::params::version","::foreman_proxy::plugin::pulp::params::group","::foreman_proxy::plugin::pulp::params::pulp_url","::foreman_proxy::plugin::pulp::params::pulp_dir","::foreman_proxy::plugin::pulp::params::pulp_content_dir","::foreman_proxy::plugin::pulp::params::mongodb_dir","::foreman_proxy::plugin::remote_execution::ssh::params::enabled","::foreman_proxy::plugin::remote_execution::ssh::params::listen_on","::foreman_proxy::plugin::remote_execution::ssh::params::generate_keys","::foreman_proxy::plugin::remote_execution::ssh::params::ssh_identity_dir","::foreman_proxy::plugin::remote_execution::ssh::params::ssh_identity_file","::foreman_proxy::plugin::remote_execution::ssh::params::ssh_keygen","::foreman_proxy::plugin::remote_execution::ssh::params::local_working_dir","::foreman_proxy::plugin::remote_execution::ssh::params::remote_working_dir","katello::params::user","katello::params::group","katello::params::user_groups","katello::params::oauth_key","katello::params::oauth_secret","katello::params::post_sync_token","katello::params::num_pulp_workers","katello::params::log_dir","katello::params::config_dir","katello::params::use_passenger","katello::params::proxy_url","katello::params::proxy_port","katello::params::proxy_username","katello::params::proxy_password","katello::params::cdn_ssl_version","katello::params::package_names","katello::params::enable_ostree",katello::params::max_keep_alive)' | RUBYLIB=/usr/share/gems/gems/kafo-0.7.2/lib/kafo/../..//modules: puppet apply --noop --modulepath /usr/share/katello-installer-base/modules:/usr/share/foreman-installer/modules:/usr/share/gems/gems/kafo-0.7.2/modules 2>&1
[DEBUG 2016-04-21 10:53:13 main] [mNotice: Compiled catalog for nz2zsat01.pp.vficonnect.net.nz in environment production in 0.51 seconds[0m
[mNotice: Finished catalog run in 0.27 seconds[0m

[ INFO 2016-04-21 10:53:13 main] ... finished
[ INFO 2016-04-21 10:53:13 main] Executing hooks in group pre_values
[ INFO 2016-04-21 10:53:13 main] All hooks in group pre_values finished
[ INFO 2016-04-21 10:53:13 main] Executing hooks in group pre_validations
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre_validations/10-check_capsule_pulp.rb returned nil
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre_validations/11-check_proxy_url.rb returned nil
[ INFO 2016-04-21 10:53:13 main] All hooks in group pre_validations finished
[ INFO 2016-04-21 10:53:13 main] Running validation checks
[DEBUG 2016-04-21 10:53:13 main] Looked for enable_ostree
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for puppetrun
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for passenger
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for serveraliases
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_array with ["foreman"]
[DEBUG 2016-04-21 10:53:13 main] Looked for websockets_encrypt
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for logging_level
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_re with [["info", "^(debug|info|warn|error|fatal)$"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for loggers
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_hash with {}
[DEBUG 2016-04-21 10:53:13 main] Looked for install_images
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for configure_openscap_repo
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for package
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "tfm-rubygem-puppetdb_foreman"
[DEBUG 2016-04-21 10:53:13 main] Looked for address
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with [["https://localhost:8081/v2/commands"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for dashboard_address
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with [["http://localhost:8080/dashboard"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for plugin_version
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_re with [["installed", "^(installed|present|latest|absent)$"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for bind_host
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "*"
[DEBUG 2016-04-21 10:53:13 main] Looked for log_level
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_re with [["ERROR", "^(UNKNOWN|FATAL|ERROR|WARN|INFO|DEBUG)$"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for log_buffer
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_integer with 2000
[DEBUG 2016-04-21 10:53:13 main] Looked for log_buffer_errors
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_integer with 1000
[DEBUG 2016-04-21 10:53:13 main] Looked for ssl
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for trusted_hosts
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_array with ["nz2zsat01.pp.vficonnect.net.nz"]
[DEBUG 2016-04-21 10:53:13 main] Looked for manage_sudoersd
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for use_sudoersd
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for ssldir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/var/lib/puppet/ssl"
[DEBUG 2016-04-21 10:53:13 main] Looked for puppetdir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/etc/puppet"
[DEBUG 2016-04-21 10:53:13 main] Looked for autosign_location
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/etc/puppet/autosign.conf"
[DEBUG 2016-04-21 10:53:13 main] Looked for puppetca_cmd
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/usr/bin/puppet cert"
[DEBUG 2016-04-21 10:53:13 main] Looked for puppetrun_cmd
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/usr/bin/puppet kick"
[DEBUG 2016-04-21 10:53:13 main] Looked for puppetssh_wait
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for salt_puppetrun_cmd
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "puppet.run"
[DEBUG 2016-04-21 10:53:13 main] Looked for puppet_url
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with [["https://nz2zsat01.pp.vficonnect.net.nz:8140"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for puppet_ssl_ca
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/var/lib/puppet/ssl/certs/ca.pem"
[DEBUG 2016-04-21 10:53:13 main] Looked for puppet_ssl_cert
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/var/lib/puppet/ssl/certs/nz2zsat01.pp.vficonnect.net.nz.pem"
[DEBUG 2016-04-21 10:53:13 main] Looked for puppet_ssl_key
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/var/lib/puppet/ssl/private_keys/nz2zsat01.pp.vficonnect.net.nz.pem"
[DEBUG 2016-04-21 10:53:13 main] Looked for template_url
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with [["http://nz2zsat01.pp.vficonnect.net.nz:8000"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for logs
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for logs_listen_on
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_listen_on with "https"
[DEBUG 2016-04-21 10:53:13 main] Looked for tftp_manage_wget
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for dhcp_split_config_files
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for dhcp_managed
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for dhcp_provider
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "isc"
[DEBUG 2016-04-21 10:53:13 main] Looked for dhcp_option_domain
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_array with ["pp.vficonnect.net.nz"]
[DEBUG 2016-04-21 10:53:13 main] Looked for dhcp_server
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "127.0.0.1"
[DEBUG 2016-04-21 10:53:13 main] Looked for dhcp_omapi_port
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_integer with 7911
[DEBUG 2016-04-21 10:53:13 main] Looked for dns
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for dns_split_config_files
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for dns_provider
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "nsupdate"
[DEBUG 2016-04-21 10:53:13 main] Looked for dns_interface
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "eth0"
[DEBUG 2016-04-21 10:53:13 main] Looked for dns_reverse
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "100.168.192.in-addr.arpa"
[DEBUG 2016-04-21 10:53:13 main] Looked for dns_server
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "127.0.0.1"
[DEBUG 2016-04-21 10:53:13 main] Looked for dns_forwarders
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_array with []
[DEBUG 2016-04-21 10:53:13 main] Looked for bmc_default_provider
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_re with [["ipmitool", "^(freeipmi|ipmitool|shell)$"]]
[DEBUG 2016-04-21 10:53:13 main] Looked for realm_provider
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "freeipa"
[DEBUG 2016-04-21 10:53:13 main] Looked for realm_keytab
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/etc/foreman-proxy/freeipa.keytab"
[DEBUG 2016-04-21 10:53:13 main] Looked for realm_principal
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with [[""]]
[DEBUG 2016-04-21 10:53:13 main] Looked for freeipa_remove_dns
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for keyfile
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_string with "/etc/rndc.key"
[DEBUG 2016-04-21 10:53:13 main] Looked for register_in_foreman
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for puppet_cache_location
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/cache/foreman-proxy"
[DEBUG 2016-04-21 10:53:13 main] Looked for enabled
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for listen_on
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_listen_on with "https"
[DEBUG 2016-04-21 10:53:13 main] Looked for openscap_send_log_file
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/log/foreman-proxy/openscap-send.log"
[DEBUG 2016-04-21 10:53:13 main] Looked for spooldir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/spool/foreman-proxy/openscap"
[DEBUG 2016-04-21 10:53:13 main] Looked for enabled
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for pulpnode_enabled
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for pulp_dir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/lib/pulp"
[DEBUG 2016-04-21 10:53:13 main] Looked for pulp_content_dir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/lib/pulp/content"
[DEBUG 2016-04-21 10:53:13 main] Looked for mongodb_dir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/lib/mongodb"
[DEBUG 2016-04-21 10:53:13 main] Looked for enabled
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for listen_on
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_listen_on with "https"
[DEBUG 2016-04-21 10:53:13 main] Looked for generate_keys
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with true
[DEBUG 2016-04-21 10:53:13 main] Looked for local_working_dir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/tmp"
[DEBUG 2016-04-21 10:53:13 main] Looked for remote_working_dir
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_absolute_path with "/var/tmp"
[DEBUG 2016-04-21 10:53:13 main] Looked for enable_ostree
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_bool with false
[DEBUG 2016-04-21 10:53:13 main] Looked for max_keep_alive
[DEBUG 2016-04-21 10:53:13 main] calling :function_validate_integer with 10000
[ INFO 2016-04-21 10:53:13 main] Executing hooks in group pre_commit
[ INFO 2016-04-21 10:53:13 main] All hooks in group pre_commit finished
[ INFO 2016-04-21 10:53:13 main] Executing hooks in group pre
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre/10-reset_feature.rb returned nil
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre/11-clear_pulp_data_feature.rb returned nil
[DEBUG 2016-04-21 10:53:13 main] Hook /usr/share/katello-installer-base/hooks/pre/12-clear_puppet_environments_feature.rb returned nil
[DEBUG 2016-04-21 10:53:14 main] Hook /usr/share/katello-installer-base/hooks/pre/15-check_java.rb returned nil
[DEBUG 2016-04-21 10:53:14 main] Hook /usr/share/katello-installer-base/hooks/pre/16-set_umask.rb returned nil
[DEBUG 2016-04-21 10:53:14 main] Hook /usr/share/katello-installer-base/hooks/pre/20-certs_update.rb returned nil
[ INFO 2016-04-21 10:53:14 main] Upgrading...
[ INFO 2016-04-21 10:53:14 main] Upgrade Step: stop_services...
[DEBUG 2016-04-21 10:53:27 main] 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 pulp_resource_manager.service

Redirecting to /bin/systemctl stop pulp_celerybeat.service

Redirecting to /bin/systemctl stop foreman-proxy.service

Redirecting to /bin/systemctl stop tomcat.service

Redirecting to /bin/systemctl stop qdrouterd.service

Redirecting to /bin/systemctl stop qpidd.service

Success!

[ INFO 2016-04-21 10:53:27 main] Upgrade Step: start_databases...
[DEBUG 2016-04-21 10:53:38 main] Redirecting to /bin/systemctl start mongod.service

Redirecting to /bin/systemctl start postgresql.service

Success!

[ INFO 2016-04-21 10:53:38 main] Upgrade Step: update_http_conf...
[DEBUG 2016-04-21 10:53:38 main]
[ INFO 2016-04-21 10:53:38 main] Upgrade Step: migrate_pulp...
[DEBUG 2016-04-21 10:53:38 main]
[DEBUG 2016-04-21 10:53:38 main]
[DEBUG 2016-04-21 10:53:38 main] 2320

[DEBUG 2016-04-21 10:56:34 main] 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: erratum = pulp_rpm.plugins.db.models:Errata
Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution
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: srpm = pulp_rpm.plugins.db.models:SRPM
Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM
Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile
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
Updating the database with types []
Found the following type definitions that were not present in the update collection [puppet_module, erratum, srpm, package_group, package_category, iso, package_environment, drpm, distribution, rpm, yum_repo_metadata_file, docker_image]
Updating the database with types [puppet_module, docker_tag, erratum, docker_blob, docker_manifest, yum_repo_metadata_file, package_group, package_category, iso, package_environment, drpm, 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.
/usr/lib/python2.7/site-packages/mongoengine/document.py:324: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
object_id = collection.save(doc, **write_concern)

Applying pulp.server.db.migrations version 13
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0013_role_schema_change.py:16: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
collection.save(role)

/usr/lib/python2.7/site-packages/mongoengine/document.py:367: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
upsert=upsert, **write_concern)

Migration to pulp.server.db.migrations version 13 complete.
Applying pulp.server.db.migrations version 14
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0014_pulp_user_metadata.py:25: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. {'$set': {constants.PULP_USER_METADATA_FIELDNAME: {}}}, multi=True)

Migration to pulp.server.db.migrations version 14 complete.
Applying pulp.server.db.migrations version 15
Loading type descriptors []
Parsing type descriptors
Validating type descriptor syntactic integrity
Validating type descriptor semantic integrity
Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata
Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution
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: srpm = pulp_rpm.plugins.db.models:SRPM
Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM
Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile
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
Updating the database with types []
Found the following type definitions that were not present in the update collection [puppet_module, erratum, docker_blob, drpm, srpm, package_group, package_category, iso, package_environment, docker_tag, distribution, rpm, yum_repo_metadata_file, docker_image, docker_manifest]
Updating the database with types [puppet_module, docker_tag, erratum, docker_blob, docker_manifest, yum_repo_metadata_file, package_group, package_category, iso, package_environment, drpm, distribution, rpm, srpm, docker_image]
Migration to pulp.server.db.migrations version 15 complete.
Applying pulp.server.db.migrations version 16
Creating index to assist with removal of duplicates
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0016_remove_repo_content_unit_owner_type_and_id.py:54: DeprecationWarning: ensure_index is deprecated. Use create_index instead.
collection.ensure_index([(i, -1) for i in index])

Removing duplicate repo_content_units
Removing unused fields (owner_type, owner_id) from repo_content_units
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0016_remove_repo_content_unit_owner_type_and_id.py:34: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {'$unset': {'owner_type': "", 'owner_id': ''}}, multi=True)

Dropping the uniqueness index that included the owner_type & owner_id
Migration to pulp.server.db.migrations version 16 complete.
Applying pulp.server.db.migrations version 17
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0017_distributor_last_published.py:17: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
collection.save(distributor)

Migration to pulp.server.db.migrations version 17 complete.
Applying pulp.server.db.migrations version 18
Deleted the archived_calls collection.
Migration to pulp.server.db.migrations version 18 complete.
Applying pulp.server.db.migrations version 19
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0019_repo_collection_id.py:19: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "repo_id"}}, multi=True)

Migration to pulp.server.db.migrations version 19 complete.
Applying pulp.server.db.migrations version 20
Migration to pulp.server.db.migrations version 20 complete.
Applying pulp.server.db.migrations version 21
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0021_remove_extra_importer_fields.py:18: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$unset": {"id": True}}, multi=True)

/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0021_remove_extra_importer_fields.py:20: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$unset": {"scheduled_syncs": ""}}, multi=True)

Migration to pulp.server.db.migrations version 21 complete.
Applying pulp.server.db.migrations version 22
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0022_distributor_collection_trim.py:19: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "distributor_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0022_distributor_collection_trim.py:20: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$unset": {"scheduled_publishes": ""}}, multi=True)

Migration to pulp.server.db.migrations version 22 complete.
Applying pulp_docker.plugins.migrations version 1
Migration to pulp_docker.plugins.migrations version 1 complete.
Applying pulp_puppet.plugins.migrations version 3
Migration to pulp_puppet.plugins.migrations version 3 complete.
Applying pulp_rpm.plugins.migrations version 22
/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:31: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "distribution_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:35: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "errata_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:36: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"from": "errata_from"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:41: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "package_group_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:46: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "package_category_id"}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0022_rename_unit_id_fields.py:51: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({}, {"$rename": {"id": "package_environment_id"}}, multi=True)

Migration to pulp_rpm.plugins.migrations version 22 complete.
Applying pulp_rpm.plugins.migrations version 23
/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0023_fix_translated_fields_type.py:19: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
collection.update({"translated_name": ""}, {'$set': {'translated_name': {}}}, multi=True)

/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0023_fix_translated_fields_type.py:23: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
multi=True

Migration to pulp_rpm.plugins.migrations version 23 complete.
Applying pulp_rpm.plugins.migrations version 24
Migration to pulp_rpm.plugins.migrations version 24 complete.
Applying pulp_rpm.plugins.migrations version 25
Migration to pulp_rpm.plugins.migrations version 25 complete.
Applying pulp_rpm.plugins.migrations version 26
/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0026_remove_distribution_field.py:23: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
multi=True

Migration to pulp_rpm.plugins.migrations version 26 complete.
Applying pulp_rpm.plugins.migrations version 27
/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0027_remove_checksum_type_field.py:21: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
multi=True)

Migration to pulp_rpm.plugins.migrations version 27 complete.
Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata
Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution
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: srpm = pulp_rpm.plugins.db.models:SRPM
Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM
Loading unit model: yum_repo_metadata_file = pulp_rpm.plugins.db.models:YumMetadataFile
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
Database migrations complete.

[ INFO 2016-04-21 10:56:34 main] Upgrade Step: start_httpd...
[DEBUG 2016-04-21 10:56:41 main] Redirecting to /bin/systemctl start httpd.service

Success!

[ INFO 2016-04-21 10:56:41 main] Upgrade Step: migrate_candlepin...
[DEBUG 2016-04-21 10:56:48 main] Migrating candlepin database
Liquibase Update Successful

[ INFO 2016-04-21 10:56:48 main] Upgrade Step: migrate_foreman...
[ERROR 2016-04-21 10:57:04 main] rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

A backend service [ Candlepin ] is unreachable/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Katello::Errors::ConnectionRefusedException: A backend service [ Candlepin ] is unreachable
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8443
/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:84:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
20150930183738 MigrateContentHosts: migrating ============================

[ERROR 2016-04-21 10:57:04 main] Upgrade step migrate_foreman failed. Check logs for more information.
[DEBUG 2016-04-21 10:57:04 main] Exit with status code: 1 (signal was 1)
[ERROR 2016-04-21 10:57:04 main] Errors encountered during run:
[ERROR 2016-04-21 10:57:04 main] rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

A backend service [ Candlepin ] is unreachable/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Katello::Errors::ConnectionRefusedException: A backend service [ Candlepin ] is unreachable
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:90:in `rescue in get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:80:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8443
/opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/http_resource.rb:84:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/app/lib/katello/resources/candlepin.rb:100:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:108:in `backend_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:112:in `facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:196:in `block in get_systems_with_facts'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:194:in `get_systems_with_facts'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:236:in `ensure_one_system_per_hostname'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.1.0/db/migrate/20150930183738_migrate_content_hosts.rb:291:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:598:in `exec_migration'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:579:in `block (2 levels) in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:578:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:577:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:752:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:992:in `block in execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `block in ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:1038:in `ddl_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:991:in `execute_migration_in_transaction'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:953:in `block in migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:949:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:807:in `up'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/migration.rb:785:in `migrate'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/railties/databases.rake:34:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
20150930183738 MigrateContentHosts: migrating ============================

[ERROR 2016-04-21 10:57:04 main] Upgrade step migrate_foreman failed. Check logs for more information.
[DEBUG 2016-04-21 10:57:04 main] Cleaning /etc/foreman-installer/scenarios.d/d20160421-32159-zja7ce
[DEBUG 2016-04-21 10:57:04 main] Cleaning /tmp/default_values.yaml

Actions #12

Updated by Mario Gamboa almost 8 years ago

Fixed using RC3 Repo instead of Nightly Repo

Actions #13

Updated by Justin Sherrill over 7 years ago

  • Status changed from New to Rejected
  • translation missing: en.field_release changed from 143 to 166

Closing as it seems its resolved

Actions

Also available in: Atom PDF