Updating a node fails with invalid OS and distro series

Bug #1469822 reported by Andreas Hasenack
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Lee Trager

Bug Description

maas 1.7.5+bzr3369-0ubuntu1~trusty1

I can't seem to edit and save changes to an existing node.

Via the API:
$ maas admin-atlas node update node-1440bcfa-1b7e-11e5-846c-2c59e54ace74 hostname=lapras
{"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:
    {
        "ip_addresses": [],
        "cpu_count": 12,
        "power_type": "ipmi",
        "tag_names": [],
        "owner": null,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-1440bcfa-1b7e-11e5-846c-2c59e54ace74/macs/ec%3Ab1%3Ad7%3A80%3A00%3A08/",
                "mac_address": "ec:b1:d7:80:00:08"
            },
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-1440bcfa-1b7e-11e5-846c-2c59e54ace74/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-2c59e54ace74/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-2c59e54ace74/macs/ec%3Ab1%3Ad7%3A80%3A00%3A09/",
                "mac_address": "ec:b1:d7:80:00:09"
            }
        ],
        "zone": {
            "resource_uri": "/MAAS/api/1.0/zones/long-running/",
            "name": "long-running",
            "description": "Long-running test cloud machines. Do not grab nodes from there please."
        },
        "hostname": "slushy-curtain.scapestack",
        "storage": 500074,
        "system_id": "node-1440bcfa-1b7e-11e5-846c-2c59e54ace74",
        "power_state": "off",
        "memory": 16384,
        "disable_ipv4": false,
        "status": 4,
        "boot_type": "fastpath",
        "routers": [
            "bc:16:f5:12:56:c9",
            "bc:16:f5:12:56:ca"
        ],
        "netboot": true,
        "osystem": "ubuntu",
        "substatus": 4,
        "architecture": "amd64/generic",
        "distro_series": "trusty",
        "resource_uri": "/MAAS/api/1.0/nodes/node-1440bcfa-1b7e-11e5-846c-2c59e54ace74/"
    },

