| Summary: | --activationkey=ak1,ak2 takes in action the first activation key *only* | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Garik Khachikyan <gkhachik> | ||||
| Component: | Content Management | Assignee: | Tom McKay <tomckay> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Kedar Bidarkar <kbidarka> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0.0 | CC: | bkearney, dgoodwin, jsefler, kbidarka, mkoci, mmccune, tomckay | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-07-02 14:06:11 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: | |||||
| Attachments: |
|
||||||
|
Description
Garik Khachikyan
2013-10-15 12:33:12 UTC
Created attachment 812487 [details]
logs
curious if there is a possibility to reach to RHEL6.4 please (the version where i did experienced this). tyia. I think the correct syntax is --activationkey=z004 --activationkey=rhel. Try this and see if it helps. I learned today that candlepin's implementation of activation keys is entirely unused in Satellite/SAM, they use their own implementation, so if this is not a matter of command usage then it's more likely Satellite is not correctly supporting key1,key2 syntax. I am quite sure Candlepin does. It's worth noting that thomasmckay is working on getting this switched to use Candlepin for the entitlement portion of activation keys, so this will possibly be remedied with this. In any case, I will re-align to Satellite 6. No need for a fix to go to RHEL 6.4 as far as I can tell, the client is sending up the correct API call, this is likely a server side fix. Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. Confirming that both of these activationkey syntaxes have been working from the subscription-manager command line for a long time (including subscription-manager-1.1 shipped on rhel64) against a standalone Candlepin. subscription-manager register --org=org1 --activationkey=ak1 --activationkey=ak2 subscription-manager register --org=org1 --activationkey=ak1,ak2 sat6 release :- beta-snap4 subscription-manger :- subscription-manager-1.9.11-1 cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) also looks like the entitlement certs get pulled in at /etc/pki/entitlement for both the ak's, but redhat.repo does not get populated with the repo info from that of second ak. [root@xxxx ~]# subscription-manager register --org="ACME_Corporation" --activationkey=rhel65_ak1 --activationkey=tools_ak2The system has been registered with ID: a0bec826-a919-4f31-bc50-ee7c64b82d8d [root@xxxx ~]# yum repolist Loaded plugins: product-id, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. rhel-6-server-rpms | 3.5 kB 00:00 repo id repo name status rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 12,505 repolist: 12,505 [root@xxxx ~]# subscription-manager unregister System has been unregistered. [root@xxxx ~]# subscription-manager register --org="ACME_Corporation" --activationkey=tools_ak2 --activationkey=rhel65_ak1 The system has been registered with ID: 83b49d1d-23df-429c-84be-13348ee99e21 [root@xxxx ~]# yum repolist Loaded plugins: product-id, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. ACME_Corporation_Sat6_Tools | 3.3 kB 00:00 ACME_Corporation_Sat6_Tools/primary_db | 21 kB 00:00 repo id repo name status ACME_Corporation_Sat6_Tools Tools 42 repolist: 42 the same happens even when trying with the below commands, i.e, only the repos from the first ak get's populated in the redhat.repo file. a) subscription-manager register --org="ACME_Corporation" --activationkey=rhel65_ak1,tools_ak2 b) subscription-manager register --org="ACME_Corporation" --activationkey=tools_ak2,rhel65_ak1 Worked using latest master. Made three activation keys: A - Subscription to product A, no env or cv set B - Subscription to product B, no env or cv set L - No subscriptions, env Library and cv Default Organization View % subscription-manager register --org megacorp --activationkey A,B,L % subscription-manager register --org megacorp --activationkey L,A,B % subscription-manager register --org megacorp --activationkey A --activationkey B --activationkey L % subscription-manager register --org megacorp --activationkey L --activationkey A --activationkey B All worked, yielding the same % subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: A Provides: A SKU: 1400159910746 Contract: Account: Serial: 981882317830493284 Pool ID: 8a8d01a245f5535d01460008c00d000c Active: True Quantity Used: 1 Service Level: Service Type: Status Details: Subscription Type: Standard Starts: 14/05/14 Ends: 06/05/44 System Type: Physical Subscription Name: B Provides: B SKU: 1400159920013 Contract: Account: Serial: 8642440211163236455 Pool ID: 8a8d01a245f5535d01460008e14f0010 Active: True Quantity Used: 1 Service Level: Service Type: Status Details: Subscription Type: Standard Starts: 14/05/14 Ends: 06/05/44 System Type: Physical Tested with sat6-beta-snap7 [root@netgear ~]# subscription-manager unregister System has been unregistered. [root@netgear ~]# yum clean all Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Cleaning repos: Cleaning up Everything [root@netgear ~]# subscription-manager register --org ACME_Corporation --activationkey rhel65_aks,rhcommon_aks The system has been registered with ID: 295c0ca0-3425-46b8-9117-3cbf750390d2 [root@netgear ~]# yum repolist Loaded plugins: product-id, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. ACME_Corporation_RHEL6_RHEL65_x86_64 | 2.9 kB 00:00 ACME_Corporation_Sat6Tools_rhcommon | 2.5 kB 00:00 repo id repo name status ACME_Corporation_RHEL6_RHEL65_x86_64 RHEL65_x86_64 3,690 ACME_Corporation_Sat6Tools_rhcommon rhcommon 45 repolist: 3,735 [root@netgear ~]# subscription-manager unregister System has been unregistered. [root@netgear ~]# subscription-manager register --org ACME_Corporation --activationkey rhel65_aks --activationkey rhcommon_aks The system has been registered with ID: ecef2f62-3390-4d17-ba34-33c927f3c521 [root@netgear ~]# yum repolist Loaded plugins: product-id, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. ACME_Corporation_RHEL6_RHEL65_x86_64 | 2.9 kB 00:00 ACME_Corporation_Sat6Tools_rhcommon | 2.5 kB 00:00 repo id repo name status ACME_Corporation_RHEL6_RHEL65_x86_64 RHEL65_x86_64 3,690 ACME_Corporation_Sat6Tools_rhcommon rhcommon 45 repolist: 3,735 This was delivered with 6.0.3, which is the Satellite 6 Beta. |