Open chbrown13 opened 7 years ago
Same issue deleting Environment entities:
populate: 422 Client Error: Unprocessable Entity for url: https://hp-xl420gen9-01.khw.lab.eng.bos.redhat.com/api/v2/environments/1 {'action': 'delete', 'search_query': {'name': '{{ new_name }}'}, 'model': 'Environment', 'log_message': u'executing...'}{ "error": {"id":1,"errors":{"base":["testenvironment is used by hp-xl420gen9-01.khw.lab.eng.bos.redhat.com"]},"full_messages":["testenvironment is used by hp-xl420gen9-01.khw.lab.eng.bos.redhat.com"]}
Also deleting HostGroups:
2017-08-15 15:51:26 - satellite_populate.base - ERROR - populate: 422 Client Error: Unprocessable Entity for url: https://hp-xl420gen9-01.khw.lab.eng.bos.redhat.com/api/v2/hostgroups/1 {'action': 'delete', 'search_query': {'name': '{{ name }}'}, 'model': 'HostGroup', 'log_message': u'executing...'}{ "error": {"id":1,"errors":{"base":["Update Group is used by hostname.l1pmlxnddx"]},"full_messages":["Update Group is used by hostname.l1pmlxnddx"]} }
Deleting SmartProxy entities:
2017-08-17 10:34:16 - satellite_populate.base - ERROR - populate: 422 Client Error: Unprocessable Entity for url: https://hp-xl420gen9-01.khw.lab.eng.bos.redhat.com/api/v2/smart_proxies/1 {'action': 'delete', 'search_query': {'name': '{{ name }}'}, 'model': 'SmartProxy', 'log_message': u'executing...'}{ "error": {"id":1,"errors":{"base":["fakeurl2.com is used by hp-xl420gen9-01.khw.lab.eng.bos.redhat.com","fakeurl2.com is used by hp-xl420gen9-01.khw.lab.eng.bos.redhat.com"]},"full_messages":["fakeurl2.com is used by hp-xl420gen9-01.khw.lab.eng.bos.redhat.com","fakeurl2.com is used by hp-xl420gen9-01.khw.lab.eng.bos.redhat.com"]} }
Description
Domain entities are unable to be deleted with satellite-populate and raise an error that the domain is being used by the satellite host.
What I Did
(test_domain.yaml)[https://gist.github.com/chbrown13/3269d8f1a99c53314d6b54f1e61eeca0]