)]}'
{"ironic/common/pxe_utils.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"bbf329ae484d2b72df540e9582533d229b2528ac","unresolved":false,"context_lines":[{"line_number":358,"context_line":"    \"\"\"Generate the instance image properties"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"    :param node: a node object"},{"line_number":361,"context_line":"    :param d_info: instance_info and driver_info values."},{"line_number":362,"context_line":"    :param ctx: context"},{"line_number":363,"context_line":"    :param label: image properties labels"},{"line_number":364,"context_line":"    :return: node instance info"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_68631c1b","line":361,"updated":"2015-08-11 12:43:50.000000000","message":"instance_info or driver_info values?","commit_id":"a63261b3f538dea0d702fa847f14f1670fe21ead"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":360,"context_line":"    :param node: a single Node."},{"line_number":361,"context_line":"    :param error_msg: The error message to prefix before printing the"},{"line_number":362,"context_line":"        information about missing parameters."},{"line_number":363,"context_line":"    :returns: A dict with the instance_info and driver_info values."},{"line_number":364,"context_line":"    :raises: MissingParameterValue, image_source is missing in node\u0027s"},{"line_number":365,"context_line":"        instance_info. Also raises same exception if kernel/ramdisk is"},{"line_number":366,"context_line":"        missing in instance_info for non-glance images."}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_51409635","line":363,"updated":"2015-08-14 13:47:42.000000000","message":"It contains only instance_info values.","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":379,"context_line":""},{"line_number":380,"context_line":"def get_instance_image_info(node, ctx, parse_instance_info_func,"},{"line_number":381,"context_line":"                            root_dir\u003dNone):"},{"line_number":382,"context_line":"    \"\"\"Generate the instance image properties"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"    :param node: a node object"},{"line_number":385,"context_line":"    :param ctx: context"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_91db7e4f","line":382,"updated":"2015-08-14 13:47:42.000000000","message":"Maybe something like \"Generate the paths for files for instance related images\"?","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":384,"context_line":"    :param node: a node object"},{"line_number":385,"context_line":"    :param ctx: context"},{"line_number":386,"context_line":"    :param d_info_func: A function object which return a dict with the"},{"line_number":387,"context_line":"        instance_info and driver_info values."},{"line_number":388,"context_line":"    :param root_dir: A directory where the config files and images will live."},{"line_number":389,"context_line":"    :return: a dictionary whose key are the name of the image (kernel,"},{"line_number":390,"context_line":"        ramdisk) and values are the absolute paths of them. If it\u0027s a whole"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_d180264c","line":387,"updated":"2015-08-14 13:47:42.000000000","message":"ditto only instance_info","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"a2f603f97b22f884164d46bcc468c879563e2c55","unresolved":false,"context_lines":[{"line_number":406,"context_line":"        iproperties \u003d glance_service.show(d_info[\u0027image_source\u0027])[\u0027properties\u0027]"},{"line_number":407,"context_line":"        for label in labels:"},{"line_number":408,"context_line":"            i_info[label] \u003d str(iproperties[label + \u0027_id\u0027])"},{"line_number":409,"context_line":"        node.instance_info \u003d i_info"},{"line_number":410,"context_line":"        node.save()"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"    for label in labels:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_27fd996e","line":409,"updated":"2015-08-24 02:44:03.000000000","message":"I understand the kernel and ramdisk are configured in driver_info, why we dup-populate to instance_info here?","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":11042,"name":"chenglch","email":"chenglch@cn.ibm.com","username":"chenglch"},"change_message_id":"fd4473868c38e5b9f8a79d02127941594ed5826a","unresolved":false,"context_lines":[{"line_number":406,"context_line":"        iproperties \u003d glance_service.show(d_info[\u0027image_source\u0027])[\u0027properties\u0027]"},{"line_number":407,"context_line":"        for label in labels:"},{"line_number":408,"context_line":"            i_info[label] \u003d str(iproperties[label + \u0027_id\u0027])"},{"line_number":409,"context_line":"        node.instance_info \u003d i_info"},{"line_number":410,"context_line":"        node.save()"},{"line_number":411,"context_line":""},{"line_number":412,"context_line":"    for label in labels:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_04e73041","line":409,"in_reply_to":"fa1b9901_27fd996e","updated":"2015-08-24 03:35:44.000000000","message":"I think deploy_kernel and deploy_ramdisk are configured in driver_info.\n\nkernel and ramdisk are properties parsed from the image_source when the instance image is not the whole disk image. They are the instance image properties, so they should be put in instance_info.","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8f471f2b9d6ef062f00cddc818b25c341bc58de7","unresolved":false,"context_lines":[{"line_number":344,"context_line":"    return dhcp_opts"},{"line_number":345,"context_line":""},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"def parse_driver_info(node, error_msg):"},{"line_number":348,"context_line":"    \"\"\"Gets the driver specific Node deployment info."},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"    This method validates whether the \u0027driver_info\u0027 property of the"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_ee3d4ebc","line":347,"updated":"2015-10-12 15:09:43.000000000","message":"Because this method is public now better rename it like \"parse_pxe_info\".","commit_id":"0f61cfb8b5fbaa14a74d93bced0fd311f3c53b3a"}],"ironic/drivers/modules/opc/petitboot.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"bbf329ae484d2b72df540e9582533d229b2528ac","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                      \u0027configuration\u0027)),"},{"line_number":50,"context_line":"    cfg.StrOpt(\u0027protocol\u0027,"},{"line_number":51,"context_line":"               default\u003d\u0027http\u0027,"},{"line_number":52,"context_line":"               help\u003d\u0027File transfer protocol for petitboot, only support http \u0027"},{"line_number":53,"context_line":"                    \u0027and tftp\u0027),"},{"line_number":54,"context_line":"]"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_1285e7ab","line":52,"updated":"2015-08-11 12:43:50.000000000","message":"Help string is not translated.","commit_id":"a63261b3f538dea0d702fa847f14f1670fe21ead"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"bbf329ae484d2b72df540e9582533d229b2528ac","unresolved":false,"context_lines":[{"line_number":324,"context_line":"            missing."},{"line_number":325,"context_line":"        \"\"\""},{"line_number":326,"context_line":"        node \u003d task.node"},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"        if not driver_utils.get_node_mac_addresses(task):"},{"line_number":329,"context_line":"            raise exception.MissingParameterValue("},{"line_number":330,"context_line":"                _(\"Node %s does not have any port associated with it.\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_68dd5c13","line":327,"updated":"2015-08-11 12:43:50.000000000","message":"Please validate also that CONF.petitboot.protocol in (\u0027http\u0027, \u0027tftp\u0027)","commit_id":"a63261b3f538dea0d702fa847f14f1670fe21ead"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"bbf329ae484d2b72df540e9582533d229b2528ac","unresolved":false,"context_lines":[{"line_number":334,"context_line":"        is_whole_disk_image \u003d node.driver_internal_info.get("},{"line_number":335,"context_line":"            \u0027is_whole_disk_image\u0027)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"        # NOTE(chenglch): Petitboot for openPOWER ststem only support local"},{"line_number":338,"context_line":"        # boot with whole disk image and netboot with partition imamge."},{"line_number":339,"context_line":"        if not is_whole_disk_image and boot_option \u003d\u003d \u0027local\u0027:"},{"line_number":340,"context_line":"            LOG.error(_LE(\"Node %(node_uuid)s do not support local boot with\""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_b5209df8","line":337,"updated":"2015-08-11 12:43:50.000000000","message":"s/ststem/system","commit_id":"a63261b3f538dea0d702fa847f14f1670fe21ead"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":88,"context_line":"def _parse_instance_info(node):"},{"line_number":89,"context_line":"    \"\"\"Gets the instance and driver specific Node deployment info."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    This method validates whether the \u0027instance_info\u0027 and \u0027driver_info\u0027"},{"line_number":92,"context_line":"    property of the supplied node contains the required information for"},{"line_number":93,"context_line":"    this driver to deploy images to the node."},{"line_number":94,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_9107fe17","line":91,"updated":"2015-08-14 13:47:42.000000000","message":"It does not validate driver_info.","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    this driver to deploy images to the node."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    :param node: a single Node."},{"line_number":96,"context_line":"    :returns: A dict with the instance_info and driver_info values."},{"line_number":97,"context_line":"    :raises: MissingParameterValue, image_source is missing in node\u0027s"},{"line_number":98,"context_line":"        instance_info. Also raises same exception if kernel/ramdisk is"},{"line_number":99,"context_line":"        missing in instance_info for non-glance images."}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_f129a28a","line":96,"updated":"2015-08-14 13:47:42.000000000","message":"It does not return values from driver_info.","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"def _get_instance_image_info(node, ctx):"},{"line_number":107,"context_line":"    \"\"\"Generate href or tftp path for instance related images."},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    This method generates the paths for instance kernel and"},{"line_number":110,"context_line":"    instance ramdisk. This method also updates the node, so caller should"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_910dbeea","line":107,"updated":"2015-08-14 13:47:42.000000000","message":"Maybe something like \"Generate the paths for files for instance related images\"","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"a2f603f97b22f884164d46bcc468c879563e2c55","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# coding\u003dutf-8"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2015 International Business Machines Corporation"},{"line_number":4,"context_line":"# All Rights Reserved."}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_8209f3df","line":1,"updated":"2015-08-24 02:44:03.000000000","message":"This should not be required I think.","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"a2f603f97b22f884164d46bcc468c879563e2c55","unresolved":false,"context_lines":[{"line_number":48,"context_line":"               help\u003d_(\u0027On ironic-conductor node, template file for petitboot \u0027"},{"line_number":49,"context_line":"                      \u0027configuration\u0027)),"},{"line_number":50,"context_line":"    cfg.StrOpt(\u0027protocol\u0027,"},{"line_number":51,"context_line":"               default\u003d\u0027http\u0027,"},{"line_number":52,"context_line":"               help\u003d_(\u0027File transfer protocol for petitboot, only support \u0027"},{"line_number":53,"context_line":"                      \u0027http and tftp\u0027)),"},{"line_number":54,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_22402707","line":51,"updated":"2015-08-24 02:44:03.000000000","message":"It should be better if we add line to support choices option as below:\n\n    choices\u003d(\u0027http\u0027, \u0027tftp\u0027),","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":11042,"name":"chenglch","email":"chenglch@cn.ibm.com","username":"chenglch"},"change_message_id":"fd4473868c38e5b9f8a79d02127941594ed5826a","unresolved":false,"context_lines":[{"line_number":48,"context_line":"               help\u003d_(\u0027On ironic-conductor node, template file for petitboot \u0027"},{"line_number":49,"context_line":"                      \u0027configuration\u0027)),"},{"line_number":50,"context_line":"    cfg.StrOpt(\u0027protocol\u0027,"},{"line_number":51,"context_line":"               default\u003d\u0027http\u0027,"},{"line_number":52,"context_line":"               help\u003d_(\u0027File transfer protocol for petitboot, only support \u0027"},{"line_number":53,"context_line":"                      \u0027http and tftp\u0027)),"},{"line_number":54,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_4472087e","line":51,"in_reply_to":"fa1b9901_22402707","updated":"2015-08-24 03:35:44.000000000","message":"Thanks","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"a2f603f97b22f884164d46bcc468c879563e2c55","unresolved":false,"context_lines":[{"line_number":286,"context_line":"                driver\u003dself.__class__.__name__,"},{"line_number":287,"context_line":"                reason\u003d_(\"Unable to load petitboot boot driver. Petitboot \""},{"line_number":288,"context_line":"                         \"boot driver only support tftp and http transfer \""},{"line_number":289,"context_line":"                         \"protocols\"))"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"    def get_properties(self):"},{"line_number":292,"context_line":"        \"\"\"Return the properties of the interface."}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_6749518e","line":289,"updated":"2015-08-24 02:44:03.000000000","message":"Dont think these protocol validation are the required logic to init a driver, can we move L284-L289 to validate method?","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":11042,"name":"chenglch","email":"chenglch@cn.ibm.com","username":"chenglch"},"change_message_id":"fd4473868c38e5b9f8a79d02127941594ed5826a","unresolved":false,"context_lines":[{"line_number":286,"context_line":"                driver\u003dself.__class__.__name__,"},{"line_number":287,"context_line":"                reason\u003d_(\"Unable to load petitboot boot driver. Petitboot \""},{"line_number":288,"context_line":"                         \"boot driver only support tftp and http transfer \""},{"line_number":289,"context_line":"                         \"protocols\"))"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"    def get_properties(self):"},{"line_number":292,"context_line":"        \"\"\"Return the properties of the interface."}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_444be82b","line":289,"in_reply_to":"fa1b9901_6749518e","updated":"2015-08-24 03:35:44.000000000","message":"I think petitboot protocol is a CONF option here.\n\nI refer to the comments from https://review.openstack.org/#/c/177641/10/specs/liberty/petitboot-iscsi-driver.rst\n\nDevananda said validate() method should validate the Node\u0027s information (eg, node.driver_info). It has nothing to do with the CONF options -- those should be checked within the driver\u0027s __init__() method","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"d58bd6b80f484344eb66218f2b05034f3ee2bdf8","unresolved":false,"context_lines":[{"line_number":358,"context_line":"            node\u0027s driver_info or instance_info."},{"line_number":359,"context_line":"        :raises: InvalidParameterValue, if some information provided is"},{"line_number":360,"context_line":"            invalid."},{"line_number":361,"context_line":"        :raises: IronicException, if some power or set boot boot device"},{"line_number":362,"context_line":"            operation failed on the node."},{"line_number":363,"context_line":"        \"\"\""},{"line_number":364,"context_line":"        node \u003d task.node"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_ad1427f5","line":361,"updated":"2015-08-18 08:56:28.000000000","message":"s/boot boot/boot/ ?","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":11042,"name":"chenglch","email":"chenglch@cn.ibm.com","username":"chenglch"},"change_message_id":"fd4473868c38e5b9f8a79d02127941594ed5826a","unresolved":false,"context_lines":[{"line_number":358,"context_line":"            node\u0027s driver_info or instance_info."},{"line_number":359,"context_line":"        :raises: InvalidParameterValue, if some information provided is"},{"line_number":360,"context_line":"            invalid."},{"line_number":361,"context_line":"        :raises: IronicException, if some power or set boot boot device"},{"line_number":362,"context_line":"            operation failed on the node."},{"line_number":363,"context_line":"        \"\"\""},{"line_number":364,"context_line":"        node \u003d task.node"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_046c109b","line":361,"in_reply_to":"fa1b9901_ad1427f5","updated":"2015-08-24 03:35:44.000000000","message":"Thanks","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8f471f2b9d6ef062f00cddc818b25c341bc58de7","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"\"\"\""},{"line_number":16,"context_line":"Petitboot Boot Interface"},{"line_number":17,"context_line":"\"\"\""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import os"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_01aadb85","line":16,"updated":"2015-10-12 15:09:43.000000000","message":"All methods in this file are mostly the same as for PXE and some of them can be refactored  in the future.","commit_id":"0f61cfb8b5fbaa14a74d93bced0fd311f3c53b3a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8f471f2b9d6ef062f00cddc818b25c341bc58de7","unresolved":false,"context_lines":[{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    if CONF.petitboot.protocol \u003d\u003d \u0027http\u0027:"},{"line_number":198,"context_line":"        deploy_kernel \u003d \u0027/\u0027.join("},{"line_number":199,"context_line":"            [CONF.deploy.http_url, node.uuid, \u0027deploy_kernel\u0027])"},{"line_number":200,"context_line":"        deploy_ramdisk \u003d \u0027/\u0027.join("},{"line_number":201,"context_line":"            [CONF.deploy.http_url, node.uuid, \u0027deploy_ramdisk\u0027])"},{"line_number":202,"context_line":"        if not is_whole_disk_image:"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_4eed628d","line":199,"updated":"2015-10-12 15:09:43.000000000","message":"please use urljoin()","commit_id":"0f61cfb8b5fbaa14a74d93bced0fd311f3c53b3a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8f471f2b9d6ef062f00cddc818b25c341bc58de7","unresolved":false,"context_lines":[{"line_number":198,"context_line":"        deploy_kernel \u003d \u0027/\u0027.join("},{"line_number":199,"context_line":"            [CONF.deploy.http_url, node.uuid, \u0027deploy_kernel\u0027])"},{"line_number":200,"context_line":"        deploy_ramdisk \u003d \u0027/\u0027.join("},{"line_number":201,"context_line":"            [CONF.deploy.http_url, node.uuid, \u0027deploy_ramdisk\u0027])"},{"line_number":202,"context_line":"        if not is_whole_disk_image:"},{"line_number":203,"context_line":"            kernel \u003d \u0027/\u0027.join("},{"line_number":204,"context_line":"                [CONF.deploy.http_url, node.uuid, \u0027kernel\u0027])"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_6ef29e71","line":201,"updated":"2015-10-12 15:09:43.000000000","message":"ditto","commit_id":"0f61cfb8b5fbaa14a74d93bced0fd311f3c53b3a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8f471f2b9d6ef062f00cddc818b25c341bc58de7","unresolved":false,"context_lines":[{"line_number":201,"context_line":"            [CONF.deploy.http_url, node.uuid, \u0027deploy_ramdisk\u0027])"},{"line_number":202,"context_line":"        if not is_whole_disk_image:"},{"line_number":203,"context_line":"            kernel \u003d \u0027/\u0027.join("},{"line_number":204,"context_line":"                [CONF.deploy.http_url, node.uuid, \u0027kernel\u0027])"},{"line_number":205,"context_line":"            ramdisk \u003d \u0027/\u0027.join("},{"line_number":206,"context_line":"                [CONF.deploy.http_url, node.uuid, \u0027ramdisk\u0027])"},{"line_number":207,"context_line":"    elif CONF.petitboot.protocol \u003d\u003d \u0027tftp\u0027:"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_6ec05ee1","line":204,"updated":"2015-10-12 15:09:43.000000000","message":"ditto","commit_id":"0f61cfb8b5fbaa14a74d93bced0fd311f3c53b3a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8f471f2b9d6ef062f00cddc818b25c341bc58de7","unresolved":false,"context_lines":[{"line_number":203,"context_line":"            kernel \u003d \u0027/\u0027.join("},{"line_number":204,"context_line":"                [CONF.deploy.http_url, node.uuid, \u0027kernel\u0027])"},{"line_number":205,"context_line":"            ramdisk \u003d \u0027/\u0027.join("},{"line_number":206,"context_line":"                [CONF.deploy.http_url, node.uuid, \u0027ramdisk\u0027])"},{"line_number":207,"context_line":"    elif CONF.petitboot.protocol \u003d\u003d \u0027tftp\u0027:"},{"line_number":208,"context_line":"        # NOTE(chenglch): Petitboot will insert the prefix path which is used"},{"line_number":209,"context_line":"        # to transfer the config file, so only file name should be appended."}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_6e4e1e98","line":206,"updated":"2015-10-12 15:09:43.000000000","message":"ditto","commit_id":"0f61cfb8b5fbaa14a74d93bced0fd311f3c53b3a"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8f471f2b9d6ef062f00cddc818b25c341bc58de7","unresolved":false,"context_lines":[{"line_number":280,"context_line":""},{"line_number":281,"context_line":"    def __init__(self):"},{"line_number":282,"context_line":"        \"\"\"Check petitboot configuration option.\"\"\""},{"line_number":283,"context_line":"        if CONF.petitboot.protocol not in (\u0027tftp\u0027, \u0027http\u0027):"},{"line_number":284,"context_line":"            raise exception.DriverLoadError("},{"line_number":285,"context_line":"                driver\u003dself.__class__.__name__,"},{"line_number":286,"context_line":"                reason\u003d_(\"Unable to load petitboot boot driver. Petitboot \""}],"source_content_type":"text/x-python","patch_set":7,"id":"7a2fa921_ce941246","line":283,"updated":"2015-10-12 15:09:43.000000000","message":"If you use choices from oslo config this check is not needed.","commit_id":"0f61cfb8b5fbaa14a74d93bced0fd311f3c53b3a"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"2b95a71ef8c298fbd27e9d8d80016a525de1093f","unresolved":false,"context_lines":[{"line_number":173,"context_line":"    return dhcp_opts"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"class PetitbootBoot(pxe.PXEBoot):"},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"    @classmethod"},{"line_number":179,"context_line":"    def _get_root_dir(cls):"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_615cdfed","line":176,"updated":"2016-01-18 11:42:51.000000000","message":"I don\u0027t know if it\u0027s a good idea to inherit from other drivers like this. I saw that a couple of method from PXEBoot were refactored to become classmethod and they are private (prefixed with \u0027_\u0027).\n\nAnd PetitBoot is now overwriting some of these private methods (_clean_up_env(), _validate_boot_parameters()) and that\u0027s a class design problem. We shouldn\u0027t rely on nor overwriting private methods from other classes like that.\n\nI think we should get the common functions that will be used by both classes and refactor it out in another file (boot_utils.py?! Just like deploy_utils.py) and reuse in both drivers instead of shoving all methods in one driver class and the inherit from it.","commit_id":"ee51a8b700b6d4b4e525e4f6365d1a26055f3f1d"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":113,"context_line":"def _parse_instance_info(node):"},{"line_number":114,"context_line":"    \"\"\"Gets the instance and driver specific Node deployment info."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    This method validates whether the \u0027instance_info\u0027 and \u0027driver_info\u0027"},{"line_number":117,"context_line":"    property of the supplied node contains the required information for"},{"line_number":118,"context_line":"    this driver to deploy images to the node."},{"line_number":119,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_d1cee6b6","line":116,"updated":"2015-08-14 13:47:42.000000000","message":"Should be also updated here.","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"}],"ironic/drivers/opc.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"6ce286349c69093a6e9faa76ddd549ecaf33e8ca","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class OpenPOWERIscsiAndIPMINativeDriver(base.BaseDriver):"},{"line_number":34,"context_line":"    \"\"\"Petitboot + Iscsi + IPMINative driver"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    This driver implements the `core` functionality, combining"},{"line_number":37,"context_line":"    :class:`ironic.drivers.modules.ipmi.native` for power on/off"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_b4cd48b9","line":34,"updated":"2015-08-14 13:47:42.000000000","message":"Why not add IPMITool drivers too?","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":11042,"name":"chenglch","email":"chenglch@cn.ibm.com","username":"chenglch"},"change_message_id":"ad0ceda4462430ae34abb8d7484b2eb6acb5ddfc","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class OpenPOWERIscsiAndIPMINativeDriver(base.BaseDriver):"},{"line_number":34,"context_line":"    \"\"\"Petitboot + Iscsi + IPMINative driver"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    This driver implements the `core` functionality, combining"},{"line_number":37,"context_line":"    :class:`ironic.drivers.modules.ipmi.native` for power on/off"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_13d9b421","line":34,"in_reply_to":"1a4dcd0f_b4cd48b9","updated":"2015-08-18 09:37:57.000000000","message":"This is a suggestion from Devananda in the spec \nhttps://review.openstack.org/#/c/177641/10/specs/liberty/petitboot-iscsi-driver.rst\n\nAs pyghmi is written by a team at IBM, he expect pyghmi to have good support for OpenPOWER platform.","commit_id":"255ec450c5731e5781c2008453cd4a2f55e1d77b"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"a2f603f97b22f884164d46bcc468c879563e2c55","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# coding\u003dutf-8"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright 2015 International Business Machines Corporation"},{"line_number":4,"context_line":"# All Rights Reserved."}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_622b7f34","line":1,"updated":"2015-08-24 02:44:03.000000000","message":"This should not be required I think.","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3333d16bcf0d0d7a738eec73fcdfbef56174a63e","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            \u0027OpenPOWERIscsiAndIPMINativeDriver\u0027)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class OpenPOWERAgentiAndIPMINativeDriver(base.BaseDriver):"},{"line_number":57,"context_line":"    \"\"\"Petitboot + Agent + IPMINative driver"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    This driver implements the `core` functionality, combining"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a8ffd7b_cfff6b00","line":56,"updated":"2015-12-03 14:21:18.000000000","message":"OpenPOWERAgent (not agenti)","commit_id":"e1b56b312560b96370ae30209b73a14e9ea8140a"}],"ironic/tests/drivers/opc/test_petitboot.py":[{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"a2f603f97b22f884164d46bcc468c879563e2c55","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# coding\u003dutf-8"},{"line_number":2,"context_line":"# Copyright 2015 International Business Machines Corporation"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_422afb2d","line":1,"updated":"2015-08-24 02:44:03.000000000","message":"ditto","commit_id":"ca693609fa74267b455f6ca89de870da33526ba9"}]}
