[Bug 1214172] [NEW] juju/MAAS Tag constraints do not work in Precise
Andres Rodriguez
andreserl at ubuntu-pe.org
Mon Aug 19 22:41:49 UTC 2013
Public bug reported:
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 at cluster2:/var/log/maas$ maas-cli admin tags new name='ram512'
comment='Nodes with 512MB RAM' definition='//node[@id="memory"]/size >
524288000'
ubuntu at 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 at 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"
** Affects: maas (Ubuntu)
Importance: Critical
Status: New
** Changed in: maas (Ubuntu)
Importance: Undecided => Critical
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1214172
Title:
juju/MAAS Tag constraints do not work in Precise
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1214172/+subscriptions
More information about the Ubuntu-server-bugs
mailing list