{"action":"opened","issue":{"url":"https://api.github.com/repos/openbmc/openbmc-test-automation/issues/95","repository_url":"https://api.github.com/repos/openbmc/openbmc-test-automation","labels_url":"https://api.github.com/repos/openbmc/openbmc-test-automation/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/openbmc/openbmc-test-automation/issues/95/comments","events_url":"https://api.github.com/repos/openbmc/openbmc-test-automation/issues/95/events","html_url":"https://github.com/openbmc/openbmc-test-automation/issues/95","id":174719872,"number":95,"title":"[Automation]  PowerOff needs to key off BMC_READY and HOST_POWERED_OFF","user":{"login":"gkeishin","id":19584499,"avatar_url":"https://avatars.githubusercontent.com/u/19584499?v=3","gravatar_id":"","url":"https://api.github.com/users/gkeishin","html_url":"https://github.com/gkeishin","followers_url":"https://api.github.com/users/gkeishin/followers","following_url":"https://api.github.com/users/gkeishin/following{/other_user}","gists_url":"https://api.github.com/users/gkeishin/gists{/gist_id}","starred_url":"https://api.github.com/users/gkeishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkeishin/subscriptions","organizations_url":"https://api.github.com/users/gkeishin/orgs","repos_url":"https://api.github.com/users/gkeishin/repos","events_url":"https://api.github.com/users/gkeishin/events{/privacy}","received_events_url":"https://api.github.com/users/gkeishin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-02T09:39:42Z","updated_at":"2016-09-02T09:39:42Z","closed_at":null,"body":"Here is a little experiment..\r\n\r\nReboot the BMC to mimic the post update or any reset use case.. \r\n\r\nroot@barreleye:~# obmcutil state\r\n = BMC_READY\r\nroot@barreleye:~#\r\n\r\nPost reboot the system state comes to BMC_READY and not to HOST_POWERED_OFF\r\n\r\nOnce we try powering on and then poweroff the base state would be changed as\r\n\r\nroot@barreleye:~# obmcutil poweron\r\n = None\r\nroot@barreleye:~# obmcutil state\r\n = HOST_BOOTING\r\nroot@barreleye:~# obmcutil state\r\n = HOST_BOOTED\r\nroot@barreleye:~# obmcutil poweroff\r\n = None\r\nroot@barreleye:~# obmcutil state\r\n = HOST_POWERED_OFF\r\nroot@barreleye:~#\r\n\r\n\r\nSo the Power on CI using the utils/boot/ code need to be updated as it would fail if the system is in such state"}}
{"actor":{"display_login":"gkeishin"}}