Hide Forgot
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:
[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.
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