Subiquity autoinstall fails on bare metal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Install Ubuntu 22.04 on DL380 Gen 7 system with autoinstall and user-data file that works installing VMs in VSPhere and KVM/OpenStack. Install fails and offers to drop into shell. Examining /var/log/
Subiquity user-data:
#cloud-config
autoinstall:
identity: {hostname: titanium-server, password: removed, realname: titanium admin, username: nnadmin}
keyboard: {layout: us, toggle: null, variant: ''}
locale: en_US.UTF-8
network:
ethernets: {}
version: 2
ssh:
allow-pw: true
authorized-
install-server: true
storage:
config:
- type: disk
id: root-disk
ptable: gpt
grub_device: true
preserve: false
wipe: superblock
match:
path: /dev/*da
- {device: root-disk, size: 1G, flag: bios_grub, number: 1, preserve: false, grub_device: false, type: partition, id: partition-0}
# root partition
- {device: root-disk, size: 5G, wipe: superblock, flag: '', number: 2, preserve: false, grub_device: false, type: partition, id: partition-1}
- {fstype: xfs, volume: partition-1, preserve: false, type: format, id: format-1}
- {path: /, device: format-1, type: mount, id: mount-0}
# /var
- {device: root-disk, size: 2G, wipe: superblock, flag: '', number: 3, preserve: false, grub_device: false, type: partition, id: partition-2}
- {fstype: xfs, volume: partition-2, preserve: false, type: format, id: format-2}
- {path: /var, device: format-2, type: mount, id: mount-1}
# /tmp
- {device: root-disk, size: 3G, wipe: superblock, flag: '', number: 4, preserve: false, grub_device: false, type: partition, id: partition-3}
- {fstype: xfs, volume: partition-3, preserve: false, type: format, id: format-3}
- {path: /tmp, device: format-3, type: mount, id: mount-2}
# /opt
- {device: root-disk, size: 6G, wipe: superblock, flag: '', number: 5, preserve: false, grub_device: false, type: partition, id: partition-4}
- {fstype: xfs, volume: partition-4, preserve: false, type: format, id: format-4}
- {path: /opt, device: format-4, type: mount, id: mount-3}
# /var/log
- {device: root-disk, size: 4G, wipe: superblock, flag: '', number: 7, preserve: false, grub_device: false, type: partition, id: partition-5}
- {fstype: xfs, volume: partition-5, preserve: false, type: format, id: format-5}
- {path: /var/log, device: format-5, type: mount, id: mount-4}
# /var/log/audit
- {device: root-disk, size: 2G, wipe: superblock, flag: '', number: 8, preserve: false, grub_device: false, type: partition, id: partition-6}
- {fstype: xfs, volume: partition-6, preserve: false, type: format, id: format-6}
- {path: /var/log/audit, device: format-6, type: mount, id: mount-5}
# /var/tmp
- {device: root-disk, size: 2G, wipe: superblock, flag: '', number: 9, preserve: false, grub_device: false, type: partition, id: partition-7}
- {fstype: xfs, volume: partition-7, preserve: false, type: format, id: format-7}
- {path: /var/tmp, device: format-7, type: mount, id: mount-6}
# /home
- {device: root-disk, size: -1, wipe: superblock, flag: '', number: 10, preserve: false, grub_device: false, type: partition, id: partition-8}
- {fstype: xfs, volume: partition-8, preserve: false, type: format, id: format-8}
- {path: /home, device: format-8, type: mount, id: mount-7}
late-commands:
- touch /etc/cloud/
- /usr/bin/mkdir /target/extras
- /usr/bin/cp -r /cdrom/netnumber/* /target/extras
- /usr/bin/cp /target/
- curtin in-target --target=/target -- apt-get -y purge cpp cpp-9 alsa* x11* strace usbmuxd
- curtin in-target --target=/target -- apt-get -y purge landscape-common ufw git plymouth
- curtin in-target --target=/target -- apt-get -y purge telnet lsof unattended-upgrades rsync
- curtin in-target --target=/target -- apt-get -y purge dosfstools eatmydata fuse
- curtin in-target --target=/target -- apt-get -y purge fonts-ubuntu-
- curtin in-target --target=/target -- apt-get -y purge gsettings-
- curtin in-target --target=/target -- apt-get -y purge motd-news-config packagekit
- curtin in-target --target=/target -- apt-get -y autoremove
- curtin in-target --target=/target -- chmod +x /extras/
- curtin in-target --target=/target -- /extras/
- curtin in-target --target=/target -- /extras/
- curtin in-target --target=/target -- /extras/NTI-conf.sh > /target/
- curtin in-target --target=/target -- echo "Please wait...will reboot automatically"
- reboot
version: 1
Note, when installing without autoinstall, installation succeeds.
That particular traceback should be harmless. (I'd rather we catch it then show a traceback)
If the install failed then there should be a more severe message down lower in the log. installer/ subiquity- server- debug.log / /var/log/ curtin/ install. log?
Do you mind posting /var/log/