Problem:
While using the Hammer Cli the host content-view and operating system gets updated
it even get’s reflected in GUI but the ipxe points to previous OS and content-view Expected outcome:
How can I make the host get new updated config
iPxe config is generated when entering build mode, so you can cancel the build and then enable build again, which will also download the kernel/initrd if needed. The other option would be the rebuild config action from the host overview page.
I have already tried cancelling through hammer cli and again putting on build the hammer command on foreman server it shows the host updated it also get updated in the GUI on the host page but the ipxe config file doesn’t get updated unless it’s done through GUI or we press submit button on the host edit page
I am updating the content host and Operating system of the host using hammer cli commands after running the commands it shows host updated status in hammer host info and also in GUI the content-view and Operating system gets updated but the ipxe file doesn’t get synced it points to previous content view and Operating system and initrd
If i update the host from GUI or if even just use the submit button in host-> edit host page ipxe config file gets updated and points to correct initrd and kernel image
Hosts also have a kickstart_repository_id which is selected from the options you see in Synced Content in the web UI. This will be automatically handled for you in the web UI, but not necessarily in Hammer. Is it possible this is the issue? You could test it by looking at the kickstart repository ID in hammer host info before and after a successful web UI change.
The issue is when I update the host content view and Operating system using Hammer cli it doesn’t generate the new ipxe file while if I update the same things from the web UI it generates the correct ipxe file showing correct content-view and Operating system