)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d03a045a6767441a7f38fcd0aaa94221c60650e9","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Instead of having hardcoded parameters and instead of adding"},{"line_number":10,"context_line":"additinal params when needed (for example user_data or"},{"line_number":11,"context_line":"config_drive that we use in our downstream) use kwargs."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"As imageRef and flavorRef are used in create_server functin in"},{"line_number":14,"context_line":"tempest, image_ref and flavor_ref were changed appropriately in"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1f485f77_c27fa7a9","line":11,"updated":"2017-11-09 16:38:21.000000000","message":"I don\u0027t think we ever advertised that you can safely build out of tree tests based on neutron manager classes, so the rationale probably doesn\u0027t fit upstream process. That being said, there may still be value in the patch.\n\nWhat seems to me like a good justification though is that with this patch we make create_server interface identical to tempest one.","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d03a045a6767441a7f38fcd0aaa94221c60650e9","unresolved":false,"context_lines":[{"line_number":10,"context_line":"additinal params when needed (for example user_data or"},{"line_number":11,"context_line":"config_drive that we use in our downstream) use kwargs."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"As imageRef and flavorRef are used in create_server functin in"},{"line_number":14,"context_line":"tempest, image_ref and flavor_ref were changed appropriately in"},{"line_number":15,"context_line":"all relevant tests."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1f485f77_a27cabb5","line":13,"range":{"start_line":13,"start_character":52,"end_line":13,"end_character":59},"updated":"2017-11-09 16:38:21.000000000","message":"function","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"}],"neutron/tests/tempest/scenario/base.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"89e7275cab969ba18f98d7371765e795f446a943","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        super(BaseTempestTestCase, cls).resource_cleanup()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def create_server(self, **kwargs):"},{"line_number":51,"context_line":"        \"\"\"Create a server using tempest lib"},{"line_number":52,"context_line":"        All the parameters are the ones used in Compute API"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_d67ac2b8","line":50,"updated":"2017-11-09 02:16:38.000000000","message":"As the method is neutron base class, there might be projects that use it too and this change will brake them. If you need to add additional custom parameters that are passed down to client.create_server, why not just adding kwargs here and keep the original parameters in place?","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"78927e7cd9b09095dc4e605761e836a75f9371c8","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        super(BaseTempestTestCase, cls).resource_cleanup()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def create_server(self, **kwargs):"},{"line_number":51,"context_line":"        \"\"\"Create a server using tempest lib"},{"line_number":52,"context_line":"        All the parameters are the ones used in Compute API"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_179e0d63","line":50,"in_reply_to":"1f485f77_4245f76f","updated":"2017-11-10 14:55:15.000000000","message":"Yet there are projects that use this class - http://git.openstack.org/cgit/openstack/networking-midonet/tree/midonet/neutron/tests/tempest/tests/scenario/test_bgp.py#n72\n\nI\u0027d rather not risk to break other projects when we don\u0027t have to. The use case Genadi has can be solved without breaking the api for the method.","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d03a045a6767441a7f38fcd0aaa94221c60650e9","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        super(BaseTempestTestCase, cls).resource_cleanup()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def create_server(self, **kwargs):"},{"line_number":51,"context_line":"        \"\"\"Create a server using tempest lib"},{"line_number":52,"context_line":"        All the parameters are the ones used in Compute API"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_4245f76f","line":50,"in_reply_to":"1f485f77_a3befafc","updated":"2017-11-09 16:38:21.000000000","message":"I don\u0027t think that, in the first place, we should assume this class to be some form of public API for out of tree consumers. We should be able to refactor the code to fit new test cases.","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":21302,"name":"Gena","email":"gcheresh@redhat.com","username":"gcheresh"},"change_message_id":"daed3de5e43c8f5ab0adfe159ad9611a2fb1acb8","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        super(BaseTempestTestCase, cls).resource_cleanup()"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def create_server(self, **kwargs):"},{"line_number":51,"context_line":"        \"\"\"Create a server using tempest lib"},{"line_number":52,"context_line":"        All the parameters are the ones used in Compute API"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_a3befafc","line":50,"in_reply_to":"3f4b6375_d67ac2b8","updated":"2017-11-09 06:51:41.000000000","message":"I think the original function was written incorrectly when it used specific parameters instead of kwargs as eventually it calls create_server in tempest that uses kwargs\nSo if this change will break something else we\u0027ll need to fix it instead of adding kwargs to existing params.\nWhat do you think?","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"89e7275cab969ba18f98d7371765e795f446a943","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            kwargs[\u0027name\u0027] \u003d data_utils.rand_name(\u0027server-test\u0027)"},{"line_number":71,"context_line":"        if not kwargs.get(\u0027security_groups\u0027):"},{"line_number":72,"context_line":"            kwargs[\u0027security_groups\u0027] \u003d [{\u0027name\u0027: \u0027default\u0027}]"},{"line_number":73,"context_line":"        server \u003d self.os_primary.servers_client.create_server(**kwargs)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":76,"context_line":"                        waiters.wait_for_server_termination,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_56ba526e","line":73,"updated":"2017-11-09 02:16:38.000000000","message":"Sounds like name and security_groups is always wanted, thus I suggest to keep it as params.","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d03a045a6767441a7f38fcd0aaa94221c60650e9","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            kwargs[\u0027name\u0027] \u003d data_utils.rand_name(\u0027server-test\u0027)"},{"line_number":71,"context_line":"        if not kwargs.get(\u0027security_groups\u0027):"},{"line_number":72,"context_line":"            kwargs[\u0027security_groups\u0027] \u003d [{\u0027name\u0027: \u0027default\u0027}]"},{"line_number":73,"context_line":"        server \u003d self.os_primary.servers_client.create_server(**kwargs)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":76,"context_line":"                        waiters.wait_for_server_termination,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_82308f09","line":73,"in_reply_to":"1f485f77_03826e50","updated":"2017-11-09 16:38:21.000000000","message":"Yeah, we explicitly pick default values for them, so this should be ok.","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"78927e7cd9b09095dc4e605761e836a75f9371c8","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            kwargs[\u0027name\u0027] \u003d data_utils.rand_name(\u0027server-test\u0027)"},{"line_number":71,"context_line":"        if not kwargs.get(\u0027security_groups\u0027):"},{"line_number":72,"context_line":"            kwargs[\u0027security_groups\u0027] \u003d [{\u0027name\u0027: \u0027default\u0027}]"},{"line_number":73,"context_line":"        server \u003d self.os_primary.servers_client.create_server(**kwargs)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":76,"context_line":"                        waiters.wait_for_server_termination,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_57e6c518","line":73,"in_reply_to":"1f485f77_82308f09","updated":"2017-11-10 14:55:15.000000000","message":"Right, so why do we change the existing code when it already does what\u0027s needed?","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":21302,"name":"Gena","email":"gcheresh@redhat.com","username":"gcheresh"},"change_message_id":"daed3de5e43c8f5ab0adfe159ad9611a2fb1acb8","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            kwargs[\u0027name\u0027] \u003d data_utils.rand_name(\u0027server-test\u0027)"},{"line_number":71,"context_line":"        if not kwargs.get(\u0027security_groups\u0027):"},{"line_number":72,"context_line":"            kwargs[\u0027security_groups\u0027] \u003d [{\u0027name\u0027: \u0027default\u0027}]"},{"line_number":73,"context_line":"        server \u003d self.os_primary.servers_client.create_server(**kwargs)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":76,"context_line":"                        waiters.wait_for_server_termination,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_03826e50","line":73,"in_reply_to":"3f4b6375_56ba526e","updated":"2017-11-09 06:51:41.000000000","message":"They always wanted but they are not always provided even in our tests: if name is not given we\u0027ll create one and if security group is not given it means we want default sec group.","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d03a045a6767441a7f38fcd0aaa94221c60650e9","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        server \u003d self.os_primary.servers_client.create_server(**kwargs)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":76,"context_line":"                        waiters.wait_for_server_termination,"},{"line_number":77,"context_line":"                        self.os_primary.servers_client, server[\u0027server\u0027][\u0027id\u0027])"},{"line_number":78,"context_line":"        self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":79,"context_line":"                        self.os_primary.servers_client.delete_server,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_423a97e7","line":76,"updated":"2017-11-09 16:38:21.000000000","message":"(nit) unrelated change, should be reverted","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"89e7275cab969ba18f98d7371765e795f446a943","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        self.create_loginable_secgroup_rule("},{"line_number":178,"context_line":"            secgroup_id\u003dsecgroup[\u0027security_group\u0027][\u0027id\u0027])"},{"line_number":179,"context_line":"        self.server \u003d self.create_server("},{"line_number":180,"context_line":"            flavorRef\u003dCONF.compute.flavor_ref,"},{"line_number":181,"context_line":"            imageRef\u003dCONF.compute.image_ref,"},{"line_number":182,"context_line":"            key_name\u003dself.keypair[\u0027name\u0027],"},{"line_number":183,"context_line":"            networks\u003d[{\u0027uuid\u0027: self.network[\u0027id\u0027]}],"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_96656a20","line":180,"updated":"2017-11-09 02:16:38.000000000","message":"I suggest to make this change in a different change. Better granularity on patches makes it easier to backport if needed.","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"},{"author":{"_account_id":21302,"name":"Gena","email":"gcheresh@redhat.com","username":"gcheresh"},"change_message_id":"daed3de5e43c8f5ab0adfe159ad9611a2fb1acb8","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        self.create_loginable_secgroup_rule("},{"line_number":178,"context_line":"            secgroup_id\u003dsecgroup[\u0027security_group\u0027][\u0027id\u0027])"},{"line_number":179,"context_line":"        self.server \u003d self.create_server("},{"line_number":180,"context_line":"            flavorRef\u003dCONF.compute.flavor_ref,"},{"line_number":181,"context_line":"            imageRef\u003dCONF.compute.image_ref,"},{"line_number":182,"context_line":"            key_name\u003dself.keypair[\u0027name\u0027],"},{"line_number":183,"context_line":"            networks\u003d[{\u0027uuid\u0027: self.network[\u0027id\u0027]}],"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_e3c4f294","line":180,"in_reply_to":"3f4b6375_96656a20","updated":"2017-11-09 06:51:41.000000000","message":"This patch is written to make create_server in neutron to be as create_server in tempest by getting kwargs parameters.\nTempest gets flavorRef and imageRef parameters while neutron not, so if I\u0027ll not perform this change in this patch all the tests will fail as create_server in tempest gets parameters it doesn\u0027t expect to get","commit_id":"56af5ff097303e83f14b09c7101344aa30938a8a"}]}
