packer-maas
packer-maas copied to clipboard
When deploying custom-ubuntu.tar.gz, the machine stays with "Deploying" even after "Installation complete"
When I make and then deploy a custom-ubuntu.tar.gz to a baremetal machine on our MAAS, the machine somehow stays "Deploying" even after "Installation complete - Node disabled netboot" is logged in the Event log. The machine doesn't respond to ping. And 30 minutes later, the machine will be marked as "Failed deployment."
I checked the machine's status via a remote console; the OS was up; I could log in. However, the /etc/netplan/50-cloud-init.yaml doesn't exist, which is supposed to be generated during the deployment. So, there seems to be an issue on finalizing the deployment process after the installed OS is booted.
Here's the snippet of the Event log around the end of deployment.
Mon, 20 May. 2024 22:36:56 | Node changed status - From 'Deploying' to 'Failed deployment' Mon, 20 May. 2024 22:36:56 | Marking node failed - Node operation 'Deploying' timed out after 30 minutes. Mon, 20 May. 2024 22:06:12 | Script result - /tmp/install.log changed status from 'Running' to 'Passed' Mon, 20 May. 2024 22:06:12 | Rebooting Mon, 20 May. 2024 22:06:12 | Node installation - 'cloudinit' running config-power_state_change with frequency once-per-instance Mon, 20 May. 2024 22:06:12 | Node installation - 'cloudinit' running config-final_message with frequency always Mon, 20 May. 2024 22:06:12 | Node installation - 'cloudinit' running config-ssh_authkey_fingerprints with frequency once-per-instance Mon, 20 May. 2024 22:06:12 | Node installation - 'cloudinit' running config-install_hotplug with frequency once-per-instance Mon, 20 May. 2024 22:06:12 | Node installation - 'cloudinit' running config-keys_to_console with frequency once-per-instance Mon, 20 May. 2024 22:06:10 | Installation complete - Node disabled netboot
Here's the bottom lines in the Installation output. Curtin seems to have finished installation without an issue.
Saving to: ‘/dev/null’
0K 100% 142K=0s
2024-05-14 05:39:23 (142 KB/s) - ‘/dev/null’ saved [2/2]
curtin: Installation finished.
Here's the versions of related apps.
~# packer --version
Packer v1.10.0
~# snap info maas|grep installed
installed: 3.5.0~rc4-16292-g.18b753d78 (35434) 196MB -
packer-maas# git branch
* main
Here's how I have registered the ubuntu-custom image.
git clone https://github.com/canonical/packer-maas
cd packer-maas/ubuntu
make custom-ubuntu.tar.gz
maas $MAAS_USER boot-resources create name='custom/ubuntu2204' title='custom/ubuntu2204' architecture='amd64/generic' filetype='tgz' base_image='ubuntu/jammy' content@=custom-ubuntu.tar.gz
Thank you for your attention. I will appreciate any comments.