)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"e13e2b51d1a0bc77529c2ffaea221ff8ba01ed86","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Naohiro Tamura \u003cnaohirot@jp.fujitsu.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-01-30 13:17:39 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Follow-up iRMC power driver for soft reboot and soft power off"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is a follow-up patch of \"iRMC power driver for soft reboot and"},{"line_number":10,"context_line":"soft power off\" [1] to fix a nit of exception handling code and to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1a430d35_5b10b359","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":62},"updated":"2017-02-07 04:49:47.000000000","message":"I\u0027ll fix that within 50 chars.","commit_id":"9eb6d12a81b54d6c4f38ad4e57e98b029fcaceca"}],"ironic/drivers/modules/irmc/power.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"d1f68807e3071db9bc17d938854683e0fbfdbd93","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                           error\u003dirmc_exception)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    try:"},{"line_number":194,"context_line":"        if target_state in (states.SOFT_REBOOT, states.SOFT_POWER_OFF):"},{"line_number":195,"context_line":"            _wait_power_state(task, states.SOFT_POWER_OFF, timeout\u003dtimeout)"},{"line_number":196,"context_line":"        if target_state \u003d\u003d states.SOFT_REBOOT:"},{"line_number":197,"context_line":"            _wait_power_state(task, states.SOFT_REBOOT, timeout\u003dtimeout)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    except exception.SNMPFailure as snmp_exception:"},{"line_number":200,"context_line":"        LOG.error(_LE(\"iRMC failed to acknowledge the target state \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_82056a7b","line":197,"range":{"start_line":194,"start_character":8,"end_line":197,"end_character":72},"updated":"2017-01-27 10:55:33.000000000","message":"Oh, so this actually changes the reboot behaviour, aligning it with what was done for ipmitool power. It needs another reno I guess :(\n\nAlso, in case of reboot, does scci client in fact reports scci.POWER_SOFT_OFF and then scci.POWER_SOFT_CYCLE?","commit_id":"3f81cdd60a372ab0ab1292341a72056c81ac0c11"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4799ca82374f8444297452231477de6a349f110c","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                           error\u003dirmc_exception)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    try:"},{"line_number":194,"context_line":"        if target_state in (states.SOFT_REBOOT, states.SOFT_POWER_OFF):"},{"line_number":195,"context_line":"            _wait_power_state(task, states.SOFT_POWER_OFF, timeout\u003dtimeout)"},{"line_number":196,"context_line":"        if target_state \u003d\u003d states.SOFT_REBOOT:"},{"line_number":197,"context_line":"            _wait_power_state(task, states.SOFT_REBOOT, timeout\u003dtimeout)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    except exception.SNMPFailure as snmp_exception:"},{"line_number":200,"context_line":"        LOG.error(_LE(\"iRMC failed to acknowledge the target state \""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a430d35_d7bc4608","line":197,"range":{"start_line":194,"start_character":8,"end_line":197,"end_character":72},"in_reply_to":"1a430d35_937580fb","updated":"2017-02-08 05:15:35.000000000","message":"Vladyslav,\n\nThanks for the comment. I understood your concern, I think.\nBut the problem of larger polling interval you mentioned is not only\napplicable to this code, but also all snmp polling based application.\n\nIn this particular case, SNMP agent of iRMC continue returning\n\u0027unknown\u0027 during POST [1] process which reboot always goes through and\nmost of high spec server HW takes more than 180 seconds.\nWe tested that this code certainly works fine with the default\ninterval 10 secs, so please feel free to ask me if you have further\nconcern.\n\n [1] https://en.wikipedia.org/wiki/Power-on_self-test\n\nBest regards,\nNaohiro","commit_id":"3f81cdd60a372ab0ab1292341a72056c81ac0c11"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"bc3069bab31951870425681f9f83382e91b85d8f","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                           error\u003dirmc_exception)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    try:"},{"line_number":194,"context_line":"        if target_state in (states.SOFT_REBOOT, states.SOFT_POWER_OFF):"},{"line_number":195,"context_line":"            _wait_power_state(task, states.SOFT_POWER_OFF, timeout\u003dtimeout)"},{"line_number":196,"context_line":"        if target_state \u003d\u003d states.SOFT_REBOOT:"},{"line_number":197,"context_line":"            _wait_power_state(task, states.SOFT_REBOOT, timeout\u003dtimeout)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    except exception.SNMPFailure as snmp_exception:"},{"line_number":200,"context_line":"        LOG.error(_LE(\"iRMC failed to acknowledge the target state \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_a50d0d39","line":197,"range":{"start_line":194,"start_character":8,"end_line":197,"end_character":72},"in_reply_to":"3a461143_82056a7b","updated":"2017-01-27 12:06:40.000000000","message":"Vladyslav,\n\nNo, I didn\u0027t change the reboot behavior. The scci.POWER_SOFT_CYCLE is just one command, NO power off is involved. So the behavior is NOT same as ipmitool implementation.\n\nIn very rare case, SNMP agent continues to return \"os-running\" just after receiving scci.POWER_SOFT_CYCLE.\n\nThis change makes sure to wait for only \"os-running\" at the end of soft reboot, but not at the start of soft reboot.\n\nBest regards,\n\nNaohiro","commit_id":"3f81cdd60a372ab0ab1292341a72056c81ac0c11"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"2037f44a4b73d696a59250502154da7deddeed33","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                           error\u003dirmc_exception)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    try:"},{"line_number":194,"context_line":"        if target_state in (states.SOFT_REBOOT, states.SOFT_POWER_OFF):"},{"line_number":195,"context_line":"            _wait_power_state(task, states.SOFT_POWER_OFF, timeout\u003dtimeout)"},{"line_number":196,"context_line":"        if target_state \u003d\u003d states.SOFT_REBOOT:"},{"line_number":197,"context_line":"            _wait_power_state(task, states.SOFT_REBOOT, timeout\u003dtimeout)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    except exception.SNMPFailure as snmp_exception:"},{"line_number":200,"context_line":"        LOG.error(_LE(\"iRMC failed to acknowledge the target state \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_982da800","line":197,"range":{"start_line":194,"start_character":8,"end_line":197,"end_character":72},"in_reply_to":"3a461143_88d2e8d0","updated":"2017-01-30 04:18:49.000000000","message":"I\u0027ll add a comment.","commit_id":"3f81cdd60a372ab0ab1292341a72056c81ac0c11"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"383ea4c1d669bacf76bd49753c58a419fb05184a","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                           error\u003dirmc_exception)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    try:"},{"line_number":194,"context_line":"        if target_state in (states.SOFT_REBOOT, states.SOFT_POWER_OFF):"},{"line_number":195,"context_line":"            _wait_power_state(task, states.SOFT_POWER_OFF, timeout\u003dtimeout)"},{"line_number":196,"context_line":"        if target_state \u003d\u003d states.SOFT_REBOOT:"},{"line_number":197,"context_line":"            _wait_power_state(task, states.SOFT_REBOOT, timeout\u003dtimeout)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    except exception.SNMPFailure as snmp_exception:"},{"line_number":200,"context_line":"        LOG.error(_LE(\"iRMC failed to acknowledge the target state \""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a430d35_937580fb","line":197,"range":{"start_line":194,"start_character":8,"end_line":197,"end_character":72},"in_reply_to":"3a461143_982da800","updated":"2017-02-07 19:23:58.000000000","message":"The problem is, you check the status with polling. What happens if the polling interval is large, and you\u0027ll just skip over the SOFT_POWER_OFF state in case of soft reboot? Like, if the poll interval is 180 seconds and the hardware will go through all the states in 120 seconds.","commit_id":"3f81cdd60a372ab0ab1292341a72056c81ac0c11"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"903aa666fc61e0fff134a90427794840649ea12f","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                           error\u003dirmc_exception)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    try:"},{"line_number":194,"context_line":"        if target_state in (states.SOFT_REBOOT, states.SOFT_POWER_OFF):"},{"line_number":195,"context_line":"            _wait_power_state(task, states.SOFT_POWER_OFF, timeout\u003dtimeout)"},{"line_number":196,"context_line":"        if target_state \u003d\u003d states.SOFT_REBOOT:"},{"line_number":197,"context_line":"            _wait_power_state(task, states.SOFT_REBOOT, timeout\u003dtimeout)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    except exception.SNMPFailure as snmp_exception:"},{"line_number":200,"context_line":"        LOG.error(_LE(\"iRMC failed to acknowledge the target state \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_a82a442a","line":197,"range":{"start_line":194,"start_character":8,"end_line":197,"end_character":72},"in_reply_to":"3a461143_a50d0d39","updated":"2017-01-27 12:20:33.000000000","message":"We can see that POWER_SOFT_CYCLE is one command, but not POWER_SOFT_OFF + POWER_ON\n\nhttps://github.com/openstack/python-scciclient/blob/master/scciclient/irmc/scci.py#L70-L71\n\n 70: 0x0205  RequestShutdownAndOff    Graceful Shutdown, requires running Agent\n 71: 0x0206  RequestShutdownAndReset  Graceful Reboot, requires running Agent\n\nhttps://github.com/openstack/python-scciclient/blob/master/scciclient/irmc/scci.py#L96-L97\n\n 96: POWER_SOFT_OFF \u003d _POWER_CMD % \"RequestShutdownAndOff\"\n 97: POWER_SOFT_CYCLE \u003d _POWER_CMD % \"RequestShutdownAndReset\"","commit_id":"3f81cdd60a372ab0ab1292341a72056c81ac0c11"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b6ce1d2a2a7b3bd819dbb087634bccf45e47e16","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                                           error\u003dirmc_exception)"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    try:"},{"line_number":194,"context_line":"        if target_state in (states.SOFT_REBOOT, states.SOFT_POWER_OFF):"},{"line_number":195,"context_line":"            _wait_power_state(task, states.SOFT_POWER_OFF, timeout\u003dtimeout)"},{"line_number":196,"context_line":"        if target_state \u003d\u003d states.SOFT_REBOOT:"},{"line_number":197,"context_line":"            _wait_power_state(task, states.SOFT_REBOOT, timeout\u003dtimeout)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    except exception.SNMPFailure as snmp_exception:"},{"line_number":200,"context_line":"        LOG.error(_LE(\"iRMC failed to acknowledge the target state \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_88d2e8d0","line":197,"range":{"start_line":194,"start_character":8,"end_line":197,"end_character":72},"in_reply_to":"3a461143_a82a442a","updated":"2017-01-27 12:33:04.000000000","message":"Hmm, but then, if you request SOFT_REBOOT, is the node going to report SOFT_POWER_OFF first on L195? Would be great to see a comment about why this is done.","commit_id":"3f81cdd60a372ab0ab1292341a72056c81ac0c11"}]}
