Problem:
PXEBoot with kickstart default is not loading when I try to run it through ansible Expected outcome:
Booting should work with kickstart default
Other relevant data:
We are trying to create a host using ansible playbook
When we try to execute this playbook, script executes with no error, host gets created but we are not seeing the PXEBoot config file in /var/lib/tftpboot/pxelinux.cfg/ and also We are getting this while booting
But everything works fine when we do the same with hammer command with same configuration. Can you check if I’m messing up with the playbook or am I missing something? Any help would be appreciated.
Well, no, as the host is not being deployed properly.
Can you get us the contents of https://myhost.com/api/hosts/test1.local.com and https://myhost.com/api/hosts/hammertest1.local.com (a machine you created via hammer)?
Both should be JSON representations of the hosts. Feel free to mail them to evgeni redhat com if you think there might be any sensitive data in there.
Still the same error: FAILED! => {“changed”: false, “error”: {“errors”: {“interfaces.ip”: [“does not match selected subnet”]}, “full_messages”: [“Ip does not match selected subnet”], “id”: null}, “msg”: "Error while performing create on hosts: 422 Client Error: Unprocessable Entity for url:
FAILED! => {"changed": false, "error": {"errors": {"base": ["Create DHCP Settings for test1.local.com task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy https://myhost.com/dhcp"]}, "full_messages": ["Create DHCP Settings for sidtest.code1.emi.philips.com task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy https://myhost.com:9090/dhcp"], "id": null}, "msg": "Error while performing create on hosts: 422 Client Error: Unprocessable Entity for url: https://myhost.com/api/hosts"}