)]}'
{"specs/approved/evolve-driver-info.rst":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"711ba81c40506e1b1c79aeacbc7be1d1b84bc4be","unresolved":false,"context_lines":[{"line_number":28,"context_line":"Even though there is a defined mechanism for drivers to expose configuration"},{"line_number":29,"context_line":"metadata (through the ``node.driver_info`` field and its related ``validate``"},{"line_number":30,"context_line":"method), some drivers alter their behavior based on strings within the"},{"line_number":31,"context_line":"``node.properties[\u0027capabilities\u0027]`` nested object."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The ``node.properties`` resource was originally intended only for use by the"},{"line_number":34,"context_line":"cloud operator to provide a mechanism for the Compute service to match flavors"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5da102_b24cf077","line":31,"updated":"2016-10-26 09:51:57.000000000","message":"This is only correct for boot_mode. For boot_option, Nova puts the matched capabilities in instance_info.capabilities dictionary (meh, this is crazy..). We should probably unify it to use instance_info (or driver_info, not sure why you pick the latter).","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":30,"context_line":"method), some drivers alter their behavior based on strings within the"},{"line_number":31,"context_line":"``node.properties[\u0027capabilities\u0027]`` nested object."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The ``node.properties`` resource was originally intended only for use by the"},{"line_number":34,"context_line":"cloud operator to provide a mechanism for the Compute service to match flavors"},{"line_number":35,"context_line":"to nodes (in other words, for scheduling purposes), there"},{"line_number":36,"context_line":"are now some drivers which alter the behavior of the Bare Metal"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_bae131d3","line":33,"updated":"2016-10-10 19:43:49.000000000","message":"Do you have a reference for this original use case? I totally believe you and use node.properties this way, just wondering.\n\nAlso, is there any valid reason that this is currently used instead of putting those values in driver_info?","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"b8243060cc8769fc9298fa70c6b4775c6acda538","unresolved":false,"context_lines":[{"line_number":31,"context_line":"``node.properties[\u0027capabilities\u0027]`` nested object."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The ``node.properties`` resource was originally intended only for use by the"},{"line_number":34,"context_line":"cloud operator to provide a mechanism for the Compute service to match flavors"},{"line_number":35,"context_line":"to nodes (in other words, for scheduling purposes), there"},{"line_number":36,"context_line":"are now some drivers which alter the behavior of the Bare Metal"},{"line_number":37,"context_line":"service if the following keys (or related subkeys) are present::"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_9c15ece6","line":34,"range":{"start_line":34,"start_character":46,"end_line":34,"end_character":78},"updated":"2016-10-19 12:34:56.000000000","message":"It seems like the intent behind this is to remove that capability of being able to schedule based on the known capabilities of the node.  I would highly prefer clarification as to the intent of impact upon scheduling.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"fda3dcefb18e61789b83500a23acee24769f3b82","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The ``node.properties`` resource was originally intended only for use by the"},{"line_number":34,"context_line":"cloud operator to provide a mechanism for the Compute service to match flavors"},{"line_number":35,"context_line":"to nodes (in other words, for scheduling purposes), there"},{"line_number":36,"context_line":"are now some drivers which alter the behavior of the Bare Metal"},{"line_number":37,"context_line":"service if the following keys (or related subkeys) are present::"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a95cdbc_dddf3967","line":35,"updated":"2016-10-07 01:56:42.000000000","message":"might want to start a new sentence from \u0027There are now...\u0027, maybe preface with \u0027However, there are now...\u0027?","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The ``node.properties`` resource was originally intended only for use by the"},{"line_number":34,"context_line":"cloud operator to provide a mechanism for the Compute service to match flavors"},{"line_number":35,"context_line":"to nodes (in other words, for scheduling purposes), there"},{"line_number":36,"context_line":"are now some drivers which alter the behavior of the Bare Metal"},{"line_number":37,"context_line":"service if the following keys (or related subkeys) are present::"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_3ac7e146","line":35,"in_reply_to":"1a95cdbc_dddf3967","updated":"2016-10-10 19:43:49.000000000","message":"+1 it\u0027s a run-on","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"711ba81c40506e1b1c79aeacbc7be1d1b84bc4be","unresolved":false,"context_lines":[{"line_number":46,"context_line":"operators to manipulate driver-specific behavior through inputting"},{"line_number":47,"context_line":"configuration metadata in the API. The required and allowed values for this"},{"line_number":48,"context_line":"resource are determined by each driver and exposed through the ``validate``"},{"line_number":49,"context_line":"resource."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"Example request::"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5da102_d2516410","line":49,"updated":"2016-10-26 09:51:57.000000000","message":"I would not use this as a good example. E.g. the information for \"validate\" call is filled in manually and is sometimes incorrect. But I agree that it\u0027s much better than capabilities :)","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"fda3dcefb18e61789b83500a23acee24769f3b82","unresolved":false,"context_lines":[{"line_number":85,"context_line":"      \"raid\": {"},{"line_number":86,"context_line":"        \"result\": true"},{"line_number":87,"context_line":"      }"},{"line_number":88,"context_line":"    }"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"**Driver stores internal info in external fields**"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a95cdbc_3d681d87","line":88,"updated":"2016-10-07 01:56:42.000000000","message":"is it worth mentioning the driver-properties API (or whatever it is called): http://developer.openstack.org/api-ref/baremetal/?expanded\u003dshow-driver-properties-detail","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":85,"context_line":"      \"raid\": {"},{"line_number":86,"context_line":"        \"result\": true"},{"line_number":87,"context_line":"      }"},{"line_number":88,"context_line":"    }"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"**Driver stores internal info in external fields**"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_ba64d149","line":88,"in_reply_to":"1a95cdbc_3d681d87","updated":"2016-10-10 19:43:49.000000000","message":"+1. That would allow you to find this information out before enrolling a node.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a352cc45dfce4d6fd1e12e48759791b87f05c1c8","unresolved":false,"context_lines":[{"line_number":93,"context_line":"As described above, the ``node.driver_info`` field is intended for operators to"},{"line_number":94,"context_line":"input metadata that affects the behavior of the driver; it stands to reason"},{"line_number":95,"context_line":"that a driver should not change the information given to it by the operator."},{"line_number":96,"context_line":"However, certain drivers have begun to manipulate this field, adding and"},{"line_number":97,"context_line":"removing keys, and potentially overwriting information supplied by the"},{"line_number":98,"context_line":"operator."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"There exists another field expressly for the purpose of allowing a driver to"},{"line_number":101,"context_line":"store its internal state: ``node.driver_internal_info``."}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_83e78b11","line":98,"range":{"start_line":96,"start_character":0,"end_line":98,"end_character":9},"updated":"2016-10-11 11:07:35.000000000","message":"Please provide an example for the current ironic tree.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"a352cc45dfce4d6fd1e12e48759791b87f05c1c8","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":"* For each control mechanism signaled through metadata stored in"},{"line_number":112,"context_line":"  ``node.properties[\u0027capabilities\u0027]`` today, that mechanism shall be altered"},{"line_number":113,"context_line":"  to look for metadata within ``node.driver_info`` instead."},{"line_number":114,"context_line":"* A check shall be added to the code that will signal the operator by logging a"},{"line_number":115,"context_line":"  WARNING message, if they attempt to input this metadata into the capabilities"},{"line_number":116,"context_line":"  dict in the future."}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_43e8137d","line":113,"updated":"2016-10-11 11:07:35.000000000","message":"I found an example when driver sets boot_mode. What ironic should prefer, driver or operator settings?","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"b8243060cc8769fc9298fa70c6b4775c6acda538","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":"* For each control mechanism signaled through metadata stored in"},{"line_number":112,"context_line":"  ``node.properties[\u0027capabilities\u0027]`` today, that mechanism shall be altered"},{"line_number":113,"context_line":"  to look for metadata within ``node.driver_info`` instead."},{"line_number":114,"context_line":"* A check shall be added to the code that will signal the operator by logging a"},{"line_number":115,"context_line":"  WARNING message, if they attempt to input this metadata into the capabilities"},{"line_number":116,"context_line":"  dict in the future."}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_7cbe5800","line":113,"in_reply_to":"fa6399be_43e8137d","updated":"2016-10-19 12:34:56.000000000","message":"I believe an operator knows their deployment\u0027s use case best, and that a vendor or driver does not know the use cases, so should avoid attempting to make assumptions regarding how the hardware shall be used.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"4fb141c666c668d8037dcbdbb9dc2bae5191ae3a","unresolved":false,"context_lines":[{"line_number":111,"context_line":"* For each control mechanism signaled through metadata stored in"},{"line_number":112,"context_line":"  ``node.properties[\u0027capabilities\u0027]`` today, that mechanism shall be altered"},{"line_number":113,"context_line":"  to look for metadata within ``node.driver_info`` instead."},{"line_number":114,"context_line":"* A check shall be added to the code that will signal the operator by logging a"},{"line_number":115,"context_line":"  WARNING message, if they attempt to input this metadata into the capabilities"},{"line_number":116,"context_line":"  dict in the future."},{"line_number":117,"context_line":"* These shall be added to the output of the ``validate`` method, so that"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_2cf7195a","line":114,"updated":"2016-10-20 15:13:20.000000000","message":"Hm, will it be checking the changes looking for specific substrings in capabilities string? Is it worth it? I think just clear documentation should suffice.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":113,"context_line":"  to look for metadata within ``node.driver_info`` instead."},{"line_number":114,"context_line":"* A check shall be added to the code that will signal the operator by logging a"},{"line_number":115,"context_line":"  WARNING message, if they attempt to input this metadata into the capabilities"},{"line_number":116,"context_line":"  dict in the future."},{"line_number":117,"context_line":"* These shall be added to the output of the ``validate`` method, so that"},{"line_number":118,"context_line":"  users and operators are made aware of the support for these options."},{"line_number":119,"context_line":"* A database migration shall copy the values from capabilities to driver_info,"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_3affe135","line":116,"updated":"2016-10-10 19:43:49.000000000","message":"Will this be in the API response when updating capabilities too, or just in the log message? If an error is returned after some deprecation period, it would be good to be a bit more proactive in notifying API users.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":116,"context_line":"  dict in the future."},{"line_number":117,"context_line":"* These shall be added to the output of the ``validate`` method, so that"},{"line_number":118,"context_line":"  users and operators are made aware of the support for these options."},{"line_number":119,"context_line":"* A database migration shall copy the values from capabilities to driver_info,"},{"line_number":120,"context_line":"  which shall be implemented in the same commit as the above change adding a"},{"line_number":121,"context_line":"  WARNING message."},{"line_number":122,"context_line":"* After a sufficient deprecation period, the above WARNING shall be replaced"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_3a7441ce","line":119,"range":{"start_line":119,"start_character":29,"end_line":119,"end_character":44},"updated":"2016-10-10 19:43:49.000000000","message":"This will only copy the values needed for a control mechanism, right? Not arbitrary values in capabilities?","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":119,"context_line":"* A database migration shall copy the values from capabilities to driver_info,"},{"line_number":120,"context_line":"  which shall be implemented in the same commit as the above change adding a"},{"line_number":121,"context_line":"  WARNING message."},{"line_number":122,"context_line":"* After a sufficient deprecation period, the above WARNING shall be replaced"},{"line_number":123,"context_line":"  with an ERROR message, which will also be saved to the ``node.last_error``"},{"line_number":124,"context_line":"  field so as to make it visible to the end-user."},{"line_number":125,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_1a0cdd41","line":122,"updated":"2016-10-10 19:43:49.000000000","message":"Why do you think this is necessary? I can think of a use case like wanting to have a specific flavor that has secure boot enabled or wanting to key a flavor off of some other information about the node. I\u0027m not completely sure, but I don\u0027t think Nova allows keying a flavor off of information outside the capabilities dict. An operator could work around this by just renaming the fields, I suppose, but it would be good to document that workaround at least.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"b8243060cc8769fc9298fa70c6b4775c6acda538","unresolved":false,"context_lines":[{"line_number":119,"context_line":"* A database migration shall copy the values from capabilities to driver_info,"},{"line_number":120,"context_line":"  which shall be implemented in the same commit as the above change adding a"},{"line_number":121,"context_line":"  WARNING message."},{"line_number":122,"context_line":"* After a sufficient deprecation period, the above WARNING shall be replaced"},{"line_number":123,"context_line":"  with an ERROR message, which will also be saved to the ``node.last_error``"},{"line_number":124,"context_line":"  field so as to make it visible to the end-user."},{"line_number":125,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_5cc5143b","line":122,"in_reply_to":"fa6399be_1a0cdd41","updated":"2016-10-19 12:34:56.000000000","message":"As far as I\u0027m aware, it does not.  It seems like this has major impacts to an operator\u0027s capability to have fleets with varying hardware and thus schedule to them, example GPUs or HBAs in some nodes.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":125,"context_line":""},{"line_number":126,"context_line":"Furthermore, in regards to driver_info:"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"* For each instance where a driver is modifying the ``driver_info`` metadata,"},{"line_number":129,"context_line":"  the driver shall be updated to store its internal state in"},{"line_number":130,"context_line":"  ``driver_internal_info`` instead."},{"line_number":131,"context_line":"* A database migration shall copy these values from ``driver_info`` to"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_9d4c6778","line":128,"updated":"2016-10-10 19:43:49.000000000","message":"Are there any cases where both an operator via API and a driver might try to modify the same field? What is the behavior in this case, if so?","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"711ba81c40506e1b1c79aeacbc7be1d1b84bc4be","unresolved":false,"context_lines":[{"line_number":200,"context_line":"Nova driver impact"},{"line_number":201,"context_line":"------------------"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"None"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"Ramdisk impact"},{"line_number":206,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5da102_f2566805","line":203,"updated":"2016-10-26 09:51:57.000000000","message":"There is a huge impact. Currently our Nova driver updates instance_info with matched capabilities (see above), and Ironic acts accordingly. This change will break it. We need to teach Nova to put things in driver_info instead? Or do we look at both places?","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"b8243060cc8769fc9298fa70c6b4775c6acda538","unresolved":false,"context_lines":[{"line_number":200,"context_line":"Nova driver impact"},{"line_number":201,"context_line":"------------------"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"None"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"Ramdisk impact"},{"line_number":206,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_3cf8607c","line":203,"updated":"2016-10-19 12:34:56.000000000","message":"This seems like it is going to impact scheduling and flavor matching.  I would really like to see clarification in regards to that.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":252,"context_line":"Other contributors:"},{"line_number":253,"context_line":"  TBD"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"Work Items"},{"line_number":256,"context_line":"----------"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_7d48735c","line":255,"updated":"2016-10-10 19:43:49.000000000","message":"This needs to be filled in.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"5678e5c802d5d5d913f98d12872e679613b56a50","unresolved":false,"context_lines":[{"line_number":291,"context_line":"Documentation Impact"},{"line_number":292,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"xxxxx"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"References"},{"line_number":297,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa6399be_5d4baf59","line":294,"updated":"2016-10-10 19:43:49.000000000","message":"This should probably be filled in, unless that value has a specific meaning I\u0027m not aware of.","commit_id":"f5da55649b5b114c24cebe9447748417f11cbb33"}]}
