)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"2e8f7d3ae65298b454f4f25b52175764f6e7731e","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fail if boot_from_volume enabled but not ipxe"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We should fail on building pxe options if boot from volume is"},{"line_number":10,"context_line":"enabled but ipxe is not. This patch is a followup to 413324 and"},{"line_number":11,"context_line":"addresses some nits that were in the patch."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I80a11277b6c3c2d26f69aa4e0f7b4574b7b7ecf9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f231b9d_19919953","line":10,"range":{"start_line":10,"start_character":53,"end_line":10,"end_character":59},"updated":"2017-06-11 15:02:54.000000000","message":"Can you add the link in the commit message?","commit_id":"6b7943bfe8e297673999e9b86f8bf305674c071b"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"2e8f7d3ae65298b454f4f25b52175764f6e7731e","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We should fail on building pxe options if boot from volume is"},{"line_number":10,"context_line":"enabled but ipxe is not. This patch is a followup to 413324 and"},{"line_number":11,"context_line":"addresses some nits that were in the patch."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I80a11277b6c3c2d26f69aa4e0f7b4574b7b7ecf9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f231b9d_d99a016d","line":11,"range":{"start_line":11,"start_character":37,"end_line":11,"end_character":42},"updated":"2017-06-11 15:02:54.000000000","message":"Which patch? It will be good to add the commit id or the review link.","commit_id":"6b7943bfe8e297673999e9b86f8bf305674c071b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c2d2140bf2477e09e48db337a48fb7e65d4b2bc3","unresolved":false,"context_lines":[{"line_number":9,"context_line":"We should fail on building pxe options if boot from volume is"},{"line_number":10,"context_line":"enabled but ipxe is not. This patch is a followup to 413324 and"},{"line_number":11,"context_line":"addresses some nits that were in the patch."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I80a11277b6c3c2d26f69aa4e0f7b4574b7b7ecf9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f231b9d_7384e90c","line":12,"updated":"2017-06-13 13:20:27.000000000","message":"Partial-Bug: #1559691","commit_id":"6b7943bfe8e297673999e9b86f8bf305674c071b"}],"ironic/drivers/modules/deploy_utils.py":[{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"2e8f7d3ae65298b454f4f25b52175764f6e7731e","unresolved":false,"context_lines":[{"line_number":1315,"context_line":"            return boot_volume.volume_type \u003d\u003d \u0027iscsi\u0027"},{"line_number":1316,"context_line":"        except exception.VolumeTargetNotFound:"},{"line_number":1317,"context_line":"            return False"},{"line_number":1318,"context_line":"    return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f231b9d_998ec92c","line":1318,"range":{"start_line":1318,"start_character":4,"end_line":1318,"end_character":16},"updated":"2017-06-11 15:02:54.000000000","message":"This statement can also be removed.","commit_id":"6b7943bfe8e297673999e9b86f8bf305674c071b"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c2d2140bf2477e09e48db337a48fb7e65d4b2bc3","unresolved":false,"context_lines":[{"line_number":1315,"context_line":"            return boot_volume.volume_type \u003d\u003d \u0027iscsi\u0027"},{"line_number":1316,"context_line":"        except exception.VolumeTargetNotFound:"},{"line_number":1317,"context_line":"            return False"},{"line_number":1318,"context_line":"    return False"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f231b9d_f3ac798d","line":1318,"range":{"start_line":1318,"start_character":4,"end_line":1318,"end_character":16},"in_reply_to":"7f231b9d_998ec92c","updated":"2017-06-13 13:20:27.000000000","message":"If there is no volume, then it falls through to that, so it makes sense to retain.","commit_id":"6b7943bfe8e297673999e9b86f8bf305674c071b"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"387e5d09e30d8fb05d59e21c361b3ed135164088","unresolved":false,"context_lines":[{"line_number":217,"context_line":"            pxe_options \u003d _get_volume_pxe_options(task)"},{"line_number":218,"context_line":"        else:"},{"line_number":219,"context_line":"            msg \u003d (_(\"Booting from volume is only supported with iPXE. Node \""},{"line_number":220,"context_line":"                     \"%(node_uuid)s has boot_from_volume enabled, but iPXE \""},{"line_number":221,"context_line":"                     \"is not enabled for this conductor.\") %"},{"line_number":222,"context_line":"                   {\u0027node_uuid\u0027: task.node.uuid})"},{"line_number":223,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f231b9d_117f86e0","line":220,"range":{"start_line":220,"start_character":40,"end_line":220,"end_character":56},"updated":"2017-06-16 08:20:05.000000000","message":"Should we be using the driver_internal_info field in user message? \nThis field is not being set by the user and may not know in what conditions it would have been set. Can we mention that the node capability \u0027iscsi_boot\u0027 being set here?","commit_id":"e13af8385358dcdbdb9821ec8265f27d62dc1265"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"1a7364b54c6ccda429b683ff3bd5ea07927d3d60","unresolved":false,"context_lines":[{"line_number":217,"context_line":"            pxe_options \u003d _get_volume_pxe_options(task)"},{"line_number":218,"context_line":"        else:"},{"line_number":219,"context_line":"            msg \u003d (_(\"Booting from volume is only supported with iPXE. Node \""},{"line_number":220,"context_line":"                     \"%(node_uuid)s has boot_from_volume enabled, but iPXE \""},{"line_number":221,"context_line":"                     \"is not enabled for this conductor.\") %"},{"line_number":222,"context_line":"                   {\u0027node_uuid\u0027: task.node.uuid})"},{"line_number":223,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f231b9d_2bcd6630","line":220,"range":{"start_line":220,"start_character":40,"end_line":220,"end_character":56},"in_reply_to":"7f231b9d_117f86e0","updated":"2017-06-16 14:06:51.000000000","message":"See line 329 for another instance of exposing a field in a node\u0027s driver_internal_info. But you make a good point, people might not know what set this so I\u0027ll look into this.","commit_id":"e13af8385358dcdbdb9821ec8265f27d62dc1265"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"debd0fb2849ba421ad58a715acf01a1c1d0c0b3c","unresolved":false,"context_lines":[{"line_number":217,"context_line":"            pxe_options \u003d _get_volume_pxe_options(task)"},{"line_number":218,"context_line":"        else:"},{"line_number":219,"context_line":"            msg \u003d (_(\"Booting from volume is only supported with iPXE. Node \""},{"line_number":220,"context_line":"                     \"%(node_uuid)s has boot_from_volume enabled, but iPXE \""},{"line_number":221,"context_line":"                     \"is not enabled for this conductor.\") %"},{"line_number":222,"context_line":"                   {\u0027node_uuid\u0027: task.node.uuid})"},{"line_number":223,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f201791_77ea9575","line":220,"range":{"start_line":220,"start_character":40,"end_line":220,"end_character":56},"in_reply_to":"7f231b9d_2bcd6630","updated":"2017-06-22 21:34:02.000000000","message":"Just a follow-up question: are we logging enabling of \u0027boot from volume\u0027 option?","commit_id":"e13af8385358dcdbdb9821ec8265f27d62dc1265"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"6d93b7d0b8d86a1fbe48f6a11de45c5f0400e8f0","unresolved":false,"context_lines":[{"line_number":213,"context_line":"    if service:"},{"line_number":214,"context_line":"        pxe_options \u003d {}"},{"line_number":215,"context_line":"    elif task.node.driver_internal_info.get(\u0027boot_from_volume\u0027):"},{"line_number":216,"context_line":"        if CONF.pxe.ipxe_enabled:"},{"line_number":217,"context_line":"            pxe_options \u003d _get_volume_pxe_options(task)"},{"line_number":218,"context_line":"        else:"},{"line_number":219,"context_line":"            msg \u003d (_(\"Booting from volume is only supported with iPXE. Node \""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f201791_1ba37f51","line":216,"range":{"start_line":216,"start_character":8,"end_line":216,"end_character":33},"updated":"2017-06-23 08:47:05.000000000","message":"We also needs to check that requested \u0027boot_option\u0027 is \u0027netboot\u0027. \nIt would be useful if we could move these checks to validate to fail faster:)","commit_id":"c70d8f3e7f9ae7f9a63feca44fc1a52a27d13c34"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"bff74efb3ad62886180bbc7d1d3023e24a14246a","unresolved":false,"context_lines":[{"line_number":213,"context_line":"    if service:"},{"line_number":214,"context_line":"        pxe_options \u003d {}"},{"line_number":215,"context_line":"    elif task.node.driver_internal_info.get(\u0027boot_from_volume\u0027):"},{"line_number":216,"context_line":"        if CONF.pxe.ipxe_enabled:"},{"line_number":217,"context_line":"            pxe_options \u003d _get_volume_pxe_options(task)"},{"line_number":218,"context_line":"        else:"},{"line_number":219,"context_line":"            msg \u003d (_(\"Booting from volume is only supported with iPXE. Node \""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f201791_91951d43","line":216,"range":{"start_line":216,"start_character":8,"end_line":216,"end_character":33},"in_reply_to":"5f201791_1ba37f51","updated":"2017-06-23 21:23:58.000000000","message":"So the reason we\u0027re doing the checking here is because some drivers may be calling this code outside of a path that includes validate. For example, iscsi_deploy.prepare calls prepare_ramdisk, which hits this method. I could be wrong but I don\u0027t think we\u0027d hit validate that way.","commit_id":"c70d8f3e7f9ae7f9a63feca44fc1a52a27d13c34"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"6f635e13f9062c2bde644a059972f0f2505fddaa","unresolved":false,"context_lines":[{"line_number":213,"context_line":"    if service:"},{"line_number":214,"context_line":"        pxe_options \u003d {}"},{"line_number":215,"context_line":"    elif task.node.driver_internal_info.get(\u0027boot_from_volume\u0027):"},{"line_number":216,"context_line":"        if CONF.pxe.ipxe_enabled:"},{"line_number":217,"context_line":"            pxe_options \u003d _get_volume_pxe_options(task)"},{"line_number":218,"context_line":"        else:"},{"line_number":219,"context_line":"            msg \u003d (_(\"Booting from volume is only supported with iPXE. Node \""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f201791_86e25d9f","line":216,"range":{"start_line":216,"start_character":8,"end_line":216,"end_character":33},"in_reply_to":"5f201791_6e96134f","updated":"2017-06-26 14:12:04.000000000","message":"Had a chat with Julia, and yeah seems like this is correct! I\u0027ll move the check to boot.validate()\n\nThanks for the review!","commit_id":"c70d8f3e7f9ae7f9a63feca44fc1a52a27d13c34"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"1b568e71c9c7a6c15b3590c1fdb6e3440770a330","unresolved":false,"context_lines":[{"line_number":213,"context_line":"    if service:"},{"line_number":214,"context_line":"        pxe_options \u003d {}"},{"line_number":215,"context_line":"    elif task.node.driver_internal_info.get(\u0027boot_from_volume\u0027):"},{"line_number":216,"context_line":"        if CONF.pxe.ipxe_enabled:"},{"line_number":217,"context_line":"            pxe_options \u003d _get_volume_pxe_options(task)"},{"line_number":218,"context_line":"        else:"},{"line_number":219,"context_line":"            msg \u003d (_(\"Booting from volume is only supported with iPXE. Node \""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f201791_6e96134f","line":216,"range":{"start_line":216,"start_character":8,"end_line":216,"end_character":33},"in_reply_to":"5f201791_91951d43","updated":"2017-06-24 13:20:11.000000000","message":"I think any call to boot.prepare_ramdisk() would be made as part of deploy request. The deploy.validate() would be called as part of RPC call which would call boot.validate()\nhttps://github.com/openstack/ironic/blob/master/ironic/conductor/manager.py#L585\nhttps://github.com/openstack/ironic/blob/master/ironic/drivers/modules/iscsi_deploy.py#L421","commit_id":"c70d8f3e7f9ae7f9a63feca44fc1a52a27d13c34"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"7bfb2ac33d1bc3507695cd65eea523a19eb972d4","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                    \"root was specified.\"))"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        # Boot from volume validation"},{"line_number":415,"context_line":"        if (node.driver_internal_info.get(\u0027boot_from_volume\u0027) and not"},{"line_number":416,"context_line":"            CONF.pxe.ipxe_enabled):"},{"line_number":417,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":418,"context_line":"                \"Booting from volume is only supported with iPXE. Node \""},{"line_number":419,"context_line":"                \"%s has boot_from_volume enabled, but iPXE is not \""}],"source_content_type":"text/x-python","patch_set":6,"id":"5f201791_5db08143","line":416,"range":{"start_line":415,"start_character":9,"end_line":416,"end_character":34},"updated":"2017-06-27 03:57:15.000000000","message":"I think you also need to check that boot option is not \u0027local\u0027:\nif ((node.driver_internal_info.get(\u0027boot_from_volume\u0027) and \n    (not CONF.pxe.ipxe_enabled) or \n    (deploy_utils.get_boot_option(node) \u003d\u003d \u0027local\u0027)):\n    ...","commit_id":"5fa986dab61d674283f2f96f0f63f70f62faec9b"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"aaf377bd3e12d7df5f88f77d84daf30e17bb44ae","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                    \"root was specified.\"))"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        # Boot from volume validation"},{"line_number":415,"context_line":"        if (node.driver_internal_info.get(\u0027boot_from_volume\u0027) and not"},{"line_number":416,"context_line":"            CONF.pxe.ipxe_enabled):"},{"line_number":417,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":418,"context_line":"                \"Booting from volume is only supported with iPXE. Node \""},{"line_number":419,"context_line":"                \"%s has boot_from_volume enabled, but iPXE is not \""}],"source_content_type":"text/x-python","patch_set":6,"id":"1f1a1f67_4cedffed","line":416,"range":{"start_line":415,"start_character":9,"end_line":416,"end_character":34},"in_reply_to":"1f1a1f67_2ef088c9","updated":"2017-07-13 05:32:37.000000000","message":"Fair enough. Thank you.","commit_id":"5fa986dab61d674283f2f96f0f63f70f62faec9b"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"56fe51c3de2460519a4287b1e08d15456c2313a2","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                    \"root was specified.\"))"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        # Boot from volume validation"},{"line_number":415,"context_line":"        if (node.driver_internal_info.get(\u0027boot_from_volume\u0027) and not"},{"line_number":416,"context_line":"            CONF.pxe.ipxe_enabled):"},{"line_number":417,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":418,"context_line":"                \"Booting from volume is only supported with iPXE. Node \""},{"line_number":419,"context_line":"                \"%s has boot_from_volume enabled, but iPXE is not \""}],"source_content_type":"text/x-python","patch_set":6,"id":"1f1a1f67_2ef088c9","line":416,"range":{"start_line":415,"start_character":9,"end_line":416,"end_character":34},"in_reply_to":"1f1a1f67_46d05751","updated":"2017-07-12 19:00:52.000000000","message":"thanks hironori, will do.\n\nShivanand, we discussed your comment about checking the boot option during last week\u0027s BFV meeting. We came to the conclusion that we shouldn\u0027t enforce the boot option as it\u0027s not used in the feature. If you have any rationale we didn\u0027t consider, please let me know! and thanks for the review!","commit_id":"5fa986dab61d674283f2f96f0f63f70f62faec9b"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"c016fb8fd120596e74a570ba6af5319e229cdeb9","unresolved":false,"context_lines":[{"line_number":412,"context_line":"                    \"root was specified.\"))"},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"        # Boot from volume validation"},{"line_number":415,"context_line":"        if (node.driver_internal_info.get(\u0027boot_from_volume\u0027) and not"},{"line_number":416,"context_line":"            CONF.pxe.ipxe_enabled):"},{"line_number":417,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":418,"context_line":"                \"Booting from volume is only supported with iPXE. Node \""},{"line_number":419,"context_line":"                \"%s has boot_from_volume enabled, but iPXE is not \""}],"source_content_type":"text/x-python","patch_set":6,"id":"1f1a1f67_46d05751","line":416,"range":{"start_line":415,"start_character":9,"end_line":416,"end_character":34},"in_reply_to":"5f201791_5db08143","updated":"2017-07-12 14:30:06.000000000","message":"We cannot use \u0027boot_from_volume\u0027 of driver_info in this validation because this value is set after starting deployment[1][2]. It would be better to use deploy_utils.get_remote_volume()[3].\n\n[1] https://github.com/openstack/ironic/blob/39c87797163c60801bec547f134fe6fa10c288a9/ironic/drivers/modules/agent.py#L440\n[2] https://github.com/openstack/ironic/blob/39c87797163c60801bec547f134fe6fa10c288a9/ironic/drivers/modules/deploy_utils.py#L1273\n[3] https://github.com/openstack/ironic/blob/39c87797163c60801bec547f134fe6fa10c288a9/ironic/drivers/modules/deploy_utils.py#L1228","commit_id":"5fa986dab61d674283f2f96f0f63f70f62faec9b"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"7bfb2ac33d1bc3507695cd65eea523a19eb972d4","unresolved":false,"context_lines":[{"line_number":417,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":418,"context_line":"                \"Booting from volume is only supported with iPXE. Node \""},{"line_number":419,"context_line":"                \"%s has boot_from_volume enabled, but iPXE is not \""},{"line_number":420,"context_line":"                \"enabled for this conductor\") % node.uuid)"},{"line_number":421,"context_line":""},{"line_number":422,"context_line":"        # Check the trusted_boot capabilities value."},{"line_number":423,"context_line":"        deploy_utils.validate_capabilities(node)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f201791_5dc76197","line":420,"range":{"start_line":420,"start_character":16,"end_line":420,"end_character":58},"updated":"2017-06-27 03:57:15.000000000","message":"Code beyond this should not get executed if it is for boot from volume:\nif ((node.driver_internal_info.get(\u0027boot_from_volume\u0027):\n    if ((not CONF.pxe.ipxe_enabled) or \n        (deploy_utils.get_boot_option(node) \u003d\u003d \u0027local\u0027)):\n        raise ...\n    else:\n        return","commit_id":"5fa986dab61d674283f2f96f0f63f70f62faec9b"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"aaf377bd3e12d7df5f88f77d84daf30e17bb44ae","unresolved":false,"context_lines":[{"line_number":417,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":418,"context_line":"                \"Booting from volume is only supported with iPXE. Node \""},{"line_number":419,"context_line":"                \"%s has boot_from_volume enabled, but iPXE is not \""},{"line_number":420,"context_line":"                \"enabled for this conductor\") % node.uuid)"},{"line_number":421,"context_line":""},{"line_number":422,"context_line":"        # Check the trusted_boot capabilities value."},{"line_number":423,"context_line":"        deploy_utils.validate_capabilities(node)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f1a1f67_2cbc03db","line":420,"range":{"start_line":420,"start_character":16,"end_line":420,"end_character":58},"in_reply_to":"1f1a1f67_6ecfa07f","updated":"2017-07-13 05:32:37.000000000","message":"Thank you.","commit_id":"5fa986dab61d674283f2f96f0f63f70f62faec9b"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"56fe51c3de2460519a4287b1e08d15456c2313a2","unresolved":false,"context_lines":[{"line_number":417,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":418,"context_line":"                \"Booting from volume is only supported with iPXE. Node \""},{"line_number":419,"context_line":"                \"%s has boot_from_volume enabled, but iPXE is not \""},{"line_number":420,"context_line":"                \"enabled for this conductor\") % node.uuid)"},{"line_number":421,"context_line":""},{"line_number":422,"context_line":"        # Check the trusted_boot capabilities value."},{"line_number":423,"context_line":"        deploy_utils.validate_capabilities(node)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1f1a1f67_6ecfa07f","line":420,"range":{"start_line":420,"start_character":16,"end_line":420,"end_character":58},"in_reply_to":"5f201791_5dc76197","updated":"2017-07-12 19:00:52.000000000","message":"see above - again, if we\u0027re missing something, please let me know","commit_id":"5fa986dab61d674283f2f96f0f63f70f62faec9b"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"faf054ba50a87e3a44bbc788d3ee257ba93c60e6","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"        # Boot from volume validation"},{"line_number":416,"context_line":"        boot_volume \u003d deploy_utils.get_remote_boot_volume(task)"},{"line_number":417,"context_line":"        if (boot_volume and not CONF.pxe.ipxe_enabled):"},{"line_number":418,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":419,"context_line":"                \"Booting from volume is only supported with iPXE. \""},{"line_number":420,"context_line":"                \"Node %(node_uuid)s has a remote boot volume, \""}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_95e03328","line":417,"range":{"start_line":417,"start_character":8,"end_line":417,"end_character":23},"updated":"2017-07-18 06:11:54.000000000","message":"As mentioned in the spec. It also need to have the BFV capability (iscsi_boot or  fibre_channel_boot) set appropriately in the node.properties[\u0027capabilities\u0027].\nI suppose we would need to perform additional check for these capabilities here.","commit_id":"de35f75a1cc9405b2da41795680c82aff33050ab"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"77b91b5031cd9e5ac4ab3331054436a3106d602b","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"        # Boot from volume validation"},{"line_number":416,"context_line":"        boot_volume \u003d deploy_utils.get_remote_boot_volume(task)"},{"line_number":417,"context_line":"        if (boot_volume and not CONF.pxe.ipxe_enabled):"},{"line_number":418,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":419,"context_line":"                \"Booting from volume is only supported with iPXE. \""},{"line_number":420,"context_line":"                \"Node %(node_uuid)s has a remote boot volume, \""}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_9695cf35","line":417,"range":{"start_line":417,"start_character":8,"end_line":417,"end_character":23},"in_reply_to":"1f1a1f67_95e03328","updated":"2017-07-18 13:20:52.000000000","message":"The spec did call for that, and those checks are performed in the storage interface validation.  The nova ironic virtual driver change also checks the output of the storage interface\u0027s validation prior to allowing the deployment to proceed.","commit_id":"de35f75a1cc9405b2da41795680c82aff33050ab"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"55cd542f1d215b35982910361f7042d0bfcc9258","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"        # Boot from volume validation"},{"line_number":416,"context_line":"        boot_volume \u003d deploy_utils.get_remote_boot_volume(task)"},{"line_number":417,"context_line":"        if (boot_volume and not CONF.pxe.ipxe_enabled):"},{"line_number":418,"context_line":"            raise exception.InvalidParameterValue(_("},{"line_number":419,"context_line":"                \"Booting from volume is only supported with iPXE. \""},{"line_number":420,"context_line":"                \"Node %(node_uuid)s has a remote boot volume, \""}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_11f8a978","line":417,"range":{"start_line":417,"start_character":8,"end_line":417,"end_character":23},"in_reply_to":"1f1a1f67_9695cf35","updated":"2017-07-18 13:48:00.000000000","message":"Oh, yes. Validation at multiple levels made me confused. Thank you for pointing that out.","commit_id":"de35f75a1cc9405b2da41795680c82aff33050ab"}],"ironic/tests/unit/drivers/modules/test_pxe.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"39fdcf2c2f0c1b81114eec2540b94e73bfd6e688","unresolved":false,"context_lines":[{"line_number":767,"context_line":"                                                node_id\u003dself.node.id,"},{"line_number":768,"context_line":"                                                boot_index\u003d0,"},{"line_number":769,"context_line":"                                                uuid\u003duuidutils.generate_uuid())"},{"line_number":770,"context_line":"            self.assertRaises(exception.InvalidParameterValue,"},{"line_number":771,"context_line":"                              task.driver.boot.validate, task)"},{"line_number":772,"context_line":""},{"line_number":773,"context_line":"    def test_validate_fail_invalid_trusted_boot_value(self):"},{"line_number":774,"context_line":"        properties \u003d {\u0027capabilities\u0027: \u0027trusted_boot:value\u0027}"}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_366efb2e","line":771,"range":{"start_line":770,"start_character":12,"end_line":771,"end_character":62},"updated":"2017-07-18 13:25:00.000000000","message":"If I remember correctly, the defaults have some node information wired in for them into these tests, so the call to glance can occur, however it looks like with recent changes, more setup of the node or a mocking of the glance image properties check is necessary.\n\nhttp://logs.openstack.org/56/472856/8/check/gate-ironic-python35/21acf55/console.html#_2017-07-17_16_16_32_875776","commit_id":"de35f75a1cc9405b2da41795680c82aff33050ab"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"bb43d4b34a0a286ae1e2a681c8874bf362f4695b","unresolved":false,"context_lines":[{"line_number":767,"context_line":"                                                node_id\u003dself.node.id,"},{"line_number":768,"context_line":"                                                boot_index\u003d0,"},{"line_number":769,"context_line":"                                                uuid\u003duuidutils.generate_uuid())"},{"line_number":770,"context_line":"            self.assertRaises(exception.InvalidParameterValue,"},{"line_number":771,"context_line":"                              task.driver.boot.validate, task)"},{"line_number":772,"context_line":""},{"line_number":773,"context_line":"    def test_validate_fail_invalid_trusted_boot_value(self):"},{"line_number":774,"context_line":"        properties \u003d {\u0027capabilities\u0027: \u0027trusted_boot:value\u0027}"}],"source_content_type":"text/x-python","patch_set":8,"id":"1f1a1f67_d128f197","line":771,"range":{"start_line":770,"start_character":12,"end_line":771,"end_character":62},"in_reply_to":"1f1a1f67_366efb2e","updated":"2017-07-18 13:56:02.000000000","message":"Did not run py35 locally. Thanks for pointing this out Julia. Will handle in next patchset later today.","commit_id":"de35f75a1cc9405b2da41795680c82aff33050ab"}]}
