Project

General

Profile

Actions

Bug #11086

closed

Errors during upgrade do not get properly reported

Added by Stephen Benjamin almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1241687
During an upgrade from public beta to an internal GA build I had pre-conditions such that the upgrade failed various steps but we never let the user know. It appears that the upgrade was OK but looking at the logs, lots of steps failed.

We need to properly detect these failures and report.

[root@sat-perf-01 ~]# katello-installer --upgrade
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_mongo...
Upgrade Step: migrate_pulp...
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: migrate_pulp...
Upgrade Step: Restarting services...
Upgrade Step: db:seed...
Upgrade Step: Running errata import task (this may take a while)...
Upgrade Step: Update gpg key urls to support capsule isolation (this may take a while)...
Upgrade Step: Update repositories to specify metadata_expire (this may take a while)...
Katello upgrade completed!
[root@sat-perf-01 ~]# hammer ping
Error: Request Timeout
[root@sat-perf-01 ~]# hammer ping
Error: Request Timeout

  1. grep -C 5 ERROR /var/log/katello-installer/katello-installer.log
    Seeding /opt/rh/ruby193/root/usr/share/gems/gems/foreman_bootdisk-4.0.2.13/db/seeds.d/50-bootdisk_templates.rb
    Seeding /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-2.0.0.17/db/seeds.d/60_discovery_proxy_feature.rb
    All seed files executed

[ INFO 2015-07-09 15:10:29 main] Upgrade Step: Running errata import task (this may take a while)...
[ERROR 2015-07-09 15:12:58 main] rake aborted!
500 Internal Server Error

Tasks: TOP => katello:upgrades:2.1:import_errata
(See full trace by running task with --trace)
Importing Errata

[ INFO 2015-07-09 15:12:58 main] Upgrade Step: Update gpg key urls to support capsule isolation (this may take a while)...
[DEBUG 2015-07-09 15:13:27 main] Importing GPG Key Urls to support Capsule Communication

[ INFO 2015-07-09 15:13:27 main] Upgrade Step: Update repositories to specify metadata_expire (this may take a while)...
[ERROR 2015-07-09 15:13:58 main] rake aborted!
There was an issue with the backend service candlepin: 404 Resource Not Found

Tasks: TOP => katello:upgrades:2.2:update_metadata_expire
(See full trace by running task with --trace)
Updating Expire Metadata for Custom Content

[ INFO 2015-07-09 15:13:58 main] Katello upgrade completed!
[DEBUG 2015-07-09 15:13:58 main] Hook /usr/share/katello-installer/hooks/post/30-upgrade.rb returned [<Logging::Logger:0xda1358 name="main">, <Logging::Logger:0xdd7d68 name="fatal">]
[ INFO 2015-07-09 15:13:58 main] All hooks in group post finished
[DEBUG 2015-07-09 15:13:58 main] Exit with status code: 2 (signal was 2)
[ERROR 2015-07-09 15:13:58 main] Repeating errors encountered during run:
[ERROR 2015-07-09 15:13:58 main] rake aborted!
500 Internal Server Error

Tasks: TOP => katello:upgrades:2.1:import_errata
(See full trace by running task with --trace)
Importing Errata

[ERROR 2015-07-09 15:13:58 main] rake aborted!
There was an issue with the backend service candlepin: 404 Resource Not Found

Tasks: TOP => katello:upgrades:2.2:update_metadata_expire
(See full trace by running task with --trace)
Updating Expire Metadata for Custom Content

Actions #1

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/239 added
  • Pull request deleted ()
Actions #2

Updated by Eric Helms almost 9 years ago

  • translation missing: en.field_release set to 31
  • Triaged changed from No to Yes
Actions #3

Updated by Anonymous almost 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF