[2.7.1] Pod VMs lose static IP after powering down

Bug #1883349 reported by Pedro Guimarães
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
New
Undecided
Unassigned

Bug Description

Using:

MAAS 2.7.1 (8262-g.9a49af7df-0ubuntu1~18.04.1)

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=eth0:space=oam-space,ip=<IP>,mode=static

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_LINK_ID}
maas root interface link-subnet ${SYSTEM_ID} ${NIC_ID} mode=STATIC subnet=${SUBNET_ID} ip_address=${STATIC_IP}

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.