)]}'
{"ironic/drivers/modules/deploy_utils.py":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"60f20701f30f4d309b0550aadc83be07e34fd745","unresolved":false,"context_lines":[{"line_number":274,"context_line":""},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"def _replace_boot_line(path, boot_mode, is_whole_disk_image,"},{"line_number":277,"context_line":"                       trusted_boot\u003dFalse, iscsi_boot\u003dFalse):"},{"line_number":278,"context_line":"    if is_whole_disk_image:"},{"line_number":279,"context_line":"        boot_disk_type \u003d \u0027boot_whole_disk\u0027"},{"line_number":280,"context_line":"    elif trusted_boot:"}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_8c81acfd","line":277,"updated":"2017-02-24 23:55:14.000000000","message":"This is rather a question... so the last 3 parameters are propagated on 2 levels already. Not sure if there are any plans to add more params that will be assigned to boot_disk_type, but it already seems, that it may be better to determine one value out of these 3. It could be done in _build_service_pxe_config. WDYT?","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"b26f0fd73b2f43bff19b175e1e6faa764175b309","unresolved":false,"context_lines":[{"line_number":312,"context_line":"    :param is_whole_disk_image: if the image is a whole disk image or not."},{"line_number":313,"context_line":"    :param trusted_boot: if boot with trusted_boot or not. The usage of"},{"line_number":314,"context_line":"        is_whole_disk_image and trusted_boot are mutually exclusive. You can"},{"line_number":315,"context_line":"        have one or neither, but not both."},{"line_number":316,"context_line":"    \"\"\""},{"line_number":317,"context_line":"    if not is_whole_disk_image:"},{"line_number":318,"context_line":"        _replace_root_uuid(path, root_uuid_or_disk_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"dfeb2761_42e7f013","line":315,"updated":"2017-04-02 11:19:01.000000000","message":"Please add the description of iscsi_boot param here.","commit_id":"e461b65e7a1764d56f3aba04b9b68678a2230abb"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"10c428aa04830d3c867bed132365ebc0ee830218","unresolved":false,"context_lines":[{"line_number":312,"context_line":"    :param is_whole_disk_image: if the image is a whole disk image or not."},{"line_number":313,"context_line":"    :param trusted_boot: if boot with trusted_boot or not. The usage of"},{"line_number":314,"context_line":"        is_whole_disk_image and trusted_boot are mutually exclusive. You can"},{"line_number":315,"context_line":"        have one or neither, but not both."},{"line_number":316,"context_line":"    \"\"\""},{"line_number":317,"context_line":"    if not is_whole_disk_image:"},{"line_number":318,"context_line":"        _replace_root_uuid(path, root_uuid_or_disk_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"dfeb2761_dbd06f22","line":315,"in_reply_to":"dfeb2761_42e7f013","updated":"2017-04-10 23:04:34.000000000","message":"Done","commit_id":"e461b65e7a1764d56f3aba04b9b68678a2230abb"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"b26f0fd73b2f43bff19b175e1e6faa764175b309","unresolved":false,"context_lines":[{"line_number":1307,"context_line":"        try:"},{"line_number":1308,"context_line":"            boot_volume \u003d objects.VolumeTarget.get_by_uuid("},{"line_number":1309,"context_line":"                task.context, volume)"},{"line_number":1310,"context_line":"            print(boot_volume)"},{"line_number":1311,"context_line":"            if boot_volume.volume_type \u003d\u003d \u0027iscsi\u0027:"},{"line_number":1312,"context_line":"                return True"},{"line_number":1313,"context_line":"        except exception.VolumeTargetNotFound:"}],"source_content_type":"text/x-python","patch_set":15,"id":"dfeb2761_22e2ac02","line":1310,"range":{"start_line":1310,"start_character":12,"end_line":1310,"end_character":29},"updated":"2017-04-02 11:19:01.000000000","message":"I guess this is by mistake. Please remove it.","commit_id":"e461b65e7a1764d56f3aba04b9b68678a2230abb"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"10c428aa04830d3c867bed132365ebc0ee830218","unresolved":false,"context_lines":[{"line_number":1307,"context_line":"        try:"},{"line_number":1308,"context_line":"            boot_volume \u003d objects.VolumeTarget.get_by_uuid("},{"line_number":1309,"context_line":"                task.context, volume)"},{"line_number":1310,"context_line":"            print(boot_volume)"},{"line_number":1311,"context_line":"            if boot_volume.volume_type \u003d\u003d \u0027iscsi\u0027:"},{"line_number":1312,"context_line":"                return True"},{"line_number":1313,"context_line":"        except exception.VolumeTargetNotFound:"}],"source_content_type":"text/x-python","patch_set":15,"id":"dfeb2761_db4bcf28","line":1310,"range":{"start_line":1310,"start_character":12,"end_line":1310,"end_character":29},"in_reply_to":"dfeb2761_22e2ac02","updated":"2017-04-10 23:04:34.000000000","message":"Ah, sorry! Done :)","commit_id":"e461b65e7a1764d56f3aba04b9b68678a2230abb"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"826bfc02c4b9ab8eef29b3a36e20fd6626549e25","unresolved":false,"context_lines":[{"line_number":1313,"context_line":"            boot_volume \u003d objects.VolumeTarget.get_by_uuid("},{"line_number":1314,"context_line":"                task.context, volume)"},{"line_number":1315,"context_line":"            if boot_volume.volume_type \u003d\u003d \u0027iscsi\u0027:"},{"line_number":1316,"context_line":"                return True"},{"line_number":1317,"context_line":"        except exception.VolumeTargetNotFound:"},{"line_number":1318,"context_line":"            return False"},{"line_number":1319,"context_line":"    return False"}],"source_content_type":"text/x-python","patch_set":31,"id":"9f0e0f27_46d05cca","line":1316,"updated":"2017-06-09 10:16:01.000000000","message":"nit:\n\n return boot_volume.volume_type \u003d\u003d \u0027iscsi\u0027","commit_id":"a6bcec20413fc9deaa870babc88745d459aa5b52"}],"ironic/drivers/modules/ipxe_config.template":[{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"e77b327ccfd49a6d703fc845909c02d5ad5ee1d6","unresolved":false,"context_lines":[{"line_number":15,"context_line":"initrd {% if pxe_options.ipxe_timeout \u003e 0 %}--timeout {{ pxe_options.ipxe_timeout }} {% endif %}{{ pxe_options.ari_path }} || goto boot_partition"},{"line_number":16,"context_line":"boot"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"{%- if pxe_options.boot_from_volume -%}"},{"line_number":19,"context_line":":boot_iscsi"},{"line_number":20,"context_line":"imgfree"},{"line_number":21,"context_line":"{% if pxe_options.username %}set username {{ pxe_options.username }}{% endif %}"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"da36d5c6_94ec0ec9","line":18,"range":{"start_line":18,"start_character":2,"end_line":18,"end_character":3},"updated":"2017-02-20 15:28:36.000000000","message":"This \u0027-\u0027 is unnecessary.It strips whitespaces before this block. It generates a line like \"boot:boot_iscsi\", which doesn\u0027t work as a label.","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":15,"context_line":"initrd {% if pxe_options.ipxe_timeout \u003e 0 %}--timeout {{ pxe_options.ipxe_timeout }} {% endif %}{{ pxe_options.ari_path }} || goto boot_partition"},{"line_number":16,"context_line":"boot"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"{%- if pxe_options.boot_from_volume -%}"},{"line_number":19,"context_line":":boot_iscsi"},{"line_number":20,"context_line":"imgfree"},{"line_number":21,"context_line":"{% if pxe_options.username %}set username {{ pxe_options.username }}{% endif %}"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"dfeb2761_7f7dfdaf","line":18,"range":{"start_line":18,"start_character":2,"end_line":18,"end_character":3},"in_reply_to":"da36d5c6_94ec0ec9","updated":"2017-04-01 03:33:51.000000000","message":"Done","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"30d5ba2292f6b7692d4dd5883c42266773a83093","unresolved":false,"context_lines":[{"line_number":21,"context_line":"{% if pxe_options.username %}set username {{ pxe_options.username }}{% endif %}"},{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{% if pxe_options.iscsi_volumes %}{% for volume in pxe_options.iscsi_volumes %}"},{"line_number":26,"context_line":"{% set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive {{ drive_id }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"da36d5c6_b2f82fe7","line":24,"range":{"start_line":24,"start_character":24,"end_line":24,"end_character":38},"updated":"2017-02-21 03:15:08.000000000","message":"Won\u0027t \u0027initiator-iqn\u0027 and \u0027pxe_options.iscsi_initiator_iqn\u0027 be same?","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"e77b327ccfd49a6d703fc845909c02d5ad5ee1d6","unresolved":false,"context_lines":[{"line_number":21,"context_line":"{% if pxe_options.username %}set username {{ pxe_options.username }}{% endif %}"},{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{% if pxe_options.iscsi_volumes %}{% for volume in pxe_options.iscsi_volumes %}"},{"line_number":26,"context_line":"{% set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive {{ drive_id }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"da36d5c6_14d9fe21","line":24,"range":{"start_line":24,"start_character":24,"end_line":24,"end_character":38},"updated":"2017-02-20 15:28:36.000000000","message":"pxe_options.iscsi_boot_url","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":21,"context_line":"{% if pxe_options.username %}set username {{ pxe_options.username }}{% endif %}"},{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{% if pxe_options.iscsi_volumes %}{% for volume in pxe_options.iscsi_volumes %}"},{"line_number":26,"context_line":"{% set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive {{ drive_id }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"dfeb2761_b42e0ca3","line":24,"range":{"start_line":24,"start_character":24,"end_line":24,"end_character":38},"in_reply_to":"da36d5c6_14d9fe21","updated":"2017-04-01 03:33:51.000000000","message":"Done","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"60f20701f30f4d309b0550aadc83be07e34fd745","unresolved":false,"context_lines":[{"line_number":21,"context_line":"{% if pxe_options.username %}set username {{ pxe_options.username }}{% endif %}"},{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{% if pxe_options.iscsi_volumes %}{% for volume in pxe_options.iscsi_volumes %}"},{"line_number":26,"context_line":"{% set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive {{ drive_id }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"da36d5c6_6cbc78bb","line":24,"range":{"start_line":24,"start_character":24,"end_line":24,"end_character":38},"in_reply_to":"da36d5c6_b2f82fe7","updated":"2017-02-24 23:55:14.000000000","message":"Even if, wouldn\u0027t it be more compliant with other usages to use pxe_options?","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"1c2b7924438256af5f31d6bf56c379f8289d60b3","unresolved":false,"context_lines":[{"line_number":24,"context_line":"sanhook --drive 0x80 {{ iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{% if pxe_options.iscsi_volumes %}{% for volume in pxe_options.iscsi_volumes %}"},{"line_number":26,"context_line":"{% set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive {{ drive_id }} || goto fail_iscsi_retry"},{"line_number":28,"context_line":"{% endfor %}{% endif %}"},{"line_number":29,"context_line":"sanboot --no-describe || goto fail_iscsi_retry"},{"line_number":30,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":12,"id":"ffe62b97_188d4431","line":27,"updated":"2017-03-29 14:04:38.000000000","message":"Add 0x before drive_id.\nAdd volume (url of an optional volume) after drive_id.","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":24,"context_line":"sanhook --drive 0x80 {{ iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{% if pxe_options.iscsi_volumes %}{% for volume in pxe_options.iscsi_volumes %}"},{"line_number":26,"context_line":"{% set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive {{ drive_id }} || goto fail_iscsi_retry"},{"line_number":28,"context_line":"{% endfor %}{% endif %}"},{"line_number":29,"context_line":"sanboot --no-describe || goto fail_iscsi_retry"},{"line_number":30,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":12,"id":"dfeb2761_942b0893","line":27,"in_reply_to":"ffe62b97_188d4431","updated":"2017-04-01 03:33:51.000000000","message":"Done","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"e77b327ccfd49a6d703fc845909c02d5ad5ee1d6","unresolved":false,"context_lines":[{"line_number":28,"context_line":"{% endfor %}{% endif %}"},{"line_number":29,"context_line":"sanboot --no-describe || goto fail_iscsi_retry"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":":fail_iscsi_retry:"},{"line_number":32,"context_line":"echo Failed to attach iSCSI volume(s), retrying in 10 seconds."},{"line_number":33,"context_line":"sleep 10"},{"line_number":34,"context_line":"goto iscsi_boot"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"da36d5c6_147f3eab","line":31,"range":{"start_line":31,"start_character":17,"end_line":31,"end_character":18},"updated":"2017-02-20 15:28:36.000000000","message":"\u0027:\u0027 at tail is unnecessary.","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":28,"context_line":"{% endfor %}{% endif %}"},{"line_number":29,"context_line":"sanboot --no-describe || goto fail_iscsi_retry"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":":fail_iscsi_retry:"},{"line_number":32,"context_line":"echo Failed to attach iSCSI volume(s), retrying in 10 seconds."},{"line_number":33,"context_line":"sleep 10"},{"line_number":34,"context_line":"goto iscsi_boot"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"dfeb2761_34143c4e","line":31,"range":{"start_line":31,"start_character":17,"end_line":31,"end_character":18},"in_reply_to":"da36d5c6_147f3eab","updated":"2017-04-01 03:33:51.000000000","message":"Done","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"30d5ba2292f6b7692d4dd5883c42266773a83093","unresolved":false,"context_lines":[{"line_number":31,"context_line":":fail_iscsi_retry:"},{"line_number":32,"context_line":"echo Failed to attach iSCSI volume(s), retrying in 10 seconds."},{"line_number":33,"context_line":"sleep 10"},{"line_number":34,"context_line":"goto iscsi_boot"},{"line_number":35,"context_line":"{%- endif %}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":":boot_whole_disk"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"da36d5c6_5f31bc0a","line":34,"range":{"start_line":34,"start_character":5,"end_line":34,"end_character":15},"updated":"2017-02-21 03:15:08.000000000","message":"nit: s/ iscsi_boot / boot_iscsi","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":31,"context_line":":fail_iscsi_retry:"},{"line_number":32,"context_line":"echo Failed to attach iSCSI volume(s), retrying in 10 seconds."},{"line_number":33,"context_line":"sleep 10"},{"line_number":34,"context_line":"goto iscsi_boot"},{"line_number":35,"context_line":"{%- endif %}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":":boot_whole_disk"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"dfeb2761_f40db43e","line":34,"range":{"start_line":34,"start_character":5,"end_line":34,"end_character":15},"in_reply_to":"da36d5c6_5f31bc0a","updated":"2017-04-01 03:33:51.000000000","message":"Done","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"615563f186486bb61145115c658f5699c59b4bde","unresolved":false,"context_lines":[{"line_number":31,"context_line":":fail_iscsi_retry"},{"line_number":32,"context_line":"echo Failed to attach iSCSI volume(s), retrying in 10 seconds."},{"line_number":33,"context_line":"sleep 10"},{"line_number":34,"context_line":"goto boot_iscsi"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"{%- endif %}"},{"line_number":37,"context_line":":boot_whole_disk"}],"source_content_type":"application/octet-stream","patch_set":17,"id":"bff0334d_7906b21e","line":34,"updated":"2017-04-11 10:27:13.000000000","message":"Is there any timeout? Looks like this causes infinite loop if something is wrong. If we boot instance there is no mechanism in ironic for auto validating that instance is booted.","commit_id":"902389602eb62872a31ef6ff4737e77a99ac3127"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"dc4a66a7fffcdd112688b4bcd3be2ce54fa8fac1","unresolved":false,"context_lines":[{"line_number":31,"context_line":":fail_iscsi_retry"},{"line_number":32,"context_line":"echo Failed to attach iSCSI volume(s), retrying in 10 seconds."},{"line_number":33,"context_line":"sleep 10"},{"line_number":34,"context_line":"goto boot_iscsi"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"{%- endif %}"},{"line_number":37,"context_line":":boot_whole_disk"}],"source_content_type":"application/octet-stream","patch_set":17,"id":"3f044301_88f2ed05","line":34,"in_reply_to":"bff0334d_7906b21e","updated":"2017-05-04 11:22:27.000000000","message":"AFAIK, nothing command line based, but there has never been any sort of validation of booted node in ironic.","commit_id":"902389602eb62872a31ef6ff4737e77a99ac3127"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"96263f6f93b6f7c8a9ec142c46f10bb8c6e10586","unresolved":false,"context_lines":[{"line_number":25,"context_line":".iscsi_volumes %}"},{"line_number":26,"context_line":"{%- set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive 0x{{ drive_id }} {{ volume }} || goto fail_iscsi_retry"},{"line_number":28,"context_line":"{% endfor %}{% endif -%}"},{"line_number":29,"context_line":"sanboot --no-describe || goto fail_iscsi_retry"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":":fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"df140735_80cb8670","line":28,"updated":"2017-06-01 13:52:41.000000000","message":"This template doesn\u0027t work in case where pxe_options.iscsi_volumes is empty. The newline character of L23 is trimmed so that a wrong line is generated like:\n  ... goto fail_iscsi_retrysanboot --no-describe ...\n\nIt seems fine if this line is changed to:\n  {%- endfor %}{% endif %}\n\nIt might be better to add a unit test for this most simple case of boot from volume.","commit_id":"ae5634ae03dc59d2ad25c4614d31f0796df58a10"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"3bd791857f722fc47d95a20c368a01f0ab30799f","unresolved":false,"context_lines":[{"line_number":25,"context_line":".iscsi_volumes %}"},{"line_number":26,"context_line":"{%- set drive_id \u003d 80 + loop.index %}"},{"line_number":27,"context_line":"sanhook --drive 0x{{ drive_id }} {{ volume }} || goto fail_iscsi_retry"},{"line_number":28,"context_line":"{% endfor %}{% endif -%}"},{"line_number":29,"context_line":"sanboot --no-describe || goto fail_iscsi_retry"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":":fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"df140735_ca22b8a4","line":28,"in_reply_to":"df140735_80cb8670","updated":"2017-06-01 15:04:04.000000000","message":"Good catch. Thanks Hironori","commit_id":"ae5634ae03dc59d2ad25c4614d31f0796df58a10"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"9d4cdcbe1ecf9e1580905ee2f9e32c5ee6dac9af","unresolved":false,"context_lines":[{"line_number":33,"context_line":"sleep 10"},{"line_number":34,"context_line":"goto boot_iscsi"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"{%- endif %}"},{"line_number":37,"context_line":":boot_whole_disk"},{"line_number":38,"context_line":"sanboot --no-describe"}],"source_content_type":"application/octet-stream","patch_set":25,"id":"bf091321_ca50da35","line":36,"range":{"start_line":36,"start_character":0,"end_line":36,"end_character":12},"updated":"2017-06-08 12:01:02.000000000","message":"This endif should likely be on line35 leaving line 36 blank since 37 is a label.","commit_id":"5113237f36bdd9b425423b4641573b9f23ab8b9c"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"3f767b6d797ddb645f3fcee20fdf69631f767ad8","unresolved":false,"context_lines":[{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ pxe_options.iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{%- if pxe_options.iscsi_volumes %}{% for volume in pxe_options"},{"line_number":26,"context_line":".iscsi_volumes %}"},{"line_number":27,"context_line":"{%- set drive_id \u003d 80 + loop.index %}"},{"line_number":28,"context_line":"sanhook --drive 0x{{ drive_id }} {{ volume }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":40,"id":"5f201791_c7d64ec4","line":25,"updated":"2017-06-23 05:57:41.000000000","message":"not sure if iscsi_volumes will be always present in pxe_options. In this case when rendering this template with \u0027pxe_options.boot_from_volume \u003d True\u0027 and pxe_options.iscsi_volumes \u003d unset on L25 will be AttributeError.\n\nditto about other if conditions. Better to use \u0027if pxe_options.iscsi_volumes is defined\u0027\nPlease add proper unit tests.","commit_id":"6883674b3c4b016ba36b73bb385ec8813d88f93f"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"f364ed60e54b37b794c918b03e2a9759ece2cd17","unresolved":false,"context_lines":[{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ pxe_options.iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{%- if pxe_options.iscsi_volumes %}{% for volume in pxe_options"},{"line_number":26,"context_line":".iscsi_volumes %}"},{"line_number":27,"context_line":"{%- set drive_id \u003d 80 + loop.index %}"},{"line_number":28,"context_line":"sanhook --drive 0x{{ drive_id }} {{ volume }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":40,"id":"5f201791_0f51ef0e","line":25,"in_reply_to":"5f201791_1936e253","updated":"2017-06-23 13:35:06.000000000","message":"The reason why I asked bout this is described here, but indeed when rendering with python jinja2 \nconstructions { if variable.key } and { if variable.key is defined } works\nhttp://www.cloudypoint.com/Tutorials/discussion/ansible-check-if-key-exists-in-a-dict-in-jinja2-template-on-ansible/","commit_id":"6883674b3c4b016ba36b73bb385ec8813d88f93f"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"de39d48b27775a0e7b7a194b2e89be377a1fcf84","unresolved":false,"context_lines":[{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ pxe_options.iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{%- if pxe_options.iscsi_volumes %}{% for volume in pxe_options"},{"line_number":26,"context_line":".iscsi_volumes %}"},{"line_number":27,"context_line":"{%- set drive_id \u003d 80 + loop.index %}"},{"line_number":28,"context_line":"sanhook --drive 0x{{ drive_id }} {{ volume }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":40,"id":"5f201791_1936e253","line":25,"in_reply_to":"5f201791_4300e901","updated":"2017-06-23 12:34:45.000000000","message":"isci_volumes is added to pxe_options [1] only when [0] is True \n\n[0] https://review.openstack.org/#/c/413324/40/ironic/drivers/modules/pxe.py@287\n[1] https://review.openstack.org/#/c/413324/40/ironic/drivers/modules/pxe.py@303\n\nThe same for username, password [2]\n\n[2] https://review.openstack.org/#/c/413324/40/ironic/drivers/modules/pxe.py@288\n\nPlease have a try to drop any of mentioned params here [3] \nand you will get error of template rendering.\n\n[3] https://review.openstack.org/#/c/413324/40/ironic/tests/unit/common/test_pxe_utils.py@72","commit_id":"6883674b3c4b016ba36b73bb385ec8813d88f93f"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"711077ed5095548ad332dc1442b02420f75f9d83","unresolved":false,"context_lines":[{"line_number":22,"context_line":"{% if pxe_options.password %}set password {{ pxe_options.password }}{% endif %}"},{"line_number":23,"context_line":"{% if pxe_options.iscsi_initiator_iqn %}set initiator-iqn {{ pxe_options.iscsi_initiator_iqn }}{% endif %}"},{"line_number":24,"context_line":"sanhook --drive 0x80 {{ pxe_options.iscsi_boot_url }} || goto fail_iscsi_retry"},{"line_number":25,"context_line":"{%- if pxe_options.iscsi_volumes %}{% for volume in pxe_options"},{"line_number":26,"context_line":".iscsi_volumes %}"},{"line_number":27,"context_line":"{%- set drive_id \u003d 80 + loop.index %}"},{"line_number":28,"context_line":"sanhook --drive 0x{{ drive_id }} {{ volume }} || goto fail_iscsi_retry"}],"source_content_type":"application/octet-stream","patch_set":40,"id":"5f201791_4300e901","line":25,"in_reply_to":"5f201791_c7d64ec4","updated":"2017-06-23 11:02:40.000000000","message":"Perhaps I need some coffee.\n\niscsi_volumes is always be sent in as a list, but it may have no elements hence why the for loop starts on the same line to control whitespace. To have the case your raising occur, it would have to be an explicit coding change in the volume pxe option generation code as iscsi_volumes is always a list when boot_from_volume is true.\n\nAlso, not sure if \"is defined\" will actually work in this context.  We can try, but , but this template is known to not exactly be proper jinja2 formatting.\n\nRegarding tests, could you please be more explicit as to your expectations? I\u0027m asking because the testing for this was, to the best of my knowledge, written paralleling the existing testing of pxe template generation.","commit_id":"6883674b3c4b016ba36b73bb385ec8813d88f93f"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"60f20701f30f4d309b0550aadc83be07e34fd745","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from ironic.drivers.modules import deploy_utils"},{"line_number":38,"context_line":"from ironic.drivers.modules import image_cache"},{"line_number":39,"context_line":"from ironic.drivers import utils as driver_utils"},{"line_number":40,"context_line":"from ironic import objects"},{"line_number":41,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"METRICS \u003d metrics_utils.get_metrics_logger(__name__)"}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_acb2f0e2","line":40,"updated":"2017-02-24 23:55:14.000000000","message":"total nit: I really liked this new line :)","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"60f20701f30f4d309b0550aadc83be07e34fd745","unresolved":false,"context_lines":[{"line_number":264,"context_line":"        iqn \u003d __return_first_or_list(properties.get(\u0027target_iqn\u0027, \u0027\u0027))"},{"line_number":265,"context_line":"        lun \u003d __return_first_or_list(properties.get(\u0027target_lun\u0027, \u0027\u0027))"},{"line_number":266,"context_line":"        if \u0027:\u0027 in portal:"},{"line_number":267,"context_line":"            portal \u003d portal.split(\u0027:\u0027)"},{"line_number":268,"context_line":"            host \u003d portal[0]"},{"line_number":269,"context_line":"            port \u003d portal[1]"},{"line_number":270,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_870ee7e2","line":267,"updated":"2017-02-24 23:55:14.000000000","message":"why not:\nhost, port \u003d portal.split(\u0027:\u0027)\n? :)","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"60f20701f30f4d309b0550aadc83be07e34fd745","unresolved":false,"context_lines":[{"line_number":270,"context_line":"        else:"},{"line_number":271,"context_line":"            host \u003d portal"},{"line_number":272,"context_line":"            port \u003d \u0027\u0027"},{"line_number":273,"context_line":"        portal \u003d str(portal).replace(\u0027:\u0027, \u0027::\u0027, 1)"},{"line_number":274,"context_line":"        return (\"iscsi:%(host)s:%(port)s:%(lun)s:%(iqn)s\" %"},{"line_number":275,"context_line":"                {\u0027host\u0027: host, \u0027port\u0027: port, \u0027lun\u0027: lun, \u0027iqn\u0027: iqn})"},{"line_number":276,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_c7237f54","line":273,"updated":"2017-02-24 23:55:14.000000000","message":"if it will go there after line 267, portal will be an array, so it will look like:\n\"[\u0027\u003chost\u003e\u0027, \u0027\u003cport\u003e\u0027]\"\n\nBut anyway - portal is not used anymore, why assign something to it?","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":270,"context_line":"        else:"},{"line_number":271,"context_line":"            host \u003d portal"},{"line_number":272,"context_line":"            port \u003d \u0027\u0027"},{"line_number":273,"context_line":"        portal \u003d str(portal).replace(\u0027:\u0027, \u0027::\u0027, 1)"},{"line_number":274,"context_line":"        return (\"iscsi:%(host)s:%(port)s:%(lun)s:%(iqn)s\" %"},{"line_number":275,"context_line":"                {\u0027host\u0027: host, \u0027port\u0027: port, \u0027lun\u0027: lun, \u0027iqn\u0027: iqn})"},{"line_number":276,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"dfeb2761_5f4d9970","line":273,"in_reply_to":"da36d5c6_c7237f54","updated":"2017-04-01 03:33:51.000000000","message":"I now see that it was supposed to be host to fulfill the need of additional \u0027:\u0027 for protocol :)","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"e77b327ccfd49a6d703fc845909c02d5ad5ee1d6","unresolved":false,"context_lines":[{"line_number":271,"context_line":"            host \u003d portal"},{"line_number":272,"context_line":"            port \u003d \u0027\u0027"},{"line_number":273,"context_line":"        portal \u003d str(portal).replace(\u0027:\u0027, \u0027::\u0027, 1)"},{"line_number":274,"context_line":"        return (\"iscsi:%(host)s:%(port)s:%(lun)s:%(iqn)s\" %"},{"line_number":275,"context_line":"                {\u0027host\u0027: host, \u0027port\u0027: port, \u0027lun\u0027: lun, \u0027iqn\u0027: iqn})"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"    pxe_options \u003d {}"}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_541d3672","line":274,"range":{"start_line":274,"start_character":31,"end_line":274,"end_character":32},"updated":"2017-02-20 15:28:36.000000000","message":"Another \u0027:\u0027 is necessary for a blank protocol[1].\n\n[1] http://ipxe.org/sanuri","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"30d5ba2292f6b7692d4dd5883c42266773a83093","unresolved":false,"context_lines":[{"line_number":271,"context_line":"            host \u003d portal"},{"line_number":272,"context_line":"            port \u003d \u0027\u0027"},{"line_number":273,"context_line":"        portal \u003d str(portal).replace(\u0027:\u0027, \u0027::\u0027, 1)"},{"line_number":274,"context_line":"        return (\"iscsi:%(host)s:%(port)s:%(lun)s:%(iqn)s\" %"},{"line_number":275,"context_line":"                {\u0027host\u0027: host, \u0027port\u0027: port, \u0027lun\u0027: lun, \u0027iqn\u0027: iqn})"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"    pxe_options \u003d {}"}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_b2258fac","line":274,"range":{"start_line":274,"start_character":31,"end_line":274,"end_character":32},"in_reply_to":"da36d5c6_541d3672","updated":"2017-02-21 03:15:08.000000000","message":"++\niscsi san URI syntax is \niscsi:\u003cservername\u003e:\u003cprotocol\u003e:\u003cport\u003e:\u003cLUN\u003e:\u003ctargetname\u003e","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":271,"context_line":"            host \u003d portal"},{"line_number":272,"context_line":"            port \u003d \u0027\u0027"},{"line_number":273,"context_line":"        portal \u003d str(portal).replace(\u0027:\u0027, \u0027::\u0027, 1)"},{"line_number":274,"context_line":"        return (\"iscsi:%(host)s:%(port)s:%(lun)s:%(iqn)s\" %"},{"line_number":275,"context_line":"                {\u0027host\u0027: host, \u0027port\u0027: port, \u0027lun\u0027: lun, \u0027iqn\u0027: iqn})"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"    pxe_options \u003d {}"}],"source_content_type":"text/x-python","patch_set":12,"id":"dfeb2761_ffa90ddf","line":274,"range":{"start_line":274,"start_character":31,"end_line":274,"end_character":32},"in_reply_to":"da36d5c6_b2258fac","updated":"2017-04-01 03:33:51.000000000","message":"Done","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"e77b327ccfd49a6d703fc845909c02d5ad5ee1d6","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            pxe_options.update({\u0027username\u0027: properties[\u0027auth_username\u0027]})"},{"line_number":286,"context_line":"        if \u0027auth_password\u0027 in properties:"},{"line_number":287,"context_line":"            pxe_options.update({\u0027password\u0027: properties[\u0027auth_password\u0027]})"},{"line_number":288,"context_line":"        pxe_options.update("},{"line_number":289,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties)})"},{"line_number":290,"context_line":"        # NOTE(TheJulia): This may be the route to multi-path, define"},{"line_number":291,"context_line":"        # volumes via sanhook in the ipxe template and let the OS sort it out."}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_5f2b8f82","line":288,"updated":"2017-02-20 15:28:36.000000000","message":"It is necessary to add \u0027iscsi_initiator_iqn\u0027 to params.","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"30d5ba2292f6b7692d4dd5883c42266773a83093","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            pxe_options.update({\u0027username\u0027: properties[\u0027auth_username\u0027]})"},{"line_number":286,"context_line":"        if \u0027auth_password\u0027 in properties:"},{"line_number":287,"context_line":"            pxe_options.update({\u0027password\u0027: properties[\u0027auth_password\u0027]})"},{"line_number":288,"context_line":"        pxe_options.update("},{"line_number":289,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties)})"},{"line_number":290,"context_line":"        # NOTE(TheJulia): This may be the route to multi-path, define"},{"line_number":291,"context_line":"        # volumes via sanhook in the ipxe template and let the OS sort it out."}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_72523715","line":288,"in_reply_to":"da36d5c6_5f2b8f82","updated":"2017-02-21 03:15:08.000000000","message":"++","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            pxe_options.update({\u0027username\u0027: properties[\u0027auth_username\u0027]})"},{"line_number":286,"context_line":"        if \u0027auth_password\u0027 in properties:"},{"line_number":287,"context_line":"            pxe_options.update({\u0027password\u0027: properties[\u0027auth_password\u0027]})"},{"line_number":288,"context_line":"        pxe_options.update("},{"line_number":289,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties)})"},{"line_number":290,"context_line":"        # NOTE(TheJulia): This may be the route to multi-path, define"},{"line_number":291,"context_line":"        # volumes via sanhook in the ipxe template and let the OS sort it out."}],"source_content_type":"text/x-python","patch_set":12,"id":"dfeb2761_bfc26584","line":288,"in_reply_to":"da36d5c6_5f2b8f82","updated":"2017-04-01 03:33:51.000000000","message":"Done. Added test to verify that.","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"1c2b7924438256af5f31d6bf56c379f8289d60b3","unresolved":false,"context_lines":[{"line_number":366,"context_line":""},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"class PXEBoot(base.BootInterface):"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def get_properties(self):"},{"line_number":371,"context_line":"        \"\"\"Return the properties of the interface."},{"line_number":372,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"ffe62b97_914ee3be","line":369,"updated":"2017-03-29 14:04:38.000000000","message":"Should we define iscsi_volume_boot capability to set volume_id to driver_internal_info[1]?\n\n[1] https://review.openstack.org/#/c/406290/18/ironic/drivers/modules/deploy_utils.py@1266","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b80ba726b7ca8f33c6893826fe5e1d7218f60f0f","unresolved":false,"context_lines":[{"line_number":366,"context_line":""},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"class PXEBoot(base.BootInterface):"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def get_properties(self):"},{"line_number":371,"context_line":"        \"\"\"Return the properties of the interface."},{"line_number":372,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"dfeb2761_7f185d1c","line":369,"in_reply_to":"ffe62b97_914ee3be","updated":"2017-04-01 03:33:51.000000000","message":"Done","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"b26f0fd73b2f43bff19b175e1e6faa764175b309","unresolved":false,"context_lines":[{"line_number":274,"context_line":"    pxe_options \u003d {}"},{"line_number":275,"context_line":"    node \u003d task.node"},{"line_number":276,"context_line":"    boot_volume \u003d node.driver_internal_info.get(\u0027boot_from_volume\u0027)"},{"line_number":277,"context_line":"    volume \u003d objects.VolumeTarget.get_by_uuid(task.context,"},{"line_number":278,"context_line":"                                              boot_volume)"},{"line_number":279,"context_line":"    properties \u003d volume.properties"},{"line_number":280,"context_line":"    if \u0027iscsi\u0027 in volume[\u0027volume_type\u0027]:"},{"line_number":281,"context_line":"        if \u0027auth_username\u0027 in properties:"}],"source_content_type":"text/x-python","patch_set":15,"id":"dfeb2761_02ca086c","line":278,"range":{"start_line":277,"start_character":4,"end_line":278,"end_character":58},"updated":"2017-04-02 11:19:01.000000000","message":"Should we handle the case when volume is not found?","commit_id":"e461b65e7a1764d56f3aba04b9b68678a2230abb"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"10c428aa04830d3c867bed132365ebc0ee830218","unresolved":false,"context_lines":[{"line_number":274,"context_line":"    pxe_options \u003d {}"},{"line_number":275,"context_line":"    node \u003d task.node"},{"line_number":276,"context_line":"    boot_volume \u003d node.driver_internal_info.get(\u0027boot_from_volume\u0027)"},{"line_number":277,"context_line":"    volume \u003d objects.VolumeTarget.get_by_uuid(task.context,"},{"line_number":278,"context_line":"                                              boot_volume)"},{"line_number":279,"context_line":"    properties \u003d volume.properties"},{"line_number":280,"context_line":"    if \u0027iscsi\u0027 in volume[\u0027volume_type\u0027]:"},{"line_number":281,"context_line":"        if \u0027auth_username\u0027 in properties:"}],"source_content_type":"text/x-python","patch_set":15,"id":"dfeb2761_1b5db779","line":278,"range":{"start_line":277,"start_character":4,"end_line":278,"end_character":58},"in_reply_to":"dfeb2761_02ca086c","updated":"2017-04-10 23:04:34.000000000","message":"it will escalate the exception to the caller, if it was handled here, it\u0027d have to be re-raised anyway. I think it is better this way, WDYT?","commit_id":"e461b65e7a1764d56f3aba04b9b68678a2230abb"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"c9fb06feb902f21ea15bf0910dd8144c591bc3f5","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def __generate_iscsi_url(properties):"},{"line_number":262,"context_line":"        \"\"\"Returns iscsi url.\"\"\""},{"line_number":263,"context_line":"        portal \u003d __return_first_or_list(properties.get(\u0027target_portal\u0027, \u0027\u0027))"},{"line_number":264,"context_line":"        iqn \u003d __return_first_or_list(properties.get(\u0027target_iqn\u0027, \u0027\u0027))"},{"line_number":265,"context_line":"        lun \u003d __return_first_or_list(properties.get(\u0027target_lun\u0027, \u0027\u0027))"},{"line_number":266,"context_line":"        if \u0027:\u0027 in portal:"}],"source_content_type":"text/x-python","patch_set":20,"id":"ff0f0b1f_c531eba4","line":263,"updated":"2017-05-26 10:00:37.000000000","message":"In multipath case, portals, iqns and luns are passed as list such as target_portals, target_iqns, and target_luns like examples in spec[1]. We need to handle both cases, siglepath and multipath like:\n\nproperties.get(\u0027target_portal\u0027) or properties.get(\u0027target_portals\u0027, \u0027\u0027)\n\n[1] https://specs.openstack.org/openstack/ironic-specs/specs/not-implemented/volume-connection-information.html#proposed-change","commit_id":"9163469cf2783c599c6b7a2071580fcbe178006b"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"47c0ebe6e1be266a575b131da63ec1bab3ee355d","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def __generate_iscsi_url(properties):"},{"line_number":262,"context_line":"        \"\"\"Returns iscsi url.\"\"\""},{"line_number":263,"context_line":"        portal \u003d __return_first_or_list(properties.get(\u0027target_portal\u0027, \u0027\u0027))"},{"line_number":264,"context_line":"        iqn \u003d __return_first_or_list(properties.get(\u0027target_iqn\u0027, \u0027\u0027))"},{"line_number":265,"context_line":"        lun \u003d __return_first_or_list(properties.get(\u0027target_lun\u0027, \u0027\u0027))"},{"line_number":266,"context_line":"        if \u0027:\u0027 in portal:"}],"source_content_type":"text/x-python","patch_set":20,"id":"df140735_ee9ed061","line":263,"in_reply_to":"ff0f0b1f_c531eba4","updated":"2017-05-31 16:50:04.000000000","message":"Good catch - will handle in next revision","commit_id":"9163469cf2783c599c6b7a2071580fcbe178006b"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"cd374ec97fe28f983a398c533205f39838df276e","unresolved":false,"context_lines":[{"line_number":266,"context_line":"        if \u0027:\u0027 in portal:"},{"line_number":267,"context_line":"            host, port \u003d portal.split(\u0027:\u0027)"},{"line_number":268,"context_line":"        else:"},{"line_number":269,"context_line":"            host \u003d portal"},{"line_number":270,"context_line":"            port \u003d \u0027\u0027"},{"line_number":271,"context_line":"        return (\"iscsi:%(host)s::%(port)s:%(lun)s:%(iqn)s\" %"},{"line_number":272,"context_line":"                {\u0027host\u0027: host, \u0027port\u0027: port, \u0027lun\u0027: lun, \u0027iqn\u0027: iqn})"}],"source_content_type":"text/x-python","patch_set":20,"id":"ff0f0b1f_60f6d8d9","line":269,"range":{"start_line":269,"start_character":12,"end_line":269,"end_character":25},"updated":"2017-05-24 10:32:03.000000000","message":"do we validate this option somewhere?\nif host or iqn is empty boot will fail, that won\u0027t be necessary to try.","commit_id":"9163469cf2783c599c6b7a2071580fcbe178006b"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"894e741dd588491b26312a4c49908e743932bab3","unresolved":false,"context_lines":[{"line_number":266,"context_line":"        if \u0027:\u0027 in portal:"},{"line_number":267,"context_line":"            host, port \u003d portal.split(\u0027:\u0027)"},{"line_number":268,"context_line":"        else:"},{"line_number":269,"context_line":"            host \u003d portal"},{"line_number":270,"context_line":"            port \u003d \u0027\u0027"},{"line_number":271,"context_line":"        return (\"iscsi:%(host)s::%(port)s:%(lun)s:%(iqn)s\" %"},{"line_number":272,"context_line":"                {\u0027host\u0027: host, \u0027port\u0027: port, \u0027lun\u0027: lun, \u0027iqn\u0027: iqn})"}],"source_content_type":"text/x-python","patch_set":20,"id":"ff0f0b1f_b2aadb6d","line":269,"range":{"start_line":269,"start_character":12,"end_line":269,"end_character":25},"in_reply_to":"ff0f0b1f_60f6d8d9","updated":"2017-05-25 14:28:24.000000000","message":"I don\u0027t believe we do validate this. We could throw an InvalidParameterError if these are empty.","commit_id":"9163469cf2783c599c6b7a2071580fcbe178006b"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"cd374ec97fe28f983a398c533205f39838df276e","unresolved":false,"context_lines":[{"line_number":285,"context_line":"        pxe_options.update("},{"line_number":286,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties),"},{"line_number":287,"context_line":"             \u0027iscsi_initiator_iqn\u0027: properties.get(\u0027target_iqn\u0027, None)})"},{"line_number":288,"context_line":"        # NOTE(TheJulia): This may be the route to multi-path, define"},{"line_number":289,"context_line":"        # volumes via sanhook in the ipxe template and let the OS sort it out."},{"line_number":290,"context_line":"        additional_targets \u003d []"},{"line_number":291,"context_line":"        for target in task.volume_targets:"},{"line_number":292,"context_line":"            if target.boot_index !\u003d 0 and \u0027iscsi\u0027 in target.volume_type:"},{"line_number":293,"context_line":"                additional_targets.append("},{"line_number":294,"context_line":"                    __generate_iscsi_url(target.properties))"}],"source_content_type":"text/x-python","patch_set":20,"id":"ff0f0b1f_e07e68e2","line":291,"range":{"start_line":288,"start_character":0,"end_line":291,"end_character":42},"updated":"2017-05-24 10:32:03.000000000","message":"does separate sanhook work for multipath?\n\nI\u0027d expect in this case:\n\n sanboot iscsi:ip1:iqn123 iscsi:ip2:iqn123","commit_id":"9163469cf2783c599c6b7a2071580fcbe178006b"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"47c0ebe6e1be266a575b131da63ec1bab3ee355d","unresolved":false,"context_lines":[{"line_number":285,"context_line":"        pxe_options.update("},{"line_number":286,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties),"},{"line_number":287,"context_line":"             \u0027iscsi_initiator_iqn\u0027: properties.get(\u0027target_iqn\u0027, None)})"},{"line_number":288,"context_line":"        # NOTE(TheJulia): This may be the route to multi-path, define"},{"line_number":289,"context_line":"        # volumes via sanhook in the ipxe template and let the OS sort it out."},{"line_number":290,"context_line":"        additional_targets \u003d []"},{"line_number":291,"context_line":"        for target in task.volume_targets:"},{"line_number":292,"context_line":"            if target.boot_index !\u003d 0 and \u0027iscsi\u0027 in target.volume_type:"},{"line_number":293,"context_line":"                additional_targets.append("},{"line_number":294,"context_line":"                    __generate_iscsi_url(target.properties))"}],"source_content_type":"text/x-python","patch_set":20,"id":"df140735_2ed0481f","line":291,"range":{"start_line":288,"start_character":0,"end_line":291,"end_character":42},"in_reply_to":"ff0f0b1f_b2909bee","updated":"2017-05-31 16:50:04.000000000","message":"We discussed this at the BFV meeting last week. Letting the OS sort this out is a valid approach so we don\u0027t need to go with the syntax described in [0]","commit_id":"9163469cf2783c599c6b7a2071580fcbe178006b"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"894e741dd588491b26312a4c49908e743932bab3","unresolved":false,"context_lines":[{"line_number":285,"context_line":"        pxe_options.update("},{"line_number":286,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties),"},{"line_number":287,"context_line":"             \u0027iscsi_initiator_iqn\u0027: properties.get(\u0027target_iqn\u0027, None)})"},{"line_number":288,"context_line":"        # NOTE(TheJulia): This may be the route to multi-path, define"},{"line_number":289,"context_line":"        # volumes via sanhook in the ipxe template and let the OS sort it out."},{"line_number":290,"context_line":"        additional_targets \u003d []"},{"line_number":291,"context_line":"        for target in task.volume_targets:"},{"line_number":292,"context_line":"            if target.boot_index !\u003d 0 and \u0027iscsi\u0027 in target.volume_type:"},{"line_number":293,"context_line":"                additional_targets.append("},{"line_number":294,"context_line":"                    __generate_iscsi_url(target.properties))"}],"source_content_type":"text/x-python","patch_set":20,"id":"ff0f0b1f_b2909bee","line":291,"range":{"start_line":288,"start_character":0,"end_line":291,"end_character":42},"in_reply_to":"ff0f0b1f_e07e68e2","updated":"2017-05-25 14:28:24.000000000","message":"Good question. I actually think it might not. In the ipxe sanhook documentation [0] separate sanhook calls are identified as independent disks. Additionally, we\u0027re using a different drive ID for each sanhook [1]. We might need to be a little more fancy here. I\u0027ll bring this up at the BFV meeting.\n\n[0] http://ipxe.org/cmd/sanhook\n[1] https://review.openstack.org/#/c/413324/20/ironic/drivers/modules/ipxe_config.template@26","commit_id":"9163469cf2783c599c6b7a2071580fcbe178006b"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"2d03ae799415d25b967d114f48918d497f6491fd","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def __generate_iscsi_url(properties):"},{"line_number":262,"context_line":"        \"\"\"Returns iscsi url.\"\"\""},{"line_number":263,"context_line":"        portal \u003d __return_first_or_list(properties.get(\u0027target_portal\u0027,\u0027\u0027) or"},{"line_number":264,"context_line":"                                        properties.get(\u0027target_portals\u0027,\u0027\u0027))"},{"line_number":265,"context_line":"        iqn \u003d __return_first_or_list(properties.get(\u0027target_iqn\u0027, \u0027\u0027) or"},{"line_number":266,"context_line":"                                     properties.get(\u0027target_iqns\u0027, \u0027\u0027))"},{"line_number":267,"context_line":"        lun \u003d __return_first_or_list(properties.get(\u0027target_lun\u0027, \u0027\u0027) or"},{"line_number":268,"context_line":"                                     properties.get(\u0027target_luns\u0027, \u0027\u0027))"},{"line_number":269,"context_line":"        if \u0027:\u0027 in portal:"},{"line_number":270,"context_line":"            host, port \u003d portal.split(\u0027:\u0027)"},{"line_number":271,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":23,"id":"df140735_772039b1","line":268,"range":{"start_line":263,"start_character":0,"end_line":268,"end_character":71},"updated":"2017-06-01 15:02:27.000000000","message":"This doesn\u0027t work. For example, if target_lun is 0 and target_luns is undefined, lun is empty. I\u0027ll figure it out and resubmit.","commit_id":"ae5634ae03dc59d2ad25c4614d31f0796df58a10"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"826bfc02c4b9ab8eef29b3a36e20fd6626549e25","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) and"},{"line_number":216,"context_line":"            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":"        pxe_options \u003d _build_deploy_pxe_options(task, pxe_info)"}],"source_content_type":"text/x-python","patch_set":31,"id":"9f0e0f27_66cb601e","line":216,"updated":"2017-06-09 10:16:01.000000000","message":"do we need to fail if boot_from_volume is present and not ipxe_enabled?","commit_id":"a6bcec20413fc9deaa870babc88745d459aa5b52"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"c18981b79a7b50358776617e25224ca603cf3c3f","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) and"},{"line_number":216,"context_line":"            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":"        pxe_options \u003d _build_deploy_pxe_options(task, pxe_info)"}],"source_content_type":"text/x-python","patch_set":31,"id":"9f0e0f27_6cd69f52","line":216,"in_reply_to":"9f0e0f27_66cb601e","updated":"2017-06-09 11:14:36.000000000","message":"Likely, since even though interface validation should fail, I know some of this code is called directly by drivers.","commit_id":"a6bcec20413fc9deaa870babc88745d459aa5b52"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"4e76340057ba72592c808f9b0f1621b3e32bb564","unresolved":false,"context_lines":[{"line_number":263,"context_line":""},{"line_number":264,"context_line":"        # Convert to string to account for 0 return value"},{"line_number":265,"context_line":"        portal \u003d __return_item_or_first_if_list("},{"line_number":266,"context_line":"            str(properties.get(\u0027target_portal\u0027, \u0027\u0027)) or"},{"line_number":267,"context_line":"            str(properties.get(\u0027target_portals\u0027, \u0027\u0027)))"},{"line_number":268,"context_line":"        iqn \u003d __return_item_or_first_if_list("},{"line_number":269,"context_line":"            str(properties.get(\u0027target_iqn\u0027, \u0027\u0027)) or"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_a5107a01","line":266,"updated":"2017-06-16 19:16:12.000000000","message":"This doesn\u0027t make sense to me. These are \u0027str\u0027 values. Why does it call __return_item_or_first_if_list() ?\n\nI don\u0027t see how a \u0027str\u0027 will become a \u0027list\u0027. But maybe I am missing something.","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"628d073148f77d671e7f6184249e3640a6afbf03","unresolved":false,"context_lines":[{"line_number":263,"context_line":""},{"line_number":264,"context_line":"        # Convert to string to account for 0 return value"},{"line_number":265,"context_line":"        portal \u003d __return_item_or_first_if_list("},{"line_number":266,"context_line":"            str(properties.get(\u0027target_portal\u0027, \u0027\u0027)) or"},{"line_number":267,"context_line":"            str(properties.get(\u0027target_portals\u0027, \u0027\u0027)))"},{"line_number":268,"context_line":"        iqn \u003d __return_item_or_first_if_list("},{"line_number":269,"context_line":"            str(properties.get(\u0027target_iqn\u0027, \u0027\u0027)) or"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_1d71a2a8","line":266,"in_reply_to":"7f231b9d_2570ea07","updated":"2017-06-19 17:10:18.000000000","message":"Whoops, I should\u0027ve wrapped each in str(return_item_or_first_if_list(*)) rather than the whole statement. Sorry for the oversight.","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"75726adfc80890326def3611a6022d3b9ff32931","unresolved":false,"context_lines":[{"line_number":263,"context_line":""},{"line_number":264,"context_line":"        # Convert to string to account for 0 return value"},{"line_number":265,"context_line":"        portal \u003d __return_item_or_first_if_list("},{"line_number":266,"context_line":"            str(properties.get(\u0027target_portal\u0027, \u0027\u0027)) or"},{"line_number":267,"context_line":"            str(properties.get(\u0027target_portals\u0027, \u0027\u0027)))"},{"line_number":268,"context_line":"        iqn \u003d __return_item_or_first_if_list("},{"line_number":269,"context_line":"            str(properties.get(\u0027target_iqn\u0027, \u0027\u0027)) or"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_2570ea07","line":266,"in_reply_to":"7f231b9d_a5107a01","updated":"2017-06-16 19:27:53.000000000","message":"It shouldn\u0027t, and even then that renders __return_item_or_first_if_list.  The incoming values, if I\u0027m remembering correctly could be lists, so we just want the first item if it is in indeed a list. :\\","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"4e76340057ba72592c808f9b0f1621b3e32bb564","unresolved":false,"context_lines":[{"line_number":266,"context_line":"            str(properties.get(\u0027target_portal\u0027, \u0027\u0027)) or"},{"line_number":267,"context_line":"            str(properties.get(\u0027target_portals\u0027, \u0027\u0027)))"},{"line_number":268,"context_line":"        iqn \u003d __return_item_or_first_if_list("},{"line_number":269,"context_line":"            str(properties.get(\u0027target_iqn\u0027, \u0027\u0027)) or"},{"line_number":270,"context_line":"            str(properties.get(\u0027target_iqns\u0027, \u0027\u0027)))"},{"line_number":271,"context_line":"        lun \u003d __return_item_or_first_if_list("},{"line_number":272,"context_line":"            str(properties.get(\u0027target_lun\u0027, \u0027\u0027)) or"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_85fb3ebf","line":269,"updated":"2017-06-16 19:16:12.000000000","message":"This doesn\u0027t make sense to me. These are \u0027str\u0027 values. Why does it call __return_item_or_first_if_list() ?\n\nI don\u0027t see how a \u0027str\u0027 will become a \u0027list\u0027. But maybe I am missing something.","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"628d073148f77d671e7f6184249e3640a6afbf03","unresolved":false,"context_lines":[{"line_number":266,"context_line":"            str(properties.get(\u0027target_portal\u0027, \u0027\u0027)) or"},{"line_number":267,"context_line":"            str(properties.get(\u0027target_portals\u0027, \u0027\u0027)))"},{"line_number":268,"context_line":"        iqn \u003d __return_item_or_first_if_list("},{"line_number":269,"context_line":"            str(properties.get(\u0027target_iqn\u0027, \u0027\u0027)) or"},{"line_number":270,"context_line":"            str(properties.get(\u0027target_iqns\u0027, \u0027\u0027)))"},{"line_number":271,"context_line":"        lun \u003d __return_item_or_first_if_list("},{"line_number":272,"context_line":"            str(properties.get(\u0027target_lun\u0027, \u0027\u0027)) or"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_bd618ed5","line":269,"in_reply_to":"7f231b9d_85fb3ebf","updated":"2017-06-19 17:10:18.000000000","message":"see above ^","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"4e76340057ba72592c808f9b0f1621b3e32bb564","unresolved":false,"context_lines":[{"line_number":269,"context_line":"            str(properties.get(\u0027target_iqn\u0027, \u0027\u0027)) or"},{"line_number":270,"context_line":"            str(properties.get(\u0027target_iqns\u0027, \u0027\u0027)))"},{"line_number":271,"context_line":"        lun \u003d __return_item_or_first_if_list("},{"line_number":272,"context_line":"            str(properties.get(\u0027target_lun\u0027, \u0027\u0027)) or"},{"line_number":273,"context_line":"            str(properties.get(\u0027target_luns\u0027, \u0027\u0027)))"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        if \u0027:\u0027 in portal:"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_4501a6ae","line":272,"updated":"2017-06-16 19:16:12.000000000","message":"This doesn\u0027t make sense to me. These are \u0027str\u0027 values. Why does it call __return_item_or_first_if_list() ?\n\nI don\u0027t see how a \u0027str\u0027 will become a \u0027list\u0027. But maybe I am missing something.","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"628d073148f77d671e7f6184249e3640a6afbf03","unresolved":false,"context_lines":[{"line_number":269,"context_line":"            str(properties.get(\u0027target_iqn\u0027, \u0027\u0027)) or"},{"line_number":270,"context_line":"            str(properties.get(\u0027target_iqns\u0027, \u0027\u0027)))"},{"line_number":271,"context_line":"        lun \u003d __return_item_or_first_if_list("},{"line_number":272,"context_line":"            str(properties.get(\u0027target_lun\u0027, \u0027\u0027)) or"},{"line_number":273,"context_line":"            str(properties.get(\u0027target_luns\u0027, \u0027\u0027)))"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        if \u0027:\u0027 in portal:"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_7d9d36ba","line":272,"in_reply_to":"7f231b9d_4501a6ae","updated":"2017-06-19 17:10:18.000000000","message":"see above ^","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"e68e89aab6ec65024fce239bcd42809b496af647","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    properties \u003d volume.properties"},{"line_number":289,"context_line":"    if \u0027iscsi\u0027 in volume[\u0027volume_type\u0027]:"},{"line_number":290,"context_line":"        if \u0027auth_username\u0027 in properties:"},{"line_number":291,"context_line":"            pxe_options.update({\u0027username\u0027: properties[\u0027auth_username\u0027]})"},{"line_number":292,"context_line":"        if \u0027auth_password\u0027 in properties:"},{"line_number":293,"context_line":"            pxe_options.update({\u0027password\u0027: properties[\u0027auth_password\u0027]})"},{"line_number":294,"context_line":"        pxe_options.update("}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_2598ea72","line":291,"updated":"2017-06-16 19:25:11.000000000","message":"nit:\n\n pxe_options[\u0027username\u0027] \u003d properties[\u0027auth_username\u0027]","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"628d073148f77d671e7f6184249e3640a6afbf03","unresolved":false,"context_lines":[{"line_number":288,"context_line":"    properties \u003d volume.properties"},{"line_number":289,"context_line":"    if \u0027iscsi\u0027 in volume[\u0027volume_type\u0027]:"},{"line_number":290,"context_line":"        if \u0027auth_username\u0027 in properties:"},{"line_number":291,"context_line":"            pxe_options.update({\u0027username\u0027: properties[\u0027auth_username\u0027]})"},{"line_number":292,"context_line":"        if \u0027auth_password\u0027 in properties:"},{"line_number":293,"context_line":"            pxe_options.update({\u0027password\u0027: properties[\u0027auth_password\u0027]})"},{"line_number":294,"context_line":"        pxe_options.update("}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_9db13247","line":291,"in_reply_to":"7f231b9d_2598ea72","updated":"2017-06-19 17:10:18.000000000","message":"Done","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"e68e89aab6ec65024fce239bcd42809b496af647","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        if \u0027auth_username\u0027 in properties:"},{"line_number":291,"context_line":"            pxe_options.update({\u0027username\u0027: properties[\u0027auth_username\u0027]})"},{"line_number":292,"context_line":"        if \u0027auth_password\u0027 in properties:"},{"line_number":293,"context_line":"            pxe_options.update({\u0027password\u0027: properties[\u0027auth_password\u0027]})"},{"line_number":294,"context_line":"        pxe_options.update("},{"line_number":295,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties),"},{"line_number":296,"context_line":"             \u0027iscsi_initiator_iqn\u0027: properties.get(\u0027target_iqn\u0027, None)})"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_c5825600","line":293,"updated":"2017-06-16 19:25:11.000000000","message":"nit:\n\n pxe_options[\u0027password\u0027] \u003d properties[\u0027auth_password\u0027]","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"628d073148f77d671e7f6184249e3640a6afbf03","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        if \u0027auth_username\u0027 in properties:"},{"line_number":291,"context_line":"            pxe_options.update({\u0027username\u0027: properties[\u0027auth_username\u0027]})"},{"line_number":292,"context_line":"        if \u0027auth_password\u0027 in properties:"},{"line_number":293,"context_line":"            pxe_options.update({\u0027password\u0027: properties[\u0027auth_password\u0027]})"},{"line_number":294,"context_line":"        pxe_options.update("},{"line_number":295,"context_line":"            {\u0027iscsi_boot_url\u0027: __generate_iscsi_url(volume.properties),"},{"line_number":296,"context_line":"             \u0027iscsi_initiator_iqn\u0027: properties.get(\u0027target_iqn\u0027, None)})"}],"source_content_type":"text/x-python","patch_set":35,"id":"7f231b9d_7d865668","line":293,"in_reply_to":"7f231b9d_c5825600","updated":"2017-06-19 17:10:18.000000000","message":"Done","commit_id":"d7811d08638c15941997ae716d36ce4a26ec8436"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"6ded3a6d8ce32cae97c489d4691bd7fcd88ccdfe","unresolved":false,"context_lines":[{"line_number":252,"context_line":""},{"line_number":253,"context_line":"def _get_volume_pxe_options(task):"},{"line_number":254,"context_line":"    \"\"\"Identify volume information for iPXE template generation.\"\"\""},{"line_number":255,"context_line":"    def __return_item_or_first_if_list(item):"},{"line_number":256,"context_line":"        if isinstance(item, list):"},{"line_number":257,"context_line":"            return item[0]"},{"line_number":258,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":36,"id":"7f231b9d_ec2992e5","line":255,"updated":"2017-06-19 17:46:08.000000000","message":"So why not have this return str(the item)?\n\nWould make the code less busy below?","commit_id":"53f5c4921b7bd48dcd7f125725fe23bec68808ca"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"2dff0e47e278079e556f8ce1b4cfbc72563547f5","unresolved":false,"context_lines":[{"line_number":252,"context_line":""},{"line_number":253,"context_line":"def _get_volume_pxe_options(task):"},{"line_number":254,"context_line":"    \"\"\"Identify volume information for iPXE template generation.\"\"\""},{"line_number":255,"context_line":"    def __return_item_or_first_if_list(item):"},{"line_number":256,"context_line":"        if isinstance(item, list):"},{"line_number":257,"context_line":"            return item[0]"},{"line_number":258,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":36,"id":"7f231b9d_76d1d02f","line":255,"in_reply_to":"7f231b9d_ec2992e5","updated":"2017-06-19 18:23:13.000000000","message":"Yeah agreed. Thought was that I didn\u0027t want to enforce a return type but seems silly considering every use of it converts the result to a string. Done.","commit_id":"53f5c4921b7bd48dcd7f125725fe23bec68808ca"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"0114a10bb1cf896677d5a0c59304696b2a759d8b","unresolved":false,"context_lines":[{"line_number":257,"context_line":"            return item[0]"},{"line_number":258,"context_line":"        else:"},{"line_number":259,"context_line":"            return item"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def __generate_iscsi_url(properties):"},{"line_number":262,"context_line":"        \"\"\"Returns iscsi url.\"\"\""},{"line_number":263,"context_line":"        # Convert to string to account for 0 return value"}],"source_content_type":"text/x-python","patch_set":36,"id":"7f231b9d_e53640e8","line":260,"updated":"2017-06-19 20:47:15.000000000","message":"An idea\n\n def get_property(key):\n   value \u003d _return_item_or_first_if_list(properties.get(key, \u0027\u0027)\n   if value:\n     return value\n   return _return_item_or_first_if_list(properties.get(key + \u0027s\u0027, \u0027\u0027)\n\n\n portal \u003d get_property(\u0027target_portal\u0027)\n iqn \u003d get_property(\u0027target_iqn\u0027)\n lun \u003d get_property(\u0027target_lun\u0027)\n\nWhat do you think?","commit_id":"53f5c4921b7bd48dcd7f125725fe23bec68808ca"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"bc617174e79130b3826e716bf9e1c2133b9a8409","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        # Convert to string to account for 0 return value"},{"line_number":264,"context_line":"        target_portal \u003d properties.get(\u0027target_portal\u0027, \u0027\u0027)"},{"line_number":265,"context_line":"        target_portals \u003d properties.get(\u0027target_portals\u0027, \u0027\u0027)"},{"line_number":266,"context_line":"        portal \u003d (str(__return_item_or_first_if_list(target_portal)) or"},{"line_number":267,"context_line":"                  str(__return_item_or_first_if_list(target_portals)))"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        target_iqn \u003d properties.get(\u0027target_iqn\u0027, \u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"7f231b9d_ec051247","line":266,"updated":"2017-06-19 17:47:18.000000000","message":"Well any of these be \"None\" values? And then get converted to the string \"None\"?","commit_id":"53f5c4921b7bd48dcd7f125725fe23bec68808ca"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"2dff0e47e278079e556f8ce1b4cfbc72563547f5","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        # Convert to string to account for 0 return value"},{"line_number":264,"context_line":"        target_portal \u003d properties.get(\u0027target_portal\u0027, \u0027\u0027)"},{"line_number":265,"context_line":"        target_portals \u003d properties.get(\u0027target_portals\u0027, \u0027\u0027)"},{"line_number":266,"context_line":"        portal \u003d (str(__return_item_or_first_if_list(target_portal)) or"},{"line_number":267,"context_line":"                  str(__return_item_or_first_if_list(target_portals)))"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        target_iqn \u003d properties.get(\u0027target_iqn\u0027, \u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"7f231b9d_190c0f3a","line":266,"in_reply_to":"7f231b9d_ec051247","updated":"2017-06-19 18:23:13.000000000","message":"So we enforce a default of empty string if the property is None above.\n\nI believe these properties can be None as well. VolumeTargets are user created resources so there\u0027s nothing enforcing what\u0027s held in the \"properties\" field. So \u0027lun\u0027, \u0027portal\u0027, or \u0027iqn\u0027 could be missing.","commit_id":"53f5c4921b7bd48dcd7f125725fe23bec68808ca"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"e4e92525d938e312437568705b12893a6c057f97","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        # Convert to string to account for 0 return value"},{"line_number":264,"context_line":"        target_portal \u003d properties.get(\u0027target_portal\u0027, \u0027\u0027)"},{"line_number":265,"context_line":"        target_portals \u003d properties.get(\u0027target_portals\u0027, \u0027\u0027)"},{"line_number":266,"context_line":"        portal \u003d (str(__return_item_or_first_if_list(target_portal)) or"},{"line_number":267,"context_line":"                  str(__return_item_or_first_if_list(target_portals)))"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        target_iqn \u003d properties.get(\u0027target_iqn\u0027, \u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"7f231b9d_ecb3d296","line":266,"in_reply_to":"7f231b9d_ec051247","updated":"2017-06-19 17:48:55.000000000","message":"Will any of ...","commit_id":"53f5c4921b7bd48dcd7f125725fe23bec68808ca"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"5178a8c5294a52fc382832c635e8f834606cf6e8","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        # Convert to string to account for 0 return value"},{"line_number":264,"context_line":"        target_portal \u003d properties.get(\u0027target_portal\u0027, \u0027\u0027)"},{"line_number":265,"context_line":"        target_portals \u003d properties.get(\u0027target_portals\u0027, \u0027\u0027)"},{"line_number":266,"context_line":"        portal \u003d (str(__return_item_or_first_if_list(target_portal)) or"},{"line_number":267,"context_line":"                  str(__return_item_or_first_if_list(target_portals)))"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        target_iqn \u003d properties.get(\u0027target_iqn\u0027, \u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"7f231b9d_ec7872c4","line":266,"in_reply_to":"7f231b9d_ecb3d296","updated":"2017-06-19 17:49:41.000000000","message":"Never mind. I see everything will be an empty string.","commit_id":"53f5c4921b7bd48dcd7f125725fe23bec68808ca"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"233001e8994428a96b1463285b0a297ed2fbc848","unresolved":false,"context_lines":[{"line_number":250,"context_line":"        deploy_utils.is_iscsi_boot(task))"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"def _get_volume_pxe_options(task):"},{"line_number":254,"context_line":"    \"\"\"Identify volume information for iPXE template generation.\"\"\""},{"line_number":255,"context_line":"    def __return_item_or_first_if_list(item):"},{"line_number":256,"context_line":"        if isinstance(item, list):"}],"source_content_type":"text/x-python","patch_set":37,"id":"7f231b9d_3012380b","line":253,"updated":"2017-06-19 21:25:55.000000000","message":"Please add some direct unit tests of this function.\n\nBy direct I mean the test calls \"_get_volume_pxe_options()\"\n\nI looked but I didn\u0027t see a unit test which does that.","commit_id":"32cda83ee2943e7fa1213b83f67f50336e9e4d4c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"707498c9d5db040e93629155391c55df2520680f","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def __get_property(properties, key):"},{"line_number":262,"context_line":"        prop \u003d __return_item_or_first_if_list(properties.get(key, \u0027\u0027))"},{"line_number":263,"context_line":"        if prop is not \u0027\u0027:"},{"line_number":264,"context_line":"            return prop"},{"line_number":265,"context_line":"        return __return_item_or_first_if_list(properties.get(key + \u0027s\u0027, \u0027\u0027))"},{"line_number":266,"context_line":""}],"source_content_type":"text/x-python","patch_set":40,"id":"5f201791_3e5f3b0f","line":263,"updated":"2017-06-23 16:29:41.000000000","message":"please do not compare strings with \"is\", it is not guaranteed to work (it merely happens to work for short strings)","commit_id":"6883674b3c4b016ba36b73bb385ec8813d88f93f"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"4465862e98c3848323067fd6aa74e7f27c133a98","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def __get_property(properties, key):"},{"line_number":262,"context_line":"        prop \u003d __return_item_or_first_if_list(properties.get(key, \u0027\u0027))"},{"line_number":263,"context_line":"        if prop is not \u0027\u0027:"},{"line_number":264,"context_line":"            return prop"},{"line_number":265,"context_line":"        return __return_item_or_first_if_list(properties.get(key + \u0027s\u0027, \u0027\u0027))"},{"line_number":266,"context_line":""}],"source_content_type":"text/x-python","patch_set":40,"id":"5f201791_03cf5656","line":263,"in_reply_to":"5f201791_3e5f3b0f","updated":"2017-06-26 18:09:44.000000000","message":"This is handled in I80a11277b6c3c2d26f69aa4e0f7b4574b7b7ecf9\n\nThanks for catching this dtantsur","commit_id":"6883674b3c4b016ba36b73bb385ec8813d88f93f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"707498c9d5db040e93629155391c55df2520680f","unresolved":false,"context_lines":[{"line_number":374,"context_line":"class PXEBoot(base.BootInterface):"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"    def __init__(self):"},{"line_number":377,"context_line":"        self.capabilities \u003d [\u0027iscsi_volume_boot\u0027]"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"    def get_properties(self):"},{"line_number":380,"context_line":"        \"\"\"Return the properties of the interface."}],"source_content_type":"text/x-python","patch_set":40,"id":"5f201791_1e9c7fbe","line":377,"updated":"2017-06-23 16:29:41.000000000","message":"nit: this could be a class-level constant","commit_id":"6883674b3c4b016ba36b73bb385ec8813d88f93f"}],"ironic/tests/unit/drivers/modules/test_deploy_utils.py":[{"author":{"_account_id":11878,"name":"Rushil Chugh","email":"rushil.chugh@gmail.com","username":"rushil"},"change_message_id":"53e058ab6300f577d6d2350804bc9cf28d77bcb4","unresolved":false,"context_lines":[{"line_number":2525,"context_line":"        self.node.save()"},{"line_number":2526,"context_line":"        with task_manager.acquire("},{"line_number":2527,"context_line":"                self.context, self.node.uuid, shared\u003dFalse) as task:"},{"line_number":2528,"context_line":"            self.assertFalse(utils.is_iscsi_boot(task))"}],"source_content_type":"text/x-python","patch_set":12,"id":"da36d5c6_d7813e4f","line":2528,"updated":"2017-02-19 05:51:58.000000000","message":"Awesome test coverage here. We can consider using ddt though to cover all these test scenarios as part of a single test. Documentation for ddt is here: http://ddt.readthedocs.io/en/latest/example.html","commit_id":"69c59d74d3df7143e5f03fe704d7efa0e806897d"}],"ironic/tests/unit/drivers/modules/test_pxe.py":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"16cd8e7ea59cb5b9e271f4926e7990b8e7d82f2e","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        self.node.driver_internal_info.update({\u0027boot_from_volume\u0027: vol_id})"},{"line_number":455,"context_line":"        self._test_build_pxe_config_options_ipxe(boot_from_volume\u003dTrue)"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"    def test__get_volume_pxe_options(self):"},{"line_number":458,"context_line":"        vol_id \u003d uuidutils.generate_uuid()"},{"line_number":459,"context_line":"        vol_id2 \u003d uuidutils.generate_uuid()"},{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":38,"id":"5f201791_edabc072","line":457,"updated":"2017-06-20 19:38:59.000000000","message":"Do any of these tests test for:\n\n When value is a list? So we are testing \u0027__return_item_or_first_if_list\u0027\n\n For the \u0027plural case\u0027.  \u0027target_portal\u0027 vs \u0027target_portals\u0027? \u0027target_iqn\u0027 vs \u0027target_igns\u0027? etc...","commit_id":"6ea98795c5e845d54b4c4986581f0fdf26ebacfc"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"0e6e1e6a8f9a30bf0552c7e732e27093ce5076ad","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        self.node.driver_internal_info.update({\u0027boot_from_volume\u0027: vol_id})"},{"line_number":455,"context_line":"        self._test_build_pxe_config_options_ipxe(boot_from_volume\u003dTrue)"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"    def test__get_volume_pxe_options(self):"},{"line_number":458,"context_line":"        vol_id \u003d uuidutils.generate_uuid()"},{"line_number":459,"context_line":"        vol_id2 \u003d uuidutils.generate_uuid()"},{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":38,"id":"5f201791_0562393f","line":457,"in_reply_to":"5f201791_259bf572","updated":"2017-06-21 14:50:56.000000000","message":"I kind of agree, it would be a duplication and we\u0027re testing at the method level, under that level I think it is fair not to because the contract is with the method, not the method nested inside only being used by the originally called method to achieve its overall goal.","commit_id":"6ea98795c5e845d54b4c4986581f0fdf26ebacfc"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"bdde6974bb3218acba9c4aba90290f58f42ae4e3","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        self.node.driver_internal_info.update({\u0027boot_from_volume\u0027: vol_id})"},{"line_number":455,"context_line":"        self._test_build_pxe_config_options_ipxe(boot_from_volume\u003dTrue)"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"    def test__get_volume_pxe_options(self):"},{"line_number":458,"context_line":"        vol_id \u003d uuidutils.generate_uuid()"},{"line_number":459,"context_line":"        vol_id2 \u003d uuidutils.generate_uuid()"},{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":38,"id":"5f201791_259bf572","line":457,"in_reply_to":"5f201791_25bc1504","updated":"2017-06-21 14:45:33.000000000","message":"IMO it\u0027d be duplication of testing, but I\u0027d like to hear what other\u0027s think!","commit_id":"6ea98795c5e845d54b4c4986581f0fdf26ebacfc"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a4cd9d6df01aa938802e7652a71fafd761007cc6","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        self.node.driver_internal_info.update({\u0027boot_from_volume\u0027: vol_id})"},{"line_number":455,"context_line":"        self._test_build_pxe_config_options_ipxe(boot_from_volume\u003dTrue)"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"    def test__get_volume_pxe_options(self):"},{"line_number":458,"context_line":"        vol_id \u003d uuidutils.generate_uuid()"},{"line_number":459,"context_line":"        vol_id2 \u003d uuidutils.generate_uuid()"},{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":38,"id":"5f201791_25bc1504","line":457,"in_reply_to":"5f201791_53a8001e","updated":"2017-06-21 14:39:24.000000000","message":"It probably does. But I\u0027ll be honest and admit in my 3 minutes at looking at the unit tests it isn\u0027t obvious.\n\nI would prefer to also add the testing to the direct tests. That will likely be easier to understand.\n\nOr maybe it is is obvious to everyone else how the tests work and I\u0027m being obtuse.","commit_id":"6ea98795c5e845d54b4c4986581f0fdf26ebacfc"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"c43ebfab7de62e0f4edae9c90bccd77c11af1bb2","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        self.node.driver_internal_info.update({\u0027boot_from_volume\u0027: vol_id})"},{"line_number":455,"context_line":"        self._test_build_pxe_config_options_ipxe(boot_from_volume\u003dTrue)"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"    def test__get_volume_pxe_options(self):"},{"line_number":458,"context_line":"        vol_id \u003d uuidutils.generate_uuid()"},{"line_number":459,"context_line":"        vol_id2 \u003d uuidutils.generate_uuid()"},{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":38,"id":"5f201791_53a8001e","line":457,"in_reply_to":"5f201791_a2214050","updated":"2017-06-21 13:42:15.000000000","message":"test__build_pxe_config_options_ipxe_and_iscsi_boot_from_lists should cover both of those John. Note that the first volume uses the plural case with lists while the second volume uses the singular case with lists.","commit_id":"6ea98795c5e845d54b4c4986581f0fdf26ebacfc"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"51e4dc9156ba0efd3e2b57a534cf3ddb489e9e56","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        self.node.driver_internal_info.update({\u0027boot_from_volume\u0027: vol_id})"},{"line_number":455,"context_line":"        self._test_build_pxe_config_options_ipxe(boot_from_volume\u003dTrue)"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"    def test__get_volume_pxe_options(self):"},{"line_number":458,"context_line":"        vol_id \u003d uuidutils.generate_uuid()"},{"line_number":459,"context_line":"        vol_id2 \u003d uuidutils.generate_uuid()"},{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":38,"id":"5f201791_a2214050","line":457,"in_reply_to":"5f201791_edabc072","updated":"2017-06-21 12:17:45.000000000","message":"Does the test starting at line 436 not cover your question?","commit_id":"6ea98795c5e845d54b4c4986581f0fdf26ebacfc"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1508987bc34ab3d4d358567ea62ee5aff9b7f891","unresolved":false,"context_lines":[{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("},{"line_number":461,"context_line":"            self.context, node_id\u003dself.node.id, volume_type\u003d\u0027iscsi\u0027,"},{"line_number":462,"context_line":"            boot_index\u003d0, volume_id\u003d\u00271234\u0027, uuid\u003dvol_id,"},{"line_number":463,"context_line":"            properties\u003d{\u0027target_lun\u0027: 0,"},{"line_number":464,"context_line":"                        \u0027target_portal\u0027: \u0027fake_host:3260\u0027,"},{"line_number":465,"context_line":"                        \u0027target_iqn\u0027: \u0027fake_iqn\u0027,"},{"line_number":466,"context_line":"                        \u0027auth_username\u0027: \u0027fake_username\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"5f201791_314c57c6","line":463,"updated":"2017-06-21 16:55:41.000000000","message":"What if this was:\n\n properties\u003d{\u0027target_lun\u0027: [0, 1, 3],","commit_id":"338f5283acc40d4a5f379b7a8e8a0bf46cf7655c"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"1b26074bd8bc8b816247e0b04e13e381feaa62d7","unresolved":false,"context_lines":[{"line_number":460,"context_line":"        obj_utils.create_test_volume_target("},{"line_number":461,"context_line":"            self.context, node_id\u003dself.node.id, volume_type\u003d\u0027iscsi\u0027,"},{"line_number":462,"context_line":"            boot_index\u003d0, volume_id\u003d\u00271234\u0027, uuid\u003dvol_id,"},{"line_number":463,"context_line":"            properties\u003d{\u0027target_lun\u0027: 0,"},{"line_number":464,"context_line":"                        \u0027target_portal\u0027: \u0027fake_host:3260\u0027,"},{"line_number":465,"context_line":"                        \u0027target_iqn\u0027: \u0027fake_iqn\u0027,"},{"line_number":466,"context_line":"                        \u0027auth_username\u0027: \u0027fake_username\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"5f201791_8ce66e16","line":463,"in_reply_to":"5f201791_314c57c6","updated":"2017-06-21 18:49:06.000000000","message":"Done","commit_id":"338f5283acc40d4a5f379b7a8e8a0bf46cf7655c"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1508987bc34ab3d4d358567ea62ee5aff9b7f891","unresolved":false,"context_lines":[{"line_number":462,"context_line":"            boot_index\u003d0, volume_id\u003d\u00271234\u0027, uuid\u003dvol_id,"},{"line_number":463,"context_line":"            properties\u003d{\u0027target_lun\u0027: 0,"},{"line_number":464,"context_line":"                        \u0027target_portal\u0027: \u0027fake_host:3260\u0027,"},{"line_number":465,"context_line":"                        \u0027target_iqn\u0027: \u0027fake_iqn\u0027,"},{"line_number":466,"context_line":"                        \u0027auth_username\u0027: \u0027fake_username\u0027,"},{"line_number":467,"context_line":"                        \u0027auth_password\u0027: \u0027fake_password\u0027})"},{"line_number":468,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":39,"id":"5f201791_d1d083cc","line":465,"updated":"2017-06-21 16:55:41.000000000","message":"What if this was:\n\n \u0027target_iqns\u0027: \u0027fake_iqn\u0027,","commit_id":"338f5283acc40d4a5f379b7a8e8a0bf46cf7655c"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"1b26074bd8bc8b816247e0b04e13e381feaa62d7","unresolved":false,"context_lines":[{"line_number":462,"context_line":"            boot_index\u003d0, volume_id\u003d\u00271234\u0027, uuid\u003dvol_id,"},{"line_number":463,"context_line":"            properties\u003d{\u0027target_lun\u0027: 0,"},{"line_number":464,"context_line":"                        \u0027target_portal\u0027: \u0027fake_host:3260\u0027,"},{"line_number":465,"context_line":"                        \u0027target_iqn\u0027: \u0027fake_iqn\u0027,"},{"line_number":466,"context_line":"                        \u0027auth_username\u0027: \u0027fake_username\u0027,"},{"line_number":467,"context_line":"                        \u0027auth_password\u0027: \u0027fake_password\u0027})"},{"line_number":468,"context_line":"        obj_utils.create_test_volume_target("}],"source_content_type":"text/x-python","patch_set":39,"id":"5f201791_ace12a01","line":465,"in_reply_to":"5f201791_d1d083cc","updated":"2017-06-21 18:49:06.000000000","message":"Done","commit_id":"338f5283acc40d4a5f379b7a8e8a0bf46cf7655c"}]}
