Composing a VM with an IP address on its interface is in Auto Assign state after commissioning
Bug #1846457 reported by
Nicolas Pochet
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
High
|
Stamatis Katsaounis | ||
3.3 |
Triaged
|
Medium
|
Unassigned | ||
3.4 |
New
|
High
|
Unassigned |
Bug Description
When composing a VM with an IP address on its interface with the following command:
maas root pod compose 5 hostname=foo cores=1 memory=1024 storage=5 interfaces=
results in the VM having its interface in Auto Assign mode after commissioning.
I also tried with:
maas root pod compose 5 hostname=foo cores=1 memory=1024 storage=5 interfaces=
But the result is the same.
The expected result would be that the VM has an IP address that persist after commissioning.
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
importance: | Critical → Medium |
summary: |
- [2.6] Composing a VM with an IP address on its interface is in Auto - Assign state after commissioning + Composing a VM with an IP address on its interface is in Auto Assign + state after commissioning |
Changed in maas: | |
milestone: | none → 3.3.0 |
Changed in maas: | |
milestone: | 3.3.0 → 3.4.0 |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Changed in maas: | |
importance: | Medium → High |
milestone: | 3.4.x → 3.5.0 |
Changed in maas: | |
assignee: | nobody → Stamatis Katsaounis (skatsaounis) |
To post a comment you must log in.
I tried this on maas 2.6.2 and verified that the node commissions with the given static ip, the mode is auto and the ip goes away after it finishes commissioning.
ubuntu@ OrangeBox100: ~$ maas admin pod compose 13 hostname=vern1 cores=1 memory=1024 storage=5 interfaces= "eth0:space= undefined, ip=172. 27.100. 100,mode= static" api/2.0/ machines/ 73a8gy/ " OrangeBox100: ~$ systemid=73a8gy OrangeBox100: ~$ maas admin machine read $systemid | jq '{"status": .status_name, "boot_interface": .boot_interface .links[ 0] | {"mode": .mode, "ip_address": .ip_address}}' OrangeBox100: ~$ maas admin machine read $systemid | jq '{"status": .status_name, "boot_interface": .boot_interface .links[ 0] | {"mode": .mode, "ip_address": .ip_address}}' OrangeBox100: ~$ maas admin version read management" , "static- ipaddresses" , "ipv6-deploymen t-ubuntu" , "devices- management" , "storage- deployment- ubuntu" , "network- deployment- ubuntu" , "bridging- interface- ubuntu" , "bridging- automatic- ubuntu" , "authenticate- api"], "version": "2.6.2", "subversion": "7841-ga10625be 3-0ubuntu1~ 19.10.1" }
Success.
Machine-readable output follows:
{
"system_id": "73a8gy",
"resource_uri": "/MAAS/
}
ubuntu@
ubuntu@
{
"status": "Commissioning",
"boot_interface": {
"mode": "auto",
"ip_address": "172.27.100.100"
}
}
ubuntu@
{
"status": "Ready",
"boot_interface": {
"mode": "auto",
"ip_address": null
}
}
ubuntu@
Success.
Machine-readable output follows:
{"capabilities": ["networks-