{"action":"created","issue":{"url":"https://api.github.com/repos/RackHD/on-http/issues/211","repository_url":"https://api.github.com/repos/RackHD/on-http","labels_url":"https://api.github.com/repos/RackHD/on-http/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/RackHD/on-http/issues/211/comments","events_url":"https://api.github.com/repos/RackHD/on-http/issues/211/events","html_url":"https://github.com/RackHD/on-http/issues/211","id":146871769,"number":211,"title":"Missing explicit IPMI channel numbers in set_bmc_credentials.sh","user":{"login":"psalmia","id":18345758,"avatar_url":"https://avatars.githubusercontent.com/u/18345758?v=3","gravatar_id":"","url":"https://api.github.com/users/psalmia","html_url":"https://github.com/psalmia","followers_url":"https://api.github.com/users/psalmia/followers","following_url":"https://api.github.com/users/psalmia/following{/other_user}","gists_url":"https://api.github.com/users/psalmia/gists{/gist_id}","starred_url":"https://api.github.com/users/psalmia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psalmia/subscriptions","organizations_url":"https://api.github.com/users/psalmia/orgs","repos_url":"https://api.github.com/users/psalmia/repos","events_url":"https://api.github.com/users/psalmia/events{/privacy}","received_events_url":"https://api.github.com/users/psalmia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RackHD/on-http/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"uppalk1","id":14128586,"avatar_url":"https://avatars.githubusercontent.com/u/14128586?v=3","gravatar_id":"","url":"https://api.github.com/users/uppalk1","html_url":"https://github.com/uppalk1","followers_url":"https://api.github.com/users/uppalk1/followers","following_url":"https://api.github.com/users/uppalk1/following{/other_user}","gists_url":"https://api.github.com/users/uppalk1/gists{/gist_id}","starred_url":"https://api.github.com/users/uppalk1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uppalk1/subscriptions","organizations_url":"https://api.github.com/users/uppalk1/orgs","repos_url":"https://api.github.com/users/uppalk1/repos","events_url":"https://api.github.com/users/uppalk1/events{/privacy}","received_events_url":"https://api.github.com/users/uppalk1/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-04-08T09:17:09Z","updated_at":"2016-04-13T16:56:31Z","closed_at":null,"body":"Some ipmitool commands in set_bmc_credentials.sh do not specify a channel number so the \"currently used\" channel is utilized. This causes problems in our hardware:\r\n\r\n```\r\nroot@sut1-server2-pub:~# ipmitool user list\r\nGet User Access command failed (channel 14, user 1): Invalid data field in request\r\nroot@sut1-server2-pub:~#\r\n```\r\nThis causes the whole BMC credentials setting to fail.\r\n\r\nThe commands without a channel number are these:\r\n```\r\ncmdReturn=$(ipmitool user list)\r\n...\r\ncmdReturn1=$(ipmitool user summary)\r\n```\r\nThe rest of the code suggests that channel 1 is to be used (judging from for example \"ipmitool channel setaccess 1 $userNumber callin=on ipmi=on link=on privilege=4\"), so the fix could be as simple as adding the channel number 1 to the commands listed above (e.g. \"ipmitool user list 1\" and \"ipmitool user summary 1\"). In our hw, using channel 1 works as expected.\r\n\r\nAnother option would be to figure out which channel works with something like this:\r\n```\r\n...\r\nchannel=''\r\nfunction set_channel()\r\n{\r\n    for i in {1..15}; do\r\n        ipmitool user list $i &>/dev/null\r\n        status=$?\r\n        if [ \"$status\" -eq \"0\" ] ; then\r\n            channel=$i\r\n            break\r\n        fi\r\n    done\r\n}\r\nset_channel\r\necho \" Getting the user list from $channel\"\r\ncmdReturn=$(ipmitool user list $channel)\r\n...\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RackHD/on-http/issues/comments/209544543","html_url":"https://github.com/RackHD/on-http/issues/211#issuecomment-209544543","issue_url":"https://api.github.com/repos/RackHD/on-http/issues/211","id":209544543,"user":{"login":"amymullins","id":14179370,"avatar_url":"https://avatars.githubusercontent.com/u/14179370?v=3","gravatar_id":"","url":"https://api.github.com/users/amymullins","html_url":"https://github.com/amymullins","followers_url":"https://api.github.com/users/amymullins/followers","following_url":"https://api.github.com/users/amymullins/following{/other_user}","gists_url":"https://api.github.com/users/amymullins/gists{/gist_id}","starred_url":"https://api.github.com/users/amymullins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amymullins/subscriptions","organizations_url":"https://api.github.com/users/amymullins/orgs","repos_url":"https://api.github.com/users/amymullins/repos","events_url":"https://api.github.com/users/amymullins/events{/privacy}","received_events_url":"https://api.github.com/users/amymullins/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T16:56:31Z","updated_at":"2016-04-13T16:56:31Z","body":"For reference, the effort to cover resolution/update for this issue is being tracked in PT : https://www.pivotaltracker.com/projects/1492890/stories/117244649"}}