Pyghmi user access flags do not match ipmitool

Bug #1761028 reported by Bryan Seitz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyghmi
New
Undecided
Unassigned

Bug Description

IPMITOOL:

# ipmitool user list 2
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
2 username true true true ADMINISTRATOR

Pyghmi:

% ./ipmi_users -h iad2a-rm11-7d on ipmi_misc!
Channel: 2
+-----+---------+--------+-----------+----------+---------------+
| UID | Name | Callin | Link Auth | IPMI Msg | Channel Priv |
+-----+---------+--------+-----------+----------+---------------+
| 2 | username| False | True | True | administrator |
+-----+---------+--------+-----------+----------+---------------+
```

Code:
---
    print "Channel: {}".format(channel)
    table = prettytable.PrettyTable(["UID", "Name", "Callin", "Link Auth", "IPMI Msg", "Channel Priv"])
    ipmi_result = ipmicmd.get_users(channel=channel)
    for uid in ipmi_result:
        table.add_row([uid,
                       ipmi_result[uid]["name"],
                       ipmi_result[uid]["access"]["callback"],
                       ipmi_result[uid]["access"]["link_auth"],
                       ipmi_result[uid]["access"]["ipmi_msg"],
                       ipmi_result[uid]["access"]["privilege_level"]]
        )

    print table.get_string(sortby="UID")
---

Is this a bug or works as designed? The Pyghmi code seemed to jive with the SPEC, but the interpretation of callback is interesting and ipmitool seems to reverse it in their code.

Attached screenshot of IPMI spec.

Tags: access
Revision history for this message
Bryan Seitz (seitz-a) wrote :
description: updated
description: updated
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.