KVM Hosts Deleted off filesystem when VM host/rack connects to a different MAAS

Bug #1916090 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Incomplete
Medium
Lee Trager

Bug Description

A MAAS user deployed an 18.04 libvirt KVM host with MAAS 2.6.2. They then installed a MAAS 2.6.2 rack controller on the KVM host they just deployed. They setup a parallel MAAS 2.9.2 environment by cloning the database the MAAS 2.6.2 used. They turned off DHCP on one VLAN in the MAAS 2.6.2 environment so they could enable it in the MAAS 2.9.2 environment. They then connected the rack controller, running MAAS 2.6.2 to the MAAS 2.9.2 environment. This resulted in both VMs on the libvirt KVM host being deleted. The VMs remained modeled in both MAASes.

Attempting to connect one rack controller to two different MASSs is not possible. Connecting a MAAS 2.6.2 rack to a MAAS 2.9.2 region is incorrect and should be prevented(LP:1916089). MAAS should never delete a VM unless explicitly told to by the user.

Lee Trager (ltrager)
description: updated
Changed in maas:
assignee: nobody → Lee Trager (ltrager)
status: Triaged → In Progress
Revision history for this message
Lee Trager (ltrager) wrote :

I'm unable to reproduce this. I've tried various methods.

Changed in maas:
status: In Progress → Incomplete
Revision history for this message
Alberto Donato (ack) wrote :

In the upcoming 3.0 release, MAAS doesn't delete VMs when the KVM host is removed unless decompose=True is passed

Revision history for this message
Alberto Donato (ack) wrote :

But I wonder what's happened here exactly, removing VMs when registering a host was never MAAS' behavior.
Up until 2.9, VMs are decomposed when the host is removed if they were composed by MAAS.

Alberto Donato (ack)
Changed in maas:
importance: Critical → Medium
Revision history for this message
Björn Tillenius (bjornt) wrote :

We need to know how the kvm pod was registered. If it was registered pointing to 'localhost', it makes sense. And we shouldn't allow localhost to be used when registering a kvm pod.

Changed in maas:
status: Incomplete → New
status: New → Incomplete
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.