Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When removing a license from an ESXi host under Content Hosts, if the license has guests using the "Guests Of" license, the GUI will allow you to remove the license and all seems proper. However, if you hit the subscriptions API, the old license still exists, and any new license you assign to that ESXi host is not found anywhere.
Only after a katello:clean_backend_objects and katello:reindex, does the web interface and the API match up again
Version-Release number of selected component (if applicable):
6.1.7 of Satellite
How reproducible:
Sporadically. Those conditions mentioned above are what I've been able to narrow it down to, but I have limited testing capabilities due to this being a production infrastructure
Steps to Reproduce:
1. virt-who and inventory an ESXi cluster
2. Assign a "1 guest" license to an ESXi host
3. subscription-manager register a VM on that host to Sat6 and assign it the "guest of <esxihost>" license available
4. Remove the license from the ESXi host
5. Hit the subscriptions API and search by the UUID of the ESXi host, and the "removed" subscription still shows attached.
6. Assign a new license to the ESXi host
7. Hit the subscriptions API again and you'll still find the old license attached to the UUID, and nothing about the new license
Actual results:
API and Elasticsearch are out of sync
Expected results:
They should be the same without having to do the foreman-rake jobs