MAAS does not erase disks when LVM (or possibly software RAID)

Bug #2016351 reported by Urge4Vert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Expired
Undecided
Unassigned

Bug Description

After deploying a server, and then 'releasing' it the option to 'erase disks' is selected and 'quick erase'. The server completes the 'erasing' but in fact, does not erase the disk.

The issue showed up when trying to re-deploy to the same server and seeing in the logs that the volume group previously created is in fact still in place

To confirm, the following steps were completed
Once erasing is done, then enter into rescue mode. 'pvscan', 'vgscan' and 'lvscan' all show the previously configured volume group.

MAAS should entire wipe the disk when requested, including volume groups, logical volumes, etc

MAAS is installed using snap, snap version is 3.3.2-13177-g.a73a6e2bd
MAAS is running in a lxc container on Ubuntu 22.04

Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

Quick erase call `wipefs` on all disks, and then zeros the first and last 2MB of each disk. This should nuke most filesystems metadata, including LVM.

can you show us the erasing logs? you can find them at:

`/var/snap/maas/common/log/rsyslog/$MACHINE/$TIMESTAMP/messages`

We are looking for lines like:

2023-04-21T00:42:17+00:00 vm1 cloud-init[1607]: sda to be wiped.
2023-04-21T00:42:17+00:00 vm1 cloud-init[1607]: sda: starting quick wipe.
2023-04-21T00:42:17+00:00 vm1 cloud-init[1607]: sda: successfully quickly wiped.
2023-04-21T00:42:17+00:00 vm1 cloud-init[1607]: All disks have been successfully wiped.

Changed in maas:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for MAAS because there has been no activity for 60 days.]

Changed in maas:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.