Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 883121

Summary: Migration from RHN classic fails to find organization
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: Subscription ManagementAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: bkearney
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 883123 (view as bug list) Environment:
Last Closed: 2012-12-12 21:17:40 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: 883123    
Attachments:
Description Flags
production.log tb none

Description Og Maciel 2012-12-03 20:12:41 UTC
Created attachment 657000 [details]
production.log tb

Description of problem:

The issue here seems to be that subscription-manager uses the organization "key" to register a client but the organization is not being found by the org name or key.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

* Register a client to RHN "classic"
* Install katello/sam and configure it
* Create a new Org: SAM QE with environments: Library > DEV > QE > GA.
* Import a valid manifest into the SAM QE org
* Now try to register this same client to a running instance of katello/headpin

Actual results:

The migration script will prompt the user to provide the org Name. However, when I do use "SAM QE" I get a message stating "No such org". If I use the organization label ("SAM_QE") I then get "Unable to connect to certificate server: Couldn't find organization 'SAM_QE'.  See /var/log/rhsm/rhsm.log for more details."

Expected results:


Additional info:

# subscription-manager orgs --username admin --password admin
+-------------------------------------------+
          admin Organizations
+-------------------------------------------+

Name:   SAM QE
Key:    SAM_QE

Name:   ACME_Corporation
Key:    ACME_Corporation

# subscription-manager environments --org "SAM QE" --username admin --password admin
+-------------------------------------------+
          Environments
+-------------------------------------------+
Name:                   GA
Description:

Name:                   QE
Description:

Name:                   DEV
Description:

# rhn-migrate-classic-to-rhsm --serverurl=qetello05.usersys.redhat.com/sam/api
Red Hat account: qa
Password:
System Engine Username: admin
Password:
Org: SAM QE
No such org: SAM QE

# rhn-migrate-classic-to-rhsm --serverurl=qetello03.usersys.redhat.com/sam/api
Red Hat account: qa
Password:
System Engine Username: admin
Password:
Org: SAM_QE
Unable to connect to certificate server: Couldn't find organization 'SAM_QE'.  See /var/log/rhsm/rhsm.log for more details.

# rhn-migrate-classic-to-rhsm --serverurl=qetello03.usersys.redhat.com/sam/api
Red Hat account: qa
Password:
System Engine Username: admin
Password:
Org: "SAM QE"
No such org: "SAM QE"

Comment 3 Bryan Kearney 2012-12-12 21:17:40 UTC

*** This bug has been marked as a duplicate of bug 880710 ***

Comment 4 Mike McCune 2013-08-16 17:58:47 UTC
getting rid of 6.0.0 version since that doesn't exist