Boot resources:
$ maas admin-atlas boot-resources read
[
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "amd64/hwe-p",
        "subarches": "generic,hwe-p",
        "type": "Synced",
        "id": 62,
        "resource_uri": "/MAAS/api/1.0/boot-resources/62/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "amd64/hwe-q",
        "subarches": "generic,hwe-p,hwe-q",
        "type": "Synced",
        "id": 63,
        "resource_uri": "/MAAS/api/1.0/boot-resources/63/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "amd64/hwe-r",
        "subarches": "generic,hwe-p,hwe-q,hwe-r",
        "type": "Synced",
        "id": 64,
        "resource_uri": "/MAAS/api/1.0/boot-resources/64/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "amd64/hwe-s",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s",
        "type": "Synced",
        "id": 65,
        "resource_uri": "/MAAS/api/1.0/boot-resources/65/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "amd64/hwe-t",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t",
        "type": "Synced",
        "id": 61,
        "resource_uri": "/MAAS/api/1.0/boot-resources/61/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "i386/hwe-p",
        "subarches": "generic,hwe-p",
        "type": "Synced",
        "id": 60,
        "resource_uri": "/MAAS/api/1.0/boot-resources/60/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "i386/hwe-q",
        "subarches": "generic,hwe-p,hwe-q",
        "type": "Synced",
        "id": 66,
        "resource_uri": "/MAAS/api/1.0/boot-resources/66/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "i386/hwe-r",
        "subarches": "generic,hwe-p,hwe-q,hwe-r",
        "type": "Synced",
        "id": 59,
        "resource_uri": "/MAAS/api/1.0/boot-resources/59/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "i386/hwe-s",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s",
        "type": "Synced",
        "id": 58,
        "resource_uri": "/MAAS/api/1.0/boot-resources/58/"
    },
    {
        "name": "ubuntu/precise",
        "kflavor": "generic",
        "architecture": "i386/hwe-t",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t",
        "type": "Synced",
        "id": 57,
        "resource_uri": "/MAAS/api/1.0/boot-resources/57/"
    },
    {
        "name": "ubuntu/trusty",
        "kflavor": "generic",
        "architecture": "amd64/hwe-t",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t",
        "type": "Synced",
        "id": 33,
        "resource_uri": "/MAAS/api/1.0/boot-resources/33/"
    },
    {
        "name": "ubuntu/trusty",
        "kflavor": "generic",
        "architecture": "amd64/hwe-u",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u",
        "type": "Synced",
        "id": 36,
        "resource_uri": "/MAAS/api/1.0/boot-resources/36/"
    },
    {
        "name": "ubuntu/trusty",
        "kflavor": "generic",
        "architecture": "amd64/hwe-v",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v",
        "type": "Synced",
        "id": 68,
        "resource_uri": "/MAAS/api/1.0/boot-resources/68/"
    },
    {
        "name": "ubuntu/trusty",
        "kflavor": "generic",
        "architecture": "i386/hwe-t",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t",
        "type": "Synced",
        "id": 35,
        "resource_uri": "/MAAS/api/1.0/boot-resources/35/"
    },
    {
        "name": "ubuntu/trusty",
        "kflavor": "generic",
        "architecture": "i386/hwe-u",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u",
        "type": "Synced",
        "id": 34,
        "resource_uri": "/MAAS/api/1.0/boot-resources/34/"
    },
    {
        "name": "ubuntu/trusty",
        "kflavor": "generic",
        "architecture": "i386/hwe-v",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v",
        "type": "Synced",
        "id": 67,
        "resource_uri": "/MAAS/api/1.0/boot-resources/67/"
    },
    {
        "name": "ubuntu/utopic",
        "kflavor": "generic",
        "architecture": "amd64/hwe-u",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u",
        "type": "Synced",
        "id": 23,
        "resource_uri": "/MAAS/api/1.0/boot-resources/23/"
    },
    {
        "name": "ubuntu/utopic",
        "kflavor": "generic",
        "architecture": "i386/hwe-u",
        "subarches": "generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u",
        "type": "Synced",
        "id": 24,
        "resource_uri": "/MAAS/api/1.0/boot-resources/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.

Tags: landscape
Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Update: the node update call worked after I started the node up.

$ maas admin-atlas node update node-1440bcfa-1b7e-11e5-846c-2c59e54ace74 hostname=lapras
{
    "ip_addresses": [
        "10.96.10.105"
    ],
    "cpu_count": 12,
    "power_type": "ipmi",
    "tag_names": [],
    "owner": "admin",
    "macaddress_set": [
        {
            "resource_uri": "/MAAS/api/1.0/nodes/node-1440bcfa-1b7e-11e5-846c-2c59e54ace74/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-2c59e54ace74/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-2c59e54ace74/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-2c59e54ace74/macs/ec%3Ab1%3Ad7%3A80%3A00%3A08/",
            "mac_address": "ec:b1:d7:80:00:08"
        }
    ],
    "zone": {
        "resource_uri": "/MAAS/api/1.0/zones/long-running/",
        "name": "long-running",
        "description": "Long-running test cloud machines. Do not grab nodes from there please."
    },
    "hostname": "lapras.scapestack",
    "storage": 500074,
    "system_id": "node-1440bcfa-1b7e-11e5-846c-2c59e54ace74",
    "power_state": "on",
    "memory": 16384,
    "disable_ipv4": false,
    "status": 6,
    "boot_type": "fastpath",
    "routers": [
        "bc:16:f5:12:56:c9",
        "bc:16:f5:12:56:ca"
    ],
    "netboot": true,
    "osystem": "ubuntu",
    "substatus": 9,
    "architecture": "amd64/generic",
    "distro_series": "trusty",
    "resource_uri": "/MAAS/api/1.0/nodes/node-1440bcfa-1b7e-11e5-846c-2c59e54ace74/"
}

Revision history for this message
Blake Rouse (blake-rouse) wrote :

This is also occurring in the MAAS CI.

Changed in maas:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Lee Trager (ltrager)
milestone: none → 1.9.0
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
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.