Project

General

Profile

Bug #19548

Subscriptions are not getting added via activation keys

Added by Stephen Benjamin over 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Via our BATS tests:

[root@pipeline-katello-nightly-centos7 ~]# hammer -u admin -p changeme subscription list --organization="Test Organization" 
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------
ID | UUID                             | NAME         | TYPE     | CONTRACT | ACCOUNT | SUPPORT | END DATE            | QUANTITY  | CONSUMED
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------
2  | ff8080815c0ca0ec015c0cd8ec9e0032 | Test Product | Physical |          |         |         | 2047/05/08 16:02:41 | Unlimited | 0       
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------

[root@pipeline-katello-nightly-centos7 ~]# hammer -u admin -p changeme activation-key list --organization="Test Organization" 
---|---------|----------------|-----------------------|-------------
ID | NAME    | HOST LIMIT     | LIFECYCLE ENVIRONMENT | CONTENT VIEW
---|---------|----------------|-----------------------|-------------
2  | Test AK | 1 of Unlimited | Test                  | Test CV     
---|---------|----------------|-----------------------|-------------

[root@pipeline-katello-nightly-centos7 ~]# hammer -u admin -p changeme activation-key subscriptions --organization="Test Organization" --id 2
---|--------------|----------|----------|---------------------|---------------------|---------|----------|--------
ID | NAME         | ATTACHED | QUANTITY | START DATE          | END DATE            | SUPPORT | CONTRACT | ACCOUNT
---|--------------|----------|----------|---------------------|---------------------|---------|----------|--------
2  | Test Product |          |          | 2017/05/15 16:02:41 | 2047/05/08 16:02:41 |         |          |        
---|--------------|----------|----------|---------------------|---------------------|---------|----------|--------

[root@pipeline-katello-nightly-centos7 ~]# subscription-manager register --force --org="Test_Organization" --activationkey="Test AK" 
The system with UUID 355c14af-e44c-40ff-93a5-bca33e93be28 has been unregistered
The system has been registered with ID: 17639955-8a20-40f5-b8f0-da3eb7b9a742 

No products installed.

[root@pipeline-katello-nightly-centos7 ~]# subscription-manager list --all --available
No available subscription pools to list

[root@pipeline-katello-nightly-centos7 ~]# subscription-manager repos --enable="Test_Organization_Test_Product_Zoo" 
Error: 'Test_Organization_Test_Product_Zoo' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.

Associated revisions

Revision ada82e65 (diff)
Added by Justin Sherrill over 4 years ago

Fixes #19548 - use numerical product cp ids

candlepin does not work properly when product ids
have alphabetical characters in it. This is intentional
on their side, even if it is unexpected

History

#1 Updated by Stephen Benjamin over 4 years ago

[vagrant@pipeline-katello-nightly-centos7 ~]$ sudo subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Test Product
Provides:            
SKU:                 4f6c58bac6aa2284b96c52263f0290f1
Contract:            
Account:             
Serial:              8933514685354336722
Pool ID:             ff8080815c0ca0ec015c0cd8ec9e0032
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       
Service Type:        
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              05/15/2017
Ends:                05/08/2047
System Type:         Physical

[vagrant@pipeline-katello-nightly-centos7 ~]$ hammer -u admin -p changeme subscription list --organization-id 5
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------
ID | UUID                             | NAME         | TYPE     | CONTRACT | ACCOUNT | SUPPORT | END DATE            | QUANTITY  | CONSUMED
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------
2  | ff8080815c0ca0ec015c0cd8ec9e0032 | Test Product | Physical |          |         |         | 2047/05/08 16:02:41 | Unlimited | 0       
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------

#2 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello/pull/6789 added

#3 Updated by Justin Sherrill over 4 years ago

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

#4 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 250

#5 Updated by Justin Sherrill over 4 years ago

  • Target version set to 193

Also available in: Atom PDF