Bug #25604
closed[6.4]After unregistering hypervisor, unable to view subscriptions on activation key via Satellite WebUI
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1648121
Initial setup is an activation key with one or more derived entitlements attached.
[root@iridium ~]# hammer activation-key subscriptions --id 4 --organization-id 1
---|----------------------------------------------------------------------------------|----------|----------|---------------------|---------------------|----------|----------|--------
ID | NAME | ATTACHED | QUANTITY | START DATE | END DATE | SUPPORT | CONTRACT | ACCOUNT
---|----------------------------------------------------------------------------------|----------|----------|---------------------|---------------------|----------|----------|--------
9 | Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard | | | 2017/02/07 05:00:00 | 2021/12/31 23:59:59 | Standard | 11288968 | 540155
8 | Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard | | | 2017/02/07 05:00:00 | 2021/12/31 23:59:59 | Standard | 11288968 | 540155
---|----------------------------------------------------------------------------------|----------|----------|---------------------|---------------------|----------|----------|--------
[root@iridium ~]#
One the Satellite WebUI, when viewing 'list/remove subscriptions' for the activation key, this appears as in screenshot1.png.
Then the issue is reproduced by unregistering one hypervisor associated with one of the derived entitlements on the key. At this point, when viewing 'list/remove subscriptions' on the WebUI, this appears in the broken state as in screenshot2.png.
However using Hammer, I am still able to view the one remaining subscription on the key:
[root@iridium ~]# hammer activation-key subscriptions --id 4 --organization-id 1
---|----------------------------------------------------------------------------------|----------|----------|---------------------|---------------------|----------|----------|--------
ID | NAME | ATTACHED | QUANTITY | START DATE | END DATE | SUPPORT | CONTRACT | ACCOUNT
---|----------------------------------------------------------------------------------|----------|----------|---------------------|---------------------|----------|----------|--------
8 | Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard | | | 2017/02/07 05:00:00 | 2021/12/31 23:59:59 | Standard | 11288968 | 540155
---|----------------------------------------------------------------------------------|----------|----------|---------------------|---------------------|----------|----------|--------
[root@iridium ~]#
When I re-register the hypervisor by re-running virt-who, then attach the physical VDC subscription to the hypervisor again, then attach the derived VDC subscription to the activation key, suddenly all subscriptions are showing again on the activation key under 'list/remove subscriptions'.
I have verified this behavior on 6.3.1 and 6.4. It appears to be reproducible 100% of the time.