Deploying any packed image fails with snap 3.2.x of maas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I've successfully built all the images supported, and all of them fail to install when selected as an image during deployment.
Here are relevant supporting details:
cbedford@
Name Version Rev Tracking Publisher Notes
maas 3.2.4-12012-
I used the CLI to load the images with the following commands:
maas admin boot-resources create name='custom/rhel8' title="RedHat Enterprise Linux 8" architecture=
I used the git repository here: https:/
The host I used to build the packer image was running Ubuntu 20.04:
uname: Linux cf-cosd4-g4-09 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
I deploy an image using the GUI and select the uploaded rhel8 image for the deployment and it fails with with the attached image on the console, and the following in the following in the installation logs:
'''
Finalizing /tmp/tmpplouiu3
finish: cmd-install/
start: cmd-install/
Running command ['mount', '--bind', '/dev', '/tmp/tmpplouiu
Running command ['mount', '--bind', '/proc', '/tmp/tmpplouiu
Running command ['mount', '--bind', '/run', '/tmp/tmpplouiu
Running command ['mount', '--bind', '/sys', '/tmp/tmpplouiu
Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpplouiu
bash: dpkg-query: command not found
cloud-init not detected, MAAS will not be able to configure this machine properly
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.009
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
finish: cmd-install/
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'in-target', '--', 'bash', '-c', 'dpkg-query -s cloud-init || (echo "cloud-init not detected, MAAS will not be able to configure this machine properly" && exit 1)']
Exit code: 1
Reason: -
Stdout: start: cmd-install/
Running command ['mount', '--bind', '/dev', '/tmp/tmpplouiu
Running command ['mount', '--bind', '/proc', '/tmp/tmpplouiu
Running command ['mount', '--bind', '/run', '/tmp/tmpplouiu
Running command ['mount', '--bind', '/sys', '/tmp/tmpplouiu
Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpplouiu
bash: dpkg-query: command not found
cloud-init not detected, MAAS will not be able to configure this machine properly
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.009
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
Running command ['mount', '--make-private', '/tmp/tmpplouiu
Running command ['umount', '/tmp/tmpplouiu
finish: cmd-install/
'''
Could you please provide the command used to upload the custom image to maas, and the output of
maas $profile boot-source- selections read $boot_source_id
for that image?