)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"5411ecd2d26bd78d647d2ab1d8d3cdee4cadb595","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Allow not writing pxe configs to disk"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"add a toggle to the methods that render (i)PXE config templates to"},{"line_number":10,"context_line":"optionally not write the template on disk."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Also these methods are now returning the boot config rendered from template"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"9a30ddce_d60eaae4","line":9,"updated":"2017-03-07 00:21:33.000000000","message":"Please explain \"why\" this is being done. I\"m assuming a follow-on patch is adding some feature.","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"17b1d97d8f37187540e63feede5072aba05d4d9c","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Allow not writing pxe configs to disk"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"add a toggle to the methods that render (i)PXE config templates to"},{"line_number":10,"context_line":"optionally not write the template on disk."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Also these methods are now returning the boot config rendered from template"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"9a30ddce_f978f591","line":9,"in_reply_to":"9a30ddce_d60eaae4","updated":"2017-03-07 07:01:51.000000000","message":"++","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"e966cc7b3f10b2dbc947acb642a1cc4099843363","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Allow not writing pxe configs to disk"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"add a toggle to the methods that render (i)PXE config templates to"},{"line_number":10,"context_line":"optionally not write the template on disk."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Also these methods are now returning the boot config rendered from template"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"9a30ddce_66e8d47d","line":9,"in_reply_to":"9a30ddce_d60eaae4","updated":"2017-03-07 14:05:21.000000000","message":"Done","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"}],"ironic/common/pxe_utils.py":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"02146427bbb8409ca50f8bdd2a1cf923f177ab36","unresolved":false,"context_lines":[{"line_number":227,"context_line":"            _link_ip_address_pxe_configs(task, hex_form)"},{"line_number":228,"context_line":"        else:"},{"line_number":229,"context_line":"            _link_mac_pxe_configs(task)"},{"line_number":230,"context_line":"    return template, params"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def clean_up_pxe_config(task):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_e49e51b7","line":230,"updated":"2016-11-08 22:47:30.000000000","message":"Basing on the function name, I\u0027d expect the function either to return None, or the pxe_config. \n\nIn this implementation config is rendered only if on_disk is enabled. \nI\u0027d put only lines 221, 222 and 224 into if scope.\n223 could be put before if, while 226-229 after if.","commit_id":"d39d6d052492117a08194d380ccfe54060a6857a"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"f9fc9c2feeb731e49c185155e89c54324782118d","unresolved":false,"context_lines":[{"line_number":227,"context_line":"            _link_ip_address_pxe_configs(task, hex_form)"},{"line_number":228,"context_line":"        else:"},{"line_number":229,"context_line":"            _link_mac_pxe_configs(task)"},{"line_number":230,"context_line":"    return template, params"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def clean_up_pxe_config(task):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_4ad4511f","line":230,"in_reply_to":"7a77a97e_e8e72210","updated":"2016-11-16 20:05:44.000000000","message":"re-implemented with rendering on conductor side and passing over RPC - now the name matches to what is returned :)","commit_id":"d39d6d052492117a08194d380ccfe54060a6857a"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"6ece6614927277cddf91f51cb3f15acd700b27f8","unresolved":false,"context_lines":[{"line_number":227,"context_line":"            _link_ip_address_pxe_configs(task, hex_form)"},{"line_number":228,"context_line":"        else:"},{"line_number":229,"context_line":"            _link_mac_pxe_configs(task)"},{"line_number":230,"context_line":"    return template, params"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def clean_up_pxe_config(task):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_e8e72210","line":230,"in_reply_to":"9a629dbe_a9d08420","updated":"2016-11-15 20:12:12.000000000","message":"I am actually having second thoughts on the rationale to render this in API instead of rendering the template on conductor and passing the whole thing over RPC - it will complicate the setup in the sense that config option setting the path to the template is set in the ironic.conf on ironic-conductor host, but that path actually must refer to a file on ironic-api host..\n\nI am asking for opinion on that in the latest spec edit.","commit_id":"d39d6d052492117a08194d380ccfe54060a6857a"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"be1fc850f4634df63052689a88bc4ebcdd60a3fa","unresolved":false,"context_lines":[{"line_number":227,"context_line":"            _link_ip_address_pxe_configs(task, hex_form)"},{"line_number":228,"context_line":"        else:"},{"line_number":229,"context_line":"            _link_mac_pxe_configs(task)"},{"line_number":230,"context_line":"    return template, params"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def clean_up_pxe_config(task):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_a9d08420","line":230,"in_reply_to":"9a629dbe_b321efa1","updated":"2016-11-09 19:29:03.000000000","message":"Understood about 226-229. \n\nI get that it\u0027s a legacy name, however it\u0027s misleading in terms of returned values. I took a look at the spec review, and it\u0027s explained pretty well that the translation of template and options sent by RPC to full config happens for each REST API call - that\u0027s great. \nWhat about moving the contents of create_config to prepare_config_prerequisites and leave the \"if\" part in create, while using \"prepare\" for RPC body preparation? I don\u0027t insist, just an idea :)","commit_id":"d39d6d052492117a08194d380ccfe54060a6857a"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"b025a0c2c2e109c9eba41fe55830c413c4529e7f","unresolved":false,"context_lines":[{"line_number":227,"context_line":"            _link_ip_address_pxe_configs(task, hex_form)"},{"line_number":228,"context_line":"        else:"},{"line_number":229,"context_line":"            _link_mac_pxe_configs(task)"},{"line_number":230,"context_line":"    return template, params"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def clean_up_pxe_config(task):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_b321efa1","line":230,"in_reply_to":"9a629dbe_e49e51b7","updated":"2016-11-09 08:59:15.000000000","message":"the function name is left unchanged for backward compatibility\n\nmoving 226-229 after if seems wrong, what to create links to if targets have not been created?\n\nplease see the spec patch \n\nhttps://review.openstack.org/#/c/392290\n\non why I am doing this. For this particular code the reason to not return the rendered template is that I do not want to pass the whole rendered template over RPC, just the template location and options necessary to render it on API side.\n\nBut this is still on review - please chime in there :)","commit_id":"d39d6d052492117a08194d380ccfe54060a6857a"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e9b1cfb21267fecde42d283cdb64c164d5fefb00","unresolved":false,"context_lines":[{"line_number":185,"context_line":"        parameters."},{"line_number":186,"context_line":"    :param template: The PXE configuration template. If no template is"},{"line_number":187,"context_line":"        given the node specific template will be used."},{"line_number":188,"context_line":"    :param on_disk: if True, rendered template is written to the file on disk."},{"line_number":189,"context_line":"    :returns: rendered template as string"},{"line_number":190,"context_line":"    \"\"\""},{"line_number":191,"context_line":"    LOG.debug(\"Building PXE config for node %s\", task.node.uuid)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_d2a8da79","line":188,"updated":"2016-11-17 23:04:55.000000000","message":"I would change it to (mainly because template word seems confusing for me here):\nif True, created config is saved as a file on disk.","commit_id":"1d74f474b9f91b2e4d15ead1b6876ffa6f2d9562"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"27b2e87ddf673db374e6e416a2941715be7ba1c9","unresolved":false,"context_lines":[{"line_number":185,"context_line":"        parameters."},{"line_number":186,"context_line":"    :param template: The PXE configuration template. If no template is"},{"line_number":187,"context_line":"        given the node specific template will be used."},{"line_number":188,"context_line":"    :param on_disk: if True, rendered template is written to the file on disk."},{"line_number":189,"context_line":"    :returns: rendered template as string"},{"line_number":190,"context_line":"    \"\"\""},{"line_number":191,"context_line":"    LOG.debug(\"Building PXE config for node %s\", task.node.uuid)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_02fd476e","line":188,"in_reply_to":"7a77a97e_d2a8da79","updated":"2016-11-21 12:58:10.000000000","message":"Done","commit_id":"1d74f474b9f91b2e4d15ead1b6876ffa6f2d9562"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e9b1cfb21267fecde42d283cdb64c164d5fefb00","unresolved":false,"context_lines":[{"line_number":374,"context_line":"        parameters."},{"line_number":375,"context_line":"    :param root_uuid_or_disk_id: identifier of boot target on disk"},{"line_number":376,"context_line":"    :param on_disk: if True, rendered template is written to the file on disk."},{"line_number":377,"context_line":"    :returns: rendered template as string"},{"line_number":378,"context_line":"    \"\"\""},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"    LOG.debug(\"Building service PXE config for node %s\", node.uuid)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_120b328f","line":377,"updated":"2016-11-17 23:04:55.000000000","message":"ditto","commit_id":"1d74f474b9f91b2e4d15ead1b6876ffa6f2d9562"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"27b2e87ddf673db374e6e416a2941715be7ba1c9","unresolved":false,"context_lines":[{"line_number":374,"context_line":"        parameters."},{"line_number":375,"context_line":"    :param root_uuid_or_disk_id: identifier of boot target on disk"},{"line_number":376,"context_line":"    :param on_disk: if True, rendered template is written to the file on disk."},{"line_number":377,"context_line":"    :returns: rendered template as string"},{"line_number":378,"context_line":"    \"\"\""},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"    LOG.debug(\"Building service PXE config for node %s\", node.uuid)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_62f43b87","line":377,"in_reply_to":"7a77a97e_120b328f","updated":"2016-11-21 12:58:10.000000000","message":"Done","commit_id":"1d74f474b9f91b2e4d15ead1b6876ffa6f2d9562"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a960f25b64b99fdcef5ca495bae54c70a267babc","unresolved":false,"context_lines":[{"line_number":227,"context_line":"        utils.write_to_file(pxe_config_file_path, pxe_config)"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"        if is_uefi_boot_mode and not CONF.pxe.ipxe_enabled:"},{"line_number":230,"context_line":"            _link_ip_address_pxe_configs(task, hex_form)"},{"line_number":231,"context_line":"        else:"},{"line_number":232,"context_line":"            _link_mac_pxe_configs(task)"},{"line_number":233,"context_line":"    return pxe_config"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a71b18c_f9f33a9c","line":230,"updated":"2016-12-03 22:03:13.000000000","message":"Won\u0027t this still be necessary with a dynamic / ephemeral PXE config? Same with L232.","commit_id":"94869beff6ab15379f1561756b8ebe4215f29128"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"e29121463dce09fccc37970661c6e4016842954e","unresolved":false,"context_lines":[{"line_number":227,"context_line":"        utils.write_to_file(pxe_config_file_path, pxe_config)"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"        if is_uefi_boot_mode and not CONF.pxe.ipxe_enabled:"},{"line_number":230,"context_line":"            _link_ip_address_pxe_configs(task, hex_form)"},{"line_number":231,"context_line":"        else:"},{"line_number":232,"context_line":"            _link_mac_pxe_configs(task)"},{"line_number":233,"context_line":"    return pxe_config"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a71b18c_81cd5db9","line":230,"in_reply_to":"3a71b18c_f9f33a9c","updated":"2016-12-05 08:03:31.000000000","message":"no. these are creating proper links on disk, but with dynamic iPXE config, no files are created on disk in the first place, so there is nothing to make links to.","commit_id":"94869beff6ab15379f1561756b8ebe4215f29128"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"8f8d767e0bf7a0c122fcbf9f521291224e51a195","unresolved":false,"context_lines":[{"line_number":356,"context_line":"                     for t in templates if t}:"},{"line_number":357,"context_line":"            # NOTE(pas-ha) do not fail on missing files,"},{"line_number":358,"context_line":"            # produce warnings only for present legacy-formatted ipxe files"},{"line_number":359,"context_line":"            if os.path.isfile(path):"},{"line_number":360,"context_line":"                with open(path) as f:"},{"line_number":361,"context_line":"                    template \u003d f.read()"},{"line_number":362,"context_line":"                if _is_legacy_ipxe_template(template):"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_9b2a9be6","line":359,"updated":"2017-03-07 00:01:15.000000000","message":"what was the reason behind changing this approach?","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"e966cc7b3f10b2dbc947acb642a1cc4099843363","unresolved":false,"context_lines":[{"line_number":356,"context_line":"                     for t in templates if t}:"},{"line_number":357,"context_line":"            # NOTE(pas-ha) do not fail on missing files,"},{"line_number":358,"context_line":"            # produce warnings only for present legacy-formatted ipxe files"},{"line_number":359,"context_line":"            if os.path.isfile(path):"},{"line_number":360,"context_line":"                with open(path) as f:"},{"line_number":361,"context_line":"                    template \u003d f.read()"},{"line_number":362,"context_line":"                if _is_legacy_ipxe_template(template):"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_8e816992","line":359,"in_reply_to":"9a30ddce_9b2a9be6","updated":"2017-03-07 14:05:21.000000000","message":"please see comments in previous patch-set.\n\nBasically this is to keep current behavior when ironic-conductor will not fail on start if one of configured pxe templates is absent.","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"8f8d767e0bf7a0c122fcbf9f521291224e51a195","unresolved":false,"context_lines":[{"line_number":364,"context_line":""},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"def _is_legacy_ipxe_template(template):"},{"line_number":367,"context_line":"    \"\"\"Check that iPXE boot config template is a legacy one."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"    In legacy templates, the target to boot into (\u0027goto ...\u0027) is not templated,"},{"line_number":370,"context_line":"    and instead real on-disk file is expected to be edited during"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_dbd093cc","line":367,"updated":"2017-03-07 00:01:15.000000000","message":"nit: s/that/if/","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"5411ecd2d26bd78d647d2ab1d8d3cdee4cadb595","unresolved":false,"context_lines":[{"line_number":364,"context_line":""},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"def _is_legacy_ipxe_template(template):"},{"line_number":367,"context_line":"    \"\"\"Check that iPXE boot config template is a legacy one."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"    In legacy templates, the target to boot into (\u0027goto ...\u0027) is not templated,"},{"line_number":370,"context_line":"    and instead real on-disk file is expected to be edited during"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_7b2c07ac","line":367,"in_reply_to":"9a30ddce_dbd093cc","updated":"2017-03-07 00:21:33.000000000","message":"I think \u0027that\u0027 is fine. Also this isn\u0027t changed by this patch.","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"8f8d767e0bf7a0c122fcbf9f521291224e51a195","unresolved":false,"context_lines":[{"line_number":370,"context_line":"    and instead real on-disk file is expected to be edited during"},{"line_number":371,"context_line":"    switch_pxe_config. This is deprecated."},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"    This function tests that the template is indeed an iPXE one"},{"line_number":374,"context_line":"    (starts with ipxe shebang), and that the \u0027goto ..\u0027 string does not have"},{"line_number":375,"context_line":"    the specific Jinja2 template construct that now has to be used in"},{"line_number":376,"context_line":"    non-legacy iPXE templates."}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_3bd8cfef","line":373,"updated":"2017-03-07 00:01:15.000000000","message":"ditto","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"8f8d767e0bf7a0c122fcbf9f521291224e51a195","unresolved":false,"context_lines":[{"line_number":413,"context_line":"                               root_uuid_or_disk_id, on_disk\u003dTrue):"},{"line_number":414,"context_line":"    \"\"\"Render iPXE boot config template for netboot-ed node"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    :param task: Ironic Task object"},{"line_number":417,"context_line":"    :param pxe_options: A dictionary with the PXE configuration"},{"line_number":418,"context_line":"        parameters"},{"line_number":419,"context_line":"    :param pxe_config_template: Path to the pxe config Jinja2 template"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_1b022b3f","line":416,"updated":"2017-03-07 00:01:15.000000000","message":"Why was this changed? I mean, task is not used here for anything else than retrieving node from it. Previous version seemed more descriptive for me","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"5411ecd2d26bd78d647d2ab1d8d3cdee4cadb595","unresolved":false,"context_lines":[{"line_number":413,"context_line":"                               root_uuid_or_disk_id, on_disk\u003dTrue):"},{"line_number":414,"context_line":"    \"\"\"Render iPXE boot config template for netboot-ed node"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    :param task: Ironic Task object"},{"line_number":417,"context_line":"    :param pxe_options: A dictionary with the PXE configuration"},{"line_number":418,"context_line":"        parameters"},{"line_number":419,"context_line":"    :param pxe_config_template: Path to the pxe config Jinja2 template"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_b603f60c","line":416,"in_reply_to":"9a30ddce_1b022b3f","updated":"2017-03-07 00:21:33.000000000","message":"Are you comparing this patch to the \u0027base\u0027? I\u0027m confused on your comment.","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"e966cc7b3f10b2dbc947acb642a1cc4099843363","unresolved":false,"context_lines":[{"line_number":413,"context_line":"                               root_uuid_or_disk_id, on_disk\u003dTrue):"},{"line_number":414,"context_line":"    \"\"\"Render iPXE boot config template for netboot-ed node"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    :param task: Ironic Task object"},{"line_number":417,"context_line":"    :param pxe_options: A dictionary with the PXE configuration"},{"line_number":418,"context_line":"        parameters"},{"line_number":419,"context_line":"    :param pxe_config_template: Path to the pxe config Jinja2 template"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_6e5b5555","line":416,"in_reply_to":"9a30ddce_1b022b3f","updated":"2017-03-07 14:05:21.000000000","message":"please see comments to previous change-set\n\nVlad asked for the signature to be similar to existing functions.","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"8f8d767e0bf7a0c122fcbf9f521291224e51a195","unresolved":false,"context_lines":[{"line_number":443,"context_line":"    template_options \u003d {\u0027pxe_options\u0027: pxe_options,"},{"line_number":444,"context_line":"                        disk_tag: root_uuid_or_disk_id}"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    pxe_config \u003d _render_ipxe_template(pxe_config_template, template_options)"},{"line_number":447,"context_line":"    if on_disk:"},{"line_number":448,"context_line":"        pxe_config_file_path \u003d get_pxe_config_file_path(node.uuid)"},{"line_number":449,"context_line":"        # NOTE(pas-ha) here we rely on the assumption that the proper"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_5b2023f8","line":446,"updated":"2017-03-07 00:01:15.000000000","message":"from what I see, this function still has template path as the parameter?","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"e966cc7b3f10b2dbc947acb642a1cc4099843363","unresolved":false,"context_lines":[{"line_number":443,"context_line":"    template_options \u003d {\u0027pxe_options\u0027: pxe_options,"},{"line_number":444,"context_line":"                        disk_tag: root_uuid_or_disk_id}"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    pxe_config \u003d _render_ipxe_template(pxe_config_template, template_options)"},{"line_number":447,"context_line":"    if on_disk:"},{"line_number":448,"context_line":"        pxe_config_file_path \u003d get_pxe_config_file_path(node.uuid)"},{"line_number":449,"context_line":"        # NOTE(pas-ha) here we rely on the assumption that the proper"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_0e3bb9ec","line":446,"in_reply_to":"9a30ddce_5b2023f8","updated":"2017-03-07 14:05:21.000000000","message":"yes it is, the \u0027pxe_config_template\u0027 is a path to the template, as described in the docstring","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"}],"ironic/drivers/modules/ipxe.py":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"02146427bbb8409ca50f8bdd2a1cf923f177ab36","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        # during provisioning, so that we just need to re-write existing file"},{"line_number":115,"context_line":"        utils.write_to_file(pxe_config_file_path, pxe_config)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    return template_path, template_options"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_e4857159","line":117,"updated":"2016-11-08 22:47:30.000000000","message":"ditto","commit_id":"d39d6d052492117a08194d380ccfe54060a6857a"}],"ironic/tests/unit/common/test_pxe_utils.py":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"5411ecd2d26bd78d647d2ab1d8d3cdee4cadb595","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        with task_manager.acquire(self.context, self.node.uuid) as task:"},{"line_number":283,"context_line":"            config \u003d pxe_utils.create_pxe_config(task, self.pxe_options,"},{"line_number":284,"context_line":"                                                 CONF.pxe.pxe_config_template)"},{"line_number":285,"context_line":"            self.assertEqual(render_mock.return_value, config)"},{"line_number":286,"context_line":"            render_mock.assert_called_with("},{"line_number":287,"context_line":"                CONF.pxe.pxe_config_template,"},{"line_number":288,"context_line":"                {\u0027pxe_options\u0027: self.pxe_options,"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_965d12ef","line":285,"updated":"2017-03-07 00:21:33.000000000","message":"I guess this works. As comparing to make sure the mock objects being returned are the same.\n\nMight be more readable to others to explicitly set a value and compare.\n\n render_mock.return_value \u003d \"Rendered config text\"\n config \u003d ...\n self.assertEqual(\"Rendered config text\", config)","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"e966cc7b3f10b2dbc947acb642a1cc4099843363","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        with task_manager.acquire(self.context, self.node.uuid) as task:"},{"line_number":283,"context_line":"            config \u003d pxe_utils.create_pxe_config(task, self.pxe_options,"},{"line_number":284,"context_line":"                                                 CONF.pxe.pxe_config_template)"},{"line_number":285,"context_line":"            self.assertEqual(render_mock.return_value, config)"},{"line_number":286,"context_line":"            render_mock.assert_called_with("},{"line_number":287,"context_line":"                CONF.pxe.pxe_config_template,"},{"line_number":288,"context_line":"                {\u0027pxe_options\u0027: self.pxe_options,"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_6626146a","line":285,"in_reply_to":"9a30ddce_965d12ef","updated":"2017-03-07 14:05:21.000000000","message":"Done","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"8f8d767e0bf7a0c122fcbf9f521291224e51a195","unresolved":false,"context_lines":[{"line_number":699,"context_line":"        self.assertEqual(\"#!ipxe\\ngoto ham\", rendered)"},{"line_number":700,"context_line":""},{"line_number":701,"context_line":"    @mock.patch.object(pxe_utils, \u0027LOG\u0027, autospec\u003dTrue)"},{"line_number":702,"context_line":"    def test_warn_on_legacy_ipxe_templates(self, log_mock):"},{"line_number":703,"context_line":"        self.config(group\u003d\u0027pxe\u0027, ipxe_enabled\u003dTrue)"},{"line_number":704,"context_line":"        self.config(group\u003d\u0027pxe\u0027, pxe_config_template\u003d\u0027spam\u0027)"},{"line_number":705,"context_line":"        self.config(group\u003d\u0027pxe\u0027, uefi_pxe_config_template\u003d\u0027ham\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a30ddce_fb39d742","line":702,"updated":"2017-03-07 00:01:15.000000000","message":"awesome! missed that one","commit_id":"ea842ba4eca041a14ce7cc4a75fd802b580f4309"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"2e6f1fc1fc26663addd061c9ca9ed1a2c2420f28","unresolved":false,"context_lines":[{"line_number":311,"context_line":"            config \u003d pxe_utils.create_pxe_config(task, self.pxe_options,"},{"line_number":312,"context_line":"                                                 CONF.pxe.pxe_config_template,"},{"line_number":313,"context_line":"                                                 on_disk\u003dFalse)"},{"line_number":314,"context_line":"        self.assertEqual(render_mock.return_value, config)"},{"line_number":315,"context_line":"        render_mock.assert_called_with("},{"line_number":316,"context_line":"            CONF.pxe.pxe_config_template,"},{"line_number":317,"context_line":"            {\u0027pxe_options\u0027: self.pxe_options,"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a30ddce_92889ee9","line":314,"updated":"2017-03-07 15:04:43.000000000","message":"Would be nice to be done like L282 above.","commit_id":"cbbe5af2d0aa6d117b3a8640b6f57ff1c6592cdb"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"965c1dbe528550ce02afa0296b58c0649033c569","unresolved":false,"context_lines":[{"line_number":311,"context_line":"            config \u003d pxe_utils.create_pxe_config(task, self.pxe_options,"},{"line_number":312,"context_line":"                                                 CONF.pxe.pxe_config_template,"},{"line_number":313,"context_line":"                                                 on_disk\u003dFalse)"},{"line_number":314,"context_line":"        self.assertEqual(render_mock.return_value, config)"},{"line_number":315,"context_line":"        render_mock.assert_called_with("},{"line_number":316,"context_line":"            CONF.pxe.pxe_config_template,"},{"line_number":317,"context_line":"            {\u0027pxe_options\u0027: self.pxe_options,"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a30ddce_1290dceb","line":314,"in_reply_to":"9a30ddce_92889ee9","updated":"2017-03-09 08:03:12.000000000","message":"Yes, forgot about those. Done (for the ones below too).","commit_id":"cbbe5af2d0aa6d117b3a8640b6f57ff1c6592cdb"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"2e6f1fc1fc26663addd061c9ca9ed1a2c2420f28","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            task.node.properties[\u0027capabilities\u0027] \u003d \u0027boot_mode:uefi\u0027"},{"line_number":339,"context_line":"            config \u003d pxe_utils.create_pxe_config("},{"line_number":340,"context_line":"                task, self.pxe_options, CONF.pxe.uefi_pxe_config_template)"},{"line_number":341,"context_line":"            self.assertEqual(render_mock.return_value, config)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"            ensure_calls \u003d ["},{"line_number":344,"context_line":"                mock.call(os.path.join(CONF.pxe.tftp_root, self.node.uuid)),"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a30ddce_d26a161a","line":341,"updated":"2017-03-07 15:04:43.000000000","message":"Would be nice to be done like L282 above.","commit_id":"cbbe5af2d0aa6d117b3a8640b6f57ff1c6592cdb"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"2e6f1fc1fc26663addd061c9ca9ed1a2c2420f28","unresolved":false,"context_lines":[{"line_number":368,"context_line":"            task.node.properties[\u0027capabilities\u0027] \u003d \u0027boot_mode:uefi\u0027"},{"line_number":369,"context_line":"            config \u003d pxe_utils.create_pxe_config(task, self.pxe_options,"},{"line_number":370,"context_line":"                                                 grub_tmplte)"},{"line_number":371,"context_line":"            self.assertEqual(render_mock.return_value, config)"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"            ensure_calls \u003d ["},{"line_number":374,"context_line":"                mock.call(os.path.join(CONF.pxe.tftp_root, self.node.uuid)),"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a30ddce_12758ef8","line":371,"updated":"2017-03-07 15:04:43.000000000","message":"Would be nice to be done like L282 above.","commit_id":"cbbe5af2d0aa6d117b3a8640b6f57ff1c6592cdb"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"2e6f1fc1fc26663addd061c9ca9ed1a2c2420f28","unresolved":false,"context_lines":[{"line_number":401,"context_line":"            task.node.properties[\u0027capabilities\u0027] \u003d \u0027boot_mode:uefi\u0027"},{"line_number":402,"context_line":"            config \u003d pxe_utils.create_pxe_config(task, self.ipxe_options,"},{"line_number":403,"context_line":"                                                 ipxe_template_path)"},{"line_number":404,"context_line":"            self.assertEqual(render_mock.return_value, config)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"            ensure_calls \u003d ["},{"line_number":407,"context_line":"                mock.call(os.path.join(CONF.deploy.http_root, self.node.uuid)),"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a30ddce_925fbe71","line":404,"updated":"2017-03-07 15:04:43.000000000","message":"Would be nice to be done like L282 above.","commit_id":"cbbe5af2d0aa6d117b3a8640b6f57ff1c6592cdb"}]}
