no way to get power parameters in api

Bug #1233158 reported by Scott Moser
38
This bug affects 5 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Jason Hobbs

Bug Description

I raised this issue in bug 1185160. Clearly I should have raised 2 bugs, for 2 different issues (owner and ipmi data). I wish I had.

Maas knows the IPMI information, I'm admin, I need to see that IMPI information so I can debug or investigate something. Going to the web UI is simply not acceptable in my opinion.

I'd like to be able to program/script something that does:
 ipmi-console node-287cbc5a-0b40-11e3-8cfe-d4ae527ac129

That would drop me into a shell from using ipmi-tool. Ie:

  ipmitool -H 192.168.1.201 -U maas -P PASSWORD shell

Tags: api power

Related branches

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I didn't fix this in your original bug because it's not easy to fix, sadly. IIRC there was no easy way to get hold of the requesting user in the api call to determine whether to return the extra data.

Changed in maas:
status: Confirmed → Triaged
tags: added: api power
summary: - no way to get IPMI data in api
+ no way to get power parameters in api
Revision history for this message
Raphaël Badin (rvb) wrote :

> IIRC there was no easy way to get hold of the requesting user in the api call to determine whether to return the extra data.

What do you mean by that exactly?

I think this is mostly a design decision: either we accept to return different objects depending on who the requester is (which is something we avoided this far, RESTful and all that). Or — my preferred choice — we add an admin-only method to get the power-parameters.

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 1233158] Re: no way to get power parameters in api

I guess it's more of a philosophical decision then. I'm ok with another
admin-only method if you guys all are too.

Changed in maas:
assignee: nobody → Jason Hobbs (jason-hobbs)
status: Triaged → Fix Committed
milestone: none → 1.6.1
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.