[2.3] Re-installation fails with "Volume already exists"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned | ||
curtin |
Expired
|
Medium
|
Unassigned |
Bug Description
We have MAAS 2.3 installed however when I release a machine & select option "erase disk before release" and "use secure erase" then MAAS goes & deletes the LVM/RAID volumes from the server however the entries in MAAS DB are not cleared out. Maas still thinks that the LVM/RAID volumes still exist on the server (even though they do not) after releasing the machine & as a result of which it fails during deployment with the error "Volume already exists".
I think this is a bug as MAAS is not updating its DB even after deleting the volumes on the server.
So is there a way/hook to tell to MAAS update its DB when it releases the machines & deletes the LVM/RAID configuration on the servers?
Is anyone else also facing this issue ?
Output of : dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
un maas <none> <none> (no description available)
ii maas-cli 2.3.0-6434-
un maas-cluster-
ii maas-common 2.3.0-6434-
ii maas-dhcp 2.3.0-6434-
ii maas-dns 2.3.0-6434-
ii maas-proxy 2.3.0-6434-
ii maas-rack-
ii maas-region-api 2.3.0-6434-
ii maas-region-
un maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.3.0-6434-
ii python3-maas-client 2.3.0-6434-
ii python3-
Changed in curtin: | |
importance: | Undecided → Medium |
status: | New → Incomplete |
Hi Ketan,
The secure erase doesn't work on all disks. So it could be that your disks do not support secure erase. Can you try quick erase and report back?
That said, curtin does the storage configuration so it should be ensuring it can erase whatever is was previously installed to re-install.