)]}'
{"specs/approved/agent-http-provisioning.rst":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"2d49ab09808af01d4b3d3ea5e3fb450fb86fd022","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1598852"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This spec aims to support agent (i.e. the ``direct`` deploy interface)"},{"line_number":14,"context_line":"provisioning with http server."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5f2577a7_ec058312","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":30},"updated":"2017-09-14 15:22:47.000000000","message":"Ironic already supports http URL for images. It was enabled as part of standalone Ironic.\nhttps://docs.openstack.org/project-install-guide/baremetal/draft/standalone.html\n\nAre you proposing anything different here?","commit_id":"f06cb4149be83881331a7b0345cf8c1c7827a1d4"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"So far, the ``direct`` deploy interface only works with tempurl when ironic is"},{"line_number":20,"context_line":"used with OpenStack Image Service, it needs glance being configured with swift"},{"line_number":21,"context_line":"or RADOSGW as a backend. This requirement limits the appliable range of"},{"line_number":22,"context_line":"``direct`` deploy interface, as some deployments do not adopt swift or RADOSGW."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_0a0dd03d","line":22,"range":{"start_line":19,"start_character":0,"end_line":22,"end_character":79},"updated":"2017-09-19 13:00:58.000000000","message":"As previously noted, this works with standalone. I think the context you need to provide up front in that there is no mechanism, no means, for ironic to leverage a local http server for providing temporary file content to the agent to facilitate a deployment, when utilized as part of a larger deployment with other services like glance/nova.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"So far, the ``direct`` deploy interface only works with tempurl when ironic is"},{"line_number":20,"context_line":"used with OpenStack Image Service, it needs glance being configured with swift"},{"line_number":21,"context_line":"or RADOSGW as a backend. This requirement limits the appliable range of"},{"line_number":22,"context_line":"``direct`` deploy interface, as some deployments do not adopt swift or RADOSGW."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f5c4f37_a6a72350","line":22,"range":{"start_line":19,"start_character":0,"end_line":22,"end_character":79},"in_reply_to":"ff5d4b2f_0a0dd03d","updated":"2017-09-21 09:12:20.000000000","message":"Done","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"This spec proposes to add support to ``direct`` deploy interface to work with"},{"line_number":29,"context_line":"http server at ironic conductor node, and make swift an optional component"},{"line_number":30,"context_line":"when using ``direct`` as node deploy interface."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_8503f10d","line":30,"range":{"start_line":29,"start_character":38,"end_line":30,"end_character":47},"updated":"2017-09-19 13:00:58.000000000","message":"nit: we should still recommend the use of swift, as use of the tempurls provides us a little more security than just placing files on a local http(s) server.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"This spec proposes to add support to ``direct`` deploy interface to work with"},{"line_number":29,"context_line":"http server at ironic conductor node, and make swift an optional component"},{"line_number":30,"context_line":"when using ``direct`` as node deploy interface."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_3926b0b9","line":30,"range":{"start_line":29,"start_character":38,"end_line":30,"end_character":47},"in_reply_to":"ff5d4b2f_8503f10d","updated":"2017-09-21 09:12:20.000000000","message":"Swift provides unauthenticated image access for a period of time longer than deployment, but with http server, we can remove the image access right after deployment done.\nAlso baremetal is not required to route to glance service.\nI wonder if there is any other security assurance by using swift?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":30,"context_line":"when using ``direct`` as node deploy interface."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"},{"line_number":34,"context_line":"deploy interface, the ``direct`` deploy interface cache instance image and"},{"line_number":35,"context_line":"create symbolic link to the cached image to http directory. The link is set to"},{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_2512055a","line":33,"range":{"start_line":33,"start_character":9,"end_line":33,"end_character":11},"updated":"2017-09-19 13:00:58.000000000","message":"Please clarify, In this sentence, what is \"it\" referring to?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":30,"context_line":"when using ``direct`` as node deploy interface."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"},{"line_number":34,"context_line":"deploy interface, the ``direct`` deploy interface cache instance image and"},{"line_number":35,"context_line":"create symbolic link to the cached image to http directory. The link is set to"},{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_252c4946","line":33,"range":{"start_line":33,"start_character":9,"end_line":33,"end_character":11},"in_reply_to":"ff5d4b2f_2512055a","updated":"2017-09-21 09:12:20.000000000","message":"Done, it means web server","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"},{"line_number":34,"context_line":"deploy interface, the ``direct`` deploy interface cache instance image and"},{"line_number":35,"context_line":"create symbolic link to the cached image to http directory. The link is set to"},{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"},{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_8551b111","line":34,"range":{"start_line":34,"start_character":49,"end_line":34,"end_character":56},"updated":"2017-09-19 13:00:58.000000000","message":"s/cache/would cache/","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"},{"line_number":34,"context_line":"deploy interface, the ``direct`` deploy interface cache instance image and"},{"line_number":35,"context_line":"create symbolic link to the cached image to http directory. The link is set to"},{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"},{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_0521454e","line":34,"range":{"start_line":34,"start_character":49,"end_line":34,"end_character":56},"in_reply_to":"ff5d4b2f_8551b111","updated":"2017-09-21 09:12:20.000000000","message":"Done","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"},{"line_number":34,"context_line":"deploy interface, the ``direct`` deploy interface cache instance image and"},{"line_number":35,"context_line":"create symbolic link to the cached image to http directory. The link is set to"},{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"},{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_05ab81d6","line":35,"range":{"start_line":35,"start_character":7,"end_line":35,"end_character":58},"updated":"2017-09-19 13:00:58.000000000","message":"Quesiton: What if:\n\n1) The webserver is running as nobody or some other unprivileged user (which it should).\n2) Ironic\u0027s operating umask is restricted such that files/directories are being created with 770 or 750 (or even 700) permissions?\n\nI don\u0027t see a symlink really being a viable, unless some very explicit actions are taken regarding permissions for the cached files.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":32,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":33,"context_line":"normally it can be done during cloud deployment. Similiar to the ``iscsi``"},{"line_number":34,"context_line":"deploy interface, the ``direct`` deploy interface cache instance image and"},{"line_number":35,"context_line":"create symbolic link to the cached image to http directory. The link is set to"},{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"},{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f5c4f37_fa9ec852","line":35,"range":{"start_line":35,"start_character":7,"end_line":35,"end_character":58},"in_reply_to":"ff5d4b2f_05ab81d6","updated":"2017-09-21 09:12:20.000000000","message":"The default umask of centos is 022, therefore ironic has a default privilege of 644, it\u0027s readable by other users, so it works from my experiment.\nYou are right, it would be a problem if this differs between distros, can we let image cache set privileges explicitly?\nBut I still doubt if it\u0027s possible for an installation use 770, 750 or even 700, because we\u0027ll face same issue for tftp.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"},{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Introduce a new option ``[agent]image_source``, allowed values are ``swift``"},{"line_number":40,"context_line":"and ``http``, defaults to ``swift``. The ``direct`` deploy interface takes"},{"line_number":41,"context_line":"current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_45d05951","line":39,"range":{"start_line":39,"start_character":25,"end_line":39,"end_character":44},"updated":"2017-09-19 13:00:58.000000000","message":"Naming things is one of the hardest things in computers, but we already use image_source both internally and for stand_alone users when used with instance info, and I\u0027m worried the name conflict will cause confusion.  Perhaps ``image_download_source`` or ``direct_image_source``?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":36,"context_line":"instance_info and retrieved by IPA, the IPA downloads instance image and write"},{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Introduce a new option ``[agent]image_source``, allowed values are ``swift``"},{"line_number":40,"context_line":"and ``http``, defaults to ``swift``. The ``direct`` deploy interface takes"},{"line_number":41,"context_line":"current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_857895f8","line":39,"range":{"start_line":39,"start_character":25,"end_line":39,"end_character":44},"in_reply_to":"ff5d4b2f_45d05951","updated":"2017-09-21 09:12:20.000000000","message":"Yes, it conflicts with instance_info though they at not in the same context. I\u0027m fine with both, pick image_download_source for now.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Introduce a new option ``[agent]image_source``, allowed values are ``swift``"},{"line_number":40,"context_line":"and ``http``, defaults to ``swift``. The ``direct`` deploy interface takes"},{"line_number":41,"context_line":"current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_e5be2dfe","line":41,"range":{"start_line":40,"start_character":37,"end_line":41,"end_character":65},"updated":"2017-09-19 13:00:58.000000000","message":"Any consideration into the fact that the agent is still utilized by the iscsi interface?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":37,"context_line":"to baremetal disk. The symbolic link is removed after deploy is done."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Introduce a new option ``[agent]image_source``, allowed values are ``swift``"},{"line_number":40,"context_line":"and ``http``, defaults to ``swift``. The ``direct`` deploy interface takes"},{"line_number":41,"context_line":"current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_1ecbd253","line":41,"range":{"start_line":40,"start_character":37,"end_line":41,"end_character":65},"in_reply_to":"ff5d4b2f_e5be2dfe","updated":"2017-09-21 09:12:20.000000000","message":"Not yet, I think only agent prepare and deploy interface will be affected by this spec, while iscsi reuses code via AgentDeployMixin, they don\u0027t have intersection.\nOr do we need to consider something about deploy interface clean up here?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":41,"context_line":"current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_059f0151","line":44,"range":{"start_line":44,"start_character":35,"end_line":44,"end_character":44},"updated":"2017-09-19 13:00:58.000000000","message":"If we\u0027re going to do this, it should be user configurable.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":41,"context_line":"current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_7e664e54","line":44,"range":{"start_line":44,"start_character":35,"end_line":44,"end_character":44},"in_reply_to":"ff5d4b2f_059f0151","updated":"2017-09-21 09:12:20.000000000","message":"Done","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_25f8c5c2","line":45,"updated":"2017-09-19 13:00:58.000000000","message":"I believe you\u0027ll need to calculate the checksum for the file in the cache, and store that as instance_info/image_checksum.  It may be worth noting the need to do that since the downloaded image is checksumed as well by the agent.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_5934c44a","line":45,"in_reply_to":"ff5d4b2f_25f8c5c2","updated":"2017-09-21 09:12:20.000000000","message":"Yes, I intend to avoid image conversion, so the checksum is not changed.\nagents download small qcow image from node, and perform image conversion/write on each node, it\u0027s a major performance benefit of using agent from my point of view.\nWhen using agent with swift, there is also no image conversion, i want to keep the same way.\nThe problem is, the instance image cache owned by iscsi driver performs image conversion according to a conf option, if we want to reuse the cache, we have to respect this option with loss of performance.\nI tend to use a new image cache for the direct deploy interface, do you have any idea?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_05702172","line":46,"updated":"2017-09-19 13:00:58.000000000","message":"This should all likely be bypassed if image_source/image_checksum is provided by the user.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":43,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f5c4f37_c1068621","line":46,"in_reply_to":"ff5d4b2f_05702172","updated":"2017-09-21 09:12:20.000000000","message":"yes, it\u0027s controlled by the image_download_source option and instance_info[\u0027image_source\u0027], the caching only happens when image_source is a glance image, and image_download_source is http.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_05914153","line":47,"range":{"start_line":47,"start_character":15,"end_line":47,"end_character":56},"updated":"2017-09-19 13:00:58.000000000","message":"Please update to be written in future tense, so the reader comprehends that it will be a thing in the future.\n\nAlso, prepare should take care of image caching and update the instnace_info.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":44,"context_line":"instance image url, a subdirectory ``images`` is used to keep isolation with"},{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f5c4f37_01737e82","line":47,"range":{"start_line":47,"start_character":15,"end_line":47,"end_character":56},"in_reply_to":"ff5d4b2f_05914153","updated":"2017-09-21 09:12:20.000000000","message":"Done for the future tense.\niscsi driver caches instance image in the ``deploy``, don\u0027t we take the same procedure?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"},{"line_number":51,"context_line":"``DeployInterface.deploy`` when deploy is done."}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_25cfa580","line":48,"range":{"start_line":48,"start_character":2,"end_line":48,"end_character":17},"updated":"2017-09-19 13:00:58.000000000","message":"This should be AgentDeploy I think.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":45,"context_line":"iPXE related scripts."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"},{"line_number":51,"context_line":"``DeployInterface.deploy`` when deploy is done."}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_2560c932","line":48,"range":{"start_line":48,"start_character":2,"end_line":48,"end_character":17},"in_reply_to":"ff5d4b2f_25cfa580","updated":"2017-09-21 09:12:20.000000000","message":"Done","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"},{"line_number":51,"context_line":"``DeployInterface.deploy`` when deploy is done."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_c5c5695d","line":50,"range":{"start_line":50,"start_character":2,"end_line":50,"end_character":17},"updated":"2017-09-19 13:00:58.000000000","message":"ditto","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":47,"context_line":"The ``direct`` deploy interface caches instance image at"},{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"},{"line_number":51,"context_line":"``DeployInterface.deploy`` when deploy is done."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_0555c550","line":50,"range":{"start_line":50,"start_character":2,"end_line":50,"end_character":17},"in_reply_to":"ff5d4b2f_c5c5695d","updated":"2017-09-21 09:12:20.000000000","message":"Done","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"},{"line_number":51,"context_line":"``DeployInterface.deploy`` when deploy is done."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_a5a035a7","line":51,"range":{"start_line":51,"start_character":2,"end_line":51,"end_character":17},"updated":"2017-09-19 13:00:58.000000000","message":"ditto","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":48,"context_line":"``DeployInterface.deploy``, creates a symbolic link to the cached image to"},{"line_number":49,"context_line":"http directory. The http url is set to instance_info at"},{"line_number":50,"context_line":"``DeployInterface.prepare``. The symbolic link is removed at"},{"line_number":51,"context_line":"``DeployInterface.deploy`` when deploy is done."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_e5519164","line":51,"range":{"start_line":51,"start_character":2,"end_line":51,"end_character":17},"in_reply_to":"ff5d4b2f_a5a035a7","updated":"2017-09-21 09:12:20.000000000","message":"Done","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":105,"context_line":"Ramdisk impact"},{"line_number":106,"context_line":"--------------"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"None."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The http server at ironic conductor node provides image access without"},{"line_number":111,"context_line":"authentication, which is the way supported by IPA. Implementation may have"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_25f9e57f","line":108,"range":{"start_line":108,"start_character":0,"end_line":108,"end_character":5},"updated":"2017-09-19 13:00:58.000000000","message":"If there is no impact, than the paragraph is not needed. If there is an impact to the contents or behavior of the ramdisk, then content should be here.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":105,"context_line":"Ramdisk impact"},{"line_number":106,"context_line":"--------------"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"None."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The http server at ironic conductor node provides image access without"},{"line_number":111,"context_line":"authentication, which is the way supported by IPA. Implementation may have"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f5c4f37_49407808","line":108,"range":{"start_line":108,"start_character":0,"end_line":108,"end_character":5},"in_reply_to":"ff5d4b2f_25f9e57f","updated":"2017-09-21 09:12:20.000000000","message":"Ok, I have removed content in this section.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"None."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The http server at ironic conductor node provides image access without"},{"line_number":111,"context_line":"authentication, which is the way supported by IPA. Implementation may have"},{"line_number":112,"context_line":"credential information passed to IPA, but it\u0027s beyond the scope of this spec."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_851891d3","line":111,"range":{"start_line":110,"start_character":0,"end_line":111,"end_character":50},"updated":"2017-09-19 13:00:58.000000000","message":"This is pre-existing behavior that is utilized by numerous temporary/stand-alone installations.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":108,"context_line":"None."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"The http server at ironic conductor node provides image access without"},{"line_number":111,"context_line":"authentication, which is the way supported by IPA. Implementation may have"},{"line_number":112,"context_line":"credential information passed to IPA, but it\u0027s beyond the scope of this spec."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"Security impact"},{"line_number":115,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_85e1b1d3","line":112,"range":{"start_line":111,"start_character":51,"end_line":112,"end_character":77},"updated":"2017-09-19 13:00:58.000000000","message":"This is security impact, or a security consideration.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":114,"context_line":"Security impact"},{"line_number":115,"context_line":"---------------"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"The http server on ironic conductor node should be configured carefully to"},{"line_number":118,"context_line":"reduce security attack."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Ironic creates symbolic link to instance image before deployment, and removes"},{"line_number":121,"context_line":"the link after node deployment is done, the instance image is accessible"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_e5206dfa","line":118,"range":{"start_line":117,"start_character":0,"end_line":118,"end_character":23},"updated":"2017-09-19 13:00:58.000000000","message":"Please elaborate on this.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":114,"context_line":"Security impact"},{"line_number":115,"context_line":"---------------"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"The http server on ironic conductor node should be configured carefully to"},{"line_number":118,"context_line":"reduce security attack."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Ironic creates symbolic link to instance image before deployment, and removes"},{"line_number":121,"context_line":"the link after node deployment is done, the instance image is accessible"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9f5c4f37_dfef76e7","line":118,"range":{"start_line":117,"start_character":0,"end_line":118,"end_character":23},"in_reply_to":"ff5d4b2f_e5206dfa","updated":"2017-09-21 09:12:20.000000000","message":"I have tried to append some words here, but I must admit I am not an expert on security :(","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":130,"context_line":"Scalability impact"},{"line_number":131,"context_line":"------------------"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Instance image will be cached at ironic conductor node, additional disk space"},{"line_number":134,"context_line":"is expected to improve cache performance."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"IPA downloads instance image from conductor node, it will take considerable"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_e5750dfc","line":133,"range":{"start_line":133,"start_character":29,"end_line":133,"end_character":32},"updated":"2017-09-19 13:00:58.000000000","message":"s/at/on the/","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":130,"context_line":"Scalability impact"},{"line_number":131,"context_line":"------------------"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Instance image will be cached at ironic conductor node, additional disk space"},{"line_number":134,"context_line":"is expected to improve cache performance."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"IPA downloads instance image from conductor node, it will take considerable"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_a5e03998","line":133,"range":{"start_line":133,"start_character":29,"end_line":133,"end_character":32},"in_reply_to":"ff5d4b2f_e5750dfc","updated":"2017-09-21 09:12:20.000000000","message":"Done","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":130,"context_line":"Scalability impact"},{"line_number":131,"context_line":"------------------"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Instance image will be cached at ironic conductor node, additional disk space"},{"line_number":134,"context_line":"is expected to improve cache performance."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"IPA downloads instance image from conductor node, it will take considerable"},{"line_number":137,"context_line":"bandwidth, substantially corresponds to the ``iscsi`` deploy interface."}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_2588c5c4","line":134,"range":{"start_line":133,"start_character":56,"end_line":134,"end_character":41},"updated":"2017-09-19 13:00:58.000000000","message":"Perhaps word as \"an installation should expect to utilize additional disk space for the conductor local image cache.\" ?","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":130,"context_line":"Scalability impact"},{"line_number":131,"context_line":"------------------"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Instance image will be cached at ironic conductor node, additional disk space"},{"line_number":134,"context_line":"is expected to improve cache performance."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"IPA downloads instance image from conductor node, it will take considerable"},{"line_number":137,"context_line":"bandwidth, substantially corresponds to the ``iscsi`` deploy interface."}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_6803380f","line":134,"range":{"start_line":133,"start_character":56,"end_line":134,"end_character":41},"in_reply_to":"ff5d4b2f_2588c5c4","updated":"2017-09-21 09:12:20.000000000","message":"there is a slightly difference between the two, I try to merge them together.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d05ee402835d89610071dfebd5118506280a8aeb","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Refactor InstanceImageCache out of iscsi_deploy"},{"line_number":168,"context_line":"* Implement the proposed work in agent.py"},{"line_number":169,"context_line":"* Update document to instruct how to use this feature"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"Dependencies"},{"line_number":172,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ff5d4b2f_65459d70","line":169,"range":{"start_line":169,"start_character":9,"end_line":169,"end_character":18},"updated":"2017-09-19 13:00:58.000000000","message":"nit: s/document/documentation/\n\nAdditionally, detail what documentation you will update to describe the use of this feature.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"75a7d4925aad4de8ab2f770c22eb39c3134e7b89","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Refactor InstanceImageCache out of iscsi_deploy"},{"line_number":168,"context_line":"* Implement the proposed work in agent.py"},{"line_number":169,"context_line":"* Update document to instruct how to use this feature"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"Dependencies"},{"line_number":172,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"bf57530f_687a1889","line":169,"range":{"start_line":169,"start_character":9,"end_line":169,"end_character":18},"in_reply_to":"ff5d4b2f_65459d70","updated":"2017-09-21 09:12:20.000000000","message":"Done.\nI am not sure how the documentation will look like after classic drivers are deprecated, anyway I note it in the Documentation Impact.","commit_id":"7f0b3efc5276914fef4c7fdffdb49d07ce35cd41"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"81d94bd6b732e395d0953f5bfad1bd49d09f123b","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":38,"context_line":"typically the http server is setup during cloud deployment. The ``direct``"},{"line_number":39,"context_line":"deploy interface would cache instance images similiar to the ``iscsi`` deploy"},{"line_number":40,"context_line":"interface, and will also create symbolic links to the cached image to the"},{"line_number":41,"context_line":"http directory."},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_9277923b","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":77},"updated":"2017-09-25 04:20:36.000000000","message":"Did you mean that the \u0027instance_info/image_source\u0027 would be glance id and deploy interface would download that glance image and cache it?","commit_id":"61e4a628723fbf964baf30a855aa8722f52c3f05"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"94e75c340cc84dbccb681935ae0f9284a9135776","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"An http server on ironic conductor node is required for this feature to work,"},{"line_number":38,"context_line":"typically the http server is setup during cloud deployment. The ``direct``"},{"line_number":39,"context_line":"deploy interface would cache instance images similiar to the ``iscsi`` deploy"},{"line_number":40,"context_line":"interface, and will also create symbolic links to the cached image to the"},{"line_number":41,"context_line":"http directory."},{"line_number":42,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_67d4c8e9","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":77},"in_reply_to":"7f515b1d_9277923b","updated":"2017-09-29 03:54:49.000000000","message":"Yes, that\u0027s it","commit_id":"61e4a628723fbf964baf30a855aa8722f52c3f05"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"81d94bd6b732e395d0953f5bfad1bd49d09f123b","unresolved":false,"context_lines":[{"line_number":40,"context_line":"interface, and will also create symbolic links to the cached image to the"},{"line_number":41,"context_line":"http directory."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"The link will be updated to instance_info and retrieved by IPA, then IPA will"},{"line_number":44,"context_line":"download instance image and write to baremetal disk. The symbolic link will be"},{"line_number":45,"context_line":"removed after deploy is done."},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_92c5523f","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":41},"updated":"2017-09-25 04:20:36.000000000","message":"Normally we do not overwrite the instance_info. Better place would be to put that link into \u0027node.driver_internal_info\u0027. And pass the \u0027image_download_source\u0027 to IPA to use the http link instead of \u0027instance_info/image_source\u0027","commit_id":"61e4a628723fbf964baf30a855aa8722f52c3f05"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"94e75c340cc84dbccb681935ae0f9284a9135776","unresolved":false,"context_lines":[{"line_number":40,"context_line":"interface, and will also create symbolic links to the cached image to the"},{"line_number":41,"context_line":"http directory."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"The link will be updated to instance_info and retrieved by IPA, then IPA will"},{"line_number":44,"context_line":"download instance image and write to baremetal disk. The symbolic link will be"},{"line_number":45,"context_line":"removed after deploy is done."},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_e7a0b844","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":41},"in_reply_to":"7f515b1d_92c5523f","updated":"2017-09-29 03:54:49.000000000","message":"current agent driver updates instance_info[\u0027image_url\u0027] to swift tempurl.\nif we store it driver_internal_info, we\u0027ll also need to patch agent client, for the image_url will be used to generate parameters passed to agent.\nanother consideration is, instance_info is tied to instance, a node may have different instance for a period of time, while driver may keep unchanged, we don\u0027t clean driver_internal_info for different instances, while we do for instances.\nso I think it\u0027s suitable to follow.","commit_id":"61e4a628723fbf964baf30a855aa8722f52c3f05"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"81d94bd6b732e395d0953f5bfad1bd49d09f123b","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Introduce a new option ``[agent]image_download_source``, allowed values are"},{"line_number":48,"context_line":"``swift`` and ``http``, defaults to ``swift``. The ``direct`` deploy interface"},{"line_number":49,"context_line":"takes current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":52,"context_line":"instance image url. Introducing a new string option"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_92767206","line":49,"range":{"start_line":49,"start_character":41,"end_line":49,"end_character":71},"updated":"2017-09-25 04:20:36.000000000","message":"Where would the \u0027instance_info/image_source\u0027 be typically hosted when ``http``?","commit_id":"61e4a628723fbf964baf30a855aa8722f52c3f05"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"94e75c340cc84dbccb681935ae0f9284a9135776","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Introduce a new option ``[agent]image_download_source``, allowed values are"},{"line_number":48,"context_line":"``swift`` and ``http``, defaults to ``swift``. The ``direct`` deploy interface"},{"line_number":49,"context_line":"takes current workflow for ``swift`` and proposed workflow for ``http``."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"``[deploy]http_root`` and ``[deploy]http_url`` are reused for generating"},{"line_number":52,"context_line":"instance image url. Introducing a new string option"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_2737f001","line":49,"range":{"start_line":49,"start_character":41,"end_line":49,"end_character":71},"in_reply_to":"7f515b1d_92767206","updated":"2017-09-29 03:54:49.000000000","message":"The oringnal image is still from glance, the conductor node maintains an instance image cache to provide http image service for ipa, but the filesystem location is not determined yet, it\u0027s depends to if we want to reuse the instance cache used by iscsi driver. I have put a note at L64.","commit_id":"61e4a628723fbf964baf30a855aa8722f52c3f05"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"Introduces a new string option ``[agent]image_download_source``, allowed"},{"line_number":50,"context_line":"values are ``swift`` and ``http``, defaults to ``swift``. The option is used"},{"line_number":51,"context_line":"to control which kind of image URL is generated."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"When the option is set to ``swift``, the ``direct`` deploy interface keeps"},{"line_number":54,"context_line":"current logic, generates tempurl and update it to"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_9ed5201e","line":51,"updated":"2018-04-09 20:44:45.000000000","message":"So an alternative idea... and possibly a node level behavior difference is what if we enabled the ability to push through the conductor over http?  Just an idea, since some deployments want to limit the amount of outbound traffic and may also prefer pushing data over http to the service running on the agent.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"Introduces a new string option ``[agent]image_download_source``, allowed"},{"line_number":50,"context_line":"values are ``swift`` and ``http``, defaults to ``swift``. The option is used"},{"line_number":51,"context_line":"to control which kind of image URL is generated."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"When the option is set to ``swift``, the ``direct`` deploy interface keeps"},{"line_number":54,"context_line":"current logic, generates tempurl and update it to"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_42446647","line":51,"in_reply_to":"bf659307_9ed5201e","updated":"2018-04-11 08:18:19.000000000","message":"Ah, the difficulty is we can\u0027t satisfy everyone by one solution, that\u0027s why there are so many choices..\n\nI like the idea of conductor being an initiator, not because of the egress traffic though, I have thought about instructing agent to do some post-deploy work before finishing the node deployment, that will make the deployment more customizable. Sounds familiar right? That\u0027s what ansible driver is doing now, but we\u0027ll achieve better performance I think.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"When the option is set to ``swift``, the ``direct`` deploy interface keeps"},{"line_number":54,"context_line":"current logic, generates tempurl and update it to"},{"line_number":55,"context_line":"``instance_info[\u0027image_url\u0027]``."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"If the option is set to ``http``, the ``direct`` deploy interface downloads"},{"line_number":58,"context_line":"instance image via ``ImageCache`` before node deployment, makes the cached"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_de6718b7","line":55,"updated":"2018-04-09 20:44:45.000000000","message":"If memory serves, image_url is a copy of image_source for this operation (or I have it backwards)...  It might be worthwhile to mention both.\n\nAlso, what if it is already set to \"direct\" and the caller submits an image source?","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"When the option is set to ``swift``, the ``direct`` deploy interface keeps"},{"line_number":54,"context_line":"current logic, generates tempurl and update it to"},{"line_number":55,"context_line":"``instance_info[\u0027image_url\u0027]``."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"If the option is set to ``http``, the ``direct`` deploy interface downloads"},{"line_number":58,"context_line":"instance image via ``ImageCache`` before node deployment, makes the cached"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_ef06c286","line":55,"in_reply_to":"bf659307_de6718b7","updated":"2018-04-11 08:18:19.000000000","message":"\u003e If memory serves, image_url is a copy of image_source for this\n \u003e operation (or I have it backwards)...  It might be worthwhile to\n \u003e mention both.\n \u003e\n \u003e Also, what if it is already set to \"direct\" and the caller submits\n \u003e an image source?\n\nAdded some text to describe current logic.\nIf the image source is not a glance image, it will be directly taken as image_url, just like old ways.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":54,"context_line":"current logic, generates tempurl and update it to"},{"line_number":55,"context_line":"``instance_info[\u0027image_url\u0027]``."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"If the option is set to ``http``, the ``direct`` deploy interface downloads"},{"line_number":58,"context_line":"instance image via ``ImageCache`` before node deployment, makes the cached"},{"line_number":59,"context_line":"image accessible by local HTTP service, generates proper URL and updates it to"},{"line_number":60,"context_line":"``instance_info[\u0027image_url\u0027]``."}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_7e2dac44","line":57,"range":{"start_line":57,"start_character":3,"end_line":57,"end_character":13},"updated":"2018-04-09 20:44:45.000000000","message":"It would be good to mention the image_download_source option here since that is (what I think) it is referring to.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":54,"context_line":"current logic, generates tempurl and update it to"},{"line_number":55,"context_line":"``instance_info[\u0027image_url\u0027]``."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"If the option is set to ``http``, the ``direct`` deploy interface downloads"},{"line_number":58,"context_line":"instance image via ``ImageCache`` before node deployment, makes the cached"},{"line_number":59,"context_line":"image accessible by local HTTP service, generates proper URL and updates it to"},{"line_number":60,"context_line":"``instance_info[\u0027image_url\u0027]``."}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_8ff7068c","line":57,"range":{"start_line":57,"start_character":3,"end_line":57,"end_character":13},"in_reply_to":"bf659307_7e2dac44","updated":"2018-04-11 08:18:19.000000000","message":"Done\nI reorganized with a list, so it will look better, at least I think :)","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":57,"context_line":"If the option is set to ``http``, the ``direct`` deploy interface downloads"},{"line_number":58,"context_line":"instance image via ``ImageCache`` before node deployment, makes the cached"},{"line_number":59,"context_line":"image accessible by local HTTP service, generates proper URL and updates it to"},{"line_number":60,"context_line":"``instance_info[\u0027image_url\u0027]``."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"The existing ``[deploy]http_root`` and ``[deploy]http_url`` are reused for"},{"line_number":63,"context_line":"storing instance image symlinks and generating instance image URLs. A new"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_dea638ac","line":60,"updated":"2018-04-09 20:44:45.000000000","message":"I guess this only works for glance image based deploys? Image source based deploys, I\u0027m not sure there is going to be a way to cache the image securely and effectively. At least, that doesn\u0027t come to mind right now.\n\nWhat I don\u0027t presently understand is how this could be leveraged if an image source is still used but the configuration is set.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":57,"context_line":"If the option is set to ``http``, the ``direct`` deploy interface downloads"},{"line_number":58,"context_line":"instance image via ``ImageCache`` before node deployment, makes the cached"},{"line_number":59,"context_line":"image accessible by local HTTP service, generates proper URL and updates it to"},{"line_number":60,"context_line":"``instance_info[\u0027image_url\u0027]``."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"The existing ``[deploy]http_root`` and ``[deploy]http_url`` are reused for"},{"line_number":63,"context_line":"storing instance image symlinks and generating instance image URLs. A new"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_72aff5e2","line":60,"in_reply_to":"bf659307_dea638ac","updated":"2018-04-11 08:18:19.000000000","message":"\u003e I guess this only works for glance image based deploys? Image\n \u003e source based deploys, I\u0027m not sure there is going to be a way to\n \u003e cache the image securely and effectively. At least, that doesn\u0027t\n \u003e come to mind right now.\n\nYes, the change only happens if the image source is a glance image, if this concern relates to comment at L55, I have reorganized words there, I hope they can address it.\n\n \u003e What I don\u0027t presently understand is how this could be leveraged if\n \u003e an image source is still used but the configuration is set.\n\nI\u0027m not really following here, \"an image source is still used\" looks like a standalone use case, if so, I believe they at not affected. Please let me know if upcoming revision doesn\u0027t address this.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"The symbolic link will be removed at ``AgentDeploy.deploy`` when a node deploy"},{"line_number":74,"context_line":"is done, or ``AgentDeploy.clean_up`` when a node is teared down from the state"},{"line_number":75,"context_line":"``deploy failed``."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"The ``direct`` deploy interface generates URL for the instance image and"},{"line_number":78,"context_line":"updates it to ``instance_info`` at ``AgentDeploy.prepare``. The corresponding"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_5e10e8a8","line":75,"updated":"2018-04-09 20:44:45.000000000","message":"What about ``rebuild`` requests when in ``deploy failed`` ?","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"The symbolic link will be removed at ``AgentDeploy.deploy`` when a node deploy"},{"line_number":74,"context_line":"is done, or ``AgentDeploy.clean_up`` when a node is teared down from the state"},{"line_number":75,"context_line":"``deploy failed``."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"The ``direct`` deploy interface generates URL for the instance image and"},{"line_number":78,"context_line":"updates it to ``instance_info`` at ``AgentDeploy.prepare``. The corresponding"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_5228b195","line":75,"in_reply_to":"bf659307_5e10e8a8","updated":"2018-04-11 08:18:19.000000000","message":"rebuild will start a new deployment workflow, we unlink them before creating symlink. Well, the image is accessible during this period.\n\nHmm, it seems we don\u0027t call clean_up if deploy is failed, but do so when deploy wait is timed out.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":74,"context_line":"is done, or ``AgentDeploy.clean_up`` when a node is teared down from the state"},{"line_number":75,"context_line":"``deploy failed``."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"The ``direct`` deploy interface generates URL for the instance image and"},{"line_number":78,"context_line":"updates it to ``instance_info`` at ``AgentDeploy.prepare``. The corresponding"},{"line_number":79,"context_line":"image URL will be ``\u003chttp_url\u003e/\u003chttp_image_path\u003e/\u003cnode-uuid\u003e``. If"},{"line_number":80,"context_line":"``[DEFAULT]force_raw_images`` is set to true, checksum will be recalculated"},{"line_number":81,"context_line":"and updated as well. It is highly encouraged to set it false for better"},{"line_number":82,"context_line":"performance."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_de015808","line":82,"range":{"start_line":77,"start_character":0,"end_line":82,"end_character":12},"updated":"2018-04-09 20:44:45.000000000","message":"From a sequence of events standpoint, this might be better to move before the prior paragraph.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":74,"context_line":"is done, or ``AgentDeploy.clean_up`` when a node is teared down from the state"},{"line_number":75,"context_line":"``deploy failed``."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"The ``direct`` deploy interface generates URL for the instance image and"},{"line_number":78,"context_line":"updates it to ``instance_info`` at ``AgentDeploy.prepare``. The corresponding"},{"line_number":79,"context_line":"image URL will be ``\u003chttp_url\u003e/\u003chttp_image_path\u003e/\u003cnode-uuid\u003e``. If"},{"line_number":80,"context_line":"``[DEFAULT]force_raw_images`` is set to true, checksum will be recalculated"},{"line_number":81,"context_line":"and updated as well. It is highly encouraged to set it false for better"},{"line_number":82,"context_line":"performance."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_8567e5e9","line":82,"range":{"start_line":77,"start_character":0,"end_line":82,"end_character":12},"in_reply_to":"bf659307_de015808","updated":"2018-04-11 08:18:19.000000000","message":"Done","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":86,"context_line":"------------"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Another implementation approach"},{"line_number":89,"context_line":"`Support all glance backends in the agent \u003chttps://bugs.launchpad.net/ironic/+bug/1526241\u003e`_"},{"line_number":90,"context_line":"is to support IPA directly downloading instance image from glance, the"},{"line_number":91,"context_line":"deployment restriction of this approach is the same as agent today, baremetal"},{"line_number":92,"context_line":"has to access glance at provisioning network. But it can address the"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_5e8548ce","line":89,"updated":"2018-04-09 20:44:45.000000000","message":"nit: if there is an entry in storyboard, please update to be a storyboard url.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":86,"context_line":"------------"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Another implementation approach"},{"line_number":89,"context_line":"`Support all glance backends in the agent \u003chttps://bugs.launchpad.net/ironic/+bug/1526241\u003e`_"},{"line_number":90,"context_line":"is to support IPA directly downloading instance image from glance, the"},{"line_number":91,"context_line":"deployment restriction of this approach is the same as agent today, baremetal"},{"line_number":92,"context_line":"has to access glance at provisioning network. But it can address the"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_65af31e3","line":89,"in_reply_to":"bf659307_5e8548ce","updated":"2018-04-11 08:18:19.000000000","message":"Done","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"Instead of supporting HTTP provisioning from the ``direct`` deploy interface,"},{"line_number":96,"context_line":"it can also be implemented as a new deploy interface, ``direct-http`` for"},{"line_number":97,"context_line":"example."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Data model impact"},{"line_number":100,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_7eefec86","line":97,"updated":"2018-04-09 20:44:45.000000000","message":"I think this is better as just in part of default. Some of this behavior would be beneficial for the ansible deploy interface as well.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"Instead of supporting HTTP provisioning from the ``direct`` deploy interface,"},{"line_number":96,"context_line":"it can also be implemented as a new deploy interface, ``direct-http`` for"},{"line_number":97,"context_line":"example."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Data model impact"},{"line_number":100,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_48e00427","line":97,"in_reply_to":"bf659307_7eefec86","updated":"2018-04-11 08:18:19.000000000","message":"Sorry for I\u0027m not following the \"default\", I think what can be shared with ansible deploy interface is the instance cache. Other logic lives in the direct deploy interface, right?","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":148,"context_line":"Providing HTTP service on ironic conductor node will expose accessible port"},{"line_number":149,"context_line":"thus can be a security impact. There are several ways to improve security:"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"#. Bind the port to the network interface dedicated to provisioning network."},{"line_number":152,"context_line":"#. Configure firewall to prevent access from source IP addresses other than"},{"line_number":153,"context_line":"   the provisioning network."},{"line_number":154,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_fe877cb5","line":151,"range":{"start_line":151,"start_character":69,"end_line":151,"end_character":76},"updated":"2018-04-09 20:44:45.000000000","message":"s/network/networks/. Since they can be configured on the node level.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":148,"context_line":"Providing HTTP service on ironic conductor node will expose accessible port"},{"line_number":149,"context_line":"thus can be a security impact. There are several ways to improve security:"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"#. Bind the port to the network interface dedicated to provisioning network."},{"line_number":152,"context_line":"#. Configure firewall to prevent access from source IP addresses other than"},{"line_number":153,"context_line":"   the provisioning network."},{"line_number":154,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_e8d2385c","line":151,"range":{"start_line":151,"start_character":69,"end_line":151,"end_character":76},"in_reply_to":"bf659307_fe877cb5","updated":"2018-04-11 08:18:19.000000000","message":"Done","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"#. Bind the port to the network interface dedicated to provisioning network."},{"line_number":152,"context_line":"#. Configure firewall to prevent access from source IP addresses other than"},{"line_number":153,"context_line":"   the provisioning network."},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"There might be other ways, but that\u0027s beyond the scope of this spec."},{"line_number":156,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_be9104f4","line":153,"updated":"2018-04-09 20:44:45.000000000","message":"Ideally this should be best practice.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":152,"context_line":"#. Configure firewall to prevent access from source IP addresses other than"},{"line_number":153,"context_line":"   the provisioning network."},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"There might be other ways, but that\u0027s beyond the scope of this spec."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"To allow HTTP server accessing instance image in the cache directory, the"},{"line_number":158,"context_line":"file-creation mask of user for ironic conductor service should be configured"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_7ebdac66","line":155,"updated":"2018-04-09 20:44:45.000000000","message":"++ :)","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":154,"context_line":""},{"line_number":155,"context_line":"There might be other ways, but that\u0027s beyond the scope of this spec."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"To allow HTTP server accessing instance image in the cache directory, the"},{"line_number":158,"context_line":"file-creation mask of user for ironic conductor service should be configured"},{"line_number":159,"context_line":"to be accessible by the user of HTTP service. Most systems use 022 or 002 as"},{"line_number":160,"context_line":"the default umask, it should be enough. There would be a security impact if"},{"line_number":161,"context_line":"it\u0027s not the case."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Other end user impact"},{"line_number":164,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_1e7110df","line":161,"range":{"start_line":157,"start_character":0,"end_line":161,"end_character":18},"updated":"2018-04-09 20:44:45.000000000","message":"Great point. The other thing is the same context or not for files created. I only thought of this because I recently ran into an issue with files being written to the master_images folder which resulted in the file having the tftproot folder context, however as such the files could no longer be accessed by the httpd service context as the context was preserved in the copy.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":154,"context_line":""},{"line_number":155,"context_line":"There might be other ways, but that\u0027s beyond the scope of this spec."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"To allow HTTP server accessing instance image in the cache directory, the"},{"line_number":158,"context_line":"file-creation mask of user for ironic conductor service should be configured"},{"line_number":159,"context_line":"to be accessible by the user of HTTP service. Most systems use 022 or 002 as"},{"line_number":160,"context_line":"the default umask, it should be enough. There would be a security impact if"},{"line_number":161,"context_line":"it\u0027s not the case."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Other end user impact"},{"line_number":164,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_88affc28","line":161,"range":{"start_line":157,"start_character":0,"end_line":161,"end_character":18},"in_reply_to":"bf659307_1e7110df","updated":"2018-04-11 08:18:19.000000000","message":"uh-oh, do you mean SELinux? That\u0027s a black hole in my head, too hard to play with :/\n\nDoes that mean images in the cache should have same context with http service, or we should do some configuration to make them accessible between each other?","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6ff5dd6101606f57eba2137cb1f6ec83a8219747","unresolved":false,"context_lines":[{"line_number":175,"context_line":"deploy interface."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"IPA downloads instance image directly from the conductor node, which will"},{"line_number":178,"context_line":"consume network bandwidth, substantially it should be the same to the"},{"line_number":179,"context_line":"``iscsi`` deploy interface."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"Performance Impact"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_fe5e9c43","line":178,"range":{"start_line":178,"start_character":44,"end_line":178,"end_character":62},"updated":"2018-04-09 20:44:45.000000000","message":"Perhaps for raw images, qcow2 images can have whitespace and over iscsi that data can be sent across the wire.","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"8af75e066918761936683150f7bef9da09386c90","unresolved":false,"context_lines":[{"line_number":175,"context_line":"deploy interface."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"IPA downloads instance image directly from the conductor node, which will"},{"line_number":178,"context_line":"consume network bandwidth, substantially it should be the same to the"},{"line_number":179,"context_line":"``iscsi`` deploy interface."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"Performance Impact"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_43b54531","line":178,"range":{"start_line":178,"start_character":44,"end_line":178,"end_character":62},"in_reply_to":"bf659307_fe5e9c43","updated":"2018-04-11 08:18:19.000000000","message":"Done","commit_id":"599fbeb439fe027015f613dcecd39b92e05126d1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"77157d3938168adbd79d079b31a8696cc082379d","unresolved":false,"context_lines":[{"line_number":30,"context_line":"deployment due to various reasons, and itself imposes restrictions on"},{"line_number":31,"context_line":"deployment. E.g.:"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"* It profits low for a small cloud but takes more hardware resource."},{"line_number":34,"context_line":"* It requires baremetal nodes to have access to control plane network, which"},{"line_number":35,"context_line":"  is a restriction to network topology."},{"line_number":36,"context_line":"* It requires the Image service be configured with a backend of swift, which"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5f7c97a3_25622cda","line":33,"updated":"2018-07-20 16:32:54.000000000","message":"nit: \"has little benefit\"?","commit_id":"16f6afe3dd99f95340feae07636486c8f22930ea"}]}
