Bug 1401895 - katello-installer --upgrade Step: update_repository_metadata failed.
Summary: katello-installer --upgrade Step: update_repository_metadata failed.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.1.10
Hardware: x86_64
OS: Linux
unspecified
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-06 11:14 UTC by Francisco Javier Lopez Y Grueber
Modified: 2019-08-12 14:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-21 19:11:12 UTC
Target Upstream Version:


Attachments (Terms of Use)
foreman-debug (13.78 MB, application/x-xz)
2016-12-06 11:14 UTC, Francisco Javier Lopez Y Grueber
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.