Updating a node fails with invalid OS and distro series
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Lee Trager |
Bug Description
maas 1.7.5+bzr3369-
I can't seem to edit and save changes to an existing node.
Via the API:
$ maas admin-atlas node update node-1440bcfa-
{"osystem": ["Select a valid choice. ubuntu is not one of the available choices."], "distro_series": ["Select a valid choice. ubuntu/trusty is not one of the available choices."]}
Node as viewed by the same API:
{
"owner": null,
{
},
{
},
{
},
{
}
],
"zone": {
"name": "long-running",
},
"hostname": "slushy-
"storage": 500074,
"memory": 16384,
"status": 4,
"routers": [
],
"netboot": true,
"osystem": "ubuntu",
},
Boot resources:
$ maas admin-atlas boot-resources read
[
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 62,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 63,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 64,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 65,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 61,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 60,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 66,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 59,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 58,
},
{
"name": "ubuntu/precise",
"kflavor": "generic",
"type": "Synced",
"id": 57,
},
{
"name": "ubuntu/trusty",
"kflavor": "generic",
"type": "Synced",
"id": 33,
},
{
"name": "ubuntu/trusty",
"kflavor": "generic",
"type": "Synced",
"id": 36,
},
{
"name": "ubuntu/trusty",
"kflavor": "generic",
"type": "Synced",
"id": 68,
},
{
"name": "ubuntu/trusty",
"kflavor": "generic",
"type": "Synced",
"id": 35,
},
{
"name": "ubuntu/trusty",
"kflavor": "generic",
"type": "Synced",
"id": 34,
},
{
"name": "ubuntu/trusty",
"kflavor": "generic",
"type": "Synced",
"id": 67,
},
{
"name": "ubuntu/utopic",
"kflavor": "generic",
"type": "Synced",
"id": 23,
},
{
"name": "ubuntu/utopic",
"kflavor": "generic",
"type": "Synced",
"id": 24,
}
]
Interestingly, of all the nodes I have, this is the only one that has the fields "osystem" and "distro_series" already filled in.
In the UI, the error is the same (screenshot attached). All other nodes are OK. Images are imported. Cluster is in sync.
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Update: the node update call worked after I started the node up.
$ maas admin-atlas node update node-1440bcfa- 1b7e-11e5- 846c-2c59e54ace 74 hostname=lapras
"10.96. 10.105" _set": [
"resource_ uri": "/MAAS/ api/1.0/ nodes/node- 1440bcfa- 1b7e-11e5- 846c-2c59e54ace 74/macs/ ec%3Ab1% 3Ad7%3A80% 3A00%3A09/ ",
"mac_ address" : "ec:b1:d7:80:00:09"
"resource_ uri": "/MAAS/ api/1.0/ nodes/node- 1440bcfa- 1b7e-11e5- 846c-2c59e54ace 74/macs/ ec%3Ab1% 3Ad7%3A80% 3A00%3A0a/ ",
"mac_ address" : "ec:b1:d7:80:00:0a"
"resource_ uri": "/MAAS/ api/1.0/ nodes/node- 1440bcfa- 1b7e-11e5- 846c-2c59e54ace 74/macs/ ec%3Ab1% 3Ad7%3A80% 3A00%3A0b/ ",
"mac_ address" : "ec:b1:d7:80:00:0b"
"resource_ uri": "/MAAS/ api/1.0/ nodes/node- 1440bcfa- 1b7e-11e5- 846c-2c59e54ace 74/macs/ ec%3Ab1% 3Ad7%3A80% 3A00%3A08/ ",
"mac_ address" : "ec:b1:d7:80:00:08"
"resource_ uri": "/MAAS/ api/1.0/ zones/long- running/ ",
"description" : "Long-running test cloud machines. Do not grab nodes from there please." scapestack" , 1b7e-11e5- 846c-2c59e54ace 74",
"bc:16: f5:12:56: c9",
"bc:16: f5:12:56: ca" series" : "trusty", api/1.0/ nodes/node- 1440bcfa- 1b7e-11e5- 846c-2c59e54ace 74/"
{
"ip_addresses": [
],
"cpu_count": 12,
"power_type": "ipmi",
"tag_names": [],
"owner": "admin",
"macaddress
{
},
{
},
{
},
{
}
],
"zone": {
"name": "long-running",
},
"hostname": "lapras.
"storage": 500074,
"system_id": "node-1440bcfa-
"power_state": "on",
"memory": 16384,
"disable_ipv4": false,
"status": 6,
"boot_type": "fastpath",
"routers": [
],
"netboot": true,
"osystem": "ubuntu",
"substatus": 9,
"architecture": "amd64/generic",
"distro_
"resource_uri": "/MAAS/
}