Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionJitendra Yejare
2015-08-14 12:27:42 UTC
Created attachment 1063006[details]
Errors and Misbehaving in Upgrade
Description of problem:
Satellite upgrade from Satellite 6.0.8 to Satellite 6.1.1 Snap 16 failed with error 'Upgrade step errata_import failed. Check logs for more information.'
Version-Release number of selected component (if applicable):
Satellite 6.1.1 snap 16 latest.
How reproducible:
Pre-condition:
Satellite 6.0.8 with at least one capsule associated with it. And the capsule is synced.
Steps to Reproduce:
On satellite 6.0.8, do this before upgrading,
1. Clone the CV used for associating capsule.
2. Then publish and promote the cloned CV.
3. Create new Activation Key with this cloned CV.
4. Create a sync plan with daily interval and start from current date and time.
5. Go to Host group, Create one Host Group.
6. Clone this host group.
7. Create a custom product with latest snap baseurl capsule repo to perform capsule upgrade later.
8. Now start the upgrade process.
Actual results:
Satellite upgrade failed with below outputs:
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_mongo...
Upgrade Step: migrate_pulp...
Upgrade Step: start_httpd...
Upgrade Step: migrate_candlepin...
Upgrade Step: migrate_foreman...
Upgrade Step: Running installer...
Installing Done [100%] [..........................................................................................................................................................]
The full log is at /var/log/katello-installer/katello-installer.log
Upgrade Step: restart_services...
Upgrade Step: db_seed...
Upgrade Step: errata_import (this may take a while) ...
Upgrade step errata_import failed. Check logs for more information.
Expected results:
Satellite Upgrade success.
Additional info:
I can see lot of error logs in foreman/production.log and katello-installer.log, when running katello-installer --upgrade on satellite.
Please find attached snapshot of errors and misbehaving logs while upgrade in process.
Also the foreman-debug.
After Satellite finished with this issue, I tried to browse the satellite and It was accessible and it displays Sat 6.1.1 version.
But the two host groups that I created and one of it was cloned from another. Accessing those Host Groups it throws an error of :
'''
Oops, we're sorry but something went wrong
undefined method `use_puppet_default' for #<LookupValue:0x0000000f72df08>
If you feel this is an error with Satellite 6 itself, please open a new issue with Satellite ticketing system, You would probably need to attach the Full trace and relevant log entries.
'''
This is https://bugzilla.redhat.com/show_bug.cgi?id=1213000
PGError: ERROR: could not create unique index "index_parameters_on_type_and_reference_id_and_name"
DETAIL: Key (type, reference_id, name)=(GroupParameter, 2, kt_activation_keys) is duplicated.
: CREATE UNIQUE INDEX "index_parameters_on_type_and_reference_id_and_name" ON "parameters" ("type", "reference_id", "name")
*** This bug has been marked as a duplicate of bug 1213000 ***
Created attachment 1063006 [details] Errors and Misbehaving in Upgrade Description of problem: Satellite upgrade from Satellite 6.0.8 to Satellite 6.1.1 Snap 16 failed with error 'Upgrade step errata_import failed. Check logs for more information.' Version-Release number of selected component (if applicable): Satellite 6.1.1 snap 16 latest. How reproducible: Pre-condition: Satellite 6.0.8 with at least one capsule associated with it. And the capsule is synced. Steps to Reproduce: On satellite 6.0.8, do this before upgrading, 1. Clone the CV used for associating capsule. 2. Then publish and promote the cloned CV. 3. Create new Activation Key with this cloned CV. 4. Create a sync plan with daily interval and start from current date and time. 5. Go to Host group, Create one Host Group. 6. Clone this host group. 7. Create a custom product with latest snap baseurl capsule repo to perform capsule upgrade later. 8. Now start the upgrade process. Actual results: Satellite upgrade failed with below outputs: Upgrading... Upgrade Step: stop_services... Upgrade Step: start_mongo... Upgrade Step: migrate_pulp... Upgrade Step: start_httpd... Upgrade Step: migrate_candlepin... Upgrade Step: migrate_foreman... Upgrade Step: Running installer... Installing Done [100%] [..........................................................................................................................................................] The full log is at /var/log/katello-installer/katello-installer.log Upgrade Step: restart_services... Upgrade Step: db_seed... Upgrade Step: errata_import (this may take a while) ... Upgrade step errata_import failed. Check logs for more information. Expected results: Satellite Upgrade success. Additional info: I can see lot of error logs in foreman/production.log and katello-installer.log, when running katello-installer --upgrade on satellite. Please find attached snapshot of errors and misbehaving logs while upgrade in process. Also the foreman-debug.