Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1515131 - Could not find renamed organization while registering content host
Summary: Could not find renamed organization while registering content host
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hosts - Content
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
Depends On:
TreeView+ depends on / blocked
Reported: 2017-11-20 08:26 UTC by Nikhil Kathole
Modified: 2017-12-01 13:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-12-01 13:30:01 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Nikhil Kathole 2017-11-20 08:26:10 UTC
Description of problem: We were trying to register a content host to the organization which is renamed. But when command to register host entered,

# subscription-manager register --org="apple_renamed" --activationkey="test"

it showed

Couldn't find Organization 'apple_renamed'.

It still looks for old organization name.

Content host registered successfully when

# subscription-manager register --org="apple" --activationkey="test".

Version-Release number of selected component (if applicable): Satellite 6.3 snap 25

How reproducible: always

Steps to Reproduce:
1. Create an organization (say "apple")
2. Create activation key promoting and publishing product repositories
3. Rename the organization (say "apple_renamed")
3. Go to command line of content host to register
4. rpm -Uvh http://satellite/pub/katello-ca-consumer-latest.noarch.rpm
5. subscription-manager register --org="apple_renamed" --activationkey="<Activation Key Name>"

Actual results:
The output of command showed 
Couldn't find Organization 'apple_renamed' 

Expected results: Registering content host command with renamed organization should work and Hosts -> Content host -> Register also should show renamed org to register host.

Additional info: The observations are:

1. Host registered successfully with old organization name.(i.e. After renaming, it still look for old org name)
2. Host after registration assigned to renamed organization.
3. Hosts -> Content host -> Register showed old org name to register new host.

Comment 3 Brad Buckingham 2017-12-01 13:30:01 UTC
When registering a system, the value provided for --org is the organization 'label' and not the name.  The label is set during the creation of the org and cannot be changed after creation.  For this reason, registration with 'apple_renamed' fails and 'apple' succeeds.

Based on this, closing this as notabug.  We do have a similar bugzilla from the past related to the same general behavior.  For reference, that is bug 1162058.

Note You need to log in before you can comment on or make changes to this bug.