Virsh pod creation failed with "Node with hostname already exists."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Newell Jensen |
Bug Description
Running MAAS within a Virsh node and then trying to add a Virsh pod fails with the below stacktrace:
2017-05-01 22:19:35 maasserver.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
f(*a, **kw)
File "/usr/lib/
self.
File "/usr/lib/
self.
--- <exception caught here> ---
File "/usr/lib/
current.result = callback(
File "/usr/lib/
raise PodProblem(
Related branches
- Lee Trager (community): Approve
-
Diff: 23 lines (+5/-2)1 file modifiedsrc/maasserver/models/bmc.py (+5/-2)
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
Changed in maas: | |
status: | Confirmed → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
There is already code in MAAS that checks for the validity and uniqueness of hostnames when a Pod is added. However, currently the check is against Machine's in the database and the reason Mike hit this bug is because his MAAS server had a hostname that matched one of his VMs.