Bug 1648121
Summary: | [6.4]After unregistering hypervisor, unable to view subscriptions on activation key via Satellite WebUI | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | wclark |
Component: | Activation Keys | Assignee: | Samir Jha <sajha> |
Status: | CLOSED ERRATA | QA Contact: | Perry Gagne <pgagne> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4 | CC: | ehelms, redhat |
Target Milestone: | 6.5.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tfm-rubygem-katello-3.10.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-05-14 12:38:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Attachments: |
Description
wclark
2018-11-08 21:46:30 UTC
Expected Behavior: WebUI is able to show all subscriptions on the key. Actual Behavior: Unable to view any subscriptions on the key until the missing virtual VDC subscription is recreated and re-added to the key, at which point all subscriptions become visible again. Created attachment 1503485 [details]
screenshot1 showing normal/expected behavior when viewing 'list/remove subscriptions' for an activation key
Created attachment 1503486 [details]
screenshot2 showing the error behavior on 'list/remove subscriptions' when a single hypervisor was unregistered
I have reproduced the issue without unregistering the hypervisor, it's sufficient to simply remove the physical subscription from the hypervisor and then no subscriptions will be visible under 'list/remove subscriptions' for the activation key. Additionally I'm unclear whether this is filed under the correct component. I chose WebUI since I am able to view the proper subscriptions for the key using hammer. Checking the Candlepin database directly, I can see the single pool on the activation key: // getting the activation key ID [root@iridium ~]# su - postgres -c "psql -d candlepin -c 'select id,name from cp_activation_key;'" id | name ----------------------------------+-------------------------------------- 8a8c54d666cfc71e0166f53e036100aa | bcc8bad4-863a-4ec9-92ff-12c195fcdd83 (1 row) [root@iridium ~]# // finding all pool_ids associated with the activation key [root@iridium ~]# su - postgres -c "psql -d candlepin -c 'select pool_id from cp_activationkey_pool where key_id = '\''8a8c54d666cfc71e0166f53e036100aa'\'';'" pool_id ---------------------------------- 8a8c54d666cfc71e0166f53d5098009d (1 row) [root@iridium ~]# Created redmine issue http://projects.theforeman.org/issues/25604 from this bug An immediate fix for this would be to run `foreman rake katello:import_subscriptions` We are working on a long term fix for this. Thanks! Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25604 has been resolved. Verified fix in 6.5 snap 12 1. Configured virt-who to get hypervisors. 2. Attached VDC "physical" sub to 2 hypervisors 3. Created activation key with VDC "derived" subscription for both hypervisors and other subscriptions. 4. Removed "physical" sub from one of the hypervisor. The Activation key lists the correct subs. One for the remaining hypervisor, and the custom products. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:1222 |