In the past, I used MAAS to setup ubuntu-core-22 on a supermicro server. Everything worked fine as expected. Now I want to install ubuntu-server image in the server and triggered release from MAAS enabling disk erase option.
Well in the case of releasing a machine running with ubuntu-server i havent found any issue. Once released I am able to even deploy the new OS version on it.
But If I am trying to release a machine running with ubuntu-core-22 I am not able to release it. Any pointers or troubleshooting steps would be of great help. Currently logs for the machine is showing nothing which shows the reason for it.
Without additional information I’d say your machine is booting from the disk instead from pxe. I’d check the boot order of the machine, or anyways I would check what happens to the machine (on its screen) when it is released with the erase disk option flagged
Yes, the moment I trigger RELEASE from MAAS UI, server is going for a reboot and then booting up in to disk. Ideally it should reboot into ephemeral mode and wipe out the harddisk right ?
Earlier when I tried the same with ubuntu-server installation, MAAS is able to successfully WIPE the harddisk and end up in NEW stage. This is not the behavior in the case of ubuntu-core. Well if I try to manually boot the server in PXE mode, I am sure it will work. But is this expected way to RELEASE a ubuntu-core server ?
I did try RELEASING the machine with erase disk flag enabled and the machine ended up rebooting into harddisk.
Then I checked the bios boot order of the server and it shows boot from harddisk. Well I dont remember manually setting the boot from harddisk as a the default option. When I tried selecting PXE option then it seems to work.
I did try the sequence mentioned by you and looks like it is working fine.
Since I never touched UEFI boot order option in the past where harddisk is the default option. On day 1 it might have failed booting from hardddisk as it does not contain any operating system and ended up booting in PXE where MAAS installed ubuntu-core. Once OS is installed it always ended up rebooting into harddisk.
I followed your steps where
I modified the boot order in UEFI to PXE as a default
Deployed ubuntu-core from MAAS UI successfully
Released the server with disk erase
Re-deployed ubuntu-server from MAAS UI successfully