Closed ubuntu-server-builder closed 1 year ago
Launchpad user Andres Rodriguez(andreserl) wrote on 2018-12-05T22:45:58.784019+00:00
Hi Jeff,
Could you please provide:
Thanks!
Launchpad user Andres Rodriguez(andreserl) wrote on 2018-12-05T22:49:21.094425+00:00
Couple notes:
Launchpad user Jeff Lane (bladernr) wrote on 2018-12-05T22:52:17.432501+00:00
curtin config: https://pastebin.canonical.com/p/CqYxpMgzqg/ power settings:
bladernr@weavile:~$ maas bladernr machine power-parameters 7b4hgq Success. Machine-readable output follows: { "power_address": "192.168.224.103", "power_boot_type": "auto", "power_driver": "LAN_2_0", "power_pass": "NKYG1RhbJI", "power_user": "maas", "mac_address": "" }
It just uses IPMI for access and control, no special API, AMT or other magic. Though now that you've had me run that, why is the type "auto" when the web UI says "IPMI"??
and curtin version: bladernr@weavile:~$ apt-cache policy curtin curtin: Installed: 18.1-17-gae48e86f-0ubuntu1~18.04.1 Candidate: 18.1-17-gae48e86f-0ubuntu1~18.04.1 Version table: *** 18.1-17-gae48e86f-0ubuntu1~18.04.1 500 500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 100 /var/lib/dpkg/status 18.1-5-g572ae5d6-0ubuntu1 500 500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Launchpad user Andres Rodriguez(andreserl) wrote on 2018-12-05T22:58:56.871309+00:00
Thanks for the quick response. So from the information provided above I can conclude that:
This would either be an issue with curtin (although its quite strange it does what it does when in other legacy systems it doesn't). Or the firmware is buggy that's exposing something that doesn't exist and curtin is detecting it??
I'll let the curtin guys chip in. MArking invalid for MAAS.
Launchpad user Ryan Harper(raharper) wrote on 2018-12-05T23:06:26.683580+00:00
This is not a curtin bug. In your config, you're providing a late_commands which invoke grep and do not eat the return code, so if grep fails to find it's query, it returns 1 and this fails the install (one or more of the late_commands failed).
From config:
late_commands: 01_efivars:
From the install log we can see install was OK, but late_commands which run after install is complete failed:
Installation finished. No error reported. Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) Running command ['umount', '/tmp/tmpmg3cwxp7/target/sys'] with allowed return codes [0] (capture=False) Running command ['umount', '/tmp/tmpmg3cwxp7/target/proc'] with allowed return codes [0] (capture=False) Running command ['umount', '/tmp/tmpmg3cwxp7/target/dev'] with allowed return codes [0] (capture=False) finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: SUCCESS: curtin command curthooks start: cmd-install/stage-hook/builtin/cmd-hook: curtin command hook Finalizing /tmp/tmpmg3cwxp7/target finish: cmd-install/stage-hook/builtin/cmd-hook: SUCCESS: curtin command hook curtin: Installation failed with exception: Unexpected error while running command. Command: ['grep', 'efi', '/proc/mounts'] Exit code: 1
Launchpad user Ryan Harper(raharper) wrote on 2018-12-05T23:07:08.612230+00:00
Please reopen if you feel there's an issue with how curtin is handling the late_commands.
Launchpad user Jeff Lane (bladernr) wrote on 2018-12-05T23:52:57.514603+00:00
Gah! thanks, I didn't even notice that before... thanks for pointing it out.
This bug was originally filed in Launchpad as LP: #1807030
Launchpad details
Launchpad user Jeff Lane (bladernr) wrote on 2018-12-05T22:37:18.590826+00:00
Attempting to deploy various versions of Ubuntu via MAAS 2.4.2 (7034-g2f5deb8b8-0ubuntu1). I've tried 16.04.5 and 18.04.1 and end up with messages in the logs like such:
Looking in the system settings, this system does not use EFI at all. It is purely BIOS mode, yet the installer is complaining about a missing efi directory when it fails.
The machine is successfully commissioned, and commissioning does not detect EFI and thus does not create a /boot/efi partition as it is not necessary. Watching the node boot via console, it clearly is doing a BIOS mode PXE boot from the NICs, it is not loading an EFI environment first.
A search and skimming of the manuals for this model (ProLiant SL230s) shows that it has no EFI options available as well: https://support.hpe.com/hpsc/doc/public/display?docId=c03239129 https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03239183
Installation finished. No error reported.
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpmg3cwxp7/target/sys'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpmg3cwxp7/target/proc'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpmg3cwxp7/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: SUCCESS: curtin command curthooks
start: cmd-install/stage-hook/builtin/cmd-hook: curtin command hook
Finalizing /tmp/tmpmg3cwxp7/target
finish: cmd-install/stage-hook/builtin/cmd-hook: SUCCESS: curtin command hook
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['grep', 'efi', '/proc/mounts']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
A full paste of the install lot from the MAAS web ui is here: https://pastebin.canonical.com/p/6SCncBtHGd/
And the node's config data from MAAS can be found here: https://pastebin.canonical.com/p/dbV7PTVnYw/