Project

General

Profile

Actions

Bug #19548

closed

Subscriptions are not getting added via activation keys

Added by Stephen Benjamin over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
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.
Actions #1

Updated by Stephen Benjamin over 7 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       
---|----------------------------------|--------------|----------|----------|---------|---------|---------------------|-----------|---------
Actions #2

Updated by The Foreman Bot over 7 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
Actions #3

Updated by Justin Sherrill over 7 years ago

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

Updated by Justin Sherrill over 7 years ago

  • Translation missing: en.field_release set to 250
Actions #5

Updated by Justin Sherrill over 7 years ago

  • Target version set to 193
Actions

Also available in: Atom PDF