)]}'
{"specs/liberty/nodes-tagging.rst":[{"author":{"_account_id":11042,"name":"chenglch","email":"chenglch@cn.ibm.com","username":"chenglch"},"change_message_id":"c3f86ea8a7479b64b60c54369f76136030628c6a","unresolved":false,"context_lines":[{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"},{"line_number":23,"context_line":"so that every flavor can be bound to some group of nodes."},{"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":1,"id":"7a016987_b22779b5","line":23,"updated":"2015-05-18 05:56:31.000000000","message":"Now, ironic driver in nova will update the resource information for hypervisor from properties/capabilities. How to update the tag resource for nova hypervisor?","commit_id":"8a592b0813254d03b417df028a1c331f06b4d610"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e7f708dff45985a0759cff5c1234380b0a902e86","unresolved":false,"context_lines":[{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"},{"line_number":23,"context_line":"so that every flavor can be bound to some group of nodes."},{"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":1,"id":"7a016987_cd325610","line":23,"in_reply_to":"7a016987_b22779b5","updated":"2015-05-18 07:39:43.000000000","message":"hi chenglch, thanks for pointing out this,  we can also store node.tag info like properties/capabilities in nodes_extra_specs for nova hypervisor when updating resources.","commit_id":"8a592b0813254d03b417df028a1c331f06b4d610"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"76b94ddab637b3ba70afbc2dde539cb6f5e282aa","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Data model impact"},{"line_number":42,"context_line":"-----------------"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"This will add a `tag` field to the `node` table, with an accompanying"},{"line_number":45,"context_line":"database migration. This field will default to NULL, which will also"},{"line_number":46,"context_line":"be the value when there is no tag."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a016987_476f57c5","line":44,"updated":"2015-05-18 15:15:53.000000000","message":"Please specify the type of new DB field and limitations for tag string.","commit_id":"db8bd82edf4e0069a29d8758817e8279e40b629c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"7d0cf38c27c3d40db33a876c23a0f2d39ab2287b","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Data model impact"},{"line_number":42,"context_line":"-----------------"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"This will add a `tag` field to the `node` table, with an accompanying"},{"line_number":45,"context_line":"database migration. This field will default to NULL, which will also"},{"line_number":46,"context_line":"be the value when there is no tag."},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a016987_4c0f6888","line":44,"in_reply_to":"7a016987_476f57c5","updated":"2015-05-20 14:52:08.000000000","message":"Done","commit_id":"db8bd82edf4e0069a29d8758817e8279e40b629c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"76b94ddab637b3ba70afbc2dde539cb6f5e282aa","unresolved":false,"context_lines":[{"line_number":54,"context_line":"* PATCH /v1/nodes"},{"line_number":55,"context_line":"* GET /v1/nodes/validate"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"The following APIs will add in a new response body field named \"tag\":"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* GET /v1/nodes"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a016987_47b517ec","line":57,"updated":"2015-05-18 15:15:53.000000000","message":"And I think we should use tag also as filter parameter for get nodes.","commit_id":"db8bd82edf4e0069a29d8758817e8279e40b629c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"7d0cf38c27c3d40db33a876c23a0f2d39ab2287b","unresolved":false,"context_lines":[{"line_number":54,"context_line":"* PATCH /v1/nodes"},{"line_number":55,"context_line":"* GET /v1/nodes/validate"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"The following APIs will add in a new response body field named \"tag\":"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* GET /v1/nodes"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a016987_ef6b8db7","line":57,"in_reply_to":"7a016987_47b517ec","updated":"2015-05-20 14:52:08.000000000","message":"Done","commit_id":"db8bd82edf4e0069a29d8758817e8279e40b629c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"76b94ddab637b3ba70afbc2dde539cb6f5e282aa","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* Add `tag` to the nodes table with a migration."},{"line_number":120,"context_line":"* Update object Node."},{"line_number":121,"context_line":"* REST API additions and modifications."},{"line_number":122,"context_line":"* python-ironicclient additions and modifications."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a016987_67ba53c2","line":121,"updated":"2015-05-18 15:15:53.000000000","message":"And we should add/modify methods in DB API for patch/delete nodes by tag in one DB transaction.","commit_id":"db8bd82edf4e0069a29d8758817e8279e40b629c"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"7d0cf38c27c3d40db33a876c23a0f2d39ab2287b","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* Add `tag` to the nodes table with a migration."},{"line_number":120,"context_line":"* Update object Node."},{"line_number":121,"context_line":"* REST API additions and modifications."},{"line_number":122,"context_line":"* python-ironicclient additions and modifications."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7a016987_f457e457","line":121,"in_reply_to":"7a016987_67ba53c2","updated":"2015-05-20 14:52:08.000000000","message":"Done","commit_id":"db8bd82edf4e0069a29d8758817e8279e40b629c"},{"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":"4ef7371c993fd98fb2f4f0bd7986fe5a655a91d8","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tag field for every node, which can be used to"},{"line_number":19,"context_line":"devide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_227bc27c","line":19,"updated":"2015-05-22 18:22:21.000000000","message":"nit: s/devide/divide/","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"c0a2ba8843dd2cc0dcdeab0ae185babc5a5502ab","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tag field for every node, which can be used to"},{"line_number":19,"context_line":"devide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_84003035","line":19,"in_reply_to":"7a016987_227bc27c","updated":"2015-05-25 03:22:43.000000000","message":"Done","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"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":"4ef7371c993fd98fb2f4f0bd7986fe5a655a91d8","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"},{"line_number":23,"context_line":"so that every flavor can be bound to some group of nodes. this need"},{"line_number":24,"context_line":"to change nova node resources tracker to store node.tag info like"},{"line_number":25,"context_line":"properties/capabilities."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_62853a58","line":24,"updated":"2015-05-22 18:22:21.000000000","message":"If this requires a change in the Nova driver, can you link a blueprint/bug/spec from there for that side of the change?","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"c0a2ba8843dd2cc0dcdeab0ae185babc5a5502ab","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"},{"line_number":23,"context_line":"so that every flavor can be bound to some group of nodes. this need"},{"line_number":24,"context_line":"to change nova node resources tracker to store node.tag info like"},{"line_number":25,"context_line":"properties/capabilities."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_04c200e9","line":24,"in_reply_to":"7a016987_62853a58","updated":"2015-05-25 03:22:43.000000000","message":"thanks Jay,  I mean the tag information can be used for nova but  not required. maybe we can change nova side later.","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"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":"4ef7371c993fd98fb2f4f0bd7986fe5a655a91d8","unresolved":false,"context_lines":[{"line_number":36,"context_line":"Alternatives"},{"line_number":37,"context_line":"------------"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Saving tag info in the `extra` field of the `node` table."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Data model impact"},{"line_number":42,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_02f566eb","line":39,"updated":"2015-05-22 18:22:21.000000000","message":"This isn\u0027t even a real alternative, because I don\u0027t think you can schedule based on node.extra.","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"c0a2ba8843dd2cc0dcdeab0ae185babc5a5502ab","unresolved":false,"context_lines":[{"line_number":36,"context_line":"Alternatives"},{"line_number":37,"context_line":"------------"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Saving tag info in the `extra` field of the `node` table."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Data model impact"},{"line_number":42,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_84aef02b","line":39,"in_reply_to":"7a016987_02f566eb","updated":"2015-05-25 03:22:43.000000000","message":"yes, will remove the alternatives.","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"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":"4ef7371c993fd98fb2f4f0bd7986fe5a655a91d8","unresolved":false,"context_lines":[{"line_number":44,"context_line":"This will add a `tag` field to the `node` table of string type, with"},{"line_number":45,"context_line":"an accompanying database migration. This field will default to NULL,"},{"line_number":46,"context_line":"which will also be the value when there is no tag. A tag should be"},{"line_number":47,"context_line":"defined as a Unicode bytestring no longer than 60 bytes in length."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_42d6be4f","line":47,"updated":"2015-05-22 18:22:21.000000000","message":"How do you intend on storing multiple tags for the same node? Is that explictly out of scope? If so, you should say so.","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"c0a2ba8843dd2cc0dcdeab0ae185babc5a5502ab","unresolved":false,"context_lines":[{"line_number":44,"context_line":"This will add a `tag` field to the `node` table of string type, with"},{"line_number":45,"context_line":"an accompanying database migration. This field will default to NULL,"},{"line_number":46,"context_line":"which will also be the value when there is no tag. A tag should be"},{"line_number":47,"context_line":"defined as a Unicode bytestring no longer than 60 bytes in length."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a016987_e46b64ef","line":47,"in_reply_to":"7a016987_42d6be4f","updated":"2015-05-25 03:22:43.000000000","message":"thanks Jay, will change this to support storing multiple tags for the same node.","commit_id":"61e53f4282fb6365740005d666e939bebe8b307e"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"16020357909b39d5f7f8b6ea6dbfcddf7b2b5dca","unresolved":false,"context_lines":[{"line_number":46,"context_line":"value when there is no tag."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"A tag should be defined as a Unicode bytestring no longer than 60"},{"line_number":49,"context_line":"bytes in length."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_2056735c","line":49,"updated":"2015-05-28 20:00:06.000000000","message":"60 bytes per tag or is this the total for all tags?","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e0cd77cd214f2ff93af5d63e9fb2d17ca104f16a","unresolved":false,"context_lines":[{"line_number":46,"context_line":"value when there is no tag."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"A tag should be defined as a Unicode bytestring no longer than 60"},{"line_number":49,"context_line":"bytes in length."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_c4132cb7","line":49,"in_reply_to":"7a016987_2056735c","updated":"2015-05-29 00:29:31.000000000","message":"60 bytes per tag, tags is a list of strings.","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"16020357909b39d5f7f8b6ea6dbfcddf7b2b5dca","unresolved":false,"context_lines":[{"line_number":65,"context_line":"Add \"tag\" as a filter parameter for get nodes:"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* GET /v1/nodes/?tags\u003dxxx"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"RPC API impact"},{"line_number":70,"context_line":"--------------"},{"line_number":71,"context_line":"None"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_40b28fe6","line":68,"updated":"2015-05-28 20:00:06.000000000","message":"we should add a note about micro version bump","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e0cd77cd214f2ff93af5d63e9fb2d17ca104f16a","unresolved":false,"context_lines":[{"line_number":65,"context_line":"Add \"tag\" as a filter parameter for get nodes:"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* GET /v1/nodes/?tags\u003dxxx"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"RPC API impact"},{"line_number":70,"context_line":"--------------"},{"line_number":71,"context_line":"None"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_440e1c3c","line":68,"in_reply_to":"7a016987_40b28fe6","updated":"2015-05-29 00:29:31.000000000","message":"sure.","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"16020357909b39d5f7f8b6ea6dbfcddf7b2b5dca","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Nova driver impact"},{"line_number":88,"context_line":"------------------"},{"line_number":89,"context_line":"None"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Security impact"},{"line_number":92,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_9300e302","line":89,"updated":"2015-05-28 20:00:06.000000000","message":"in the Problem description section you mention changes. I see some comments about this on earlier revs of this spec. I think it is worth pointing out in this secretion that the nova changes are not being considered as part of this spec, and may be addressed at a later time.","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e0cd77cd214f2ff93af5d63e9fb2d17ca104f16a","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Nova driver impact"},{"line_number":88,"context_line":"------------------"},{"line_number":89,"context_line":"None"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Security impact"},{"line_number":92,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_e41aa8c5","line":89,"in_reply_to":"7a016987_9300e302","updated":"2015-05-29 00:29:31.000000000","message":"ok, thanks Chris, will add it in the coming patch set.","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"16020357909b39d5f7f8b6ea6dbfcddf7b2b5dca","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Performance Impact"},{"line_number":104,"context_line":"------------------"},{"line_number":105,"context_line":"None"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"Other deployer impact"},{"line_number":108,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_20dd53e0","line":105,"updated":"2015-05-28 20:00:06.000000000","message":"I can foresee some impact searching a list field when running a list nodes with a tag filter.","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e0cd77cd214f2ff93af5d63e9fb2d17ca104f16a","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Performance Impact"},{"line_number":104,"context_line":"------------------"},{"line_number":105,"context_line":"None"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"Other deployer impact"},{"line_number":108,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7a016987_ea66f1b9","line":105,"in_reply_to":"7a016987_20dd53e0","updated":"2015-05-29 00:29:31.000000000","message":"yes, we need to search the tags list to query the required tag filter.","commit_id":"de1da30296433ba0c6e4245e3c85f5c92cb74074"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"925691af97ddc25581cac67fd15a31560c0bc857","unresolved":false,"context_lines":[{"line_number":40,"context_line":"Data model impact"},{"line_number":41,"context_line":"-----------------"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"This will add a `tags` field to the `node` table of type"},{"line_number":44,"context_line":"`ironic.objects.utils.list_or_none`, with an accompanying database"},{"line_number":45,"context_line":"migration. This field will default to NULL, which will also be the"},{"line_number":46,"context_line":"value when there is no tag."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a016987_951ac07b","line":43,"updated":"2015-06-01 09:33:12.000000000","message":"I disagree with using a field for it. If you create a separate table, you\u0027ll be able to do fast lookups of nodes by tag, otherwise the only option will be full scan.\n\nUnfortunately it might require a separate API for adding/removing tags... Not sure though, maybe we can implement it as part of existing API","commit_id":"5837efdc2610ca3d4f274e59a17e54cc583887e2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"667d7fcc0579fa5c093cd9d3e56292a6d3a912ab","unresolved":false,"context_lines":[{"line_number":40,"context_line":"Data model impact"},{"line_number":41,"context_line":"-----------------"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"This will add a `tags` field to the `node` table of type"},{"line_number":44,"context_line":"`ironic.objects.utils.list_or_none`, with an accompanying database"},{"line_number":45,"context_line":"migration. This field will default to NULL, which will also be the"},{"line_number":46,"context_line":"value when there is no tag."}],"source_content_type":"text/x-rst","patch_set":6,"id":"5afe65bd_4dc11b2e","line":43,"in_reply_to":"7a016987_951ac07b","updated":"2015-06-02 03:02:59.000000000","message":"thanks Dmitry, yes it\u0027s better to create a separate tags table. will add a TagList object.","commit_id":"5837efdc2610ca3d4f274e59a17e54cc583887e2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"925691af97ddc25581cac67fd15a31560c0bc857","unresolved":false,"context_lines":[{"line_number":46,"context_line":"value when there is no tag."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"A tag should be defined as a Unicode bytestring no longer than 60"},{"line_number":49,"context_line":"bytes in length."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a016987_751d0472","line":49,"updated":"2015-06-01 09:33:12.000000000","message":"Where does this 60 come from? Why not e.g. 255?","commit_id":"5837efdc2610ca3d4f274e59a17e54cc583887e2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"667d7fcc0579fa5c093cd9d3e56292a6d3a912ab","unresolved":false,"context_lines":[{"line_number":46,"context_line":"value when there is no tag."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"A tag should be defined as a Unicode bytestring no longer than 60"},{"line_number":49,"context_line":"bytes in length."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5afe65bd_8dcef358","line":49,"in_reply_to":"7a016987_751d0472","updated":"2015-06-02 03:02:59.000000000","message":"This length is entirely arbitrary, I think tag should be a simple string.  can be changed to 255 if you like.","commit_id":"5837efdc2610ca3d4f274e59a17e54cc583887e2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"925691af97ddc25581cac67fd15a31560c0bc857","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Add \"tag\" as a filter parameter for get nodes:"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* GET /v1/nodes/?tags\u003dxxx"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"Should bump api microversion to include these."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a016987_5510c858","line":67,"updated":"2015-06-01 09:33:12.000000000","message":"That\u0027s where you\u0027ll need a separate table for the operation to be fast","commit_id":"5837efdc2610ca3d4f274e59a17e54cc583887e2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0540173a36c55c3aadd7092134bde316c5419ffd","unresolved":false,"context_lines":[{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"},{"line_number":23,"context_line":"so that every flavor can be bound to some group of nodes. this need"},{"line_number":24,"context_line":"to change nova node resources tracker to store node.tag info like"},{"line_number":25,"context_line":"properties/capabilities."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"},{"line_number":28,"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":9,"id":"5afe65bd_033886d2","line":25,"updated":"2015-06-02 12:51:54.000000000","message":"I think it\u0027s misuse of tags. For nova we already have properties/capabilities. I expected tags to be useful e.g. for some Ironic GUI or automation scripts.","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"86b8414bff7d055184d2a8d3e97e784e8430621b","unresolved":false,"context_lines":[{"line_number":22,"context_line":"Also the same tag can be stored in extra metadata for Nova flavor,"},{"line_number":23,"context_line":"so that every flavor can be bound to some group of nodes. this need"},{"line_number":24,"context_line":"to change nova node resources tracker to store node.tag info like"},{"line_number":25,"context_line":"properties/capabilities."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"},{"line_number":28,"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":9,"id":"5afe65bd_0b5f7873","line":25,"in_reply_to":"5afe65bd_033886d2","updated":"2015-06-03 02:30:23.000000000","message":"ok, will remove this.","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0540173a36c55c3aadd7092134bde316c5419ffd","unresolved":false,"context_lines":[{"line_number":51,"context_line":"For the database schema, the following table constructs would suffice ::"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    CREATE TABLE tags ("},{"line_number":54,"context_line":"        resource_id CHAR(32) NOT NULL PRIMARY KEY,"},{"line_number":55,"context_line":"        tag VARCHAR(255) NOT NULL CHARACTER SET utf8"},{"line_number":56,"context_line":"        COLLATION utf8_ci PRIMARY KEY"},{"line_number":57,"context_line":"    );"}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_e3344adf","line":54,"updated":"2015-06-02 12:51:54.000000000","message":"Our of curiosity, judging by \"resource_id\" name: do you expect tags for non-nodes?","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"86b8414bff7d055184d2a8d3e97e784e8430621b","unresolved":false,"context_lines":[{"line_number":51,"context_line":"For the database schema, the following table constructs would suffice ::"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    CREATE TABLE tags ("},{"line_number":54,"context_line":"        resource_id CHAR(32) NOT NULL PRIMARY KEY,"},{"line_number":55,"context_line":"        tag VARCHAR(255) NOT NULL CHARACTER SET utf8"},{"line_number":56,"context_line":"        COLLATION utf8_ci PRIMARY KEY"},{"line_number":57,"context_line":"    );"}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_ab2064f8","line":54,"in_reply_to":"5afe65bd_e3344adf","updated":"2015-06-03 02:30:23.000000000","message":"No, and there\u0027s no way for adding a tag for non-nodes, see REST API below.","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0540173a36c55c3aadd7092134bde316c5419ffd","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    DELETE /v1/nodes/{node_id}/tags/{tag}"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Remove all tags on a node ::"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    DELETE /v1/nodes/{node_id}/tags"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_c3314eee","line":94,"updated":"2015-06-02 12:51:54.000000000","message":"I don\u0027t think it\u0027s very useful API. we may add it later, if there is demand.","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"86b8414bff7d055184d2a8d3e97e784e8430621b","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    DELETE /v1/nodes/{node_id}/tags/{tag}"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Remove all tags on a node ::"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    DELETE /v1/nodes/{node_id}/tags"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_ab93c4f9","line":94,"in_reply_to":"5afe65bd_c3314eee","updated":"2015-06-03 02:30:23.000000000","message":"ok, will remove this if you really don\u0027t like :)","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0540173a36c55c3aadd7092134bde316c5419ffd","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Get all nodes having *both* tag A and tag B::"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Should bump api microversion to include these."},{"line_number":110,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_a34d3274","line":107,"updated":"2015-06-02 12:51:54.000000000","message":"maybe better comma separated values (tag\u003d{tag_a},{tag_b})? not sure how our HTTP engine will work with multiple values of the same param...","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"86b8414bff7d055184d2a8d3e97e784e8430621b","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Get all nodes having *both* tag A and tag B::"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Should bump api microversion to include these."},{"line_number":110,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_62c0342b","line":107,"in_reply_to":"5afe65bd_a34d3274","updated":"2015-06-03 02:30:23.000000000","message":"seems using \u0026 is more common, but I\u0027m not sure about this.","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0540173a36c55c3aadd7092134bde316c5419ffd","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Should bump api microversion to include these."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"RPC API impact"},{"line_number":112,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_83523612","line":109,"updated":"2015-06-02 12:51:54.000000000","message":"I believe we shouldn\u0027t, but maybe that\u0027s only me","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0540173a36c55c3aadd7092134bde316c5419ffd","unresolved":false,"context_lines":[{"line_number":121,"context_line":"Client (CLI) impact"},{"line_number":122,"context_line":"-------------------"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* Add tags CRUD operations commands."},{"line_number":125,"context_line":"* Add tag-list filtering support to node-list command"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_63573a03","line":124,"updated":"2015-06-02 12:51:54.000000000","message":"Could you specify how they are going to look like?","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"86b8414bff7d055184d2a8d3e97e784e8430621b","unresolved":false,"context_lines":[{"line_number":121,"context_line":"Client (CLI) impact"},{"line_number":122,"context_line":"-------------------"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* Add tags CRUD operations commands."},{"line_number":125,"context_line":"* Add tag-list filtering support to node-list command"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Driver API impact"}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_c2fa48bd","line":124,"in_reply_to":"5afe65bd_63573a03","updated":"2015-06-03 02:30:23.000000000","message":"Done","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0540173a36c55c3aadd7092134bde316c5419ffd","unresolved":false,"context_lines":[{"line_number":122,"context_line":"-------------------"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* Add tags CRUD operations commands."},{"line_number":125,"context_line":"* Add tag-list filtering support to node-list command"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Driver API impact"},{"line_number":128,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_435c3e25","line":125,"updated":"2015-06-02 12:51:54.000000000","message":"ditto","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"86b8414bff7d055184d2a8d3e97e784e8430621b","unresolved":false,"context_lines":[{"line_number":122,"context_line":"-------------------"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"* Add tags CRUD operations commands."},{"line_number":125,"context_line":"* Add tag-list filtering support to node-list command"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Driver API impact"},{"line_number":128,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"5afe65bd_a2f50ccc","line":125,"in_reply_to":"5afe65bd_435c3e25","updated":"2015-06-03 02:30:23.000000000","message":"Done","commit_id":"e395b186e4984d957ce3e01fcb8dcb4d122659a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d821c9a84bcce0b3a2078fa7846d3a9fe1373dd9","unresolved":false,"context_lines":[{"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"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tags field for every node, which can be used to"},{"line_number":19,"context_line":"divide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_340c793a","line":18,"updated":"2015-06-04 11:48:07.000000000","message":"Hmmm. I can\u0027t :) I mean, not right now, when our ports are not very useful on their own, just as additional table for nodes.","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"54825306d607b67bb84182bc1a4d2546ab1a9414","unresolved":false,"context_lines":[{"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"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tags field for every node, which can be used to"},{"line_number":19,"context_line":"divide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_d302fb0a","line":18,"updated":"2015-06-03 18:16:19.000000000","message":"I could even see value to adding tags to ports as well.","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e67c473c3290a5143a926c6f8e65cefaefe55983","unresolved":false,"context_lines":[{"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"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tags field for every node, which can be used to"},{"line_number":19,"context_line":"divide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"3afb71cf_5ef2a0d3","line":18,"in_reply_to":"5afe65bd_0675ca30","updated":"2015-06-08 13:47:54.000000000","message":"I think it may be best to wait and see what the neutron integration specification looks like, but keep the possibility of if it occurring as something in mind for down the road so if we opt to do that, it becomes something very easy to implement.","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"58fc9be11645d8b617ffd0a5a1dadf733e004f73","unresolved":false,"context_lines":[{"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"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tags field for every node, which can be used to"},{"line_number":19,"context_line":"divide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_cd9a346e","line":18,"in_reply_to":"5afe65bd_340c793a","updated":"2015-06-04 13:21:46.000000000","message":"The neutron integration should force additional information to go into the ports database, and I can see human readable tags telling me which fabric which port plugs into as valuable... at least from the stand point of someone who has run multiple network distinct network fabrics in the same cabinet.\n\n\"I need to take Bravo network down for an upgrade.... what are all the machines this touches?\"  \"Hi, Ironic, tag list please!\" \"Done.\"","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"03e35b7f1cf5aa95ffa4cfc7e1f8dce2b81e025b","unresolved":false,"context_lines":[{"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"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tags field for every node, which can be used to"},{"line_number":19,"context_line":"divide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_0675ca30","line":18,"in_reply_to":"5afe65bd_888f8a29","updated":"2015-06-04 14:41:54.000000000","message":"hi all, thanks for the comments, as tags use a seperate table contains resource_id, it can be used for any resource. but this specs specifies nodes tagging support, can we add ports tagging after this implemented.","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"61383b233ff8f5e7e5f460d60776e636aeed8414","unresolved":false,"context_lines":[{"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"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Ironic should have tags field for every node, which can be used to"},{"line_number":19,"context_line":"divide the nodes to some groups. then we can do list by tag to"},{"line_number":20,"context_line":"get a group of nodes with same properties like hardware specs."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_888f8a29","line":18,"in_reply_to":"5afe65bd_cd9a346e","updated":"2015-06-04 13:33:20.000000000","message":"hmmm... sounds reasonable, I didn\u0027t think of it.","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d821c9a84bcce0b3a2078fa7846d3a9fe1373dd9","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Should bump api microversion to include these."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"RPC API impact"},{"line_number":103,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_14161d4c","line":100,"updated":"2015-06-04 11:48:07.000000000","message":"-1 to bumping microversion for that\n\n+1 for listing all tags","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"54825306d607b67bb84182bc1a4d2546ab1a9414","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Should bump api microversion to include these."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"RPC API impact"},{"line_number":103,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_733c67e2","line":100,"updated":"2015-06-03 18:16:19.000000000","message":"with my operator hat on I think there may be value to also listing known tags. (IE. GET /v1/nodes/tags)  which would return a unique list of tags known to the system or None. This way a operator could see what tags the system already has.","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"03e35b7f1cf5aa95ffa4cfc7e1f8dce2b81e025b","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"Should bump api microversion to include these."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"RPC API impact"},{"line_number":103,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_a60b968d","line":100,"in_reply_to":"5afe65bd_14161d4c","updated":"2015-06-04 14:41:54.000000000","message":"ok, will list all tags soon","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d821c9a84bcce0b3a2078fa7846d3a9fe1373dd9","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"Add tags CRUD operations commands:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"* ironic tags-list \u003cnode uuid\u003e"},{"line_number":118,"context_line":"* ironic tags \u003cnode uuid\u003e \u003cop\u003e \u003ctag\u003dvalue\u003e"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_f4126156","line":117,"updated":"2015-06-04 11:48:07.000000000","message":"I think it should be node-list-tags","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"58fc9be11645d8b617ffd0a5a1dadf733e004f73","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"Add tags CRUD operations commands:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"* ironic tags-list \u003cnode uuid\u003e"},{"line_number":118,"context_line":"* ironic tags \u003cnode uuid\u003e \u003cop\u003e \u003ctag\u003dvalue\u003e"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_cda8f479","line":117,"in_reply_to":"5afe65bd_f4126156","updated":"2015-06-04 13:21:46.000000000","message":"+1","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"03e35b7f1cf5aa95ffa4cfc7e1f8dce2b81e025b","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"Add tags CRUD operations commands:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"* ironic tags-list \u003cnode uuid\u003e"},{"line_number":118,"context_line":"* ironic tags \u003cnode uuid\u003e \u003cop\u003e \u003ctag\u003dvalue\u003e"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_e6ed0eb8","line":117,"in_reply_to":"5afe65bd_f4126156","updated":"2015-06-04 14:41:54.000000000","message":"Done","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d821c9a84bcce0b3a2078fa7846d3a9fe1373dd9","unresolved":false,"context_lines":[{"line_number":115,"context_line":"Add tags CRUD operations commands:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"* ironic tags-list \u003cnode uuid\u003e"},{"line_number":118,"context_line":"* ironic tags \u003cnode uuid\u003e \u003cop\u003e \u003ctag\u003dvalue\u003e"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_d41be571","line":118,"updated":"2015-06-04 11:48:07.000000000","message":"I think it should be node-update-tags","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"58fc9be11645d8b617ffd0a5a1dadf733e004f73","unresolved":false,"context_lines":[{"line_number":115,"context_line":"Add tags CRUD operations commands:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"* ironic tags-list \u003cnode uuid\u003e"},{"line_number":118,"context_line":"* ironic tags \u003cnode uuid\u003e \u003cop\u003e \u003ctag\u003dvalue\u003e"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_edabb073","line":118,"in_reply_to":"5afe65bd_d41be571","updated":"2015-06-04 13:21:46.000000000","message":"+1","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"03e35b7f1cf5aa95ffa4cfc7e1f8dce2b81e025b","unresolved":false,"context_lines":[{"line_number":115,"context_line":"Add tags CRUD operations commands:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"* ironic tags-list \u003cnode uuid\u003e"},{"line_number":118,"context_line":"* ironic tags \u003cnode uuid\u003e \u003cop\u003e \u003ctag\u003dvalue\u003e"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_46fbc279","line":118,"in_reply_to":"5afe65bd_d41be571","updated":"2015-06-04 14:41:54.000000000","message":"Done","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d821c9a84bcce0b3a2078fa7846d3a9fe1373dd9","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"* ironic node-list --tags \u003ctags\u003e"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Driver API impact"},{"line_number":125,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_b4186976","line":122,"updated":"2015-06-04 11:48:07.000000000","message":"what is \u003ctags\u003e? comma-separated? or maybe you allow several --tags like\n\n ironic node-list --tag tag1 --tag tag2\n\n?","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"03e35b7f1cf5aa95ffa4cfc7e1f8dce2b81e025b","unresolved":false,"context_lines":[{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Add tag-list filtering support to node-list command:"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"* ironic node-list --tags \u003ctags\u003e"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Driver API impact"},{"line_number":125,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"5afe65bd_46050244","line":122,"in_reply_to":"5afe65bd_b4186976","updated":"2015-06-04 14:41:54.000000000","message":"I expect to allow multiple --tag:\n\n  ironic node-list --tag tag1 --tag tag2\n\nwhich one you prefer Dmitry?","commit_id":"40795492bc58aeeed6b4d921db30b18a0c9e45c7"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b84f9ad50ad713261d7953a5f5782dca1abe8427","unresolved":false,"context_lines":[{"line_number":30,"context_line":"Alternatives"},{"line_number":31,"context_line":"------------"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"None"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"Data model impact"},{"line_number":36,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3afb71cf_2ce25ed6","line":33,"updated":"2015-06-05 12:58:20.000000000","message":"Current chassis object is kind of an alternative for grouping nodes.","commit_id":"b29de64e57b63b83f9b01bfd4543d8e4b3af4c4e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b84f9ad50ad713261d7953a5f5782dca1abe8427","unresolved":false,"context_lines":[{"line_number":40,"context_line":"type `ironic.objects.tags.TagList` that would be populated on-demand"},{"line_number":41,"context_line":"(i.e. not eager-loaded)."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"A tag should be defined as a Unicode bytestring no longer than 255"},{"line_number":44,"context_line":"bytes in length."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"For the database schema, the following table constructs would suffice ::"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3afb71cf_0ce7a2e5","line":43,"updated":"2015-06-05 12:58:20.000000000","message":"s/Unicode bytestring/Unicode string/","commit_id":"b29de64e57b63b83f9b01bfd4543d8e4b3af4c4e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b84f9ad50ad713261d7953a5f5782dca1abe8427","unresolved":false,"context_lines":[{"line_number":46,"context_line":"For the database schema, the following table constructs would suffice ::"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    CREATE TABLE tags ("},{"line_number":49,"context_line":"        resource_id CHAR(32) NOT NULL PRIMARY KEY,"},{"line_number":50,"context_line":"        tag VARCHAR(255) NOT NULL CHARACTER SET utf8"},{"line_number":51,"context_line":"        COLLATION utf8_ci PRIMARY KEY"},{"line_number":52,"context_line":"    );"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3afb71cf_eceb26af","line":49,"updated":"2015-06-05 12:58:20.000000000","message":"so, this probably should be just \u0027id\u0027, and be of type \"integer\"\n\nalso I don\u0027t see link to node here","commit_id":"b29de64e57b63b83f9b01bfd4543d8e4b3af4c4e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"2d5a05de88bfede9ab9cfa196d576969c9404b0c","unresolved":false,"context_lines":[{"line_number":46,"context_line":"For the database schema, the following table constructs would suffice ::"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    CREATE TABLE tags ("},{"line_number":49,"context_line":"        resource_id CHAR(32) NOT NULL PRIMARY KEY,"},{"line_number":50,"context_line":"        tag VARCHAR(255) NOT NULL CHARACTER SET utf8"},{"line_number":51,"context_line":"        COLLATION utf8_ci PRIMARY KEY"},{"line_number":52,"context_line":"    );"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3afb71cf_21c0fcdf","line":49,"in_reply_to":"3afb71cf_eceb26af","updated":"2015-06-08 02:31:51.000000000","message":"Dmitry, resource_id is the link to node here, it\u0027s not \u0027tag id\u0027.","commit_id":"b29de64e57b63b83f9b01bfd4543d8e4b3af4c4e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b84f9ad50ad713261d7953a5f5782dca1abe8427","unresolved":false,"context_lines":[{"line_number":125,"context_line":"Add tags CRUD operations commands:"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"* ironic node-list-tags \u003cnode uuid\u003e"},{"line_number":128,"context_line":"* ironic node-update-tags \u003cnode uuid\u003e \u003cop\u003e \u003ctag\u003dvalue\u003e"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"Add tag-list filtering support to node-list command:"},{"line_number":131,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"3afb71cf_ccd18afd","line":128,"updated":"2015-06-05 12:58:20.000000000","message":"this \"\u003dvalue\" part seems not needed, also \u003cop\u003e should be restricted to \"add\" and \"remove\"","commit_id":"b29de64e57b63b83f9b01bfd4543d8e4b3af4c4e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b84f9ad50ad713261d7953a5f5782dca1abe8427","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"Add tag-list filtering support to node-list command:"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"* ironic node-list --tag tag1 --tag tag2"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"Driver API impact"},{"line_number":135,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3afb71cf_acce4e58","line":132,"updated":"2015-06-05 12:58:20.000000000","message":"please state explicitly whether it\u0027s \"AND\" or \"OR\" operation here for 2 tags","commit_id":"b29de64e57b63b83f9b01bfd4543d8e4b3af4c4e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f78b3e542f80ad8a9799e397bdd8cd6b4e9640ba","unresolved":false,"context_lines":[{"line_number":46,"context_line":"For the database schema, the following table constructs would suffice ::"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    CREATE TABLE tags ("},{"line_number":49,"context_line":"        resource_id CHAR(32) NOT NULL PRIMARY KEY,"},{"line_number":50,"context_line":"        tag VARCHAR(255) NOT NULL CHARACTER SET utf8"},{"line_number":51,"context_line":"        COLLATION utf8_ci PRIMARY KEY"},{"line_number":52,"context_line":"    );"}],"source_content_type":"text/x-rst","patch_set":12,"id":"3afb71cf_b6be54d2","line":49,"updated":"2015-06-08 15:51:37.000000000","message":"ok, so it\u0027s node id. node id is integer, not char(32).\n\nhttps://github.com/openstack/ironic/blob/master/ironic/db/sqlalchemy/models.py#L151","commit_id":"9b92a184bf381cd9430aa861c16b093a863b9427"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f78b3e542f80ad8a9799e397bdd8cd6b4e9640ba","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Replace set of tags on a node ::"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    POST /v1/nodes/{node_id}/tags"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"with request body ::"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"3afb71cf_b68c1436","line":72,"updated":"2015-06-08 15:51:37.000000000","message":"Replace or just add? POST is usually used for adding, not replacing.","commit_id":"9b92a184bf381cd9430aa861c16b093a863b9427"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f78b3e542f80ad8a9799e397bdd8cd6b4e9640ba","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Get all nodes having *both* tag A and tag B::"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"RPC API impact"},{"line_number":113,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"3afb71cf_36a02490","line":110,"updated":"2015-06-08 15:51:37.000000000","message":"not sure it\u0027s possible with our http engine, but we may try","commit_id":"9b92a184bf381cd9430aa861c16b093a863b9427"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"252c66716c00505333f7897ca2cad430871cf007","unresolved":false,"context_lines":[{"line_number":46,"context_line":"For the database schema, the following table constructs would suffice ::"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    CREATE TABLE tags ("},{"line_number":49,"context_line":"        resource_id INT(11) NOT NULL PRIMARY KEY,"},{"line_number":50,"context_line":"        tag VARCHAR(255) NOT NULL CHARACTER SET utf8"},{"line_number":51,"context_line":"        COLLATION utf8_ci PRIMARY KEY"},{"line_number":52,"context_line":"    );"}],"source_content_type":"text/x-rst","patch_set":13,"id":"3afb71cf_57da5e4d","line":49,"updated":"2015-06-09 07:35:55.000000000","message":"not sure why it\u0027s INT(11), I will assume just INT..\n\nalso primary key syntax is invalid, but I understand your intentions :)","commit_id":"3d344ca0c0220af953765834338837ef452c2ae1"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"6be8aa71c6216ebd9660e8a0ef364e85f1d7f118","unresolved":false,"context_lines":[{"line_number":46,"context_line":"For the database schema, the following table constructs would suffice ::"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    CREATE TABLE tags ("},{"line_number":49,"context_line":"        resource_id INT(11) NOT NULL PRIMARY KEY,"},{"line_number":50,"context_line":"        tag VARCHAR(255) NOT NULL CHARACTER SET utf8"},{"line_number":51,"context_line":"        COLLATION utf8_ci PRIMARY KEY"},{"line_number":52,"context_line":"    );"}],"source_content_type":"text/x-rst","patch_set":13,"id":"3afb71cf_486cffcf","line":49,"in_reply_to":"3afb71cf_57da5e4d","updated":"2015-06-09 09:17:14.000000000","message":"thanks Dmitry, INT(11) is copied from \u0027id\u0027 in nodes table :)","commit_id":"3d344ca0c0220af953765834338837ef452c2ae1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"252c66716c00505333f7897ca2cad430871cf007","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Get all nodes having a single tag ::"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    GET /v1/nodes?tag\u003d{tag}"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Get all nodes having *both* tag A and tag B::"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"3afb71cf_37db6251","line":106,"updated":"2015-06-09 07:35:55.000000000","message":"note that with your database schema this operation will result in full scan, I suggest inverting the index order, i.e. PRIMARY KEY(tag, resource_id) instead of PRIMARY KEY(resource_id, tag), which is probably what you meant","commit_id":"3d344ca0c0220af953765834338837ef452c2ae1"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"6be8aa71c6216ebd9660e8a0ef364e85f1d7f118","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Get all nodes having a single tag ::"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    GET /v1/nodes?tag\u003d{tag}"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Get all nodes having *both* tag A and tag B::"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"3afb71cf_087a87bd","line":106,"in_reply_to":"3afb71cf_37db6251","updated":"2015-06-09 09:17:14.000000000","message":"thanks Dmitry, will keep tag index order to avoid full scan :)","commit_id":"3d344ca0c0220af953765834338837ef452c2ae1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"252c66716c00505333f7897ca2cad430871cf007","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Get all nodes having *both* tag A and tag B::"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    GET /v1/nodes?tag\u003d{tag_a}\u0026tag\u003d{tag_b}"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"RPC API impact"},{"line_number":113,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"3afb71cf_17e066f9","line":110,"updated":"2015-06-09 07:35:55.000000000","message":"it will be fun to make this an efficient operation... :)","commit_id":"3d344ca0c0220af953765834338837ef452c2ae1"}]}
