Bug 1430823
Summary: | Satellite6.2.8 upgrade fail with error : Upgrade Step: set_virt_who_on_pools (this may take a while) ... | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Prashant Waghmare <pwaghmar> | |
Component: | Upgrades | Assignee: | Tom McKay <tomckay> | |
Status: | CLOSED ERRATA | QA Contact: | jcallaha | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 6.2.8 | CC: | agadhave, bbuckingham, bkearney, cdonnell, chrobert, dgupte, dsafford, egolov, glamb, gpayelka, jcallaha, jsherril, mbacovsk, mmccune, nitthoma, pwaghmar, rfreire, tomckay, wpinheir, xdmoon, zhunting | |
Target Milestone: | Unspecified | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | rubygem-katello-3.0.0.134-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1446717 (view as bug list) | Environment: | ||
Last Closed: | 2017-06-20 17:23:02 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1410795 |
Description
Prashant Waghmare
2017-03-09 16:15:35 UTC
Hi Team, I am facing the similar issue during upgrade step in 6.2.8. Also, see "CandlepinResource: 404 Resource Not Found" in the error. Is this related? [ INFO 2017-03-09 15:01:42 main] Upgrade Step: set_virt_who_on_pools (this may take a while) ... [ERROR 2017-03-09 15:01:58 main] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.41/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here rake aborted! RestClient::ResourceNotFound: Katello::Resources::Candlepin::CandlepinResource: 404 Resource Not Found (GET /candlepin/owners/Bloomberg_BNA/subscriptions) /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result' /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:50:in `block in transmit' /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:44:in `transmit' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/lib/katello/http_resource.rb:84:in `get' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/lib/katello/resources/candlepin.rb:576:in `get_for_owner' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/glue/candlepin/subscription.rb:14:in `get_for_owner' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/glue/candlepin/candlepin_object.rb:13:in `get_candlepin_ids' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/glue/candlepin/candlepin_object.rb:17:in `import_candlepin_ids' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/glue/candlepin/candlepin_object.rb:38:in `block in import_all' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/app/models/katello/glue/candlepin/candlepin_object.rb:37:in `import_all' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.105/lib/katello/tasks/upgrades/3.3/import_subscriptions.rake:7:in `block (4 levels) in <top (required)>' Tasks: TOP => katello:upgrades:3.3:import_subscriptions (See full trace by running task with --trace) Importing Subscriptions Created redmine issue http://projects.theforeman.org/issues/18879 from this bug Hi Tom, Okay, will file a different bz for it. Thanks Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18879 has been resolved. Created attachment 1266205 [details]
hotfix
Hotfix patch tarball
Usage (tarball extraction):
tar -xzf satellite-hotfix-1430823.tar.gz
cd satellite-hotfix-1430823
Usage (dry run):
./satellite-hotfix -n 1430823
Usage:
./satellite-hotfix 1430823
Revert a hotfix:
./satellite-hotfix -r 1430823
List all avaiable hotfixes:
./satellite-hotfix
The numbers are real Red Hat Bugzilla numbers. All backup and reject files are
save in backups/ sub-directory. Please keep the tarball for possible reverting
of the change in the future. If patching fails, revert immediately and report
the output. After each Satellite update, this hotfix process must be repeated
if the updated does not include the bugfix yet, search in errata notes for
bugzilla numbers to confirm.
If system-wide Ruby is not installed for some reason, use Satellite Foreman
Ruby software collection:
scl enable rh-ruby22 -- ./satellite-hotfix -h
To find out Ruby versions available do:
ls /opt/*/*ruby* -d
I set the Customer Escalation flag, as Sasktel is getting hotter. Sasktel replied with evidence they have no subscriptions with a null virt-who value. Can Sasktel run the current fix? We will need a hotfix. Verified in Satellite 6.2.10 Snap 3 Setup virt-who on the 6.2.9 systems, then registered a few guests of a hypervisor. The upgrades to 6.2.10 went smoothly, with no issues during the set_virt_who_on_pools upgrade step. -bash-4.2# time satellite-installer --upgrade Upgrading... Upgrade Step: stop_services... ... Upgrade Step: remove_event_queue... Upgrade Step: set_virt_who_on_pools (this may take a while) ... /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.43/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.137/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here Importing Subscriptions Upgrade completed! real 10m1.802s user 6m50.519s sys 0m39.406s Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1553 |