Bug 856236
Summary: | Misleading error message registering w/ activation key and passing environment | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Tom McKay <tomckay> |
Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3 | CC: | alikins, bkearney, jsefler, spandey |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 6.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 08:56:09 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: | 771481 |
Description
Tom McKay
2012-09-11 14:19:41 UTC
The real problem is that specifying an environment is not permitted with an activation key since that info is included. The CLI should not be making the api call at all. fixed in master at 01d94d23d8cdc3f64745065a936f15c81d0c3d2a Using following rpm subscription-manager-1.8.0-1.git.3.006a990.el6.x86_64 subscription-manager-migration-1.8.0-1.git.3.006a990.el6.x86_64 subscription-manager-firstboot-1.8.0-1.git.3.006a990.el6.x86_64 subscription-manager-gui-1.8.0-1.git.3.006a990.el6.x86_64 subscription-manager-migration-data-1.12.2.6-1.git.0.171d4c3.el6.noarch [root@localhost ~]# subscription-manager register --serverurl dhcp201-128.englab.pnq.redhat.com:443/katello/api --activationkey test_key --org ACME_Corporation --env test Error: Activation keys do not allow environments to be specified. Verifying Version... [root@jsefler-6 ~]# rpm -q subscription-manager subscription-manager-1.1.10-1.el6.x86_64 [root@jsefler-6 ~]# subscription-manager register --serverurl dhcp201-128.englab.pnq.redhat.com:443/katello/api --activationkey test_key --org ACME_Corporation --environment test Error: Activation keys do not allow environments to be specified. [root@jsefler-6 ~]# echo $? 255 [root@jsefler-6 ~]# subscription-manager register --serverurl dhcp201-128.englab.pnq.redhat.com:443/katello/api --activationkey test_key --org ACME_Corporation The system has been registered with id: 9182a6d2-4721-4d88-9812-bbaa48a2a5fd [root@jsefler-6 ~]# VERIFIED: subscription-manager now blocks you with an error message when specifying option --environment together with --org when registering with an --activationkey. 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. http://rhn.redhat.com/errata/RHBA-2013-0350.html |