)]}'
{"specs/approved/image-caching.rst":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"01387e1d509603b64185252908738fb717ff0d35","unresolved":false,"context_lines":[{"line_number":49,"context_line":"Alternatives"},{"line_number":50,"context_line":"------------"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Nova has the capability to cache images to hypervisors and manage that cache,"},{"line_number":53,"context_line":"but Ironic\u0027s case is significantly different since it only makes sense to"},{"line_number":54,"context_line":"store one image per node."},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_bf8057f8","line":52,"updated":"2016-04-28 08:25:40.000000000","message":"This is not an alternative.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"7caab1205d826d7686a2690f1b8c5aea48c3a449","unresolved":false,"context_lines":[{"line_number":49,"context_line":"Alternatives"},{"line_number":50,"context_line":"------------"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Nova has the capability to cache images to hypervisors and manage that cache,"},{"line_number":53,"context_line":"but Ironic\u0027s case is significantly different since it only makes sense to"},{"line_number":54,"context_line":"store one image per node."},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_37061e86","line":52,"in_reply_to":"1a122d0e_bf8057f8","updated":"2016-04-28 17:33:18.000000000","message":"Fair enough. I can remove the mention of this.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"01387e1d509603b64185252908738fb717ff0d35","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Nova has the capability to cache images to hypervisors and manage that cache,"},{"line_number":53,"context_line":"but Ironic\u0027s case is significantly different since it only makes sense to"},{"line_number":54,"context_line":"store one image per node."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Data model impact"},{"line_number":57,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_bf97b738","line":54,"updated":"2016-04-28 08:25:40.000000000","message":"Please describe why only one.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"7caab1205d826d7686a2690f1b8c5aea48c3a449","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Nova has the capability to cache images to hypervisors and manage that cache,"},{"line_number":53,"context_line":"but Ironic\u0027s case is significantly different since it only makes sense to"},{"line_number":54,"context_line":"store one image per node."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Data model impact"},{"line_number":57,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_976a9218","line":54,"in_reply_to":"1a122d0e_bf97b738","updated":"2016-04-28 17:33:18.000000000","message":"Sure.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"01387e1d509603b64185252908738fb717ff0d35","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Data model impact"},{"line_number":57,"context_line":"-----------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Add caching related meta-data to the ``driver_info`` and"},{"line_number":60,"context_line":"``driver_internal_info`` fields found at node-level data."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Including:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_1feb4bdd","line":59,"updated":"2016-04-28 08:25:40.000000000","message":"\"driver_info\" is often used for driver settings, better to use only ``driver_internal_info``.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"7caab1205d826d7686a2690f1b8c5aea48c3a449","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Data model impact"},{"line_number":57,"context_line":"-----------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Add caching related meta-data to the ``driver_info`` and"},{"line_number":60,"context_line":"``driver_internal_info`` fields found at node-level data."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Including:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_575bda85","line":59,"in_reply_to":"1a122d0e_1feb4bdd","updated":"2016-04-28 17:33:18.000000000","message":"So if I used \u0027driver_internal_info\u0027 to store all caching-related metadata, how would an outside observer determine if a node has an image cached or not? By putting some of that data in driver_info, someone examining detailed node information from the API can \u0027see\u0027 that a node has an image cached and take advantage of that information.\n\nIs there an alternative/better way to expose that information?","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"01387e1d509603b64185252908738fb717ff0d35","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Including:"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":" * The current state of the cache operation."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":" * The UUID of the image cached to the node."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_dfc71343","line":64,"updated":"2016-04-28 08:25:40.000000000","message":"Please provide a list of states and example of metadata.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"7caab1205d826d7686a2690f1b8c5aea48c3a449","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Including:"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":" * The current state of the cache operation."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":" * The UUID of the image cached to the node."},{"line_number":67,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_77e6d6b0","line":64,"in_reply_to":"1a122d0e_dfc71343","updated":"2016-04-28 17:33:18.000000000","message":"Sure.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"01387e1d509603b64185252908738fb717ff0d35","unresolved":false,"context_lines":[{"line_number":72,"context_line":"State Machine Impact"},{"line_number":73,"context_line":"--------------------"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":76,"context_line":"operation."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_3fda8717","line":75,"updated":"2016-04-28 08:25:40.000000000","message":"This is not change in state machine.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"7caab1205d826d7686a2690f1b8c5aea48c3a449","unresolved":false,"context_lines":[{"line_number":72,"context_line":"State Machine Impact"},{"line_number":73,"context_line":"--------------------"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":76,"context_line":"operation."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_124fb092","line":75,"in_reply_to":"1a122d0e_3fda8717","updated":"2016-04-28 17:33:18.000000000","message":"It\u0027s not necessarily a change, but doesn\u0027t it have some \u0027impact\u0027 on the semantics of the state machine? I\u0027m just trying to make it clear that a node using the agent driver while in the \u0027AVAILABLE\u0027 state could have a caching operation in started/in progress/etc.","commit_id":"1190ff1e62a2b6ec43d51fedadcbb921f51703bd"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"c3a1e99444c65b37f693f312536cddd0d169baab","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"A record will be made of the state of the"},{"line_number":35,"context_line":"caching operation and what image is being cached to ``driver_info`` so the"},{"line_number":36,"context_line":"agent driver can drive the ansynchronous operation to completion, and allow"},{"line_number":37,"context_line":"operators and other external observers to see the state of the node\u0027s cache."},{"line_number":38,"context_line":"This will also allow aggregate management of an ironic cell\u0027s cache across"},{"line_number":39,"context_line":"nodes."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_9091dcf3","line":36,"range":{"start_line":36,"start_character":27,"end_line":36,"end_character":40},"updated":"2016-04-29 16:27:46.000000000","message":"typo nit: asynchronous","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"a5151350ebd09243660e8ba1398ac2ece12028e0","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"A record will be made of the state of the"},{"line_number":35,"context_line":"caching operation and what image is being cached to ``driver_info`` so the"},{"line_number":36,"context_line":"agent driver can drive the ansynchronous operation to completion, and allow"},{"line_number":37,"context_line":"operators and other external observers to see the state of the node\u0027s cache."},{"line_number":38,"context_line":"This will also allow aggregate management of an ironic cell\u0027s cache across"},{"line_number":39,"context_line":"nodes."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_5d99efcf","line":36,"range":{"start_line":36,"start_character":27,"end_line":36,"end_character":40},"in_reply_to":"1a122d0e_9091dcf3","updated":"2016-05-02 18:23:14.000000000","message":"Done","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"c3a1e99444c65b37f693f312536cddd0d169baab","unresolved":false,"context_lines":[{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Including:"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":" * The current state of the cache operation. States would include:"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"   * ``caching`` - while the caching operation is in progress."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_5b22c552","line":65,"updated":"2016-04-29 16:27:46.000000000","message":"Can you specify which of these will be in driver_info vs driver_internal_info?","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"a5151350ebd09243660e8ba1398ac2ece12028e0","unresolved":false,"context_lines":[{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Including:"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":" * The current state of the cache operation. States would include:"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"   * ``caching`` - while the caching operation is in progress."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_ddadffeb","line":65,"in_reply_to":"1a122d0e_5b22c552","updated":"2016-05-02 18:23:14.000000000","message":"Yes!","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"c3a1e99444c65b37f693f312536cddd0d169baab","unresolved":false,"context_lines":[{"line_number":82,"context_line":"State Machine Impact"},{"line_number":83,"context_line":"--------------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":86,"context_line":"operation."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_7bc1814d","line":85,"updated":"2016-04-29 16:27:46.000000000","message":"Are you going to add a new \"CACHING\" state? If so, please specify. If that\u0027s not needed then I don\u0027t think this is an impact on the state machine itself.","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"a5151350ebd09243660e8ba1398ac2ece12028e0","unresolved":false,"context_lines":[{"line_number":82,"context_line":"State Machine Impact"},{"line_number":83,"context_line":"--------------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":86,"context_line":"operation."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_5d9f2f65","line":85,"in_reply_to":"1a122d0e_7bc1814d","updated":"2016-05-02 18:23:14.000000000","message":"Done","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8d34c7cb9107e543b187b681dc23b3d3978246d6","unresolved":false,"context_lines":[{"line_number":89,"context_line":"---------------"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Allow vendor-passthru to call the ``cache_image`` function added to the"},{"line_number":92,"context_line":"agent driver."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"``cache_image`` proposed properties:"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_964c34c9","line":92,"updated":"2016-04-29 16:35:49.000000000","message":"We\u0027re escalating the other APIs related to the agent to the \"real\" API - can we do the same with this one?\n\nThis will mean we need to make an abstract method in the DeployInterface, and maybe leave the iscsi deploy driver unimplemented for some time (until someone cares enough to implement it).","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"a5151350ebd09243660e8ba1398ac2ece12028e0","unresolved":false,"context_lines":[{"line_number":89,"context_line":"---------------"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Allow vendor-passthru to call the ``cache_image`` function added to the"},{"line_number":92,"context_line":"agent driver."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"``cache_image`` proposed properties:"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_bd900350","line":92,"in_reply_to":"1a122d0e_964c34c9","updated":"2016-05-02 18:23:14.000000000","message":"I will update the spec to promote this from vendor_passthru to a \u0027real\u0027 API endpoint. Will probably need additional review on this point.","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"c3a1e99444c65b37f693f312536cddd0d169baab","unresolved":false,"context_lines":[{"line_number":94,"context_line":"``cache_image`` proposed properties:"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"* Will instruct a node\u0027s agent to cache a specified image, and"},{"line_number":97,"context_line":"  cause the agent driver to ansychronously monitor the operation until"},{"line_number":98,"context_line":"  its completion."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"* POST method type."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_9b745d36","line":97,"range":{"start_line":97,"start_character":28,"end_line":97,"end_character":42},"updated":"2016-04-29 16:27:46.000000000","message":"typo nit: asynchronously","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"a5151350ebd09243660e8ba1398ac2ece12028e0","unresolved":false,"context_lines":[{"line_number":94,"context_line":"``cache_image`` proposed properties:"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"* Will instruct a node\u0027s agent to cache a specified image, and"},{"line_number":97,"context_line":"  cause the agent driver to ansychronously monitor the operation until"},{"line_number":98,"context_line":"  its completion."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"* POST method type."}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_3d8b5320","line":97,"range":{"start_line":97,"start_character":28,"end_line":97,"end_character":42},"in_reply_to":"1a122d0e_9b745d36","updated":"2016-05-02 18:23:14.000000000","message":"Done","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"c3a1e99444c65b37f693f312536cddd0d169baab","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  * Node is in maintenance."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"  * Node is already in the middle of a caching operation, or already has"},{"line_number":125,"context_line":"      an image cached."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"  * Ironic is unable to verify the image\u0027s URL."},{"line_number":128,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_dbbd3569","line":125,"updated":"2016-04-29 16:27:46.000000000","message":"Maybe it would be a good idea to allow a cached image to be overwritten with a different cached image, or interrupt a caching operation.\n\nI\u0027m thinking of a case where I have an image of X distro version Y, and I want to upgrade everything in my deployment to X distro version Y+1. It would seem inconvenient if I couldn\u0027t replace all the cached images of version Y since they won\u0027t be used anymore.","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"a5151350ebd09243660e8ba1398ac2ece12028e0","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  * Node is in maintenance."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"  * Node is already in the middle of a caching operation, or already has"},{"line_number":125,"context_line":"      an image cached."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"  * Ironic is unable to verify the image\u0027s URL."},{"line_number":128,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_9d9d470d","line":125,"in_reply_to":"1a122d0e_dbbd3569","updated":"2016-05-02 18:23:14.000000000","message":"If we want to allow interrupting a caching operation, then we would need to change IPA, where we would probably more broadly want the ability to interrupt any imaging operation, but I think that gets difficult and complex very quickly. \n\nOverwriting images without fully cleaning the disk first runs into all sorts of issues of its own. Jay can delineate the cases better than I, but consider something like a RAID superblock. It leaves information about a RAID all over the disk, and just overwriting part of the disk with a new image won\u0027t necessarily destroy those superblocks, which could potentially cause weirdness if the new image\u0027s OS looks for them. I assume there are security implications lurking in here too.\n\nWe could update IPA to clean the disk after being interrupted during an imaging operation, but that could end up eating a lot of time on drives that don\u0027t have a fast secure erase option.\n\nArsenal handles the case of old images being \u0027updated\u0027 in Glance. That is, an image with the same name gets a new UUID causes cached images of that name with the old UUID to be sent through cleaning. Arsenal handles it by sending the node through cleaning. So my thinking is handling \u0027old\u0027 cached images falls under the perview of cache management, which I\u0027m not proposing we add to Ironic. At least, not yet.","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"c3a1e99444c65b37f693f312536cddd0d169baab","unresolved":false,"context_lines":[{"line_number":222,"context_line":"----------"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"* Agent driver modifications to support and drive cache operation."},{"line_number":225,"context_line":"* API microversion update?"},{"line_number":226,"context_line":"* CLI update?"},{"line_number":227,"context_line":"* Documentation update."},{"line_number":228,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_1b396df2","line":225,"range":{"start_line":225,"start_character":25,"end_line":225,"end_character":26},"updated":"2016-04-29 16:27:46.000000000","message":"Pretty sure we can remove the \"?\" here.","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"a5151350ebd09243660e8ba1398ac2ece12028e0","unresolved":false,"context_lines":[{"line_number":222,"context_line":"----------"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"* Agent driver modifications to support and drive cache operation."},{"line_number":225,"context_line":"* API microversion update?"},{"line_number":226,"context_line":"* CLI update?"},{"line_number":227,"context_line":"* Documentation update."},{"line_number":228,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a122d0e_e093f45a","line":225,"range":{"start_line":225,"start_character":25,"end_line":225,"end_character":26},"in_reply_to":"1a122d0e_1b396df2","updated":"2016-05-02 18:23:14.000000000","message":"Done","commit_id":"31d543fa873b095baa6b5d79f29e9332ecea8c55"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1575249"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Adds support for image caching in agent driver."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Problem description"},{"line_number":16,"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":4,"id":"1a122d0e_669ffc65","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":47},"updated":"2016-05-02 19:50:06.000000000","message":"Nit: This functionality seems more like image pre-writing instead of caching.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1575249"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Adds support for image caching in agent driver."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Problem description"},{"line_number":16,"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":4,"id":"dab17558_e4993270","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":47},"in_reply_to":"1a122d0e_669ffc65","updated":"2016-05-06 21:55:16.000000000","message":"Tried to clarify this in different parts of the document as stating it as \u0027Caching an image to the node\u0027. If other people find it confusing as well I can start using \u0027prewriting\u0027, but the term \u0027cache\u0027 is already used in IPA to describe this functionality.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"4082f0c2ce78ad809f7b5fd16c576aca664f32c7","unresolved":false,"context_lines":[{"line_number":21,"context_line":"cache an image through Ironic, while maintaining a record of which nodes"},{"line_number":22,"context_line":"have images cached."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Image caching can significantly improve node provisioning times, enabling a"},{"line_number":25,"context_line":"more elastic bare-metal cloud."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_ec248b0f","line":24,"updated":"2016-05-02 20:56:24.000000000","message":"I think we can talk a little more about why someone would want to cache via prewriting the image; i.e. particularly large images, need for rapid deployment, slow disks, etc. I think spelling out the use case more will help folks understand what you\u0027re trying to do.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"2e40def5fe0798dbe3554b2b9c38377b671d62c9","unresolved":false,"context_lines":[{"line_number":21,"context_line":"cache an image through Ironic, while maintaining a record of which nodes"},{"line_number":22,"context_line":"have images cached."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Image caching can significantly improve node provisioning times, enabling a"},{"line_number":25,"context_line":"more elastic bare-metal cloud."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_79a95690","line":24,"in_reply_to":"1a122d0e_ec248b0f","updated":"2016-05-02 23:12:37.000000000","message":"+1","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":21,"context_line":"cache an image through Ironic, while maintaining a record of which nodes"},{"line_number":22,"context_line":"have images cached."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Image caching can significantly improve node provisioning times, enabling a"},{"line_number":25,"context_line":"more elastic bare-metal cloud."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_c49eae55","line":24,"in_reply_to":"1a122d0e_ec248b0f","updated":"2016-05-06 21:55:16.000000000","message":"Sure!","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":49,"context_line":"Update DeployInterface to add ``cache_image`` as part of the abstract"},{"line_number":50,"context_line":"interface. Which would allow other drivers to implement caching functionality"},{"line_number":51,"context_line":"in the future."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"As an aside, only one image would be cached per node. This is a limitation of"},{"line_number":54,"context_line":"the `standby extension`_ in Ironic-Python-Agent."},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_0602880b","line":52,"updated":"2016-05-02 19:50:06.000000000","message":"How would the conductor and/or IPA be changed to verify and understand that the actual write-out can be skipped in the event that the cached image is requested to be deployed?","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":49,"context_line":"Update DeployInterface to add ``cache_image`` as part of the abstract"},{"line_number":50,"context_line":"interface. Which would allow other drivers to implement caching functionality"},{"line_number":51,"context_line":"in the future."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"As an aside, only one image would be cached per node. This is a limitation of"},{"line_number":54,"context_line":"the `standby extension`_ in Ironic-Python-Agent."},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_04aef62d","line":52,"in_reply_to":"1a122d0e_0602880b","updated":"2016-05-06 21:55:16.000000000","message":"IPA doesn\u0027t need a change. It already fully supports image caching. If IPA receives a request to deploy with the same image its already cached, then it will skip downloading and writing the image to disk.\n\nAnother consequence of this is the way the conductor talks to IPA at deploy time doesn\u0027t need to change either.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Alternatives"},{"line_number":57,"context_line":"------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"No known direct alternative."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Data model impact"},{"line_number":62,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_a66bd4f0","line":59,"range":{"start_line":59,"start_character":0,"end_line":59,"end_character":28},"updated":"2016-05-02 19:50:06.000000000","message":"An alternative may be, depending on use case, is the functionality for IPA to support a proxy server, which MAY be a caching proxy.  That does not eliminate the network transfer from the equation as this pre-writing functionality would, but could allow for an operator to reduce the dependence of direct reads from their control plane, depending on how their infrastructure is configured.\n\nhttps://github.com/openstack/ironic/blob/master/doc/source/drivers/ipa.rst#using-proxies-for-image-download-in-agent-drivers\n\nIt seems like it might be worth mentioning, since that functionality is already implemented.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"2e40def5fe0798dbe3554b2b9c38377b671d62c9","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Alternatives"},{"line_number":57,"context_line":"------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"No known direct alternative."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Data model impact"},{"line_number":62,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_9977123b","line":59,"range":{"start_line":59,"start_character":0,"end_line":59,"end_character":28},"in_reply_to":"1a122d0e_2cf16396","updated":"2016-05-02 23:12:37.000000000","message":"True, clarification of use cases would absolutely possible alternatives :)","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Alternatives"},{"line_number":57,"context_line":"------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"No known direct alternative."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Data model impact"},{"line_number":62,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_4fc93778","line":59,"range":{"start_line":59,"start_character":0,"end_line":59,"end_character":28},"in_reply_to":"1a122d0e_9977123b","updated":"2016-05-06 21:55:16.000000000","message":"Tried to clarify some in the problem description, we\u0027re interested in specifically caching an image to a node.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"4082f0c2ce78ad809f7b5fd16c576aca664f32c7","unresolved":false,"context_lines":[{"line_number":56,"context_line":"Alternatives"},{"line_number":57,"context_line":"------------"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"No known direct alternative."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Data model impact"},{"line_number":62,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_2cf16396","line":59,"range":{"start_line":59,"start_character":0,"end_line":59,"end_character":28},"in_reply_to":"1a122d0e_a66bd4f0","updated":"2016-05-02 20:56:24.000000000","message":"Depends on the problem you\u0027re solving. In our downstream case, writing the image to the disk is the primary \"wait\" at deployment time. This means anything other than prewriting the image isn\u0027t an alternative for us.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"745215a29fa0f0dc780f2dd42f3f596c0bd3a0c8","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Including:"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":" * The current state of the cache operation. In ``driver_info``. States would"},{"line_number":70,"context_line":"   include:"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"   * ``caching`` - while the caching operation is in progress."}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_e05c944e","line":69,"updated":"2016-05-02 18:28:16.000000000","message":"AIUI driver_info is for fields an operator might edit; given this is managed by Ironic perhaps it should go in driver_internal_info?","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Including:"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":" * The current state of the cache operation. In ``driver_info``. States would"},{"line_number":70,"context_line":"   include:"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"   * ``caching`` - while the caching operation is in progress."}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_4fc5b73a","line":69,"in_reply_to":"1a122d0e_4650000b","updated":"2016-05-06 21:55:16.000000000","message":"If these fields go into driver_internal_info, how would someone determine if the node has an image cached via API calls? I want an external client/script/tool/scheduler or whatever be able to tell that the node has an image cached.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Including:"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":" * The current state of the cache operation. In ``driver_info``. States would"},{"line_number":70,"context_line":"   include:"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"   * ``caching`` - while the caching operation is in progress."}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_4650000b","line":69,"in_reply_to":"1a122d0e_e05c944e","updated":"2016-05-02 19:50:06.000000000","message":"+1","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":" * Any errors the cache operation encountered. In ``driver_info``."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_a6975439","line":86,"updated":"2016-05-02 19:50:06.000000000","message":"Why not just rely upon any pre-existing image info that could be defined in instance_info?","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"2e40def5fe0798dbe3554b2b9c38377b671d62c9","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":" * Any errors the cache operation encountered. In ``driver_info``."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_999ef252","line":86,"in_reply_to":"1a122d0e_0c1c67c0","updated":"2016-05-02 23:12:37.000000000","message":"Purely nova, yes, although an operator could still use the field and the agent could verify that the intended image has not changed since caching.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":" * Any errors the cache operation encountered. In ``driver_info``."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_af11c3ae","line":86,"in_reply_to":"1a122d0e_999ef252","updated":"2016-05-06 21:55:16.000000000","message":"Can you clarify this scenario more for me? \n\nPart of the point of writing this information to a specific, discrete place is that the \u0027cache_image\u0027 API endpoint will be called with image information, so relying on previously stored information doesn\u0027t make sense.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"4082f0c2ce78ad809f7b5fd16c576aca664f32c7","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":" * Any errors the cache operation encountered. In ``driver_info``."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_0c1c67c0","line":86,"in_reply_to":"1a122d0e_a6975439","updated":"2016-05-02 20:56:24.000000000","message":"If you\u0027re prewriting the image onto the node, then instance_info hasn\u0027t been populated yet because an instance hasn\u0027t been assigned to it.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"},{"line_number":90,"context_line":"   the ``image_info`` dictionary."},{"line_number":91,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_66025c74","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":75},"updated":"2016-05-02 19:50:06.000000000","message":"Is the intent only for this to be URL based as supplied by the operator? or that the mechanisms with-in the conductor would handle things like tempurl generation and passing of that tempurl to IPA for the caching operation?","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"4082f0c2ce78ad809f7b5fd16c576aca664f32c7","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"},{"line_number":90,"context_line":"   the ``image_info`` dictionary."},{"line_number":91,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_8c86b7d9","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":75},"in_reply_to":"1a122d0e_66025c74","updated":"2016-05-02 20:56:24.000000000","message":"+1 seems like this endpoint should, in a perfect world, take any of the inputs that deploy does (like a glance UUID instead of a temp url)","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a6266e1bd1ff4dc8de726e06db76ca659ed3f612","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"},{"line_number":90,"context_line":"   the ``image_info`` dictionary."},{"line_number":91,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_53dd7813","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":75},"in_reply_to":"1a122d0e_8c86b7d9","updated":"2016-05-06 14:32:34.000000000","message":"It seems to me like the intent here is to store the image info after the conductor has dealt with it. e.g., this is analogous to instance_info at deploy time.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":" * An ``image_info`` dictionary in ``driver_internal_info`` which contains"},{"line_number":87,"context_line":"   all the necessary information needed to instruct the agent to cache the"},{"line_number":88,"context_line":"   image. Information like image UUID, URL from which to retrieve the image,"},{"line_number":89,"context_line":"   and the image\u0027s checksum. See `REST API impact`_ below for an example of"},{"line_number":90,"context_line":"   the ``image_info`` dictionary."},{"line_number":91,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_0f6e0f2f","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":75},"in_reply_to":"dab17558_53dd7813","updated":"2016-05-06 21:55:16.000000000","message":"Yes, the idea is the image URL supplied here would behave the same as the image URL passed at deploy time. So whatever URL-types are handled there should be handled by the cache_image endpoint.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"344c8d953a8f7bd1f5c7786d03f4a2216d196703","unresolved":false,"context_lines":[{"line_number":141,"context_line":"  * Node is in maintenance. Returns ``409`` Conflict."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  * Node is already in the middle of a caching operation, or already has"},{"line_number":144,"context_line":"      an image cached. Returns ``409`` Conflict."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"  * Ironic is unable to verify the image\u0027s URL. Returns ``400`` Bad Request."},{"line_number":147,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_a090d74f","line":144,"updated":"2016-05-02 21:22:22.000000000","message":"Will a 409 also be returned if caching is in a \"failed\" state?","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":141,"context_line":"  * Node is in maintenance. Returns ``409`` Conflict."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  * Node is already in the middle of a caching operation, or already has"},{"line_number":144,"context_line":"      an image cached. Returns ``409`` Conflict."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"  * Ironic is unable to verify the image\u0027s URL. Returns ``400`` Bad Request."},{"line_number":147,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_0fdc4fe3","line":144,"in_reply_to":"1a122d0e_a090d74f","updated":"2016-05-06 21:55:16.000000000","message":"That\u0027s not my current plan. If a node failed caching I\u0027d like an operator to be able to \u0027try again\u0027 as it were without necessarily having to call another API endpoint first, but I\u0027m willing to consider it.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":152,"context_line":"-------------------"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"An addition to the CLI client might be nice for convenience for the end-user/"},{"line_number":155,"context_line":"operator, but not necessary."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"\"ironic\" CLI"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_86cdf8b9","line":155,"range":{"start_line":155,"start_character":8,"end_line":155,"end_character":28},"updated":"2016-05-02 19:50:06.000000000","message":"IMHO, I think that this is necessary. The specification speaks of adding an new endpoint, which means realistically the functionality should go into python-ironicclient as a API method, along with the CLI.  That will allow library consumers, like ironic-ui and shade to leverage the functionality and provide it to their users, should they choose to do so.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"4082f0c2ce78ad809f7b5fd16c576aca664f32c7","unresolved":false,"context_lines":[{"line_number":152,"context_line":"-------------------"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"An addition to the CLI client might be nice for convenience for the end-user/"},{"line_number":155,"context_line":"operator, but not necessary."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"\"ironic\" CLI"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_ac58d38b","line":155,"range":{"start_line":155,"start_character":8,"end_line":155,"end_character":28},"in_reply_to":"1a122d0e_86cdf8b9","updated":"2016-05-02 20:56:24.000000000","message":"+1 agreed. Arsenal could use the official client method at that point if desired as well.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":152,"context_line":"-------------------"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"An addition to the CLI client might be nice for convenience for the end-user/"},{"line_number":155,"context_line":"operator, but not necessary."},{"line_number":156,"context_line":""},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"\"ironic\" CLI"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_0f03af43","line":155,"range":{"start_line":155,"start_character":8,"end_line":155,"end_character":28},"in_reply_to":"1a122d0e_ac58d38b","updated":"2016-05-06 21:55:16.000000000","message":"Done","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":165,"context_line":""},{"line_number":166,"context_line":"\"openstack baremetal\" CLI"},{"line_number":167,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":168,"context_line":"See change to \"ironic\" CLI."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"RPC API impact"},{"line_number":171,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_66725cb2","line":168,"updated":"2016-05-02 19:50:06.000000000","message":"Is the intent to mirror the classic ironic CLI command in the OSC plugin?","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":165,"context_line":""},{"line_number":166,"context_line":"\"openstack baremetal\" CLI"},{"line_number":167,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":168,"context_line":"See change to \"ironic\" CLI."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"RPC API impact"},{"line_number":171,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_6f9a3b16","line":168,"in_reply_to":"1a122d0e_66725cb2","updated":"2016-05-06 21:55:16.000000000","message":"classic? I think the answer is yes here.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"4082f0c2ce78ad809f7b5fd16c576aca664f32c7","unresolved":false,"context_lines":[{"line_number":217,"context_line":"an external automation tool to call the ``cache_image`` endpoint appropriately."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"Or an operator can take advantage of an existing solution, such as Arsenal_."},{"line_number":220,"context_line":"If an operator decides to use Arsenal, then they would need to deploy it as a"},{"line_number":221,"context_line":"service running along-side Ironic, which would need to have access to Ironic"},{"line_number":222,"context_line":"and Glance at a minimum."},{"line_number":223,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_0ce1079b","line":220,"updated":"2016-05-02 20:56:24.000000000","message":"I wonder if there would be any desire to get arsenal into OpenStack under ironic as part of the big tent? Not really so relevant to this spec but just a thought.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":217,"context_line":"an external automation tool to call the ``cache_image`` endpoint appropriately."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"Or an operator can take advantage of an existing solution, such as Arsenal_."},{"line_number":220,"context_line":"If an operator decides to use Arsenal, then they would need to deploy it as a"},{"line_number":221,"context_line":"service running along-side Ironic, which would need to have access to Ironic"},{"line_number":222,"context_line":"and Glance at a minimum."},{"line_number":223,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_6fc19be4","line":220,"in_reply_to":"1a122d0e_0ce1079b","updated":"2016-05-06 21:55:16.000000000","message":"Sure, I\u0027d love to get arsenal into OS. Is there a clear path to that goal you can recommend?","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":240,"context_line":""},{"line_number":241,"context_line":"* Agent driver modifications to support and drive cache operation."},{"line_number":242,"context_line":"* API microversion update."},{"line_number":243,"context_line":"* CLI update?"},{"line_number":244,"context_line":"* Documentation update."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_a65634cc","line":243,"range":{"start_line":243,"start_character":2,"end_line":243,"end_character":13},"updated":"2016-05-02 19:50:06.000000000","message":"nit: s/update?/update/\nnit: s/CLI/Client/","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":240,"context_line":""},{"line_number":241,"context_line":"* Agent driver modifications to support and drive cache operation."},{"line_number":242,"context_line":"* API microversion update."},{"line_number":243,"context_line":"* CLI update?"},{"line_number":244,"context_line":"* Documentation update."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_efad8b32","line":243,"range":{"start_line":243,"start_character":2,"end_line":243,"end_character":13},"in_reply_to":"1a122d0e_a65634cc","updated":"2016-05-06 21:55:16.000000000","message":"Done","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":246,"context_line":"Dependencies"},{"line_number":247,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"* Depends on image caching implemented in `standby extension`_ of"},{"line_number":250,"context_line":"  Ironic-Python-Agent."},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"Testing"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_c64ff0bc","line":249,"updated":"2016-05-02 19:50:06.000000000","message":"Since the base functionality in IPA already exists, it seems somewhat redundant to mention it as a dependency.  That is, unless there is additional work required for the image caching functionality currently implemented in IPA, however I would think that would be covered by this specification.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":246,"context_line":"Dependencies"},{"line_number":247,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"* Depends on image caching implemented in `standby extension`_ of"},{"line_number":250,"context_line":"  Ironic-Python-Agent."},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"Testing"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_0f78cfc3","line":249,"in_reply_to":"1a122d0e_c64ff0bc","updated":"2016-05-06 21:55:16.000000000","message":"Moved to references section.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"1a83a27a54f663bd65fa93741534f627668ab4f2","unresolved":false,"context_lines":[{"line_number":262,"context_line":"Documentation Impact"},{"line_number":263,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"Short documentation of ``cache_image`` endpoint."},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"References"},{"line_number":268,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1a122d0e_c6fd303d","line":265,"updated":"2016-05-02 19:50:06.000000000","message":"I think the documentation needs to mention use cases and caveats for an operator to grasp the capability that this provides.","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"03588a142f893416c08069528fce7828c18abce1","unresolved":false,"context_lines":[{"line_number":262,"context_line":"Documentation Impact"},{"line_number":263,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"Short documentation of ``cache_image`` endpoint."},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"References"},{"line_number":268,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_af40a357","line":265,"in_reply_to":"1a122d0e_c6fd303d","updated":"2016-05-06 21:55:16.000000000","message":"Done","commit_id":"3a85285f71db4778c34d838639fbac3db7e69747"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"5ac747df2b66a9bcc8ef94324357264263e459bd","unresolved":false,"context_lines":[{"line_number":115,"context_line":"but the following is here to make explicit where in the state machine we are"},{"line_number":116,"context_line":"proposing caching could take place:"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":119,"context_line":"operation."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_f5bd4bd8","line":118,"updated":"2016-05-08 14:12:07.000000000","message":"Since there is no new state being added and caching happens when node is in \u0027AVAILABLE\u0027 state, what would happen if the node while performing caching of image receives provisioning request through \u0027nova boot\u0027 or \u0027ironic node-set-provision-state active\u0027? Would node provisioning fail?\n\nSimilar kind of issues can occur, if user were to change node state while caching operation in progress. (Ex. available-\u003emanageable-\u003ecleaning)\n\nI think it would be useful to have a new state in state machine to handle caching. Or perform this operation as part of \u0027manageable\u0027 state.\nEven better would be to perform this as a manual clean step. WDYT?","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"5e50134bd2d214561342bc40e2064ca659f7ec8f","unresolved":false,"context_lines":[{"line_number":115,"context_line":"but the following is here to make explicit where in the state machine we are"},{"line_number":116,"context_line":"proposing caching could take place:"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":119,"context_line":"operation."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_3df6ed8e","line":118,"in_reply_to":"dab17558_69d3b260","updated":"2016-05-11 23:49:39.000000000","message":"This totally depends on IPA behavior. I believe what happens is IPA will receive the provision request, but since another asynchronous operation is already in progress, the \u0027new\u0027 async request will fail. I\u0027m not sure this necessarily means there should be a new state for this operation. \n\nMaybe a manual clean step is the way to go, at least so its clear the node is busy and not available until the cache request is finished. I\u0027d like more input here from people familiar with them.","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"1557740de993718f0ebe9546abc43b549139f6e7","unresolved":false,"context_lines":[{"line_number":115,"context_line":"but the following is here to make explicit where in the state machine we are"},{"line_number":116,"context_line":"proposing caching could take place:"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":119,"context_line":"operation."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_69d3b260","line":118,"in_reply_to":"dab17558_f5bd4bd8","updated":"2016-05-11 14:05:52.000000000","message":"I think since no other impact is specified, the behavior is expected to be the same.\n\nSince the manageable state is required for a manual clean step, I don\u0027t think manual cleaning is a good option. I can imagine a large drain on available capacity to be provisioned in that case.","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"5ac747df2b66a9bcc8ef94324357264263e459bd","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    {"},{"line_number":139,"context_line":"      \"image_info\":"},{"line_number":140,"context_line":"      {"},{"line_number":141,"context_line":"        \"id\": \"image_uuid\","},{"line_number":142,"context_line":"        \"urls\": \"URL to retrieve image here.\","},{"line_number":143,"context_line":"        \"checksum\": \"The checksum of the image.\""},{"line_number":144,"context_line":"      }"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_f52f0b3c","line":141,"updated":"2016-05-08 14:12:07.000000000","message":"How do one get the image_uuid? Is it the glance image uuid?\nIn case of image being hosted on web server, would this field be optional?","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"5e50134bd2d214561342bc40e2064ca659f7ec8f","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    {"},{"line_number":139,"context_line":"      \"image_info\":"},{"line_number":140,"context_line":"      {"},{"line_number":141,"context_line":"        \"id\": \"image_uuid\","},{"line_number":142,"context_line":"        \"urls\": \"URL to retrieve image here.\","},{"line_number":143,"context_line":"        \"checksum\": \"The checksum of the image.\""},{"line_number":144,"context_line":"      }"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_9db8b92b","line":141,"in_reply_to":"dab17558_f52f0b3c","updated":"2016-05-11 23:49:39.000000000","message":"I don\u0027t believe it necessarily needs to be a glance uuid. However, the standby extension in IPA uses the uuid to uniquely identify the image cached. It\u0027s used as part of IPA\u0027s check to see if the agent already has the image cached. So it just needs to be some unique identifier for the particular image being cached. \n\nThe field is not optional as IPA\u0027s image_cache call requires it.\n\nI\u0027ve added some verbiage to describe the image_info dictionary.","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"5ac747df2b66a9bcc8ef94324357264263e459bd","unresolved":false,"context_lines":[{"line_number":139,"context_line":"      \"image_info\":"},{"line_number":140,"context_line":"      {"},{"line_number":141,"context_line":"        \"id\": \"image_uuid\","},{"line_number":142,"context_line":"        \"urls\": \"URL to retrieve image here.\","},{"line_number":143,"context_line":"        \"checksum\": \"The checksum of the image.\""},{"line_number":144,"context_line":"      }"},{"line_number":145,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_5527f763","line":142,"updated":"2016-05-08 14:12:07.000000000","message":"What kind of url\u0027s be supported?","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"5e50134bd2d214561342bc40e2064ca659f7ec8f","unresolved":false,"context_lines":[{"line_number":139,"context_line":"      \"image_info\":"},{"line_number":140,"context_line":"      {"},{"line_number":141,"context_line":"        \"id\": \"image_uuid\","},{"line_number":142,"context_line":"        \"urls\": \"URL to retrieve image here.\","},{"line_number":143,"context_line":"        \"checksum\": \"The checksum of the image.\""},{"line_number":144,"context_line":"      }"},{"line_number":145,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_1df20906","line":142,"in_reply_to":"dab17558_5527f763","updated":"2016-05-11 23:49:39.000000000","message":"Whatever URLs IPA supports, this will support. Should be equivalent to URLs supported by a boot/provision call.","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"5ac747df2b66a9bcc8ef94324357264263e459bd","unresolved":false,"context_lines":[{"line_number":158,"context_line":"  * Node is in maintenance. Returns ``409`` Conflict."},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"  * Node is already in the middle of a caching operation, or already has"},{"line_number":161,"context_line":"      an image cached. Returns ``409`` Conflict."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"  * Ironic is unable to verify the image\u0027s URL. Returns ``400`` Bad Request."},{"line_number":164,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_d5ae4784","line":161,"updated":"2016-05-08 14:12:07.000000000","message":"I suppose it would  return \u0027image cached\u0027 only if the image_uuid/checksum in the driver_internal_info matches with the input. If these values differ, cached image would get overwritten. Better to elaborate expected behavior here.","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"5e50134bd2d214561342bc40e2064ca659f7ec8f","unresolved":false,"context_lines":[{"line_number":158,"context_line":"  * Node is in maintenance. Returns ``409`` Conflict."},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"  * Node is already in the middle of a caching operation, or already has"},{"line_number":161,"context_line":"      an image cached. Returns ``409`` Conflict."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"  * Ironic is unable to verify the image\u0027s URL. Returns ``400`` Bad Request."},{"line_number":164,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_fd83c500","line":161,"in_reply_to":"dab17558_d5ae4784","updated":"2016-05-11 23:49:39.000000000","message":"I think it\u0027s better to `just say no` as it were if there\u0027s already another image cached. Today, IPA will just overwrite the currently cached image if it gets a request to cache another image with a different UUID. \n\nMaybe return 200 OK when the same image is already cached would do the trick?","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"5ac747df2b66a9bcc8ef94324357264263e459bd","unresolved":false,"context_lines":[{"line_number":200,"context_line":"Security impact"},{"line_number":201,"context_line":"---------------"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"No expected security impact."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"Other end user impact"},{"line_number":206,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_b5c0e32b","line":203,"updated":"2016-05-08 14:12:07.000000000","message":"Since the node has fully bootable image on it, the \u0027ironic node-set-power-state $NODE on\u0027 would power on the node in fully usable state with the image being cached. \nThough this is true even for the nodes that are being teared down and not cleaned. But better to mention it so that users are aware that cached image has that behavior.","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"5e50134bd2d214561342bc40e2064ca659f7ec8f","unresolved":false,"context_lines":[{"line_number":200,"context_line":"Security impact"},{"line_number":201,"context_line":"---------------"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"No expected security impact."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"Other end user impact"},{"line_number":206,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dab17558_7d4fd533","line":203,"in_reply_to":"dab17558_b5c0e32b","updated":"2016-05-11 23:49:39.000000000","message":"Done","commit_id":"524e48183e398d4cbbf7e5f69464941be665e68c"},{"author":{"_account_id":8125,"name":"Michael Davies","email":"michael@the-davies.net","username":"mrda"},"change_message_id":"4e575ef1139f04b17a7b705a2b0189981734d8ac","unresolved":false,"context_lines":[{"line_number":19,"context_line":"`standby extension`_. By adding support for image caching in Ironic\u0027s agent"},{"line_number":20,"context_line":"driver, Ironic operators would be able to conveniently instruct nodes to"},{"line_number":21,"context_line":"cache an image through Ironic, while maintaining a record of which nodes"},{"line_number":22,"context_line":"have images cached."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Image caching directly to a node can significantly improve node"},{"line_number":25,"context_line":"provisioning times, enabling a more elastic bare-metal cloud. Consider"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_40d14122","line":22,"updated":"2016-05-12 03:33:31.000000000","message":"Where specifically is the image cached?  Can we explicitly state that here?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"d91b1a889d9cb2f2c8c1712d36f7d7d880f2eff8","unresolved":false,"context_lines":[{"line_number":19,"context_line":"`standby extension`_. By adding support for image caching in Ironic\u0027s agent"},{"line_number":20,"context_line":"driver, Ironic operators would be able to conveniently instruct nodes to"},{"line_number":21,"context_line":"cache an image through Ironic, while maintaining a record of which nodes"},{"line_number":22,"context_line":"have images cached."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Image caching directly to a node can significantly improve node"},{"line_number":25,"context_line":"provisioning times, enabling a more elastic bare-metal cloud. Consider"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fad55976_e5b94dee","line":22,"in_reply_to":"dab17558_40d14122","updated":"2016-07-15 18:43:15.000000000","message":"To the node\u0027s local disk. Yes.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":8125,"name":"Michael Davies","email":"michael@the-davies.net","username":"mrda"},"change_message_id":"4e575ef1139f04b17a7b705a2b0189981734d8ac","unresolved":false,"context_lines":[{"line_number":48,"context_line":"caching operation and what image is being cached to ``driver_info`` so the"},{"line_number":49,"context_line":"agent driver can drive the asynchronous operation to completion, and allow"},{"line_number":50,"context_line":"operators and other external observers to see the state of the node\u0027s cache."},{"line_number":51,"context_line":"This will also allow aggregate management of an ironic cell\u0027s cache across"},{"line_number":52,"context_line":"nodes."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Due to the asynchronous nature of the operation, additional handling functions"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_62528d36","line":51,"range":{"start_line":51,"start_character":48,"end_line":51,"end_character":59},"updated":"2016-05-12 03:33:31.000000000","message":"This is an interesting term.  What do you mean by ironic cell?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"d91b1a889d9cb2f2c8c1712d36f7d7d880f2eff8","unresolved":false,"context_lines":[{"line_number":48,"context_line":"caching operation and what image is being cached to ``driver_info`` so the"},{"line_number":49,"context_line":"agent driver can drive the asynchronous operation to completion, and allow"},{"line_number":50,"context_line":"operators and other external observers to see the state of the node\u0027s cache."},{"line_number":51,"context_line":"This will also allow aggregate management of an ironic cell\u0027s cache across"},{"line_number":52,"context_line":"nodes."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Due to the asynchronous nature of the operation, additional handling functions"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fad55976_85c17131","line":51,"range":{"start_line":51,"start_character":48,"end_line":51,"end_character":59},"in_reply_to":"dab17558_62528d36","updated":"2016-07-15 18:43:15.000000000","message":"Maybe not good phrasing. Just trying to say that it would enable someone or some tool to manage the caching of images across many bare-metal nodes. Rephrased.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3755d428c0c78cf6149350f061da73b6d2c528fc","unresolved":false,"context_lines":[{"line_number":59,"context_line":"Clean up of caching related metadata will be handled when a node is sent"},{"line_number":60,"context_line":"through cleaning."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Update DeployInterface to add ``cache_image`` as part of the abstract"},{"line_number":63,"context_line":"interface. Which would allow other drivers to implement caching functionality"},{"line_number":64,"context_line":"in the future."},{"line_number":65,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_f2606237","line":62,"updated":"2016-05-16 15:46:12.000000000","message":"But the method itself should not be abstract? And in case of iscsi, the image is already cached on the conductor.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"d91b1a889d9cb2f2c8c1712d36f7d7d880f2eff8","unresolved":false,"context_lines":[{"line_number":59,"context_line":"Clean up of caching related metadata will be handled when a node is sent"},{"line_number":60,"context_line":"through cleaning."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Update DeployInterface to add ``cache_image`` as part of the abstract"},{"line_number":63,"context_line":"interface. Which would allow other drivers to implement caching functionality"},{"line_number":64,"context_line":"in the future."},{"line_number":65,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"fad55976_a5f2b598","line":62,"in_reply_to":"dab17558_f2606237","updated":"2016-07-15 18:43:15.000000000","message":"I think the method itself should be abstract. Updated this.\n\nThis spec/feature is supposed to be specifically about caching images onto bare-metal nodes, not on the conductor.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3755d428c0c78cf6149350f061da73b6d2c528fc","unresolved":false,"context_lines":[{"line_number":63,"context_line":"interface. Which would allow other drivers to implement caching functionality"},{"line_number":64,"context_line":"in the future."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"No change will currently be needed to Ironic-Python-Agent (IPA) or how an"},{"line_number":67,"context_line":"Ironic conductor talks to IPA at deploy time."},{"line_number":68,"context_line":"IPA fully supports image caching."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_e97d146e","line":66,"updated":"2016-05-16 15:46:12.000000000","message":"Hmm, looking at this piece of code - https://github.com/openstack/ironic-python-agent/blob/master/ironic_python_agent/extensions/standby.py#L547-L551 configdrive will not be written in case of partition image if it was already cached? Might need to change some bits there.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"d91b1a889d9cb2f2c8c1712d36f7d7d880f2eff8","unresolved":false,"context_lines":[{"line_number":63,"context_line":"interface. Which would allow other drivers to implement caching functionality"},{"line_number":64,"context_line":"in the future."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"No change will currently be needed to Ironic-Python-Agent (IPA) or how an"},{"line_number":67,"context_line":"Ironic conductor talks to IPA at deploy time."},{"line_number":68,"context_line":"IPA fully supports image caching."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"fad55976_05ed818b","line":66,"in_reply_to":"dab17558_e97d146e","updated":"2016-07-15 18:43:15.000000000","message":"That specific code appears to be independent of whether an image is cached or not. It only takes into account the \u0027image_type\u0027. I can\u0027t comment on the broader correctness of its behavior.\n\nIf IPA\u0027s caching behavior is deficient in certain cases, then we should fix that independently of this spec imho.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3755d428c0c78cf6149350f061da73b6d2c528fc","unresolved":false,"context_lines":[{"line_number":86,"context_line":" * The current state of the cache operation. In ``driver_info``. States would"},{"line_number":87,"context_line":"   include:"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"   * ``caching`` - while the caching operation is in progress."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"   * ``cached`` - once a caching operation has completed successfully."},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_86a7174f","line":89,"updated":"2016-05-16 15:46:12.000000000","message":"I think it would be useful to report this state, maybe add a GET possibility to the newly added endpoint? And one more command in the client. WDYT?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"d91b1a889d9cb2f2c8c1712d36f7d7d880f2eff8","unresolved":false,"context_lines":[{"line_number":86,"context_line":" * The current state of the cache operation. In ``driver_info``. States would"},{"line_number":87,"context_line":"   include:"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"   * ``caching`` - while the caching operation is in progress."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"   * ``cached`` - once a caching operation has completed successfully."},{"line_number":92,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"fad55976_457499ce","line":89,"in_reply_to":"dab17558_86a7174f","updated":"2016-07-15 18:43:15.000000000","message":"I think it would be useful as well. I\u0027m thinking there may be a need for a new \u0027caching\u0027 state in the state machine.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":8125,"name":"Michael Davies","email":"michael@the-davies.net","username":"mrda"},"change_message_id":"4e575ef1139f04b17a7b705a2b0189981734d8ac","unresolved":false,"context_lines":[{"line_number":131,"context_line":"proposing caching could take place:"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":134,"context_line":"operation."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"REST API impact"},{"line_number":137,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_c59d43bd","line":134,"updated":"2016-05-12 03:33:31.000000000","message":"As raised in IRC, if a node was in AVAILABLE and a cache operation was requested, would not that node be unavailable for be provisioned until the cache operation completed?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3755d428c0c78cf6149350f061da73b6d2c528fc","unresolved":false,"context_lines":[{"line_number":131,"context_line":"proposing caching could take place:"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":134,"context_line":"operation."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"REST API impact"},{"line_number":137,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_e9107402","line":134,"in_reply_to":"dab17558_720fdb2e","updated":"2016-05-16 15:46:12.000000000","message":"I might be missing something, but why not add a new provision state?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"97723ef3334526850e79fb125ce7e534d4f54d83","unresolved":false,"context_lines":[{"line_number":131,"context_line":"proposing caching could take place:"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":134,"context_line":"operation."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"REST API impact"},{"line_number":137,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_720fdb2e","line":134,"in_reply_to":"dab17558_c59d43bd","updated":"2016-05-12 15:24:05.000000000","message":"I didn\u0027t realize this in the last patch set. Changing to -1 as I think a node in available should always be able to be provisioned to.\n\nClif - I think we should either allow caching to be interrupted for a deploy request somehow (although I think on a previous patch set you mentioned this was quite difficult), or change it to a manual clean step. I\u0027m not sure that an addition to the state machine would be necessary.\n\nI can also imagine a situation where a deployer would want to enroll a set of machines, manage them and put images on them *before* they\u0027re available, and only then make them available. This is more easily handled without an addition to the state machine.\n\nOne thing I am concerned about with manual cleaning though is if the nodes are in manageable, we run the caching step, and then provide the nodes, would they have to go through regular cleaning again? If so, then the disks would likely be erased.\n\nWDYT?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"d91b1a889d9cb2f2c8c1712d36f7d7d880f2eff8","unresolved":false,"context_lines":[{"line_number":131,"context_line":"proposing caching could take place:"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"A node in the ``AVAILABLE`` state could be instructed to perform a cache"},{"line_number":134,"context_line":"operation."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"REST API impact"},{"line_number":137,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fad55976_256d2505","line":134,"in_reply_to":"dab17558_e9107402","updated":"2016-07-15 18:43:15.000000000","message":"Yes, I think this may require a new \u0027CACHING\u0027 state. Added a proposal for this change under state machine impact.","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3755d428c0c78cf6149350f061da73b6d2c528fc","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    {"},{"line_number":154,"context_line":"      \"image_info\":"},{"line_number":155,"context_line":"      {"},{"line_number":156,"context_line":"        \"id\": \"image_uuid\","},{"line_number":157,"context_line":"        \"urls\": \"URL to retrieve image here.\","},{"line_number":158,"context_line":"        \"checksum\": \"The checksum of the image.\""},{"line_number":159,"context_line":"      }"}],"source_content_type":"text/x-rst","patch_set":6,"id":"dab17558_a6ee9b1f","line":156,"updated":"2016-05-16 15:46:12.000000000","message":"If it is a glance image, can we support supplying only image id and fetching all the other parameters from glance?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":14228,"name":"Clif Houck","email":"me@clifhouck.com","username":"clif_h"},"change_message_id":"d91b1a889d9cb2f2c8c1712d36f7d7d880f2eff8","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    {"},{"line_number":154,"context_line":"      \"image_info\":"},{"line_number":155,"context_line":"      {"},{"line_number":156,"context_line":"        \"id\": \"image_uuid\","},{"line_number":157,"context_line":"        \"urls\": \"URL to retrieve image here.\","},{"line_number":158,"context_line":"        \"checksum\": \"The checksum of the image.\""},{"line_number":159,"context_line":"      }"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fad55976_8503310f","line":156,"in_reply_to":"dab17558_a6ee9b1f","updated":"2016-07-15 18:43:15.000000000","message":"We could, although it might complicate this endpoint somewhat. The incoming data would have to indicate somehow that it is a glance image. There\u0027s also an expectation that ironic will have the access/credentials necessary to talk to glance. I don\u0027t know, is that a proper expectation to have?","commit_id":"fb1049ba15e13422b3738c526f90003b8bb932d2"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5f423226f343e9d63a55075ee9347a97fe18cf22","unresolved":false,"context_lines":[{"line_number":40,"context_line":"Proposed change"},{"line_number":41,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"Create a vendor passthru endpoint in the agent driver called ``cache_image``."},{"line_number":44,"context_line":"``cache_image`` will be fed image information which will be used to instruct"},{"line_number":45,"context_line":"the agent on what image to cache."},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"dada55a8_6a078a81","line":43,"updated":"2016-07-25 17:40:35.000000000","message":"You might want to consider putting this in the core API, since the agent vendor passthru heartbeat and lookup endpoints are being moved there: https://review.openstack.org/#/c/330018\n\nI\u0027d be fine with implementing it only as vendor passthru at first and promoting to core API once that patch merges, but I think the spec should note whether or not this will modify pieces of the core API.","commit_id":"64eef0ab38e3cfed37f99a676fdd6f7101565055"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"aad662408fa4028cb8fab1b133e35e362fa079a3","unresolved":false,"context_lines":[{"line_number":215,"context_line":"Nova driver impact"},{"line_number":216,"context_line":"------------------"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"There is no need for Nova driver impact."},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"Ramdisk impact"},{"line_number":221,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bacf61ea_a9c852a9","line":218,"updated":"2016-07-29 20:45:34.000000000","message":"You\u0027ll have to present resources on a node that\u0027s CACHING as unavailable. Isn\u0027t there also work needed to make the scheduler prefer nodes that are cached?","commit_id":"0694d0f2c1234e8a8591c0e39c353b05178bc498"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"aad662408fa4028cb8fab1b133e35e362fa079a3","unresolved":false,"context_lines":[{"line_number":220,"context_line":"Ramdisk impact"},{"line_number":221,"context_line":"--------------"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"No Ramdisk impact. Caching already exists in a fully functional form in IPA."},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"Security impact"},{"line_number":226,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bacf61ea_89010e6d","line":223,"updated":"2016-07-29 20:45:34.000000000","message":"I\u0027m concerned there\u0027s a key piece missing here. Upstream, ramdisks are only booted when needed for deployment. In order to cache images, we\u0027ll either have to somehow indicate an image is cached, rather than just having that information in memory on IPA, or we\u0027ll have to have support for having longer-running ramdisks, which is probably a prerequisite to all of this work.","commit_id":"0694d0f2c1234e8a8591c0e39c353b05178bc498"}]}
