No available repos in 1.16.0

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?

Doing some additional debugging, if I navigate to:

https://simulator.jdshewey.com/rhsm/consumers/b0ece1e3-2996-4bbe-a4cd-c2cd75640ac3/owner

I get back content:

{“parentOwner”:null,“id”:“ff808081603d3ab101603d3ba2950001”,“key”:“foobar”,“displayName”:“foobar”,“contentPrefix”:"/foobar/$env",“defaultServiceLevel”:null,“upstreamConsumer”:null,“logLevel”:null,“autobindDisabled”:null,“contentAccessMode”:“entitlement”,“contentAccessModeList”:“entitlement”,“href”:"/owners/foobar",“created”:“2017-12-09T21:43:26+0000”,“updated”:“2017-12-09T21:43:26+0000”}

But if I navigate to:

https://simulator.jdshewey.com/rhsm/consumers/b0ece1e3-2996-4bbe-a4cd-c2cd75640ac3/enabled_repos

I get back “The page you were looking for doesn’t exist. You may have mistyped the address or the page may have moved.”

Should I be getting back a list of repos here?

For anyone who may have been following this, I had the repos correctly
published in my content view, but not my composite content view. Although
the content view was published, I did not add the content views to the
composite view by going to "Content Views" tab and then the "Add" tab and
adding these content views to the composite view.

···

On Monday, December 11, 2017 at 4:26:05 PM UTC-7, James Shewey wrote:

Doing some additional debugging, if I navigate to:

https://simulator.jdshewey.com/rhsm/consumers/b0ece1e3-2996-4bbe-a4cd-c2cd75640ac3/owner

I get back content:

{"parentOwner":null,"id":"ff808081603d3ab101603d3ba2950001","key":"foobar","displayName":"foobar","contentPrefix":"/foobar/$env","defaultServiceLevel":null,"upstreamConsumer":null,"logLevel":null,"autobindDisabled":null,"contentAccessMode":"entitlement","contentAccessModeList":"entitlement","href":"/owners/foobar","created":"2017-12-09T21:43:26+0000","updated":"2017-12-09T21:43:26+0000"}

But if I navigate to:

https://simulator.jdshewey.com/rhsm/consumers/b0ece1e3-2996-4bbe-a4cd-c2cd75640ac3/enabled_repos

I get back "The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved."

Should I be getting back a list of repos here?