{"action":"created","issue":{"url":"https://api.github.com/repos/open-power/op-test-framework/issues/7","labels_url":"https://api.github.com/repos/open-power/op-test-framework/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/open-power/op-test-framework/issues/7/comments","events_url":"https://api.github.com/repos/open-power/op-test-framework/issues/7/events","html_url":"https://github.com/open-power/op-test-framework/issues/7","id":115210754,"number":7,"title":"Build verification tests fails on Open Power Firestone Hardware","user":{"login":"PavamanSubramaniyam","id":13676676,"avatar_url":"https://avatars.githubusercontent.com/u/13676676?v=3","gravatar_id":"","url":"https://api.github.com/users/PavamanSubramaniyam","html_url":"https://github.com/PavamanSubramaniyam","followers_url":"https://api.github.com/users/PavamanSubramaniyam/followers","following_url":"https://api.github.com/users/PavamanSubramaniyam/following{/other_user}","gists_url":"https://api.github.com/users/PavamanSubramaniyam/gists{/gist_id}","starred_url":"https://api.github.com/users/PavamanSubramaniyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavamanSubramaniyam/subscriptions","organizations_url":"https://api.github.com/users/PavamanSubramaniyam/orgs","repos_url":"https://api.github.com/users/PavamanSubramaniyam/repos","events_url":"https://api.github.com/users/PavamanSubramaniyam/events{/privacy}","received_events_url":"https://api.github.com/users/PavamanSubramaniyam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T05:07:34Z","updated_at":"2015-11-23T05:42:03Z","closed_at":null,"body":"I am executing the BVT tests targeted for a Open Power Firestone Hardware as below.\r\n\r\n[root@lop827 bvt]# ./run-op-bvt --bmcip 9.40.193.47 --bmcuser sysadmin --bmcpwd superuser --usernameipmi ADMIN --passwordipmi admin --cfgfiledir ../ci/source/ --imagedir /tmp/ --imagename firestone_update.pnor --fverbose /tmp/new_firestone ./op-ci-basic-bvt.xml\r\n\r\nipmitool -H 9.40.193.47 -I lanplus -U ADMIN -P admin sdr elist |grep 'OCC Active'\r\nipmitool -H 9.40.193.47 -I lanplus -U ADMIN -P admin sdr elist |grep 'OCC Active'\r\nipmitool -H 9.40.193.47 -I lanplus -U ADMIN -P admin sdr elist |grep 'OCC Active'\r\nipmitool -H 9.40.193.47 -I lanplus -U ADMIN -P admin sdr elist |grep 'OCC Active'\r\nIPL timeout\r\n00:26:29 :: op-ci-basic: ERROR: command failed with exit code 256\r\n00:26:29 :: op-ci-basic: Finished Test:\r\n00:26:29 :: op-ci-basic: Starting Test:\r\n00:26:29 :: op-ci-basic: Running command: op-ci-bmc-run  \"op_ci_bmc.ipmi_sel_check()\"\r\nipmitool -H 9.40.193.47 -I lanplus -U ADMIN -P admin sel elist\r\n00:26:45 :: op-ci-basic: OK: command finished successfully\r\n00:26:45 :: op-ci-basic: Finished Test:\r\n00:26:45 :: op-ci-basic: ERROR: Finished tests on 2015-November-04 with one or more testcase errors.\r\n00:26:45 :: ERROR: \"OP CI Basic BVT\" (op-ci-basic.xml) finished with one or more errors\r\n00:26:45 :: ERROR: Finished BVT tests on 2015-November-04 with 1 testcase failures.\r\nAll logs and FFDC saved under /tmp/root/bvt/2015-11-04-89279\r\n\r\nAs can be seen the tests fail because of the failure of the command:\r\nipmitool -H 9.40.193.47 -I lanplus -U ADMIN -P admin sdr elist |grep 'OCC Active'\r\n\r\nAs per my analysis, I have found out that the above command is failing because the \r\ngrep 'OCC Active' is failing to fetch the correct output from the sdr elist of the Firestone Hardware.\r\n\r\nHowever, on a Habanero Hardware the output looks as follows:\r\n[root@lop826 src]# ./ipmitool -H 9.47.71.252 -I lanplus -U ADMIN -P admin sdr elist |grep 'OCC Active'\r\nOCC Active       | 08h | ok  | 210.0 | Device Enabled\r\n\r\nThere are 2 OCC chips on Firestone and 1 OCC chip on Habanero.\r\nIn the sdr elist entries there will be OCC 1 Active and OCC 2 Active mentioned for Firestones.\r\n\r\nSo, the correct fix for the above command to work for both Habanero and Firestone Hardware's are:\r\n=======================================================================\r\n[root@lop826 src]# ./ipmitool -H 9.40.193.53 -I lanplus -U ADMIN -P admin sdr elist |grep '^OCC'\r\nOCC 1 Active     | 08h | ok  | 210.0 | Device Enabled\r\nOCC 2 Active     | 09h | ok  | 210.1 | Device Enabled\r\n[root@lop826 src]# ./ipmitool -H 9.47.71.252 -I lanplus -U ADMIN -P admin sdr elist |grep '^OCC'\r\nOCC Active       | 08h | ok  | 210.0 | Device Enabled\r\n\r\nPlease suggest me if I can submit a patch with the changes mentioned above to the source file op-test-framework/common/OpTestIPMI.py which has the code mentioned in the function ipl_wait_for_working_state().\r\n\r\nOr else should we enable the commented line\r\n    #    cmd = 'sdr elist |grep \\'Host Status\\''\r\ninstead of the existing line\r\n        cmd = 'sdr elist |grep \\'OCC Active\\''\r\n\r\nEither way, we need to submit a patch and fix the same in-order to make the Build Verification Tests work on Firestone Hardware."},"comment":{"url":"https://api.github.com/repos/open-power/op-test-framework/issues/comments/158857407","html_url":"https://github.com/open-power/op-test-framework/issues/7#issuecomment-158857407","issue_url":"https://api.github.com/repos/open-power/op-test-framework/issues/7","id":158857407,"user":{"login":"PavamanSubramaniyam","id":13676676,"avatar_url":"https://avatars.githubusercontent.com/u/13676676?v=3","gravatar_id":"","url":"https://api.github.com/users/PavamanSubramaniyam","html_url":"https://github.com/PavamanSubramaniyam","followers_url":"https://api.github.com/users/PavamanSubramaniyam/followers","following_url":"https://api.github.com/users/PavamanSubramaniyam/following{/other_user}","gists_url":"https://api.github.com/users/PavamanSubramaniyam/gists{/gist_id}","starred_url":"https://api.github.com/users/PavamanSubramaniyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavamanSubramaniyam/subscriptions","organizations_url":"https://api.github.com/users/PavamanSubramaniyam/orgs","repos_url":"https://api.github.com/users/PavamanSubramaniyam/repos","events_url":"https://api.github.com/users/PavamanSubramaniyam/events{/privacy}","received_events_url":"https://api.github.com/users/PavamanSubramaniyam/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T05:42:03Z","updated_at":"2015-11-23T05:42:03Z","body":"This issue can be closed since we have merged the pull request with the uncommenting of the original source code lines in the common/OpTestIPMI.py for Host Status sensor checking."}}