Bug 1341712
Summary: | Error registering a host after the upgrade has completed | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Brad Buckingham <bbuckingham> | ||||
Component: | Upgrades | Assignee: | Brad Buckingham <bbuckingham> | ||||
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.2.0 | CC: | cwelton, sghai | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | rubygem-katello-3.0.0.43-1 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-27 11:13:58 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: | 1335807 | ||||||
Attachments: |
|
Description
Brad Buckingham
2016-06-01 14:51:34 UTC
Note: If an error occurs during the registration, the user can work around it by performing the following: 1. log in to the UI 2. go to Monitor -> Tasks 3. locate the failed registration task 4. go to the Dynflow console for that task 5. 'skip' the deletion of the pulp consumer and 'resume' the task 6. re-register the host using 'subscription-manager' Created redmine issue http://projects.theforeman.org/issues/15260 from this bug Reproduced with upgrade from sat6.1.9 -> sat6.2 GA snap14.1 ~]# subscription-manager register --org Default_Organization --activationkey 'ak_rhel7' Task bd3dc14e-3c7d-4c3d-af67-0439675140a9: RestClient::ResourceNotFound: 404 Resource Not Found [I] Started POST "/rhsm/consumers?owner=Default_Organization&activation_keys=ak_rhel7" for 10.8.193.1 at 2016-06-03 04:51:27 -0400 2016-06-03 04:51:27 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_activate as JSON 2016-06-03 04:51:27 [app] [I] Parameters: {"facts"=>"[FILTERED]", "installedProducts"=>[{"productName"=>"Red Hat Enterprise Linux Server", "arch"=>"x86_64", "version"=>"7.2", "productId"=>"69"}, {"productName"=>"Red Hat Satellite Capsule", "arch"=>"x86_64", "version"=>"6.1", "productId"=>"269"}], "type"=>"system", "name"=>"qe-capsule-rhel7.satqe.lab.eng.rdu2.redhat.com", "contentTags"=>["satellite-capsule", "satellite-capsule-6.1", "rhel-7", "rhel-7-server"], "owner"=>"Default_Organization", "activation_keys"=>"ak_rhel7"} 2016-06-03 04:51:33 [katello/pulp_rest] [I] RestClient.delete "https://qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com/pulp/api/v2/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32/", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "accept"=>"application/json", "content_type"=>"application/json" | \n# => 404 NotFound | application/json 528 bytes | 2016-06-03 04:51:33 [foreman-tasks/action] [E] 404 Resource Not Found (RestClient::ResourceNotFound) Note: given workaround works Verified with upgrade from sat6.1.9 -> sat6.2 GA snap15.1 on rhel7. The reported issue is fixed now. After successful upgrade of satellite, capsule got unregistered as host with same name was not in org but content-host with same name was in an org. So as per host unification, content-host got unregistered. So I re-registered the capsule: ~]# yum repolist Loaded plugins: package_upload, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. repolist: 0 [root@qe-capsule-rhel7 ~]# subscription-manager register --org Default_Organization --activationkey 'ak-rhel7' Couldn't find activation key 'ak-rhel7' [root@qe-capsule-rhel7 ~]# subscription-manager register --org Default_Organization --activationkey 'ak_rhel7'The system has been registered with ID: 6d7d9d1a-87de-4f80-ac41-06481e412aba Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed Product Name: Red Hat Satellite Capsule Status: Subscribed 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-2016:1501 |