Oracle Linux 8 and 9 not being deployed Maas 3.5.1 Update

Hi,

Just an update on Oracle Linux. Updated Maas to version 3.5.1 as mentioned here:

But still had errors when deploying OL: Oracle Linux 8 and 9 not being deployed

Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmp9qq11pq9/target', 'bash', '-c', 'cloud-init --version || (echo "cloud-init not detected, MAAS will not be able to configure this machine properly" && exit 1)'] with allowed return codes [0] (capture=False)
/usr/bin/cloud-init 23.4-7.0.1.el9_4.5
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.032
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/stage-late/98-validate-custom-image-has-cloud-init/cmd-in-target: SUCCESS: curtin command in-target
start: cmd-install/stage-late/99-validate-custom-image-has-netplan/cmd-in-target: curtin command in-target
Running command ['mount', '--bind', '/dev', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/proc', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/run', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmp9qq11pq9/target', 'bash', '-c', 'netplan info || (echo "netplan not detected, MAAS will not be able to configure this machine properly" && exit 1)'] with allowed return codes [0] (capture=False)
bash: line 1: netplan: command not found
netplan 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.035
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/stage-late/99-validate-custom-image-has-netplan/cmd-in-target: FAIL: curtin command in-target
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'in-target', '--', 'bash', '-c', 'netplan info || (echo "netplan not detected, MAAS will not be able to configure this machine properly" && exit 1)']
Exit code: 1
Reason: -
Stdout: start: cmd-install/stage-late/99-validate-custom-image-has-netplan/cmd-in-target: curtin command in-target
        Running command ['mount', '--bind', '/dev', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/run', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys/firmware/efi/efivars', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmp9qq11pq9/target', 'bash', '-c', 'netplan info || (echo "netplan not detected, MAAS will not be able to configure this machine properly" && exit 1)'] with allowed return codes [0] (capture=False)
        bash: line 1: netplan: command not found
        netplan 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.035
        Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmp9qq11pq9/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmp9qq11pq9/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmp9qq11pq9/target/run'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmp9qq11pq9/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--make-private', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmp9qq11pq9/target/dev'] with allowed return codes [0] (capture=False)
        finish: cmd-install/stage-late/99-validate-custom-image-has-netplan/cmd-in-target: FAIL: curtin command in-target
        

It seems to be complaining about netplan and cloudinit not being installed.
BR

Hi,

please make sure the name of the boot resource has the ol/ prefix (as shown bellow), otherwise it won’t by-pass these checks

maas $PROFILE boot-resources create \
    name='ol/8.8' title='Oracle Linux 8.8' \
    architecture='amd64/generic' filetype='tgz' \
    content@=ol8.tar.gz

Hi,

Thanks. I have tried and it doesn’t throw the errors now but still fails after the last reboot getting stuck here:

image

and jumping into grub:

image

I need to use two bonds in the server , one of them with a vlan (all configured from MaaS). Could it be some incompatibility at this level?

The same network setup works with Ubuntu 20,22,24 custom images as well as debian one.

BR

I’m seeing the same problem with custom/almalinux9 image. I understand from previous posts that it won’t attempt to do this if the prefix custom/ is used but clearly it is.

Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpo4tvlsrn/target', 'bash', '-c', 'netplan info || (echo "netplan not detected, MAAS will not be able to configure this machine properly" && exit 1)'] with allowed return codes [0] (capture=False)
bash: line 1: netplan: command not found
netplan not detected, MAAS will not be able to configure this machine properly
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)

I would deeply appreciate any advice you have.

Looking at the source, I’m curious if it is possible to have custom rhel versions? You seem to know what to do for RHEL images. But it doesn’t seem to accept rhel/almalinux9 as input…