After adding virsh machine with existing address, multiple machines share address info
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Low
|
Unassigned |
Bug Description
Steps to reproduce
- Prepare MAAS and two KVM hosts(Let's say Host A and B) without adding to MAAS
- Create VMs on those hosts A and B
- In MAAS, add a machine with a VM from host A with correct power configuration
- In MAAS, add a machine with a VM from host B but with the power configuration of host A which is wrong IP address and leads to fail commissioning
- In MAAS, modify the power configuration of the VM from host B with correct IP. This will allow the VM from host B to succeed commissioning but result the VM from host A refer to the power configuration of host B because they have been sharing the power configuration since the VM from host B were added with the power configuration of host A.
- Changing Virsh VM ID is fine. only Address is changed on both machine.
- After adding machine with different virsh vm id, It can be edit separately.
This is a known problem, due to the way BMCs are shared in the model, but not exposed as such in the UI/API.
Fixing this problem is quite a lot of work, and more of a feature request.
To work around it, you can change the power to be "manual", and then change it back to virsh with the correct IP.