Below is my Add_host routine with reboot=False and my host will still reboot on install. What am I doing wrong? It is not giving me errors.

def Add_host():
    hosts_service = connection.system_service().hosts_service()

    # Add the host:
    host = hosts_service.add(
        types.Host(
            name='%s' % HOSTNAME,
            description='%s A Hypervisor' % HOSTNAME,
            address='%s.%s' % (HOSTNAME, DOMAINNAME),
            root_password='password',
            cluster=types.Cluster(
                name='%s-Locall' % HOSTNAME,
            ),
        ),
    reboot=False,
    )

    host_service = hosts_service.host_service(host.id)
    while True:
        time.sleep(5)
        host = host_service.get()
        if host.status == types.HostStatus.UP:
            break



On Tue, May 4, 2021 at 12:15 AM Yedidyah Bar David <didi@redhat.com> wrote:
On Mon, May 3, 2021 at 6:52 PM Don Dupuis <dondster@gmail.com> wrote:
>
> Can you tell me where the default of reboot on install is set as this wasn't this way in 4.3? I don't see an option in engine-config for this and I have looked through the ansible files on my engine vm.

Not sure it's possible to change the default. Adding Dana.

See also:

https://bugzilla.redhat.com/show_bug.cgi?id=1853906

Best regards,
--
Didi