)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":10,"context_line":"properties/capabilities to its own table."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I19a39608bb120bca7aa1952594ed6e599f0351f4"},{"line_number":13,"context_line":"Related-Bug: #1533818"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da6ed579_83594d90","line":13,"updated":"2016-01-15 00:14:27.000000000","message":"Partial-Bug?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":10,"context_line":"properties/capabilities to its own table."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I19a39608bb120bca7aa1952594ed6e599f0351f4"},{"line_number":13,"context_line":"Related-Bug: #1533818"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da6ed579_3c50a431","line":13,"in_reply_to":"da6ed579_83594d90","updated":"2016-01-15 14:33:50.000000000","message":"++","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":10,"context_line":"properties/capabilities to its own table."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I19a39608bb120bca7aa1952594ed6e599f0351f4"},{"line_number":13,"context_line":"Related-Bug: #1533818"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ba63e191_2917dba4","line":13,"updated":"2016-01-19 01:27:58.000000000","message":"s/Related-Bug/Partial-Bug/","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":10,"context_line":"properties/capabilities to its own table."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I19a39608bb120bca7aa1952594ed6e599f0351f4"},{"line_number":13,"context_line":"Related-Bug: #1533818"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ba63e191_35039375","line":13,"in_reply_to":"ba63e191_2917dba4","updated":"2016-01-19 12:21:11.000000000","message":"ops forgot this","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"}],"specs/approved/split-capabilities.rst":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":20,"context_line":"a JSON blob, that\u0027s very hard to manage (deleting or adding a capability"},{"line_number":21,"context_line":"to a node requires string manipulation) and it\u0027s not indexable in the"},{"line_number":22,"context_line":"database, making it very hard to filter nodes based on their capabilities."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"},{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_a30ed189","line":23,"updated":"2016-01-15 00:14:27.000000000","message":"A node could also have instance_info[\u0027capabilities\u0027]. Do we think we might want to do a similar thing with these capabilities? I\u0027m hoping not but it might be worth mentioning that there are these two \u0027capabilities\u0027 so no one is confused.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":20,"context_line":"a JSON blob, that\u0027s very hard to manage (deleting or adding a capability"},{"line_number":21,"context_line":"to a node requires string manipulation) and it\u0027s not indexable in the"},{"line_number":22,"context_line":"database, making it very hard to filter nodes based on their capabilities."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Proposed change"},{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_9fb2e24a","line":23,"in_reply_to":"da6ed579_a30ed189","updated":"2016-01-15 14:33:50.000000000","message":"No, we should keep the instance_info[\u0027capabilities\u0027] as-is, because that\u0027s the mechanism to tell the instance what are the capabilities that matched, e.g\n\nA node can have capabilities A,B,C,D\n\nA flavor can have capabilities A,C,D (no B)\n\nThe node is eligible to be scheduled on that flavor because it supports all requested capabilities from that flavor. So when they match, the instance_info[\u0027capabilities\u0027] will contain only the capabilities A,C,D (like the flavor) indicating to Ironic that those are the capabilities matched (and Ironic should respect it when deploying).","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f3bb2c06ac6af172b5458abb57fb89cac7c0dd6","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    node_id INT,"},{"line_number":57,"context_line":"    capability VARCHAR(255) NOT NULL,"},{"line_number":58,"context_line":"    value VARCHAR(255) NOT NULL,"},{"line_number":59,"context_line":"    PRIMARY KEY (node_id, name),"},{"line_number":60,"context_line":"    FOREIGN KEY (node_id),"},{"line_number":61,"context_line":"    INDEX (name)"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_e9fd083c","line":59,"updated":"2016-01-18 15:25:24.000000000","message":"s/name/capability/?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"df9c8eddd08c6dace923f29ba85a67fefc539370","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    node_id INT,"},{"line_number":57,"context_line":"    capability VARCHAR(255) NOT NULL,"},{"line_number":58,"context_line":"    value VARCHAR(255) NOT NULL,"},{"line_number":59,"context_line":"    PRIMARY KEY (node_id, name),"},{"line_number":60,"context_line":"    FOREIGN KEY (node_id),"},{"line_number":61,"context_line":"    INDEX (name)"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_3f31120c","line":59,"in_reply_to":"da6ed579_e9fd083c","updated":"2016-01-18 15:54:49.000000000","message":"Ops... ++","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":65,"context_line":"the extra-spec field of the flavors."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* A new field called ``capabilities`` will be added to the"},{"line_number":68,"context_line":"  ``ironic.objects.nodes`` object."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_036c7d9a","line":68,"updated":"2016-01-15 00:14:27.000000000","message":"its value is a dict, right?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":65,"context_line":"the extra-spec field of the flavors."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* A new field called ``capabilities`` will be added to the"},{"line_number":68,"context_line":"  ``ironic.objects.nodes`` object."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_bf94868a","line":68,"in_reply_to":"da6ed579_036c7d9a","updated":"2016-01-15 14:33:50.000000000","message":"Yes, I will update it","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f3bb2c06ac6af172b5458abb57fb89cac7c0dd6","unresolved":false,"context_lines":[{"line_number":72,"context_line":"---------------"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* A new field called ``capabilities`` will be added to the node API"},{"line_number":75,"context_line":"  object."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":".. note::"},{"line_number":78,"context_line":"   Filtering nodes in the API based on their capabilities won\u0027t be introduced"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_89fc8c3f","line":75,"updated":"2016-01-18 15:25:24.000000000","message":"I assume version will be bumped :)","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"df9c8eddd08c6dace923f29ba85a67fefc539370","unresolved":false,"context_lines":[{"line_number":72,"context_line":"---------------"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* A new field called ``capabilities`` will be added to the node API"},{"line_number":75,"context_line":"  object."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":".. note::"},{"line_number":78,"context_line":"   Filtering nodes in the API based on their capabilities won\u0027t be introduced"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_648b7f1f","line":75,"in_reply_to":"da6ed579_89fc8c3f","updated":"2016-01-18 15:54:49.000000000","message":"++ totally, missed that item","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":78,"context_line":"   Filtering nodes in the API based on their capabilities won\u0027t be introduced"},{"line_number":79,"context_line":"   as part of this spec since the syntax for filtering the nodes based on"},{"line_number":80,"context_line":"   multiple capabilities and their values is something that needs to be"},{"line_number":81,"context_line":"   well thought, based on its complexity it can be done on its own spec."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"RPC API impact"},{"line_number":84,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_e3d6094e","line":81,"updated":"2016-01-15 00:14:27.000000000","message":"s/thought, based/thought out. Based/\n\nIt seems like whatever filtering we do for properties (in the filtering spec), we should use a similar thing for capabilities?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":78,"context_line":"   Filtering nodes in the API based on their capabilities won\u0027t be introduced"},{"line_number":79,"context_line":"   as part of this spec since the syntax for filtering the nodes based on"},{"line_number":80,"context_line":"   multiple capabilities and their values is something that needs to be"},{"line_number":81,"context_line":"   well thought, based on its complexity it can be done on its own spec."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"RPC API impact"},{"line_number":84,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_1fd6f227","line":81,"in_reply_to":"da6ed579_e3d6094e","updated":"2016-01-15 14:33:50.000000000","message":"done\n\nYeah they filtering syntax should be similar/same for everything we want to allow to be filtered on.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f3bb2c06ac6af172b5458abb57fb89cac7c0dd6","unresolved":false,"context_lines":[{"line_number":94,"context_line":"-------------------"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"Add a new parameter for the ``ironic node-create`` allowing a node"},{"line_number":97,"context_line":"to be create with capabilities already (same as the parameter for"},{"line_number":98,"context_line":"``properties``, ``driver_info``, etc...)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Updates/Removal of the capabilities can be handled by the ``ironic"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_a9f71058","line":97,"updated":"2016-01-18 15:25:24.000000000","message":"There\u0027s always an option of only allowing the long form (--capabilities) and not having a short form. I\u0027ve never liked the short form much myself :)\n\nOr -C is another option.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":94,"context_line":"-------------------"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"Add a new parameter for the ``ironic node-create`` allowing a node"},{"line_number":97,"context_line":"to be create with capabilities already (same as the parameter for"},{"line_number":98,"context_line":"``properties``, ``driver_info``, etc...)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Updates/Removal of the capabilities can be handled by the ``ironic"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_a3433112","line":97,"updated":"2016-01-15 00:14:27.000000000","message":"s/create/created/\n\nWe have -p for properties and -i for driver_info. -c is for chassis.\n\nWe\u0027ll need a similar thing for the OSC CLI too (openstack baremetal ..), right?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":94,"context_line":"-------------------"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"Add a new parameter for the ``ironic node-create`` allowing a node"},{"line_number":97,"context_line":"to be create with capabilities already (same as the parameter for"},{"line_number":98,"context_line":"``properties``, ``driver_info``, etc...)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Updates/Removal of the capabilities can be handled by the ``ironic"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_f5a3fffd","line":97,"in_reply_to":"da6ed579_a3433112","updated":"2016-01-15 14:33:50.000000000","message":"++ true yeah we can add it to OSC as well...\n\nAbout the parameters, yeah ideally -c for capabilities but since it\u0027s already used for chassis we will have to go with another letter, maybe \"-a\" (cApabilities ?!)","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"df9c8eddd08c6dace923f29ba85a67fefc539370","unresolved":false,"context_lines":[{"line_number":94,"context_line":"-------------------"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"Add a new parameter for the ``ironic node-create`` allowing a node"},{"line_number":97,"context_line":"to be create with capabilities already (same as the parameter for"},{"line_number":98,"context_line":"``properties``, ``driver_info``, etc...)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Updates/Removal of the capabilities can be handled by the ``ironic"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_448f5b23","line":97,"in_reply_to":"da6ed579_a9f71058","updated":"2016-01-18 15:54:49.000000000","message":"I would vote to have a short-form just to be consistent with the other parameters, -C (capitalized) is a good idea","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f3bb2c06ac6af172b5458abb57fb89cac7c0dd6","unresolved":false,"context_lines":[{"line_number":98,"context_line":"``properties``, ``driver_info``, etc...)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Updates/Removal of the capabilities can be handled by the ``ironic"},{"line_number":101,"context_line":"node-update`` command without any changes."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Driver API impact"},{"line_number":104,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_499534e2","line":101,"updated":"2016-01-18 15:25:24.000000000","message":"Can it? I thought currently it is node-update uuid properties/capabilities\u003d\u0027foo\u003dbar\u0027, wouldn\u0027t we want to drop properties there?\n\nThat said, I think we should allow the old commands (and APIs?) to continue working as-is, at least for now.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"df9c8eddd08c6dace923f29ba85a67fefc539370","unresolved":false,"context_lines":[{"line_number":98,"context_line":"``properties``, ``driver_info``, etc...)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Updates/Removal of the capabilities can be handled by the ``ironic"},{"line_number":101,"context_line":"node-update`` command without any changes."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Driver API impact"},{"line_number":104,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_a472d70f","line":101,"in_reply_to":"da6ed579_499534e2","updated":"2016-01-18 15:54:49.000000000","message":"Oh what I meant is that the node-update command itself won\u0027t need any change as in how we handle the syntax... The \u0027properties/capabilities\u003d\"foo\u003dbar\"\u0027 is the path and value of that command, for the new command the path will change to point to the new node.capabilities field, but the syntax will remain same, e.g\n\nironic node-update \u003cuiud\u003e add capabilities/foo\u003dbar\n\nI will rephrase that to make it more clear","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":108,"context_line":"Nova driver impact"},{"line_number":109,"context_line":"------------------"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"The Nova ironic driver should be mofified to look at the new node\u0027s"},{"line_number":112,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":113,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":114,"context_line":"``capabilities`` field or its empty, the driver should try to find the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_03031db9","line":111,"updated":"2016-01-15 00:14:27.000000000","message":"s/mofified/modified/","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":108,"context_line":"Nova driver impact"},{"line_number":109,"context_line":"------------------"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"The Nova ironic driver should be mofified to look at the new node\u0027s"},{"line_number":112,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":113,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":114,"context_line":"``capabilities`` field or its empty, the driver should try to find the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_d5ad9be9","line":111,"in_reply_to":"da6ed579_03031db9","updated":"2016-01-15 14:33:50.000000000","message":"Done","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":111,"context_line":"The Nova ironic driver should be mofified to look at the new node\u0027s"},{"line_number":112,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":113,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":114,"context_line":"``capabilities`` field or its empty, the driver should try to find the"},{"line_number":115,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_c32f453d","line":114,"updated":"2016-01-15 00:14:27.000000000","message":"s/its/it is/","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":111,"context_line":"The Nova ironic driver should be mofified to look at the new node\u0027s"},{"line_number":112,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":113,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":114,"context_line":"``capabilities`` field or its empty, the driver should try to find the"},{"line_number":115,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_f57a1f76","line":114,"in_reply_to":"da6ed579_c32f453d","updated":"2016-01-15 14:33:50.000000000","message":"Done","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":113,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":114,"context_line":"``capabilities`` field or its empty, the driver should try to find the"},{"line_number":115,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"Security impact"},{"line_number":118,"context_line":"---------------"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_a3dfb138","line":116,"updated":"2016-01-15 00:14:27.000000000","message":"It has to be backwards compatible because it could be talking to an older ironic version that doesn\u0027t have this feature, right? If so, if a node does have a capabilities field and it is empty, can\u0027t we assume the node doesn\u0027t have any capabilities?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":113,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":114,"context_line":"``capabilities`` field or its empty, the driver should try to find the"},{"line_number":115,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"Security impact"},{"line_number":118,"context_line":"---------------"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_b54ee738","line":116,"in_reply_to":"da6ed579_a3dfb138","updated":"2016-01-15 14:33:50.000000000","message":"Right, yeah that was my assumption. If the node doesn\u0027t have the node.capabilities field, and the properties/capabilities is not there then we can assume that the node has no capabilities.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f3bb2c06ac6af172b5458abb57fb89cac7c0dd6","unresolved":false,"context_lines":[{"line_number":156,"context_line":"Work Items"},{"line_number":157,"context_line":"----------"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"* Add `node_capabilities` table with a migration."},{"line_number":160,"context_line":"* Add the ``capabilities`` field to the RPC and API objects."},{"line_number":161,"context_line":"* Nova ironic driver additions and modifications."},{"line_number":162,"context_line":"* python-ironicclient additions and modifications."}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_6998381c","line":159,"updated":"2016-01-18 15:25:24.000000000","message":"Are you planning for the data migration to be a one-shot thing or a rolling migration?\n\nI\u0027ve become less opinionated on forcing things like this to be rolling, given that we don\u0027t currently test that rolling upgrades work. So just asking out of curiousity here, rather than telling you what to do :)","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"df9c8eddd08c6dace923f29ba85a67fefc539370","unresolved":false,"context_lines":[{"line_number":156,"context_line":"Work Items"},{"line_number":157,"context_line":"----------"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"* Add `node_capabilities` table with a migration."},{"line_number":160,"context_line":"* Add the ``capabilities`` field to the RPC and API objects."},{"line_number":161,"context_line":"* Nova ironic driver additions and modifications."},{"line_number":162,"context_line":"* python-ironicclient additions and modifications."}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_fff29a05","line":159,"in_reply_to":"da6ed579_6998381c","updated":"2016-01-18 15:54:49.000000000","message":"Not a one shot thing. My current idea is to handle the deprecation of the properties/capabilities as we would handle the deprecation of a configuration options, e.g:\n\nWe add the new node.capabilities field and extend the nova driver to look at it, but if it field doesn\u0027t exist (old version of ironic) or it\u0027s empty (not being used yet) the nova driver would fallback and look at properties/capabilities and LOG a warning alerting operators that the path properties/capabilities is deprecated and they should use the node.capabilities.\n\nWe can keep this behavior for few releases (1 or 2 cycles) and give operators the time to migrate their properties/capabilities to the new node.capabilities. Once that period expire we can then remove the fallback code bits from the nova driver.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":158,"context_line":""},{"line_number":159,"context_line":"* Add `node_capabilities` table with a migration."},{"line_number":160,"context_line":"* Add the ``capabilities`` field to the RPC and API objects."},{"line_number":161,"context_line":"* Nova ironic driver additions and modifications."},{"line_number":162,"context_line":"* python-ironicclient additions and modifications."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_23c3c158","line":161,"updated":"2016-01-15 00:14:27.000000000","message":"are you going to need a nova spec, or is a nova bug sufficient?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":158,"context_line":""},{"line_number":159,"context_line":"* Add `node_capabilities` table with a migration."},{"line_number":160,"context_line":"* Add the ``capabilities`` field to the RPC and API objects."},{"line_number":161,"context_line":"* Nova ironic driver additions and modifications."},{"line_number":162,"context_line":"* python-ironicclient additions and modifications."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_55d9ab55","line":161,"in_reply_to":"da6ed579_23c3c158","updated":"2016-01-15 14:33:50.000000000","message":"I would like to think that a bug is sufficient, this only affects the ironic virt driver and is a minimal change (only change the function that parses the capabilities from properties) so I hope a spec is not needed in nova for this work.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f3bb2c06ac6af172b5458abb57fb89cac7c0dd6","unresolved":false,"context_lines":[{"line_number":175,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"Add a migration script for DB."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Documentation Impact"},{"line_number":180,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":181,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_099f3c04","line":178,"updated":"2016-01-18 15:25:24.000000000","message":"We\u0027ve always said upgrade ironic first, then nova.\n\nI also like the sound of keeping both fields working for a bit, to give people time to adjust.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dc7cd437d04068d53eb8808647884c55e1d930a6","unresolved":false,"context_lines":[{"line_number":175,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"Add a migration script for DB."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Documentation Impact"},{"line_number":180,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":181,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_c3b985cd","line":178,"updated":"2016-01-15 00:14:27.000000000","message":"will the migration script move whatever (if anything) is at a node\u0027s properties[\u0027capabilities\u0027) to the new table and delete properties[\u0027capabilities\u0027], or will it put some marker in properties[\u0027capabilities\u0027] to indicate/grab the info from node.capabilities?\n\nThe backwards compatibility worries me, esp if we need to deprecate properties[\u0027capabilities\u0027] first. People may have scripts etc that deal with capabilities via node.properties[\u0027capabilities\u0027] and we don\u0027t want to break those with this change.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"df9c8eddd08c6dace923f29ba85a67fefc539370","unresolved":false,"context_lines":[{"line_number":175,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"Add a migration script for DB."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Documentation Impact"},{"line_number":180,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":181,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_dffd563c","line":178,"in_reply_to":"da6ed579_099f3c04","updated":"2016-01-18 15:54:49.000000000","message":"@Ruby, I would prefer that we do not go with 1) or 2) bcause in reality we will never forbit someone to create a key called \"capabilities\" in properties. The properties field is a JSON and operators should be allowed to set any key/value pairs they want there (even if Ironic only look at few of those).\n\nSo, I would rather allow operators to keep using that properties/capabilities path for some time to add capabilities to their nodes, but let them know that new versions of the nova virt driver will stop looking at that path and instead will look at node.capabilities.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f5e59f73ba946f63acb6691476ba5b4938686045","unresolved":false,"context_lines":[{"line_number":175,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"Add a migration script for DB."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Documentation Impact"},{"line_number":180,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":181,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_50295d88","line":178,"in_reply_to":"da6ed579_30d68528","updated":"2016-01-18 14:36:42.000000000","message":"I was thinking that ironic code:\n1. if updating properties/capabilities will log warning and update node.capabilities instead?\n2. if accessing properties/capabilities. I don\u0027t think we can really detect that the user is doing this. So it is backwards incompatible in the sense that if the user does an \u0027ironic node-show\u0027, they won\u0027t see properties[\u0027capabilities\u0027]. Are we going to need to do a microversion bump for this?\n\nOH. I guess regardless of the above, cuz we added a node.capabilities, we\u0027ll need an API version bump anyway.\n\nI was thinking of non-backwards-compat for non-nova clients.\n\nwrt nova: I have forgotten. Do we document how to upgrade, is it ironic first, then nova, or vice versa? I\u0027m not sure it makes sense for nova driver to log a warning since it is the user/client but maybe it does; I can\u0027t recall what we\u0027ve done wrt nova-ironic-driver \u0026 deprecations in the past.","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e71e41c368dd54a66f28dc4828133360ecbf23e6","unresolved":false,"context_lines":[{"line_number":175,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"Add a migration script for DB."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Documentation Impact"},{"line_number":180,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":181,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"da6ed579_30d68528","line":178,"in_reply_to":"da6ed579_c3b985cd","updated":"2016-01-15 14:33:50.000000000","message":"My idea was to keep both working for a while to give operators some time to migrate. Updating properties[\u0027capabilities\u0027] will log a warning message saying it\u0027s deprecated.\n\nThe nova driver will keep looking ta both fields for capabilities, it first try to get it from node.capabilities, if not found or empty it then look at properties[\u0027capabilities\u0027] (and also log a warning saying its deprecated and will be removed later)\n\nWhat do you think?","commit_id":"dfdbf62d674d50026420a5be891c465310104bfd"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    value VARCHAR(255) NOT NULL,"},{"line_number":59,"context_line":"    PRIMARY KEY (node_id, capability),"},{"line_number":60,"context_line":"    FOREIGN KEY (node_id),"},{"line_number":61,"context_line":"    INDEX (name)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Both the capability name and value should be defined as a string no"},{"line_number":64,"context_line":"longer than 255 characters in length which is the maximum allowed in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_691dd3bc","line":61,"updated":"2016-01-19 01:27:58.000000000","message":"I guess this is s/name/capability/ too","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    value VARCHAR(255) NOT NULL,"},{"line_number":59,"context_line":"    PRIMARY KEY (node_id, capability),"},{"line_number":60,"context_line":"    FOREIGN KEY (node_id),"},{"line_number":61,"context_line":"    INDEX (name)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Both the capability name and value should be defined as a string no"},{"line_number":64,"context_line":"longer than 255 characters in length which is the maximum allowed in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_75302b57","line":61,"in_reply_to":"ba63e191_691dd3bc","updated":"2016-01-19 12:21:11.000000000","message":"ops forgot this too :-(","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"7d1188dfdc2d7ae3d514581856ef872bfaac9261","unresolved":false,"context_lines":[{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Both the capability name and value should be defined as a string no"},{"line_number":64,"context_line":"longer than 255 characters in length which is the maximum allowed in"},{"line_number":65,"context_line":"the extra-spec field of the flavors."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* A new field called ``capabilities`` will be added to the"},{"line_number":68,"context_line":"  ``ironic.objects.nodes`` object, the value of this field"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a5de9d1_eea50c04","line":65,"updated":"2016-01-28 14:31:06.000000000","message":"I know that some people want capabilities with multiple values. Do we plan to support these?","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":110,"context_line":".. note::"},{"line_number":111,"context_line":"   The update/removal of the capabilities in the \"ironic\" CLI does not"},{"line_number":112,"context_line":"   require any syntax change since the CLI accepts arbritary paths to"},{"line_number":113,"context_line":"   update the resources fields."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"\"openstack baremetal\" CLI"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_69f9534d","line":113,"updated":"2016-01-19 01:27:58.000000000","message":"It is worth mentioning that the path changes from properties/capabilities to capabilities/, right?","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":110,"context_line":".. note::"},{"line_number":111,"context_line":"   The update/removal of the capabilities in the \"ironic\" CLI does not"},{"line_number":112,"context_line":"   require any syntax change since the CLI accepts arbritary paths to"},{"line_number":113,"context_line":"   update the resources fields."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"\"openstack baremetal\" CLI"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_7017d9a3","line":113,"in_reply_to":"ba63e191_69f9534d","updated":"2016-01-19 12:21:11.000000000","message":"Done","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":116,"context_line":"\"openstack baremetal\" CLI"},{"line_number":117,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* openstack baremetal create"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Key/value pair describing the capabilities of the"},{"line_number":122,"context_line":"                             node. Can be specified multiple times."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_492fafa1","line":119,"updated":"2016-01-19 01:27:58.000000000","message":"openstack baremetal node create\n\n(http://specs.openstack.org/openstack/ironic-specs/specs/approved/ironicclient-osc-plugin.html#openstack-baremetal-node)","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":116,"context_line":"\"openstack baremetal\" CLI"},{"line_number":117,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* openstack baremetal create"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Key/value pair describing the capabilities of the"},{"line_number":122,"context_line":"                             node. Can be specified multiple times."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_100c5d93","line":119,"in_reply_to":"ba63e191_492fafa1","updated":"2016-01-19 12:21:11.000000000","message":"Done","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* openstack baremetal create"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Key/value pair describing the capabilities of the"},{"line_number":122,"context_line":"                             node. Can be specified multiple times."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* openstack baremetal set"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_94137a5c","line":121,"updated":"2016-01-19 01:27:58.000000000","message":"in osc, we have --property instead of properties, so I think it should be \u0027capability\u0027.","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* openstack baremetal create"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Key/value pair describing the capabilities of the"},{"line_number":122,"context_line":"                             node. Can be specified multiple times."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* openstack baremetal set"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_9077ed01","line":121,"in_reply_to":"ba63e191_94137a5c","updated":"2016-01-19 12:21:11.000000000","message":"Oh indeed...\n\n/me thinks OSC is a bit odd","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":121,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Key/value pair describing the capabilities of the"},{"line_number":122,"context_line":"                             node. Can be specified multiple times."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* openstack baremetal set"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Capabilities to set/update on the node. Can be"},{"line_number":127,"context_line":"                             specified multiple times."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_e916a354","line":124,"updated":"2016-01-19 01:27:58.000000000","message":"s/baremetal/baremetal node/","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":121,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Key/value pair describing the capabilities of the"},{"line_number":122,"context_line":"                             node. Can be specified multiple times."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* openstack baremetal set"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Capabilities to set/update on the node. Can be"},{"line_number":127,"context_line":"                             specified multiple times."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_105a1d84","line":124,"in_reply_to":"ba63e191_e916a354","updated":"2016-01-19 12:21:11.000000000","message":"Done","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":126,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Capabilities to set/update on the node. Can be"},{"line_number":127,"context_line":"                             specified multiple times."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"* openstack baremetal unset"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Capabilities to unset on the node. Can be"},{"line_number":132,"context_line":"                             specified multiple times."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_890cc743","line":129,"updated":"2016-01-19 01:27:58.000000000","message":"s/baremetal/baremetal node/","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":126,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Capabilities to set/update on the node. Can be"},{"line_number":127,"context_line":"                             specified multiple times."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"* openstack baremetal unset"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"  --capabilities \u003ckey\u003dvalue\u003e Capabilities to unset on the node. Can be"},{"line_number":132,"context_line":"                             specified multiple times."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_305f2174","line":129,"in_reply_to":"ba63e191_890cc743","updated":"2016-01-19 12:21:11.000000000","message":"Done","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":143,"context_line":"The Nova ironic driver should be modified to look at the new node\u0027s"},{"line_number":144,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":145,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":146,"context_line":"``capabilities`` field or it\u0027s empty, the driver should try to find the"},{"line_number":147,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_541ae218","line":146,"updated":"2016-01-19 01:27:58.000000000","message":"if a node.capabilities field exists, would ironic have it be empty and have the capabilities info at node.properties[\u0027capabilities\u0027]? it seems to me that if it exists, it should be populated and node.properties[\u0027capabilities\u0027] shouldn\u0027t exist.","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":143,"context_line":"The Nova ironic driver should be modified to look at the new node\u0027s"},{"line_number":144,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":145,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":146,"context_line":"``capabilities`` field or it\u0027s empty, the driver should try to find the"},{"line_number":147,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_d6879e5f","line":146,"in_reply_to":"ba63e191_541ae218","updated":"2016-01-19 12:21:11.000000000","message":"Not sure I got the question 100% but...\n\nSince this spec proposes giving time to operators to adapt their nodes to the new nodes.capabilities field it\u0027s totally possible that node.capabilies exist but it\u0027s empty and the node\u0027s properties/capabilities is path holding the capabilities of the node (This scenario is what gives the operators time to migrate).\n\nThis is a fallback mechanism, try to find it in one path, if it\u0027s not there try another. But this \"try another\" will be removed in the future, so yes, once those fallback bits are removed from the nova driver it will only look at the node.capabilities path.","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"4907294c268fe5d272a8a63f9b0a0f2710de6c85","unresolved":false,"context_lines":[{"line_number":143,"context_line":"The Nova ironic driver should be modified to look at the new node\u0027s"},{"line_number":144,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":145,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":146,"context_line":"``capabilities`` field or it\u0027s empty, the driver should try to find the"},{"line_number":147,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_55a05290","line":146,"in_reply_to":"ba63e191_d6879e5f","updated":"2016-01-20 05:42:03.000000000","message":"Lucas, \n\nJust wanted to confirm that the fallback mechanism is invoked only if the properties/capabilities field is empty and not when node.capabilities field has some capabilities but not the one being looked for.\n\nEx: If the node has both node.capabilities and node.properties/capabilities.\n       node.capabilities\u003d{ \u0027a\u0027: \u002710\u0027, \u0027b\u0027: \u002720\u0027 }\n       node.properties/capabilities\u003d\u0027c:\u002730\u0027\n\nIn above example if Nova flavor were to have \n    nova flavor-key myflavor set capabilities:c\u003d\"30\"\nWill not result in selection of this Node as filtering would happen based on node.capabilities only.","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"7d1188dfdc2d7ae3d514581856ef872bfaac9261","unresolved":false,"context_lines":[{"line_number":144,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":145,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":146,"context_line":"``capabilities`` field or it\u0027s empty, the driver should try to find the"},{"line_number":147,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Security impact"},{"line_number":150,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a5de9d1_0ea988df","line":147,"updated":"2016-01-28 14:31:06.000000000","message":"Is it possible we make /properties/capabilities an opaque link to the new table? I.e. when we return /properties, we fill capabilities from this table (+ pre-upgrade values), and when a user writes to /properties/capabilities, we silently redirect the request to node_capabilities?","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"7b87595eb54428a812ae8b2739604dd16ef17e52","unresolved":false,"context_lines":[{"line_number":144,"context_line":"capabilities field when scheduling the node. This change has to"},{"line_number":145,"context_line":"be backward compatible, therefore, if the node do not have the"},{"line_number":146,"context_line":"``capabilities`` field or it\u0027s empty, the driver should try to find the"},{"line_number":147,"context_line":"capabilities at the node\u0027s properties/capabilities as before."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"Security impact"},{"line_number":150,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"bae84128_2cb28e4c","line":147,"in_reply_to":"7a5de9d1_0ea988df","updated":"2016-02-23 08:56:57.000000000","message":"what about handle this by adding a workaround in API without affect DB model?","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"4907294c268fe5d272a8a63f9b0a0f2710de6c85","unresolved":false,"context_lines":[{"line_number":192,"context_line":"  the new table."},{"line_number":193,"context_line":"* Add the ``capabilities`` field to the RPC and API objects."},{"line_number":194,"context_line":"* Nova ironic driver additions and modifications."},{"line_number":195,"context_line":"* \"ironic\" and \"openstack baremetal\" CLIs additions and modifications."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Dependencies"},{"line_number":198,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_354d9e3e","line":195,"updated":"2016-01-20 05:42:03.000000000","message":"Also we need to start using the node/capabilities in the Ironic code.\nWe use driver.utils.get_node_capability() at some places within Ironic. \n\ndriver.utils.get_node_capability() should first check node.capabilities and then fallback to node.properties[\u0027capabilities\u0027] if node.capabilities is empty.","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f792a2677d6f4f823094012464dfa775e5428b1f","unresolved":false,"context_lines":[{"line_number":222,"context_line":"  node.properties/capabilities is updated and also when the nova virt"},{"line_number":223,"context_line":"  driver have to fallback to the properties/capabilities (as described in"},{"line_number":224,"context_line":"  the paragraph above)."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"Documentation Impact"},{"line_number":227,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":228,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_944b7a2b","line":225,"updated":"2016-01-19 01:27:58.000000000","message":"I\u0027d like this to be clearer.\n\nThe migration script is to be run by an operator when they upgrade to the release that has this feature, right? Or do you mean they run the migration script when they feel like it?\n\nSo while it is backwards compatible -- hmm, we need to distinguish this. Won\u0027t we always have to support properties/capabilities due to microversioning? It is just that node.properties/capabilities OR node.capabilities (depending on microversion) will be populated from the new db table.\n\nAnd the only time we would log something is if the microversion was for using node.capabilities but the user is using properties/capabilities? And even if they did this (with the new microversion), if the user then did an \u0027ironic node-show\u0027, they wouldn\u0027t see node.properties[\u0027capabililities\u0027] but they\u0027d see node.capabilities, right?","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a52e5d41cfab07ca289b31e4e38435c9323d0749","unresolved":false,"context_lines":[{"line_number":222,"context_line":"  node.properties/capabilities is updated and also when the nova virt"},{"line_number":223,"context_line":"  driver have to fallback to the properties/capabilities (as described in"},{"line_number":224,"context_line":"  the paragraph above)."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"Documentation Impact"},{"line_number":227,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":228,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba63e191_d6f31e72","line":225,"in_reply_to":"ba63e191_944b7a2b","updated":"2016-01-19 12:21:11.000000000","message":"The migration script will be run when they upgrade and will create the new database table.\n\nYes, the consumer of node.properties/capabilities is the Nova driver, and it will be the consumer of the node.capabilities too. As for the API we will always support adding a field called \"capabilities\" in the node\u0027s properties because that\u0027s a JSON file and operators can add any key/value pairs they want there.\n\nNow, the real backward compatibility layer is in Nova. The nova driver uses a specific version of the Ironic API (current 1.9 because it\u0027s implicit in the ironicclient, and we agreed to pin it to a specific version [0] explicitly too). So by \"backward compatible\" here I mean, updating nova to use a the new version of the API which contain the node.capabilities field, but also make it fallback and look at node.properties/capabilities in case the other field is empty.\n\nAs for the log, yes we probably should only log a warning if the user is using a version of the API that contains the node.capabilities field.\n\nFor the nova-show, Ironic will just show things as-is. We can\u0027t forbid someone to create a field called \"capabilities\" inside properties. So Ironic will just show things as-is, if node.capabilities is fulfilled it will show it and if node.properties/capabilities is fulfilled Ironic will show it too (it\u0027s not mutual exclusive)\n\n[0] https://review.openstack.org/#/c/221848/","commit_id":"2b22f0a13c46aabbbb01f778da83e555142f4ae0"}]}
