juju/MAAS Tag constraints do not work in Precise

Bug #1214172 reported by Andres Rodriguez
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Won't Fix
Critical
Unassigned

Bug Description

So I created a maas tag constraint, however, when deploying a node, the tagged nodes are not being selected. I created the tag as follows:

ubuntu@cluster2:/var/log/maas$ maas-cli admin tags new name='ram512' comment='Nodes with 512MB RAM' definition='//node[@id="memory"]/size > 524288000'

ubuntu@cluster2:/var/log/maas$ maas-cli admin tags list
[
    {
        "comment": "Nodes with 512MB RAM",
        "definition": "//node[@id=\"memory\"]/size > 524288000",
        "name": "ram512",
        "resource_uri": "/MAAS/api/1.0/tags/ram512/"
    }
]
ubuntu@cluster2:/var/log/maas$ maas-cli admin tag nodes ram512
[
    {
        "status": 4,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-6a13c942-090b-11e3-93bb-525400354c95/macs/00:16:3e:3e:aa:01/",
                "mac_address": "00:16:3e:3e:aa:01"
            }
        ],
        "netboot": true,
        "hostname": "node01",
        "power_type": "",
        "system_id": "node-6a13c942-090b-11e3-93bb-525400354c95",
        "architecture": "amd64/generic",
        "tag_names": [
            "ram512"
        ],
        "resource_uri": "/MAAS/api/1.0/nodes/node-6a13c942-090b-11e3-93bb-525400354c95/"
    },
    {
        "status": 4,
        "macaddress_set": [
            {
                "resource_uri": "/MAAS/api/1.0/nodes/node-661f1cc4-090b-11e3-b365-525400354c95/macs/00:16:3e:3e:aa:02/",
                "mac_address": "00:16:3e:3e:aa:02"
            }
        ],
        "netboot": true,
        "hostname": "node02",
        "power_type": "",
        "system_id": "node-661f1cc4-090b-11e3-b365-525400354c95",
        "architecture": "amd64/generic",
        "tag_names": [
            "ram512"
        ],
        "resource_uri": "/MAAS/api/1.0/nodes/node-661f1cc4-090b-11e3-b365-525400354c95/"
    }
]

Deployed as follows:

juju deploy mysql --constraints "maas-tags=ram512"

Changed in maas (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

what's the output of $ apt-cache policy juju on the bootstrap node. i assume this is precise with juju-origin:ppa ?

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Correct!

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

the behavior of juju-origin: ppa varies by client version and installation mechanism (a questionable choice that's embedded in the packaging), could confirm the version of juju on the bootstrap server per previous.

Revision history for this message
Rajiv Shah (rajivshah3) wrote :

Hi Andres,
Do you mind running sudo apt-get install python-launchpadlib and then running apport-collect 1214172 ? This will provide us with some logs to help the developers solve this bug.

Thanks,
Rajiv

Anders (eddiedog988)
Changed in maas (Ubuntu):
status: New → Incomplete
status: Incomplete → Confirmed
Changed in maas (Ubuntu):
status: Confirmed → Won't Fix
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.