[2.7.1] Pod VMs lose static IP after powering down
Bug #1883349 reported by
Pedro Guimarães
This bug report is a duplicate of:
Bug #1846457: Composing a VM with an IP address on its interface is in Auto Assign state after commissioning.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
New
|
Undecided
|
Unassigned |
Bug Description
Using:
MAAS 2.7.1 (8262-g.
When I build VMs with the following command:
maas root pod compose 2 hostname=<hostname< cores=8 memory=24576 storage=100.0 zone=3 interfaces=
I get a VM in "new" then "commissioning" state with the fixed <IP> value.
However, once that VM powers down, it loses the static IP set via constraints.
The only reliable way I have to force VMs to get a static IP is, as a post-deployment step, run:
maas root interface unlink-subnet ${SYSTEM_ID} ${NIC_ID} id=${EXISTING_
maas root interface link-subnet ${SYSTEM_ID} ${NIC_ID} mode=STATIC subnet=${SUBNET_ID} ip_address=
To post a comment you must log in.