no way to see what user has a node allocated

Bug #1185160 reported by Scott Moser
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Julian Edwards
maas (Ubuntu)
Fix Released
High
Unassigned

Bug Description

$ maas-cli admin node read node-56745bf8-c7a3-11e2-a421-d4ae527ac129
{
    "status": 6,
    "macaddress_set": [
        {
            "resource_uri": "/MAAS/api/1.0/nodes/node-56745bf8-c7a3-11e2-a421-d4ae527ac129/macs/00:25:90:4c:f0:34/",
            "mac_address": "00:20:20:20:20:20"
        },
        {
            "resource_uri": "/MAAS/api/1.0/nodes/node-56745bf8-c7a3-11e2-a421-d4ae527ac129/macs/00:25:90:4c:f0:35/",
            "mac_address": "00:30:30:30:30:30:
        }
    ],
    "netboot": false,
    "hostname": "maas-1-08.mydomain.example.com",
    "power_type": "ipmi",
    "system_id": "node-56745bf8-c7a3-11e2-a421-d4ae527ac129",
    "architecture": "amd64/generic",
    "tag_names": [
        "use-fastpath-installer"
    ],
    "resource_uri": "/MAAS/api/1.0/nodes/node-56745bf8-c7a3-11e2-a421-d4ae527ac129/"
}

The above shows me that this node is in status '6' (which is "allocated"), but gives me no way to know *who* owns it. Just that it is someone. (I can tell its not me by doing list-allocated, but its not obvious here).

That would seem fine, and possibly a security decision, but I'm an admin. In the web-ui I can see 'allocated to bob'.

Also, as I'm admin, I'd really like it to show me IPMI data too. Its hardly useful to have to go to the web UI and click 3 times to see that.

Related bugs:
  bug 1233158: no way to get IPMI data in api Edit

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: maas-cli 1.3+bzr1461+dfsg-0ubuntu3
ProcVersionSignature: Ubuntu 3.9.0-2.7-generic 3.9.3
Uname: Linux 3.9.0-2-generic x86_64
ApportVersion: 2.10.2-0ubuntu1
Architecture: amd64
Date: Tue May 28 21:08:19 2013
MarkForUpload: True
PackageArchitecture: all
SourcePackage: maas
UpgradeStatus: Upgraded to saucy on 2013-05-22 (6 days ago)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
description: updated
tags: added: api cli
Changed in maas:
status: New → Triaged
importance: Undecided → High
tags: added: trivial
Changed in maas:
milestone: none → 13.10
Changed in maas (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Julian Edwards (julian-edwards)
Revision history for this message
Julian Edwards (julian-edwards) wrote :

We can return owner no problem, and the attached branch fixes that. However, conditionally returning sensitive details is made difficult by Piston which assumes you always return the same set of fields. We can work around it but it's quite a nasty hack so I'm leaving it out until there's a concrete requirement to get power details on the api response.

Changed in maas:
status: In Progress → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote :

I've opened bug 1233158 to track the lack of ipmi creds.

description: updated
Changed in maas (Ubuntu):
status: Confirmed → Fix Released
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.