>>> Changing the netboot to enable does not work anymore
without running
>>> the sync command. The reason is that the dhcp template does not
>>> generate the next_server and filename lines for a host when netboot is
>>> disabled.
>>>
>>>
>> This is definitely a bug, it should always generate them so we can use
>> PXE to control whether they boot locally. You're saying this problem
>> is devel only?
>>
>
> This bug is also in master. Also the dhcp template generation without
dns_names is broken in master.
>
Define what this means?
The dns_name is used as key in the blended_system cache. With an empty name the same
cached system record (gateway/netboot_enabled/hostname) values are used.
Also the blended_system cache is not needed at all because the blended_system can already
be generated in the system-loop instead of the interface-loop. See my other patch that
simplifies the code in manage_isc.py.
> Sorry for the proposal confusion. I could better have written
that
creating a dhcp only sync method and calling that after a netboot change.
>
Nah, we just need to make sure there is no logic to hide systems that
are netboot-disabled.
That flag only pertains to PXE, not whether they can get an IP. I
assume someone made the mistake and that went by undetected.
It was done by design because the netboot_enabled is added to the dictioanary also in
code. The fix is simple. Remove the netboot_enabled if statement in dhcp.template
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal
privilege. It should not be copied, disclosed to, retained or used by, any other party. If
you are not an intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.