Project

General

Profile

Actions

Bug #15260

closed

Error registering a host after the upgrade has completed

Added by Brad Buckingham almost 8 years ago. Updated almost 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1341712
Description of problem:

If prior to a Satellite 6.2 upgrade, there is a host registered where the Host and Content Host are in different organizations (e.g. host not in org, and content host in one), the content host will be unregistered as part of the upgrade process. When this occurs, after the upgrade is completed, the user would need to re-register the host with the Satellite for content and subscription capabilities. Unfortunately, this is currently causing an error.

Note: this does not affect all registrations after upgrade, only those that met the scenario above.

Version-Release number of selected component (if applicable):
Satellite 6.2 Snap 13.1

How reproducible:
Always

Steps to Reproduce:
1. install Satellite 6.1
2. install Capsule 6.1
3. subscription-manager register the Capsule to the Satellite
4. ensure that the Host associated with the Capsule is not in an organization and the Content Host is
5. perform an upgrade of the Satellite 6.1 to 6.2
6. after the upgrade completes, attempt to register the Capsule back to the Satellite

Actual results:

[root@capsule61-rhel7 ~]# subscription-manager register --org="Default_Organization" --activationkey="key"
Task 5b28c9ed-f36d-44f5-aa85-5363363efc72: RestClient::ResourceNotFound: 404 Resource Not Found

Snippet from the logs:
2016-06-01 03:00:55 [app] [I] Started POST "/rhsm/consumers?owner=Default_Organization&activation_keys=key" for 192.168.121.198 at 2016-06-01 03:00:55 +0000
2016-06-01 03:00:55 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_activate as JSON
2016-06-01 03:00:55 [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"=>"capsule61-rhel7.example.com", "contentTags"=>["satellite-capsule", "satellite-capsule-6.1", "rhel-7", "rhel-7-server"], "owner"=>"Default_Organization", "activation_keys"=>"key"}
2016-06-01 03:01:04 [katello/pulp_rest] [I] RestClient.delete "https://sat61-rhel7.example.com/pulp/api/v2/consumers/ded17adf-5e57-4865-ac7c-773bd99d4e4d/", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "accept"=>"application/json", "content_type"=>"application/json" | \n# => 404 NotFound | application/json 528 bytes |
...
...

Expected results:

Registration completes successfully

Additional info:

Actions #1

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Brad Buckingham
  • Pull request https://github.com/Katello/katello/pull/6095 added
Actions #2

Updated by Justin Sherrill almost 8 years ago

  • translation missing: en.field_release set to 86
Actions #3

Updated by Brad Buckingham almost 8 years ago

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

Also available in: Atom PDF