)]}'
{"etc/ironic/ironic.conf.sample":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fe6e70b0efb283a566f46e8cb4a1c05b69e2b87","unresolved":false,"context_lines":[{"line_number":3422,"context_line":"# booting directly from. Deployment ramdisk and kernel with"},{"line_number":3423,"context_line":"# URI of these schemes will not be cached and served locally"},{"line_number":3424,"context_line":"# from conductor when iPXE is enabled. This option is mostly"},{"line_number":3425,"context_line":"# meaningful for standalone installation of Ironic. (list"},{"line_number":3426,"context_line":"# value)"},{"line_number":3427,"context_line":"#ipxe_boot_directly_from \u003d"},{"line_number":3428,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":10,"id":"3fa0c359_cc2329be","line":3425,"updated":"2018-02-16 13:07:35.000000000","message":"is it worth mentioning that the nodes have to be able to access the URIs directly?\n\nbtw, the sample config was removed in queens.","commit_id":"35127aa24e105180633dea759ed42b91839794de"}],"ironic/common/image_service.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ff010760024cfa3a9cd76641479dec68edc1511","unresolved":false,"context_lines":[{"line_number":292,"context_line":"    return cls()"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":""},{"line_number":295,"context_line":"def image_is_ipxe_ready(image_href):"},{"line_number":296,"context_line":"    scheme \u003d urlparse.urlparse(image_href).scheme.lower()"},{"line_number":297,"context_line":"    supported \u003d [s.lower() for s in CONF.pxe.ipxe_supported_schemes]"},{"line_number":298,"context_line":"    return scheme in supported"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_b1e35fd8","line":295,"updated":"2016-10-07 15:39:16.000000000","message":"please add unittests.","commit_id":"f73eeef1db684e9f90366fcbe05133098acd2bfb"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"b0d5d6d5c05623dec902513ee9ef6877f758d18b","unresolved":false,"context_lines":[{"line_number":292,"context_line":"    return cls()"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":""},{"line_number":295,"context_line":"def image_is_ipxe_ready(image_href):"},{"line_number":296,"context_line":"    scheme \u003d urlparse.urlparse(image_href).scheme.lower()"},{"line_number":297,"context_line":"    supported \u003d [s.lower() for s in CONF.pxe.ipxe_supported_schemes]"},{"line_number":298,"context_line":"    return scheme in supported"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_8ac7e194","line":295,"in_reply_to":"1a95cdbc_b1e35fd8","updated":"2016-10-10 07:12:51.000000000","message":"will do","commit_id":"f73eeef1db684e9f90366fcbe05133098acd2bfb"}],"ironic/conf/pxe.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"40dcaf82c750d4a4917430e39e1dce53c9f32d66","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                       \"local HTTP server. \""},{"line_number":106,"context_line":"                       \"Applicable only when \u0027ipxe_enabled\u0027 option is \""},{"line_number":107,"context_line":"                       \"set to true.\")),"},{"line_number":108,"context_line":"    cfg.ListOpt(\u0027ipxe_supported_schemes\u0027,"},{"line_number":109,"context_line":"                default\u003d[],"},{"line_number":110,"context_line":"                help\u003d_(\u0027A list of URI schemes that iPXE firmware on nodes \u0027"},{"line_number":111,"context_line":"                       \u0027supports booting directly from. \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a95cdbc_02c9deab","line":108,"range":{"start_line":108,"start_character":17,"end_line":108,"end_character":39},"updated":"2016-10-10 16:42:40.000000000","message":"The name of option misinforms. Should be something like \"ipxe_no_local_served\"","commit_id":"8a79c29e19c7e3a14d3675134c0a311b5355ac28"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"2235ce7420a5c9bd1cbd7073e4703760f69f23f6","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                       \"local HTTP server. \""},{"line_number":106,"context_line":"                       \"Applicable only when \u0027ipxe_enabled\u0027 option is \""},{"line_number":107,"context_line":"                       \"set to true.\")),"},{"line_number":108,"context_line":"    cfg.ListOpt(\u0027ipxe_supported_schemes\u0027,"},{"line_number":109,"context_line":"                default\u003d[],"},{"line_number":110,"context_line":"                help\u003d_(\u0027A list of URI schemes that iPXE firmware on nodes \u0027"},{"line_number":111,"context_line":"                       \u0027supports booting directly from. \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa6399be_1a3a1dce","line":108,"range":{"start_line":108,"start_character":17,"end_line":108,"end_character":39},"in_reply_to":"1a95cdbc_02c9deab","updated":"2016-10-10 18:51:57.000000000","message":"While I see your point, I don\u0027t like your proposed name either (and nothing appropriate enough comes to me ATM). Would like to have a second opinion on that.\n\nOTOH, to support a really heterogeneous HW park, it might worth to make this (with current name) a node capability field instead (with default of empty list). WDYT?","commit_id":"8a79c29e19c7e3a14d3675134c0a311b5355ac28"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"fefe69c4715e6209654096d512e7cf3695f320fb","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                       \"local HTTP server. \""},{"line_number":106,"context_line":"                       \"Applicable only when \u0027ipxe_enabled\u0027 option is \""},{"line_number":107,"context_line":"                       \"set to true.\")),"},{"line_number":108,"context_line":"    cfg.ListOpt(\u0027ipxe_supported_schemes\u0027,"},{"line_number":109,"context_line":"                default\u003d[],"},{"line_number":110,"context_line":"                help\u003d_(\u0027A list of URI schemes that iPXE firmware on nodes \u0027"},{"line_number":111,"context_line":"                       \u0027supports booting directly from. \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a6eadb0_0892a057","line":108,"range":{"start_line":108,"start_character":17,"end_line":108,"end_character":39},"in_reply_to":"fa6399be_1a3a1dce","updated":"2016-12-19 20:21:16.000000000","message":"changed to ipxe_boot_directly_from","commit_id":"8a79c29e19c7e3a14d3675134c0a311b5355ac28"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3ff010760024cfa3a9cd76641479dec68edc1511","unresolved":false,"context_lines":[{"line_number":414,"context_line":"            if CONF.pxe.ipxe_enabled and ("},{"line_number":415,"context_line":"                    CONF.pxe.ipxe_use_swift or"},{"line_number":416,"context_line":"                    service.image_is_ipxe_ready(pxe_info[label][0])):"},{"line_number":417,"context_line":"                pxe_info.pop(label)"},{"line_number":418,"context_line":"        if pxe_info:"},{"line_number":419,"context_line":"            _cache_ramdisk_kernel(task.context, node, pxe_info)"},{"line_number":420,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_317bcf29","line":417,"updated":"2016-10-07 15:39:16.000000000","message":"Seems a bit hacky - we first add it to pxe_info so that _get_ipxe_kernel_ramdisk can see it, but then remove it. Maybe we could avoid putting it in the pxe_info in the first place, and in _get_ipxe_kernel_ramdisk decide what to put in the pxe_options by looking at the driver_info?","commit_id":"f73eeef1db684e9f90366fcbe05133098acd2bfb"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"b0d5d6d5c05623dec902513ee9ef6877f758d18b","unresolved":false,"context_lines":[{"line_number":414,"context_line":"            if CONF.pxe.ipxe_enabled and ("},{"line_number":415,"context_line":"                    CONF.pxe.ipxe_use_swift or"},{"line_number":416,"context_line":"                    service.image_is_ipxe_ready(pxe_info[label][0])):"},{"line_number":417,"context_line":"                pxe_info.pop(label)"},{"line_number":418,"context_line":"        if pxe_info:"},{"line_number":419,"context_line":"            _cache_ramdisk_kernel(task.context, node, pxe_info)"},{"line_number":420,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a95cdbc_6acc55bb","line":417,"in_reply_to":"1a95cdbc_317bcf29","updated":"2016-10-10 07:12:51.000000000","message":"I see your point, but IMO that\u0027s not going to work - we still need those paths/urls to create pxe_options for generated pxe config template.\n\nInstead, I\u0027ll try to hack around the \"_cache_ramdisk_kernel\" function, as all those final pxe_info manipulations after creating the pxe config are just to skip caching of the images that iPXE can boot directly from. WDYT?","commit_id":"f73eeef1db684e9f90366fcbe05133098acd2bfb"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"adb3ed0566d43a1707035d17c9e6546cfda2bbb5","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    cached_images \u003d pxe_info.copy()"},{"line_number":278,"context_line":"    if CONF.pxe.ipxe_enabled:"},{"line_number":279,"context_line":"        for label in deploy_image_labels:"},{"line_number":280,"context_line":"            if (label in cached_images and"},{"line_number":281,"context_line":"                (CONF.pxe.ipxe_use_swift or"},{"line_number":282,"context_line":"                 service.image_is_ipxe_ready(cached_images[label][0]))):"},{"line_number":283,"context_line":"                    cached_images.pop(label)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a95cdbc_070ae289","line":280,"range":{"start_line":280,"start_character":25,"end_line":280,"end_character":38},"updated":"2016-10-10 11:05:44.000000000","message":"seems like these two keys should always be there.","commit_id":"8a79c29e19c7e3a14d3675134c0a311b5355ac28"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"1cf9ff55d4489cd8fc037457768ce949f5cc63ca","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    cached_images \u003d pxe_info.copy()"},{"line_number":278,"context_line":"    if CONF.pxe.ipxe_enabled:"},{"line_number":279,"context_line":"        for label in deploy_image_labels:"},{"line_number":280,"context_line":"            if (label in cached_images and"},{"line_number":281,"context_line":"                (CONF.pxe.ipxe_use_swift or"},{"line_number":282,"context_line":"                 service.image_is_ipxe_ready(cached_images[label][0]))):"},{"line_number":283,"context_line":"                    cached_images.pop(label)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a95cdbc_d3a353b0","line":280,"range":{"start_line":280,"start_character":25,"end_line":280,"end_character":38},"in_reply_to":"1a95cdbc_070ae289","updated":"2016-10-10 13:52:47.000000000","message":"no, see line 473 where this function is called with results of _get_instance_image_info only","commit_id":"8a79c29e19c7e3a14d3675134c0a311b5355ac28"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"adb3ed0566d43a1707035d17c9e6546cfda2bbb5","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            if (label in cached_images and"},{"line_number":281,"context_line":"                (CONF.pxe.ipxe_use_swift or"},{"line_number":282,"context_line":"                 service.image_is_ipxe_ready(cached_images[label][0]))):"},{"line_number":283,"context_line":"                    cached_images.pop(label)"},{"line_number":284,"context_line":"    if not cached_images:"},{"line_number":285,"context_line":"        return"},{"line_number":286,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a95cdbc_07d90257","line":283,"updated":"2016-10-10 11:05:44.000000000","message":"Seems to be indented a bit too much.","commit_id":"8a79c29e19c7e3a14d3675134c0a311b5355ac28"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"1cf9ff55d4489cd8fc037457768ce949f5cc63ca","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            if (label in cached_images and"},{"line_number":281,"context_line":"                (CONF.pxe.ipxe_use_swift or"},{"line_number":282,"context_line":"                 service.image_is_ipxe_ready(cached_images[label][0]))):"},{"line_number":283,"context_line":"                    cached_images.pop(label)"},{"line_number":284,"context_line":"    if not cached_images:"},{"line_number":285,"context_line":"        return"},{"line_number":286,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a95cdbc_133a1be7","line":283,"in_reply_to":"1a95cdbc_07d90257","updated":"2016-10-10 13:52:47.000000000","message":"both pep8 and pyXX do pass, so apparently such indentation is valid.\n\nI have also tested with the following indentation:\n\n    if CONF.pxe.ipxe_enabled:\n        for label in deploy_image_labels:\n            if (label in cached_images and\n                (CONF.pxe.ipxe_use_swift or\n                 service.image_is_ipxe_ready(cached_images[label][0]))):\n                cached_images.pop(label)\n\nwhich also passes both py27 and pep8, but IMO does not so clearly visually distinguish the actual if-block content\n\nIf you do not mind, I\u0027ll change this place in the next patch-set if there are other changes needed.","commit_id":"8a79c29e19c7e3a14d3675134c0a311b5355ac28"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fe6e70b0efb283a566f46e8cb4a1c05b69e2b87","unresolved":false,"context_lines":[{"line_number":355,"context_line":"    if CONF.pxe.ipxe_enabled:"},{"line_number":356,"context_line":"        for label in deploy_image_labels:"},{"line_number":357,"context_line":"            if (label in cached_images and"},{"line_number":358,"context_line":"                (CONF.pxe.ipxe_use_swift or"},{"line_number":359,"context_line":"                 service.image_is_ipxe_ready(cached_images[label][0]))):"},{"line_number":360,"context_line":"                    cached_images.pop(label)"},{"line_number":361,"context_line":"    if not cached_images:"}],"source_content_type":"text/x-python","patch_set":10,"id":"3fa0c359_2c3f2dd7","line":358,"updated":"2018-02-16 13:07:35.000000000","message":"maybe worth moving this check inside of image_is_ipxe_ready with a proper comment? it took me a few minutes to understand how ipxe_use_swift is related here","commit_id":"35127aa24e105180633dea759ed42b91839794de"}],"releasenotes/notes/standalone-ipxe-skip-cache-8ef6bdfaa3051200.yaml":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9fe6e70b0efb283a566f46e8cb4a1c05b69e2b87","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - New config option ``[pxe]ipxe_boot_directly_from`` (list option)."},{"line_number":4,"context_line":"    When iPXE is enabled, deployment kernel and ramdisk images with sources"},{"line_number":5,"context_line":"    of the URI schemes listed in this option will not be cached and served"},{"line_number":6,"context_line":"    locally from conductor\u0027s separate HTTP server."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3fa0c359_0c3a71e6","line":3,"updated":"2018-02-16 13:07:35.000000000","message":"I\u0027d start from the feature itself, not from the option. something like\n\n \"Supports skipping caching for deploy kernel and ramdisk images, if they can be served to the nodes directly (for example, via HTTP when iPXE is enabled). The new option ....\"","commit_id":"35127aa24e105180633dea759ed42b91839794de"}]}
