On Red Hat Satellite 6 Content host deletion is failing with "ERF12-1261 [ProxyAPI::ProxyException]: Unable to delete DNS entry ([RestClient::BadRequest]: 400 Bad Request) for Capsule https://satellite.example.com:9090/dns"
Issue
- Unable to delete content host from satellite server using hammer command:
# hammer host delete --id 10
Could not delete the host:
ActiveRecord::RecordNotDestroyed
while /var/log/foreman/production.log has below error message:
2016-10-17 19:23:56 [app] [W] Remove DNS record for contenthost1.example.com task failed with the following error: ERF12-1261 [ProxyAPI::ProxyException]: Unable to delete DNS entry ([RestClient::BadRequest]: 400 Bad Request) for Capsule https://asat01lax01us.prod.auction.local:9090/dns
| ProxyAPI::ProxyException: ERF12-1261 [ProxyAPI::ProxyException]: Unable to delete DNS entry ([RestClient::BadRequest]: 400 Bad Request) for Capsule https://satellite.example.com:9090/dns
| /usr/share/foreman/lib/proxy_api/dns.rb:27:in `rescue in delete'
Environment
- Red Hat Satellite 6.2
- hammer
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.