)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"88a266ec93bbe9d131467dd972ac8b1c7410c922","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Note: Image validation is not handled with this change. Once"},{"line_number":14,"context_line":"ironic support for whole-disk images is added, additional work"},{"line_number":15,"context_line":"may be needed around preserving ephemeral partitions."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I933658d139dc16ef1a65378b0084b4baf6180651"},{"line_number":18,"context_line":"Closes-Bug: #1307754"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"facab960_28a1cfa9","line":15,"updated":"2014-04-28 21:30:42.000000000","message":"whole-disk is incompatible with ephemeral partitions in baremetal setups AFAICT.","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"96190dcf7cdf3bc11f3219b41f41b25cbdde2125","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Note: Image validation is not handled with this change. Once"},{"line_number":14,"context_line":"ironic support for whole-disk images is added, additional work"},{"line_number":15,"context_line":"may be needed around preserving ephemeral partitions."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I933658d139dc16ef1a65378b0084b4baf6180651"},{"line_number":18,"context_line":"Closes-Bug: #1307754"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"bad4c104_e302acb3","line":15,"in_reply_to":"facab960_28a1cfa9","updated":"2014-04-29 01:27:59.000000000","message":"Ack. Simplified the message.","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"}],"ironic/api/controllers/v1/node.py":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"88a266ec93bbe9d131467dd972ac8b1c7410c922","unresolved":false,"context_lines":[{"line_number":244,"context_line":"        if (target \u003d\u003d ir_states.REBUILD and"},{"line_number":245,"context_line":"               rpc_node.power_state !\u003d ir_states.POWER_OFF):"},{"line_number":246,"context_line":"            msg \u003d (_(\u0027Node must be powered off before requesting a rebuild.\u0027))"},{"line_number":247,"context_line":"            raise exception.InvalidStateRequested(state\u003dtarget, node\u003dnode_uuid)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        # Note that there is a race condition. The node state(s) could change"},{"line_number":250,"context_line":"        # by the time the RPC call is made and the TaskManager manager gets a"}],"source_content_type":"text/x-python","patch_set":4,"id":"facab960_c8c6a349","line":247,"updated":"2014-04-28 21:30:42.000000000","message":"Why?","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"96190dcf7cdf3bc11f3219b41f41b25cbdde2125","unresolved":false,"context_lines":[{"line_number":244,"context_line":"        if (target \u003d\u003d ir_states.REBUILD and"},{"line_number":245,"context_line":"               rpc_node.power_state !\u003d ir_states.POWER_OFF):"},{"line_number":246,"context_line":"            msg \u003d (_(\u0027Node must be powered off before requesting a rebuild.\u0027))"},{"line_number":247,"context_line":"            raise exception.InvalidStateRequested(state\u003dtarget, node\u003dnode_uuid)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        # Note that there is a race condition. The node state(s) could change"},{"line_number":250,"context_line":"        # by the time the RPC call is made and the TaskManager manager gets a"}],"source_content_type":"text/x-python","patch_set":4,"id":"bad4c104_63269c6a","line":247,"in_reply_to":"facab960_c8c6a349","updated":"2014-04-29 01:27:59.000000000","message":"This was an artifact of earlier change and is not needed now.","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"}],"ironic/conductor/manager.py":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"88a266ec93bbe9d131467dd972ac8b1c7410c922","unresolved":false,"context_lines":[{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        :param context: an admin context."},{"line_number":333,"context_line":"        :param node_id: the id or uuid of a node."},{"line_number":334,"context_line":"        :param rebuild: True if this is a rebuild request."},{"line_number":335,"context_line":"        :raises: InstanceDeployFailure"},{"line_number":336,"context_line":"        :raises: NodeInMaintenance if the node is in maintenance mode."},{"line_number":337,"context_line":"        :raises: NoFreeConductorWorker when there is no free worker to start"}],"source_content_type":"text/x-python","patch_set":4,"id":"facab960_a8f79f8b","line":334,"updated":"2014-04-28 21:30:42.000000000","message":"I\u0027d like this to explain the consequences please.","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"96190dcf7cdf3bc11f3219b41f41b25cbdde2125","unresolved":false,"context_lines":[{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        :param context: an admin context."},{"line_number":333,"context_line":"        :param node_id: the id or uuid of a node."},{"line_number":334,"context_line":"        :param rebuild: True if this is a rebuild request."},{"line_number":335,"context_line":"        :raises: InstanceDeployFailure"},{"line_number":336,"context_line":"        :raises: NodeInMaintenance if the node is in maintenance mode."},{"line_number":337,"context_line":"        :raises: NoFreeConductorWorker when there is no free worker to start"}],"source_content_type":"text/x-python","patch_set":4,"id":"bad4c104_a31fc408","line":334,"in_reply_to":"facab960_a8f79f8b","updated":"2014-04-29 01:27:59.000000000","message":"Done","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"88a266ec93bbe9d131467dd972ac8b1c7410c922","unresolved":false,"context_lines":[{"line_number":351,"context_line":"                raise exception.InstanceDeployFailure(_("},{"line_number":352,"context_line":"                    \"RPC do_node_deploy called to rebuild %(node)s, but \""},{"line_number":353,"context_line":"                    \"provision state is not %(state)s.\") %"},{"line_number":354,"context_line":"                    {\u0027node\u0027: node.uuid, \u0027state\u0027: states.ACTIVE})"},{"line_number":355,"context_line":"            elif node.provision_state is not states.NOSTATE and not rebuild:"},{"line_number":356,"context_line":"                raise exception.InstanceDeployFailure(_("},{"line_number":357,"context_line":"                    \"RPC do_node_deploy called for %(node)s, but provision \""}],"source_content_type":"text/x-python","patch_set":4,"id":"facab960_c8222301","line":354,"updated":"2014-04-28 21:30:42.000000000","message":"This needs to log the state that it *is* in for debug analysis.","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"96190dcf7cdf3bc11f3219b41f41b25cbdde2125","unresolved":false,"context_lines":[{"line_number":351,"context_line":"                raise exception.InstanceDeployFailure(_("},{"line_number":352,"context_line":"                    \"RPC do_node_deploy called to rebuild %(node)s, but \""},{"line_number":353,"context_line":"                    \"provision state is not %(state)s.\") %"},{"line_number":354,"context_line":"                    {\u0027node\u0027: node.uuid, \u0027state\u0027: states.ACTIVE})"},{"line_number":355,"context_line":"            elif node.provision_state is not states.NOSTATE and not rebuild:"},{"line_number":356,"context_line":"                raise exception.InstanceDeployFailure(_("},{"line_number":357,"context_line":"                    \"RPC do_node_deploy called for %(node)s, but provision \""}],"source_content_type":"text/x-python","patch_set":4,"id":"bad4c104_c31cc816","line":354,"in_reply_to":"facab960_c8222301","updated":"2014-04-29 01:27:59.000000000","message":"Done","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b2ac82b1bda5f1cbfeeaffe07e2d5d1a562fff89","unresolved":false,"context_lines":[{"line_number":356,"context_line":"                    \"provision state is %(curstate)s. Must be %(state)s.\") %"},{"line_number":357,"context_line":"                    {\u0027node\u0027: node.uuid, \u0027curstate\u0027: node.provision_state,"},{"line_number":358,"context_line":"                     \u0027state\u0027: states.ACTIVE})"},{"line_number":359,"context_line":"            elif node.provision_state is not states.NOSTATE and not rebuild:"},{"line_number":360,"context_line":"                raise exception.InstanceDeployFailure(_("},{"line_number":361,"context_line":"                    \"RPC do_node_deploy called for %(node)s, but provision \""},{"line_number":362,"context_line":"                    \"state is already %(state)s.\") %"}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad9bd40_f41fb407","line":359,"updated":"2014-04-30 12:28:28.000000000","message":"It\u0027s unrelated, but as you touch this line, could you change `is not` to `!\u003d`? `is not` assumes that NOSTATE always equals to None","commit_id":"64d248a306ae43a6f87c1f126529dae219fed10f"}],"ironic/conductor/rpcapi.py":[{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"2fb40b2146259e84c4d8ff5ff113a6ddbade8587","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        1.10 - Remove get_node_power_state"},{"line_number":58,"context_line":"        1.11 - Added get_console_information, set_console_mode."},{"line_number":59,"context_line":"        1.12 - validate_vendor_action, do_vendor_action replaced by single"},{"line_number":60,"context_line":"              vendor_passthru method."},{"line_number":61,"context_line":"        1.13 - Added update_port."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXX%2F%2F3UI%3D","line":60,"updated":"2014-04-25 17:35:14.000000000","message":"any time there is a change to the rpc api, you need to bump the RPC_API_VERSION and document the change here","commit_id":"853c413f30a2a69c83d932a77f86be4c11ec4a41"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"c89fe9155879f374d0fd144d6e28e5c70aefa87b","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        1.10 - Remove get_node_power_state"},{"line_number":58,"context_line":"        1.11 - Added get_console_information, set_console_mode."},{"line_number":59,"context_line":"        1.12 - validate_vendor_action, do_vendor_action replaced by single"},{"line_number":60,"context_line":"              vendor_passthru method."},{"line_number":61,"context_line":"        1.13 - Added update_port."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXX%2F%2Ft4s%3D","line":60,"in_reply_to":"AAAAXX%2F%2F3UI%3D","updated":"2014-04-28 13:53:24.000000000","message":"Done","commit_id":"853c413f30a2a69c83d932a77f86be4c11ec4a41"}],"ironic/nova/virt/ironic/driver.py":[{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"2fb40b2146259e84c4d8ff5ff113a6ddbade8587","unresolved":false,"context_lines":[{"line_number":628,"context_line":"            msg \u003d (_(\"Failed to add deploy parameters on node %(node)s \""},{"line_number":629,"context_line":"                     \"when rebuilding the instance %(instance)s\")"},{"line_number":630,"context_line":"                   % {\u0027node\u0027: node.uuid, \u0027instance\u0027: instance[\u0027uuid\u0027]})"},{"line_number":631,"context_line":"            LOG.error(msg)"},{"line_number":632,"context_line":"            raise exception.InstanceDeployFailure(msg)"},{"line_number":633,"context_line":""},{"line_number":634,"context_line":"        # We are required to power down the instance before rebuilding it."}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXX%2F%2F3SU%3D","line":631,"updated":"2014-04-25 17:35:14.000000000","message":"is it necessary to both log and raise this?","commit_id":"853c413f30a2a69c83d932a77f86be4c11ec4a41"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"c89fe9155879f374d0fd144d6e28e5c70aefa87b","unresolved":false,"context_lines":[{"line_number":628,"context_line":"            msg \u003d (_(\"Failed to add deploy parameters on node %(node)s \""},{"line_number":629,"context_line":"                     \"when rebuilding the instance %(instance)s\")"},{"line_number":630,"context_line":"                   % {\u0027node\u0027: node.uuid, \u0027instance\u0027: instance[\u0027uuid\u0027]})"},{"line_number":631,"context_line":"            LOG.error(msg)"},{"line_number":632,"context_line":"            raise exception.InstanceDeployFailure(msg)"},{"line_number":633,"context_line":""},{"line_number":634,"context_line":"        # We are required to power down the instance before rebuilding it."}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAXX%2F%2Ft4c%3D","line":631,"in_reply_to":"AAAAXX%2F%2F3SU%3D","updated":"2014-04-28 13:53:24.000000000","message":"Not really since it gets into the nova logs twice since the exception is also logged. I was following the pattern of the rest of the code. I\u0027ve removed the LOG calls in the code I\u0027m touching here and an exception is immediately thrown.","commit_id":"853c413f30a2a69c83d932a77f86be4c11ec4a41"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"88a266ec93bbe9d131467dd972ac8b1c7410c922","unresolved":false,"context_lines":[{"line_number":590,"context_line":"                attach_block_devices, network_info\u003dNone,"},{"line_number":591,"context_line":"                recreate\u003dFalse, block_device_info\u003dNone,"},{"line_number":592,"context_line":"                preserve_ephemeral\u003dFalse):"},{"line_number":593,"context_line":"        \"\"\" This version of rebuild() allows for supporting the option to"},{"line_number":594,"context_line":"            preserve the ephemeral partition. We cannot call spawn() from"},{"line_number":595,"context_line":"            here because it will attempt to set the instance_uuid value"},{"line_number":596,"context_line":"            again, which is not allowed by the Ironic API. It also requires"}],"source_content_type":"text/x-python","patch_set":4,"id":"facab960_08740bfc","line":593,"updated":"2014-04-28 21:30:42.000000000","message":"docstring formatting - one line summary, then a blank, then the rest.","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"96190dcf7cdf3bc11f3219b41f41b25cbdde2125","unresolved":false,"context_lines":[{"line_number":590,"context_line":"                attach_block_devices, network_info\u003dNone,"},{"line_number":591,"context_line":"                recreate\u003dFalse, block_device_info\u003dNone,"},{"line_number":592,"context_line":"                preserve_ephemeral\u003dFalse):"},{"line_number":593,"context_line":"        \"\"\" This version of rebuild() allows for supporting the option to"},{"line_number":594,"context_line":"            preserve the ephemeral partition. We cannot call spawn() from"},{"line_number":595,"context_line":"            here because it will attempt to set the instance_uuid value"},{"line_number":596,"context_line":"            again, which is not allowed by the Ironic API. It also requires"}],"source_content_type":"text/x-python","patch_set":4,"id":"bad4c104_c3e3e803","line":593,"in_reply_to":"facab960_08740bfc","updated":"2014-04-29 01:27:59.000000000","message":"Done","commit_id":"b377b6ff0e336f5a9263baba47b2e7a41de7b8eb"},{"author":{"_account_id":10380,"name":"Josh Gachnang","email":"josh@pcsforeducation.com","username":"JoshNang"},"change_message_id":"9acfb0aaceb4e9b96c053962e21f83c2b2eecfc0","unresolved":false,"context_lines":[{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        # Although the target provision state is REBUILD, it will actually go"},{"line_number":634,"context_line":"        # to ACTIVE once the redeploy is finished."},{"line_number":635,"context_line":"        timer \u003d loopingcall.FixedIntervalLoopingCall(self._wait_for_active,"},{"line_number":636,"context_line":"                                                     icli, instance)"},{"line_number":637,"context_line":"        timer.start(interval\u003dCONF.ironic.api_retry_interval).wait()"}],"source_content_type":"text/x-python","patch_set":7,"id":"bad4c104_8fff2c01","line":635,"updated":"2014-04-29 18:55:43.000000000","message":"Will this actually work? _wait_for_acitve is defined inside of spawn(). I think you\u0027d need to factor that out of spawn() to call it.","commit_id":"64d248a306ae43a6f87c1f126529dae219fed10f"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"445bc23f91961a7be5933676a1dfef478936f4fb","unresolved":false,"context_lines":[{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        # Although the target provision state is REBUILD, it will actually go"},{"line_number":634,"context_line":"        # to ACTIVE once the redeploy is finished."},{"line_number":635,"context_line":"        timer \u003d loopingcall.FixedIntervalLoopingCall(self._wait_for_active,"},{"line_number":636,"context_line":"                                                     icli, instance)"},{"line_number":637,"context_line":"        timer.start(interval\u003dCONF.ironic.api_retry_interval).wait()"}],"source_content_type":"text/x-python","patch_set":7,"id":"bad4c104_b2529311","line":635,"in_reply_to":"bad4c104_8fff2c01","updated":"2014-04-29 19:33:52.000000000","message":"It is factored out. See above.","commit_id":"64d248a306ae43a6f87c1f126529dae219fed10f"}]}
