)]}'
{"ironic/api/controllers/v1/node.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"9a47e66c3a1ac027c9865b540925c8514c3fff29","unresolved":false,"context_lines":[{"line_number":598,"context_line":"    instance_uuid \u003d types.uuid"},{"line_number":599,"context_line":"    \"\"\"The UUID of the instance in nova-compute\"\"\""},{"line_number":600,"context_line":""},{"line_number":601,"context_line":"    name \u003d wsme.wsattr(types.name)"},{"line_number":602,"context_line":"    \"\"\"The logical name for this node\"\"\""},{"line_number":603,"context_line":""},{"line_number":604,"context_line":"    power_state \u003d wsme.wsattr(wtypes.text, readonly\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_bc0305be","line":601,"updated":"2016-04-21 12:55:52.000000000","message":"ops this is a left over... I was testing implementing the check as part of the \"Name\" WSME object. Should be removed","commit_id":"d2dac4c866cb7b7a45ab5bb4d303614583efa1db"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"146864ed67b12654c1b614bc991e86144b66ee06","unresolved":false,"context_lines":[{"line_number":924,"context_line":"class NodesController(rest.RestController):"},{"line_number":925,"context_line":"    \"\"\"REST controller for Nodes.\"\"\""},{"line_number":926,"context_line":""},{"line_number":927,"context_line":"    states \u003d NodeStatesController()"},{"line_number":928,"context_line":"    \"\"\"Expose the state controller action as a sub-element of nodes\"\"\""},{"line_number":929,"context_line":""},{"line_number":930,"context_line":"    vendor_passthru \u003d NodeVendorPassthruController()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_54f558c9","line":927,"updated":"2016-04-21 17:39:35.000000000","message":"In case we ever add another controller here, please add comments linking to the bug and referencing the constant you\u0027re adding in api_utils.py so that future developers/reviewers understand the implications.","commit_id":"7bc689eede075895dfd5314f67b6a90948fbafd9"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"6d25f8eb7347095e7d74316328b31b268a186937","unresolved":false,"context_lines":[{"line_number":924,"context_line":"class NodesController(rest.RestController):"},{"line_number":925,"context_line":"    \"\"\"REST controller for Nodes.\"\"\""},{"line_number":926,"context_line":""},{"line_number":927,"context_line":"    states \u003d NodeStatesController()"},{"line_number":928,"context_line":"    \"\"\"Expose the state controller action as a sub-element of nodes\"\"\""},{"line_number":929,"context_line":""},{"line_number":930,"context_line":"    vendor_passthru \u003d NodeVendorPassthruController()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_39ed1e8f","line":927,"in_reply_to":"1a122d0e_54f558c9","updated":"2016-04-22 08:31:32.000000000","message":"Oh that\u0027s a great call indeed. Will do, thanks","commit_id":"7bc689eede075895dfd5314f67b6a90948fbafd9"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"ccadac716ce6b7a2b672aaa9e49ad08a7ea7b700","unresolved":false,"context_lines":[{"line_number":1032,"context_line":"        if not api_utils.allow_node_logical_names():"},{"line_number":1033,"context_line":"            raise exception.NotAcceptable()"},{"line_number":1034,"context_line":""},{"line_number":1035,"context_line":"        api_utils.is_valid_node_name(name, error_msg)"},{"line_number":1036,"context_line":""},{"line_number":1037,"context_line":"    def _update_changed_fields(self, node, rpc_node):"},{"line_number":1038,"context_line":"        \"\"\"Update rpc_node based on changed fields in a node."}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_1f3ae6e7","line":1035,"updated":"2016-04-21 14:35:39.000000000","message":"I would rather see this renamed to something like \"ensure_valid_node_name\" or \"assert_valid_node_name\" as the purpose was changed.","commit_id":"7bc689eede075895dfd5314f67b6a90948fbafd9"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"6d25f8eb7347095e7d74316328b31b268a186937","unresolved":false,"context_lines":[{"line_number":1032,"context_line":"        if not api_utils.allow_node_logical_names():"},{"line_number":1033,"context_line":"            raise exception.NotAcceptable()"},{"line_number":1034,"context_line":""},{"line_number":1035,"context_line":"        api_utils.is_valid_node_name(name, error_msg)"},{"line_number":1036,"context_line":""},{"line_number":1037,"context_line":"    def _update_changed_fields(self, node, rpc_node):"},{"line_number":1038,"context_line":"        \"\"\"Update rpc_node based on changed fields in a node."}],"source_content_type":"text/x-python","patch_set":2,"id":"1a122d0e_b9012e3c","line":1035,"in_reply_to":"1a122d0e_1f3ae6e7","updated":"2016-04-22 08:31:32.000000000","message":"Makes sense now that it\u0027s not part of a conditional. I will rename it, thanks","commit_id":"7bc689eede075895dfd5314f67b6a90948fbafd9"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"863ddc40a9dd8a2b9911777cfd5fcdf36c8dfc8b","unresolved":false,"context_lines":[{"line_number":929,"context_line":"    # is presented in the list of reserved node names at the"},{"line_number":930,"context_line":"    # ironic/api/controllers/v1/utils.py module. For more information see:"},{"line_number":931,"context_line":"    # https://bugs.launchpad.net/ironic/+bug/1572651"},{"line_number":932,"context_line":""},{"line_number":933,"context_line":"    states \u003d NodeStatesController()"},{"line_number":934,"context_line":"    \"\"\"Expose the state controller action as a sub-element of nodes\"\"\""},{"line_number":935,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a122d0e_2f894bcb","line":932,"updated":"2016-04-22 10:46:41.000000000","message":"Maybe add reserved list as a class variable here?","commit_id":"194b0dfd525fb9f4dc225926b75d91439b53f46d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e7404b7a87f7252d275bdfd5baa4aa98db313b32","unresolved":false,"context_lines":[{"line_number":929,"context_line":"    # is presented in the list of reserved node names at the"},{"line_number":930,"context_line":"    # ironic/api/controllers/v1/utils.py module. For more information see:"},{"line_number":931,"context_line":"    # https://bugs.launchpad.net/ironic/+bug/1572651"},{"line_number":932,"context_line":""},{"line_number":933,"context_line":"    states \u003d NodeStatesController()"},{"line_number":934,"context_line":"    \"\"\"Expose the state controller action as a sub-element of nodes\"\"\""},{"line_number":935,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a122d0e_b2d5bbba","line":932,"in_reply_to":"1a122d0e_2f894bcb","updated":"2016-04-22 12:57:42.000000000","message":"Good idea, I probably won\u0027t need to touch api/utils.py module if the list was here","commit_id":"194b0dfd525fb9f4dc225926b75d91439b53f46d"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"4475e7b4bf369b3004e6de0ddf3e3bf107438e4f","unresolved":false,"context_lines":[{"line_number":928,"context_line":"    # nodes/ please make sure that the controller/endpoint name is included"},{"line_number":929,"context_line":"    # in this list of reserved node names. For more information see:"},{"line_number":930,"context_line":"    # https://bugs.launchpad.net/ironic/+bug/1572651"},{"line_number":931,"context_line":"    _RESERVED_NODE_NAMES \u003d (\u0027detail\u0027, \u0027ports\u0027, \u0027vendor_passthru\u0027,"},{"line_number":932,"context_line":"                            \u0027management\u0027, \u0027maintenance\u0027)"},{"line_number":933,"context_line":""},{"line_number":934,"context_line":"    states \u003d NodeStatesController()"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_ef5d9816","line":931,"updated":"2016-05-03 01:02:16.000000000","message":"Rather than hard-code this list, I think it would be better to introspect the class.\nThat will prevent us from accidentally re-introducing this bug by forgetting to\nupdate this list.","commit_id":"e112f14df61acb47b1cd5805e8a42595c9028a15"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"50da94668b9063f7bf8118b1a02679c66c00efbf","unresolved":false,"context_lines":[{"line_number":928,"context_line":"    # nodes/ please make sure that the controller/endpoint name is included"},{"line_number":929,"context_line":"    # in this list of reserved node names. For more information see:"},{"line_number":930,"context_line":"    # https://bugs.launchpad.net/ironic/+bug/1572651"},{"line_number":931,"context_line":"    _RESERVED_NODE_NAMES \u003d (\u0027detail\u0027, \u0027ports\u0027, \u0027vendor_passthru\u0027,"},{"line_number":932,"context_line":"                            \u0027management\u0027, \u0027maintenance\u0027)"},{"line_number":933,"context_line":""},{"line_number":934,"context_line":"    states \u003d NodeStatesController()"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a122d0e_934fb869","line":931,"in_reply_to":"1a122d0e_ef5d9816","updated":"2016-05-04 10:46:05.000000000","message":"I think that works yes, will do it","commit_id":"e112f14df61acb47b1cd5805e8a42595c9028a15"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53b28521162499100c12c522787a1f8b4d3c6d31","unresolved":false,"context_lines":[{"line_number":1034,"context_line":"            raise exception.NotAcceptable()"},{"line_number":1035,"context_line":""},{"line_number":1036,"context_line":"        reserved_names \u003d api_utils.get_controller_reserved_names("},{"line_number":1037,"context_line":"            NodesController)"},{"line_number":1038,"context_line":"        for name in names:"},{"line_number":1039,"context_line":"            if not api_utils.is_valid_node_name(name):"},{"line_number":1040,"context_line":"                raise wsme.exc.ClientSideError("}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_9e4a3782","line":1037,"updated":"2016-05-06 20:35:42.000000000","message":"The reserved names doesn\u0027t change unless the controller changes or the API changes, right? It seems a shame that we regenerate this list every time, as opposed to generating it once when the api service comes up.","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a36602b728c1650a87b8bdd3b85d5efddc7d52ac","unresolved":false,"context_lines":[{"line_number":1034,"context_line":"            raise exception.NotAcceptable()"},{"line_number":1035,"context_line":""},{"line_number":1036,"context_line":"        reserved_names \u003d api_utils.get_controller_reserved_names("},{"line_number":1037,"context_line":"            NodesController)"},{"line_number":1038,"context_line":"        for name in names:"},{"line_number":1039,"context_line":"            if not api_utils.is_valid_node_name(name):"},{"line_number":1040,"context_line":"                raise wsme.exc.ClientSideError("}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_2be2b99f","line":1037,"in_reply_to":"dab17558_9e4a3782","updated":"2016-05-09 14:50:33.000000000","message":"Oh that would be a good optimization! I will put a follow-up patch on it","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"a11f57913f23e1ff43dda947a78c66a9fb7b14b5","unresolved":false,"context_lines":[{"line_number":1043,"context_line":"            if name in reserved_names:"},{"line_number":1044,"context_line":"                raise wsme.exc.ClientSideError("},{"line_number":1045,"context_line":"                    \u0027The word \"%(name)s\" is reserved and can not be used as a \u0027"},{"line_number":1046,"context_line":"                    \u0027node name. Other reserved words are: %(reserved)s\u0027 %"},{"line_number":1047,"context_line":"                    {\u0027name\u0027: name,"},{"line_number":1048,"context_line":"                     \u0027reserved\u0027: \u0027, \u0027.join(reserved_names)},"},{"line_number":1049,"context_line":"                    status_code\u003dhttp_client.BAD_REQUEST)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a122d0e_167ecdae","line":1046,"range":{"start_line":1046,"start_character":31,"end_line":1046,"end_character":37},"updated":"2016-05-05 03:30:39.000000000","message":"nit: you actually list all reserved words, what about get ride of \u0027Other\u0027","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"bedad17db25e3bd247e0ea32d838150ed2547dc0","unresolved":false,"context_lines":[{"line_number":1043,"context_line":"            if name in reserved_names:"},{"line_number":1044,"context_line":"                raise wsme.exc.ClientSideError("},{"line_number":1045,"context_line":"                    \u0027The word \"%(name)s\" is reserved and can not be used as a \u0027"},{"line_number":1046,"context_line":"                    \u0027node name. Other reserved words are: %(reserved)s\u0027 %"},{"line_number":1047,"context_line":"                    {\u0027name\u0027: name,"},{"line_number":1048,"context_line":"                     \u0027reserved\u0027: \u0027, \u0027.join(reserved_names)},"},{"line_number":1049,"context_line":"                    status_code\u003dhttp_client.BAD_REQUEST)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a122d0e_de6587e1","line":1046,"range":{"start_line":1046,"start_character":31,"end_line":1046,"end_character":37},"in_reply_to":"1a122d0e_167ecdae","updated":"2016-05-05 06:35:18.000000000","message":"++, and maybe it\u0027s better to combine this with the error_msg passed in.","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53b28521162499100c12c522787a1f8b4d3c6d31","unresolved":false,"context_lines":[{"line_number":1043,"context_line":"            if name in reserved_names:"},{"line_number":1044,"context_line":"                raise wsme.exc.ClientSideError("},{"line_number":1045,"context_line":"                    \u0027The word \"%(name)s\" is reserved and can not be used as a \u0027"},{"line_number":1046,"context_line":"                    \u0027node name. Other reserved words are: %(reserved)s\u0027 %"},{"line_number":1047,"context_line":"                    {\u0027name\u0027: name,"},{"line_number":1048,"context_line":"                     \u0027reserved\u0027: \u0027, \u0027.join(reserved_names)},"},{"line_number":1049,"context_line":"                    status_code\u003dhttp_client.BAD_REQUEST)"}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_fe09c332","line":1046,"range":{"start_line":1046,"start_character":31,"end_line":1046,"end_character":37},"in_reply_to":"1a122d0e_de6587e1","updated":"2016-05-06 20:35:42.000000000","message":"Also missing a period at the end of that last sentence.","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a36602b728c1650a87b8bdd3b85d5efddc7d52ac","unresolved":false,"context_lines":[{"line_number":1043,"context_line":"            if name in reserved_names:"},{"line_number":1044,"context_line":"                raise wsme.exc.ClientSideError("},{"line_number":1045,"context_line":"                    \u0027The word \"%(name)s\" is reserved and can not be used as a \u0027"},{"line_number":1046,"context_line":"                    \u0027node name. Other reserved words are: %(reserved)s\u0027 %"},{"line_number":1047,"context_line":"                    {\u0027name\u0027: name,"},{"line_number":1048,"context_line":"                     \u0027reserved\u0027: \u0027, \u0027.join(reserved_names)},"},{"line_number":1049,"context_line":"                    status_code\u003dhttp_client.BAD_REQUEST)"}],"source_content_type":"text/x-python","patch_set":5,"id":"dab17558_cbe96d82","line":1046,"range":{"start_line":1046,"start_character":31,"end_line":1046,"end_character":37},"in_reply_to":"dab17558_fe09c332","updated":"2016-05-09 14:50:33.000000000","message":"++","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"}],"releasenotes/notes/reserved-node-names-67a08012ed1131ae.yaml":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"53b28521162499100c12c522787a1f8b4d3c6d31","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixes a problem which allowed nodes to be named with some reserved"},{"line_number":4,"context_line":"    words that are implicitly not allowed due the way the Ironic API"},{"line_number":5,"context_line":"    works."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"dab17558_613534d9","line":5,"updated":"2016-05-06 20:35:42.000000000","message":"I think it\u0027d be useful to actually list the reserved words.","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a36602b728c1650a87b8bdd3b85d5efddc7d52ac","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixes a problem which allowed nodes to be named with some reserved"},{"line_number":4,"context_line":"    words that are implicitly not allowed due the way the Ironic API"},{"line_number":5,"context_line":"    works."}],"source_content_type":"text/x-yaml","patch_set":5,"id":"dab17558_0b041548","line":5,"in_reply_to":"dab17558_613534d9","updated":"2016-05-09 14:50:33.000000000","message":"++","commit_id":"8e5e69869df476788b3ccf7e5ba6c2210a98fc8a"}],"releasenotes/notes/reserved-node-names-ad7a133145542c8e.yaml":[{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"ccadac716ce6b7a2b672aaa9e49ad08a7ea7b700","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Prevent nodes to be named with certain words (detail, ports,"},{"line_number":4,"context_line":"    vendor_passthru, management and maintenance) because they are implicitly"},{"line_number":5,"context_line":"    not allowed due the way the Ironic API works."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1a122d0e_b29e89b6","line":4,"updated":"2016-04-21 14:35:39.000000000","message":"s/and/or. The node name can only be one of the choices at the same time.","commit_id":"7bc689eede075895dfd5314f67b6a90948fbafd9"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"6d25f8eb7347095e7d74316328b31b268a186937","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Prevent nodes to be named with certain words (detail, ports,"},{"line_number":4,"context_line":"    vendor_passthru, management and maintenance) because they are implicitly"},{"line_number":5,"context_line":"    not allowed due the way the Ironic API works."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1a122d0e_b9880ec8","line":4,"in_reply_to":"1a122d0e_b29e89b6","updated":"2016-04-22 08:31:32.000000000","message":"Ops, you are right, I will fix it. Thanks","commit_id":"7bc689eede075895dfd5314f67b6a90948fbafd9"}]}
