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.

Bug 1401895

Summary: katello-installer --upgrade Step: update_repository_metadata failed.
Product: Red Hat Satellite Reporter: Francisco Javier Lopez Y Grueber <flg>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.10CC: bbuckingham, inecas, mbacovsk, stbenjam
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 19:11:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
foreman-debug none

Description Francisco Javier Lopez Y Grueber 2016-12-06 11:14:03 UTC
Created attachment 1228413 [details]
foreman-debug

Description of problem:

After updating the packages to the latest version (6.1.10 installed since 27.10.2016) the upgrade procedure fails. 

All recommendation for error handling are "not working" (Even recommendations on access (approved))

Version-Release number of selected component (if applicable):

6.1.10

How reproducible:

Always. 

Steps to Reproduce:

1. Apply all updates available 
2. Execute katello-installer --upgrade 
3. Wait for the procedure to finish 

Actual results:

Upgrade procedure finishes without any exception

Expected results:

update_repository_metadata failed

Additional info:

Comment 1 Francisco Javier Lopez Y Grueber 2016-12-06 11:17:24 UTC
[root@cci01-sat6 ~]# katello-installer --upgrade 
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: update_gpg_urls (this may take a while) ...
Upgrade Step: update_repository_metadata (this may take a while) ...
Upgrade step update_repository_metadata failed. Check logs for more information.

Comment 2 Francisco Javier Lopez Y Grueber 2016-12-06 11:21:00 UTC
I deleted locks directly on the database and via console: 

irb(main):002:0> ForemanTasks::Task.where(:id => "3231c723-a0c7-4e5d-84d4-a3300460adef").destroy_all
2016-12-05 22:12:51 [D]   ForemanTasks::Task Load (1.4ms)  SELECT "foreman_tasks_tasks".* FROM "foreman_tasks_tasks" WHERE "foreman_tasks_tasks"."id" = '3231c723-a0c7-4e5d-84d4-a3300460adef'
2016-12-05 22:12:52 [D]    (0.1ms)  BEGIN
2016-12-05 22:12:52 [D]   SQL (0.5ms)  DELETE FROM "foreman_tasks_tasks" WHERE "foreman_tasks_tasks"."type" IN ('ForemanTasks::Task::DynflowTask') AND "foreman_tasks_tasks"."id" = $1  [["id", "3231c723-a0c7-4e5d-84d4-a3300460adef"]]
2016-12-05 22:12:52 [D]    (11.5ms)  COMMIT
=> [#<ForemanTasks::Task::DynflowTask id: "3231c723-a0c7-4e5d-84d4-a3300460adef", type: "ForemanTasks::Task::DynflowTask", label: "Actions::Katello::Repository::Update", started_at: "2016-12-05 21:01:27", ended_at: nil, state: "paused", result: "error", external_id: "15760d26-da39-49e3-8c12-cc6cac6eb420", parent_task_id: nil>]
irb(main):003:0> 

Both procedure did not solve the issue. 

This unverified solution can not be confirmed

https://access.redhat.com/solutions/2187101