Comment 5 for bug 1999680

Revision history for this message
l33tname (sirl33tname) wrote :

> l33tname, can you explain what you're trying to accomplish? `cloud-init clean --machine-id` needs to be called by something in order for this to affect anything.

I call it as part of my packer setup for my golden image.

> Are you calling that command to create a golden image, and your golden image isn't working?
Correct.

> Are you launching a cloud image on a cloud that isn't booting correctly?
It will boot but without `/etc/machine-id` which leads to weird errors for example that network interfaces can not be configured.

> Are you installing Ubuntu using an installer and it resulted in no machine id?
No I using the the ova image from here https://cloud-images.ubuntu.com/ running packer to prepare my golden image and i run cloud-init clean --seed --logs --machine-id at the end, and then when i want to use the golden image they don't regenerate /etc/machine-id which is correct behavior according to the ubuntu issue i linked https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1508766