Description of problem: When guests are removed from ESX, they are not removed from Satellite 5 Version-Release number of selected component (if applicable): virt-who-0.11-5.el7.noarch How reproducible: 1 of 1 Steps to Reproduce: 1. # virt-who --one-shot --satellite --satellite-server=<sat_fqdn> --satellite-username=<sat_user> --satellite-password=<sat_pass> -d --esx --esx-owner=aaa --esx-env=bbb --esx-server <esx_ip> --esx-username <esx_user> --esx-password <esx_pass> 2. Install guest on ESX and register it to the Satellite 3. # virt-who --one-shot --satellite --satellite-server=<sat_fqdn> --satellite-username=<sat_user> --satellite-password=<sat_pass> -d --esx --esx-owner=aaa --esx-env=bbb --esx-server <esx_ip> --esx-username <esx_user> --esx-password <esx_pass> 4. Make sure new guest appears in Satellite 5 webUI 5. Remove guest from ESX (delete from disk using flash-based vCenter app) 6. # virt-who --one-shot --satellite --satellite-server=<sat_fqdn> --satellite-username=<sat_user> --satellite-password=<sat_pass> -d --esx --esx-owner=aaa --esx-env=bbb --esx-server <esx_ip> --esx-username <esx_user> --esx-password <esx_pass> Actual results: System profiles, although guests were removed from ESX hypervisor, are kept on Satellite 5 consuming entitlements Expected results: System profiles of removed guests should be removed. Additional info: Maybe this is known limitation or design decision, but I would expect it to work as described in "Expected results"
Please attach the output from virt-who command. virt-who prints out the host/guest association.
Jan, sorry to bother you. I would need to see the log before and after removing the guest in order to see whether the guest really stopped being reported. Thanks
No problem at all. Are we talking about `virt-who -d ...` output before and after I remove the guest?
Yes, exactly. Same as in comment 3, but before and after removing.
virt-who correctly removed the deleted guest from the list of guests that is sent to the Satellite 5. I think that guests are not removed from Satellite 5 when they disappear because we don't know if they're really gone (like deleted) or just stopped (some hypervisors doesn't report stopped guests) or even migrated to some machine that is not monitored by virt-who. Moving this bug to Satellite 5, please confirm my assumptions and close this bug or correct me if I'm wrong.
Tomas, please tell us what Satellite 5 does when the guest is no longer reported by virt-who (system is no longer reported by virt_notify xmlrpc call). Does it remove the system?
Satellite 5 doesn't remove systems by its own.
Ok, thank you. I think we can close this bug as NOTABUG.
Mine thinking here was that when virt-who created the guest, it should remove it when the guest gets removed (contrary to normal situation when admin manually or using script e.g. in KS profile registers system and then manually deletes the profile when the system is not required any more). If that is not possible, please feel free to close this appropriately.
Well, we can't possibly tell, if the guest is really deleted or just migrated somewhere. Some hypervisors doesn't even report the guest if it's not running (because it's not assigned to any particular host).