Hide Forgot
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
Moving 6.2 bugs out to sat-backlog.
Elastic Search has been removed in 6.2, this issue should be resolved.