no way to see what user has a node allocated
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-
{
"status": 6,
"macaddress
{
},
{
}
],
"netboot": false,
"hostname": "maas-1-
"power_type": "ipmi",
"system_id": "node-56745bf8-
"architecture": "amd64/generic",
"tag_names": [
],
"resource_uri": "/MAAS/
}
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+
ProcVersionSign
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
PackageArchitec
SourcePackage: maas
UpgradeStatus: Upgraded to saucy on 2013-05-22 (6 days ago)
Related branches
- Jeroen T. Vermeulen (community): Approve
-
Diff: 219 lines (+42/-47)6 files modifiedsrc/maasserver/api.py (+9/-0)
src/maasserver/models/__init__.py (+2/-1)
src/maasserver/tests/test_api.py (+26/-31)
src/maasserver/tests/test_auth.py (+3/-3)
src/maasserver/tests/test_node.py (+0/-10)
src/maasserver/tests/test_views_nodes.py (+2/-2)
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) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in maas: | |
status: | Fix Committed → Fix Released |
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.