Skip to content

Bug: new_user_id() fails to get users #35

@khaefeli

Description

@khaefeli

Board: Intel
OS: Debian 8.10
Packages:

  • ipmitool 1.8.14-4
  • libopenipmi0 2.0.16-1.4
  • openipmi 2.0.16-1.4

The function new_user_id() fails to create / assign an ID for the new users on my Intel board, because there is no user (probably default on other systems) Empty .

user = users.find {|user| user[:name] =~ /Empty/i } || users.find {|user| !user[:enabled] } 
   ipmitool user list 1
   ID  Name	     Callin  Link Auth	IPMI Msg   Channel Priv Limit
   1                    false   false      true       ADMINISTRATOR
   2   root             false   true       true       ADMINISTRATOR
   4   test2            false   false      true       ADMINISTRATOR

if I create the user Empty over the UI manually, it fails with another error:

Error: /Stage[main]/Profile::Ipmi/Bmcuser[root2]/ensure: change from 'absent' to 'present' failed: Execution of '/usr/bin/ipmitool user priv 3 4 3' returned 1: Set Privilege Level command failed (user 3): Invalid data field in request
(but that's maybe related a wrong resource on my side)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions