From: "Tony Lee (李文富)" <Tony.Lee@quantatw.com>
To: Rahul Maheshwari <rahulmaheshwari01@gmail.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: RE: Verify Privilege For Different Channels in openbmc-test-automation
Date: Mon, 20 Jan 2020 02:41:02 +0000 [thread overview]
Message-ID: <d5f1c07fa629476798196f9490574c7c@quantatw.com> (raw)
In-Reply-To: <CAAMkS12VRBFU77D50z0z4MHDeSG6pdOwU2MeBPO0K7TG6arTvA@mail.gmail.com>
Yes, It also is working.
I think this lan print command doesn't represent running IPMI command with channel 1. It get channel 1 info with the LAN channel.
Thanks for your kind help. I'll check with Richard regarding this problem.
Regards,
Tony
From: Rahul Maheshwari <rahulmaheshwari01@gmail.com>
Sent: Friday, January 17, 2020 7:02 PM
To: Tony Lee (李文富) <Tony.Lee@quantatw.com>
Cc: openbmc@lists.ozlabs.org
Subject: Re: Verify Privilege For Different Channels in openbmc-test-automation
That seem to be an issue. Can you also check output for below lan print command? If that also is working, check with Richard regarding this problem.
ipmitool -I lanplus -C 3 -p 623 -U DD -P 0penBmc1 -H x.x.x.x lan print 1
On Fri, Jan 17, 2020 at 11:09 AM Tony Lee (李文富) <mailto:Tony.Lee@quantatw.com> wrote:
Got it. Another question, at the last two "Verify" steps.
Can the user run out-of-band IPMI commands with the specified channel?
(e.g ipmitool -I lanplus -C 3 -p 623 -U YmRBwDUS -P 0penBmc1 -H x.x.x.x -L Administrator sel info 1)
Is there a description or SPEC about it? It doesn't work on my system.
For example:
I created a user name DD and gave it different privilege for different channels.
ipmitool user list 1
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
1 root false true true ADMINISTRATOR
...
...
6 DD true false false NO ACCESS
ipmitool user list 2
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
1 root false true true ADMINISTRATOR
...
...
6 DD true false true ADMINISTRATOR
As expected, it should not work if user run out-of-band IPMI commands with the channel 1.
Howerver it still work.
$ipmitool -I lanplus -C 3 -p 623 -U DD -P 0penBmc1 -H x.x.x.x sel info 1
SEL Information
Version : 1.5 (v1.5, v2 compliant)
Entries : 6
Free Space : 0 bytes
Percent Used : 100%
Last Add Time : 01/06/1970 00:13:18
Last Del Time : Not Available
Overflow : false
Supported Cmds : 'Reserve'
Thanks
Best Regards,
Tony
From: Rahul Maheshwari <mailto:rahulmaheshwari01@gmail.com>
Sent: Thursday, January 16, 2020 7:15 PM
To: Tony Lee (李文富) <mailto:Tony.Lee@quantatw.com>
Subject: Re: Verify Privilege For Different Channels in openbmc-test-automation
Hi Tony
These test cases are expected to fail if your system's BMC has only one LAN channel support. In case of your BMC has 2 LAN channel support, then these tests should pass.
Thanks
Rahul
On Tue, Jan 14, 2020 at 2:52 PM Tony Lee (李文富) <mailto:mailto:Tony.Lee@quantatw.com> wrote:
Hi Rahul,
I meet with difficulties for the cases "Verify Administrator And No Access Privilege For Different Channels" and
"Verify Operator And User Privilege For Different Channels" in test_ipmi_user.robot.
Refer to https://github.com/openbmc/openbmc-test-automation/issues/1523
According to Richard's comment: "Channel command privilege are working as per the channel (but at this point of time this differentiation can't be made due to architecture limitations, but ok to write test case and mark it as failed, rather than skipping the same)"
Are these two cases be expected to fail?
Thanks
Best Regards,
Tony
next prev parent reply other threads:[~2020-01-20 2:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-14 9:22 Verify Privilege For Different Channels in openbmc-test-automation Tony Lee (李文富)
[not found] ` <CAAMkS132O2MB4myFcwPo0NQNf=hzvLYXgqoLXOxCcJe6mqHEMQ@mail.gmail.com>
2020-01-17 5:39 ` Tony Lee (李文富)
2020-01-17 11:01 ` Rahul Maheshwari
2020-01-20 2:41 ` Tony Lee (李文富) [this message]
2020-01-20 15:18 ` Thomaiyar, Richard Marian
2020-01-21 3:09 ` Tony Lee (李文富)
2020-01-21 4:59 ` Thomaiyar, Richard Marian
2020-01-21 5:21 ` Rahul Maheshwari
2020-01-21 8:46 ` Tony Lee (李文富)
2020-01-21 14:19 ` Rahul Maheshwari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d5f1c07fa629476798196f9490574c7c@quantatw.com \
--to=tony.lee@quantatw.com \
--cc=openbmc@lists.ozlabs.org \
--cc=rahulmaheshwari01@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.