I'm having trouble adding hosts with an Activation key. I am pretty sure I
have it all set up right, and I can see that the activation key is
associated with the correct environment and that subscriptions are properly
attached, but I can't list any repos:
---------------------------------
[root@slik01 ~]# hammer -u admin -p Password#1 subscription list
--organization="foobar"
---|----------------------------------|----------|----------|----------|---------|---------|---------------------|-----------|---------
ID | UUID | NAME | TYPE | CONTRACT |
ACCOUNT | SUPPORT | END DATE | QUANTITY | CONSUMED
---|----------------------------------|----------|----------|----------|---------|---------|---------------------|-----------|---------
1 | ff808081603d3ab101603d468cd30006 | EPEL | Physical | |
| | 2047/12/02 21:55:19 | Unlimited | 1
2 | ff808081603d3ab101603d4730ee0011 | Katello | Physical | |
| | 2047/12/02 21:56:03 | Unlimited | 1
3 | ff808081603d3ab101603d48ba8b00b5 | CentOS 7 | Physical | |
| | 2047/12/02 21:57:44 | Unlimited | 1
---|----------------------------------|----------|----------|----------|---------|---------|---------------------|-----------|---------
[root@slik01 ~]# hammer -u admin -p Password#1 activation-key list
--organization="foobar"
---|----------|----------------|-----------------------|----------------
ID | NAME | HOST LIMIT | LIFECYCLE ENVIRONMENT | CONTENT VIEW
---|----------|----------------|-----------------------|----------------
1 | CentOS 7 | 0 of Unlimited | | CentOS 7 - EPEL
2 | SLIK | 1 of Unlimited | Prod | SLIK
---|----------|----------------|-----------------------|----------------
[root@slik01 ~]# hammer -u admin -p Password#1 activation-key subscriptions
--organization="foobar" --id 2
---|----------|----------|----------|---------------------|---------------------|---------|----------|--------
ID | NAME | ATTACHED | QUANTITY | START DATE | END DATE
| SUPPORT | CONTRACT | ACCOUNT
---|----------|----------|----------|---------------------|---------------------|---------|----------|--------
1 | EPEL | | | 2017/12/09 21:55:19 | 2047/12/02
21:55:19 | | |
2 | Katello | | | 2017/12/09 21:56:03 | 2047/12/02
21:56:03 | | |
3 | CentOS 7 | | | 2017/12/09 21:57:44 | 2047/12/02
21:57:44 | | |
---|----------|----------|----------|---------------------|---------------------|---------|----------|--------
[root@slik01 katello]# hammer -u admin -p Password#1 lifecycle-environment
list --organization-label foobar
---|---------|--------
ID | NAME | PRIOR
---|---------|--------
2 | Dev | Library
1 | Library |
4 | Prod | Test
3 | Test | Dev
---|---------|--------
[root@slik01 ~]# subscription-manager list --all --available
No available subscription pools to list
[root@slik01 katello]# subscription-manager repos
This system has no repositories available through subscriptions.
[root@slik01 ~]# sudo subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: CentOS 7
Provides: CentOS 7
SKU: 122637583339
Contract:
Account:
Serial: 6681120976201556648
Pool ID: ff808081603d3ab101603d48ba8b00b5
Provides Management: No
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 12/09/2017
Ends: 12/02/2047
System Type: Physical
Subscription Name: EPEL
Provides: EPEL
SKU: 396060552743
Contract:
Account:
Serial: 7772339727441143075
Pool ID: ff808081603d3ab101603d468cd30006
Provides Management: No
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 12/09/2017
Ends: 12/02/2047
System Type: Physical
Subscription Name: Katello
Provides: Katello
SKU: 801967583872
Contract:
Account:
Serial: 1311031984624637998
Pool ID: ff808081603d3ab101603d4730ee0011
Provides Management: No
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 12/09/2017
Ends: 12/02/2047
System Type: Physical
---------------------------------
Interestingly, if I try to attach without an activation key, Katello can't
seem to find the environment, even though I can see with hammer it exists
[root@slik01 katello]# subscription-manager unregister
Unregistering from: slik01.example.com:443/rhsm
System has been unregistered.
[root@slik01 katello]# subscription-manager clean
All local data removed
[root@slik01 katello]# subscription-manager register --username=admin
--password=Password#1 --serverurl=https://slik01.example.com/rhsm
--org="foobar"
Registering to: slik01.example.com:443/rhsm
Environment: Prod
No such environment: Prod
[root@slik01 katello]# subscription-manager register --username=admin
--password=Password#1 --serverurl=https://slik01.example.com/rhsm
--org="foobar"
Registering to: slik01.example.com:443/rhsm
Environment: Library
[root@slik01 katello]# subscription-manager repos
This system has no repositories available through subscriptions.
---------------------------------
I can move it manually to the correct environment using the GUI, but still
no repos showing available and this is true if a create a second activation
key that uses Libary instead of Prod too. This is a CentOS 7.4 client.
What else should I be checking? Do I need to file a bug for this? How can I
begin debugging the issue with subscription-manager?
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.