Skip to content

set_hostname and hostname cause reboot loop #172

@roflhouse

Description

@roflhouse

I am running 1_1_6 and have noticed that set_hostname and hostname are constantly setting the hostname and rebooting the machine during deployment. Eventually the loop gets broken by something and it continues but it is adding 3-10 mins to my VMs launching.

I have also noticed this is some kind of race condition. Sometimes it will go right through but others it will reboot 30 times.

here is the snippet from the log which is repeated many times. Disabling the reboot functionality of cloud init works but some of these options like hostname change requires a reboot to actually work.

2025-08-25 20:58:06.805 5412 INFO cloudbaseinit.utils.hostname [-] Setting hostname: jump-lax
2025-08-25 20:58:07.061 5412 INFO cloudbaseinit.init [-] Rebooting
2025-08-25 20:58:07.162 4984 INFO cloudbaseinit.init [-] Process execution ended with exit code: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions