)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4727,"name":"Itzik Brown","email":"itzikb@redhat.com","username":"itzikb1"},"change_message_id":"7077ceaf6b5050321156b95efe041cb07d63e601","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Roee Agiman \u003cragiman@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-03 12:07:57 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Patch 1 was a test really.. so here are the actual changes:"},{"line_number":8,"context_line":"client.py -"},{"line_number":9,"context_line":"\tAdded hypervisor and availability clients to"},{"line_number":10,"context_line":"\tfetch information"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7f515b1d_26f1f602","line":7,"updated":"2017-10-03 14:10:40.000000000","message":"Please write a short description in the header (https://docs.openstack.org/infra/manual/developers.html)","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"7ce23d9b97c19707dadc87a8faef7bd2860e096f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Roee Agiman \u003cragiman@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-03 12:07:57 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Patch 1 was a test really.. so here are the actual changes:"},{"line_number":8,"context_line":"client.py -"},{"line_number":9,"context_line":"\tAdded hypervisor and availability clients to"},{"line_number":10,"context_line":"\tfetch information"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f4e5783_a04651bf","line":7,"in_reply_to":"7f515b1d_26f1f602","updated":"2017-10-18 11:08:25.000000000","message":"Done","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e542963d3775fed1067d03c6e1f4f4cf94d06b86","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Patch 1 was a test really.. so here are the actual changes:"},{"line_number":8,"context_line":"client.py -"},{"line_number":9,"context_line":"\tAdded hypervisor and availability clients to"},{"line_number":10,"context_line":"\tfetch information"},{"line_number":11,"context_line":"base.py -"},{"line_number":12,"context_line":"\tAdded support to admin created vm."},{"line_number":13,"context_line":"\tThis was in order to achieve ability to create"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7f515b1d_4c1773a5","line":10,"updated":"2017-10-03 14:27:16.000000000","message":"nit: Please use spaces and not tabs.","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"7ce23d9b97c19707dadc87a8faef7bd2860e096f","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Patch 1 was a test really.. so here are the actual changes:"},{"line_number":8,"context_line":"client.py -"},{"line_number":9,"context_line":"\tAdded hypervisor and availability clients to"},{"line_number":10,"context_line":"\tfetch information"},{"line_number":11,"context_line":"base.py -"},{"line_number":12,"context_line":"\tAdded support to admin created vm."},{"line_number":13,"context_line":"\tThis was in order to achieve ability to create"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f4e5783_804355af","line":10,"in_reply_to":"7f515b1d_4c1773a5","updated":"2017-10-18 11:08:25.000000000","message":"Done","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8995c8b8a2a46f5b82b56d07e47de5885e2f9da","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2017-10-03 14:43:57 +0300"},{"line_number":4,"context_line":"Commit:     Roee Agiman \u003cragiman@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-15 17:47:58 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"I have made a new test due to a use case that turned out to be buggy,"},{"line_number":8,"context_line":"This is the link: https://bugzilla.redhat.com/show_bug.cgi?id\u003d1464061"},{"line_number":9,"context_line":"This patch also includes some changes in the base infrastructure that"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"5f4e5783_562d27fc","line":6,"updated":"2017-10-15 15:22:38.000000000","message":"please see https://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"649860d26ed7df935044cd62fa2173b1ac71c0c9"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Roee Agiman \u003cragiman@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-20 23:48:37 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add new test and enhance base functions"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"* Added a scenario test that verify"},{"line_number":10,"context_line":"  valid connection between two"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"3f4b6375_cd1f8f6e","line":7,"updated":"2017-10-20 21:13:00.000000000","message":"please be explicit in the title about which scenario you cover","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add new test and enhance base functions"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"* Added a scenario test that verify"},{"line_number":10,"context_line":"  valid connection between two"},{"line_number":11,"context_line":"  instances on a single compute"},{"line_number":12,"context_line":"  node, this scenario was a bug:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"3f4b6375_4d34bffb","line":9,"updated":"2017-10-20 21:13:00.000000000","message":"text wrapping here is too narrow. please use usual 70 (72) chars.","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":10,"context_line":"  valid connection between two"},{"line_number":11,"context_line":"  instances on a single compute"},{"line_number":12,"context_line":"  node, this scenario was a bug:"},{"line_number":13,"context_line":"  https://bugzilla.redhat.com/show_bug.cgi?id\u003d1464061"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"* Changed \u0027base.py\u0027 to enable booting"},{"line_number":16,"context_line":"  an instance with admin privileges."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"3f4b6375_2d14e34d","line":13,"updated":"2017-10-20 21:13:00.000000000","message":"(no action required) redhat bugzilla bugs are generally of little interest for upstream unless the link gives some missing context","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8d2c04540ee8a80b9fcc6372a93e990f83ce773e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added test suite - floating ip admin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch contain an addition of a test suite"},{"line_number":10,"context_line":"called \u0027test_floatingip_admin.py\u0027."},{"line_number":11,"context_line":"It was required in order to execute some operations"},{"line_number":12,"context_line":"such as \u0027availability-zone\u0027 choosing."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"3f4b6375_bce903b8","line":9,"updated":"2017-11-01 19:23:01.000000000","message":"this sentence is redundant: this info is already available from: git show --stat. Remove.","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8d2c04540ee8a80b9fcc6372a93e990f83ce773e","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch contain an addition of a test suite"},{"line_number":10,"context_line":"called \u0027test_floatingip_admin.py\u0027."},{"line_number":11,"context_line":"It was required in order to execute some operations"},{"line_number":12,"context_line":"such as \u0027availability-zone\u0027 choosing."},{"line_number":13,"context_line":"Cases in this suite will be created using admin"},{"line_number":14,"context_line":"user and thus more advanced scenarios will be covered."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"3f4b6375_1c06d787","line":12,"range":{"start_line":11,"start_character":0,"end_line":12,"end_character":37},"updated":"2017-11-01 19:23:01.000000000","message":"Now this is the actual goal of the patch, and so it should be the title of the commit message. (Of course, after rewording).","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8d2c04540ee8a80b9fcc6372a93e990f83ce773e","unresolved":false,"context_lines":[{"line_number":10,"context_line":"called \u0027test_floatingip_admin.py\u0027."},{"line_number":11,"context_line":"It was required in order to execute some operations"},{"line_number":12,"context_line":"such as \u0027availability-zone\u0027 choosing."},{"line_number":13,"context_line":"Cases in this suite will be created using admin"},{"line_number":14,"context_line":"user and thus more advanced scenarios will be covered."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In the suite I added the first case,"},{"line_number":17,"context_line":"Explained in the first astrix below."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"3f4b6375_9cf9a781","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":54},"updated":"2017-11-01 19:23:01.000000000","message":"That\u0027s self-obvious from the name of the new file/dir. Remove.","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8d2c04540ee8a80b9fcc6372a93e990f83ce773e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Cases in this suite will be created using admin"},{"line_number":14,"context_line":"user and thus more advanced scenarios will be covered."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"In the suite I added the first case,"},{"line_number":17,"context_line":"Explained in the first astrix below."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"* Added a scenario test that verify valid connection"},{"line_number":20,"context_line":"  between two instances on a single compute node."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"3f4b6375_3c43d3b1","line":17,"range":{"start_line":16,"start_character":0,"end_line":17,"end_character":36},"updated":"2017-11-01 19:23:01.000000000","message":"If you would reword above that the goal of the patch is to add a test case that does X and Y, you wouldn\u0027t need to say that.","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8d2c04540ee8a80b9fcc6372a93e990f83ce773e","unresolved":false,"context_lines":[{"line_number":19,"context_line":"* Added a scenario test that verify valid connection"},{"line_number":20,"context_line":"  between two instances on a single compute node."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"* Changed \u0027base.py\u0027 to enable booting an instance with"},{"line_number":23,"context_line":"  admin privileges."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"* Added two clients to \u0027clients.py\u0027 in order to fetch"},{"line_number":26,"context_line":"  information regarding hypervisors and availability"},{"line_number":27,"context_line":"  zones."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Change-Id: I2d111cb91bbb2fc6dc9f663eb4aaa1fe1dd0a013"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"3f4b6375_1c62573f","line":27,"range":{"start_line":22,"start_character":0,"end_line":27,"end_character":8},"updated":"2017-11-01 19:23:01.000000000","message":"Those bits that are preparation work for the code to allow the test case you need are probably not worth being mentioned here, at least not on par with the actual goal of the change: adding a new test case covering X.","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"41b490daa913c5279d7e0750b029c39a67a401a2","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Roee Agiman \u003cragiman@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-11-09 17:03:03 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added test suite and case to cover \u0027availability zone\u0027."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This was required to test advanced scenarios."},{"line_number":10,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"1f485f77_8adacfe6","line":7,"range":{"start_line":7,"start_character":54,"end_line":7,"end_character":55},"updated":"2017-11-10 23:14:12.000000000","message":"dot unneeded in commit title","commit_id":"c970b42fd1783dbbe188c04368f0a5b05fa573c1"}],"neutron/tests/tempest/api/clients.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8995c8b8a2a46f5b82b56d07e47de5885e2f9da","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        self.hypervisor_client \u003d self.compute.HypervisorClient("},{"line_number":80,"context_line":"            **params"},{"line_number":81,"context_line":"        )"},{"line_number":82,"context_line":"        self.availability_zone_client \u003d self.compute.AvailabilityZoneClient("},{"line_number":83,"context_line":"            **params"},{"line_number":84,"context_line":"        )"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f4e5783_9646ffbf","line":82,"updated":"2017-10-15 15:22:38.000000000","message":"this does not look like it passes pep8\nconsider self.az_client","commit_id":"649860d26ed7df935044cd62fa2173b1ac71c0c9"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1c90b1f959324e76f88fca817cf3ddbe327b6621","unresolved":false,"context_lines":[{"line_number":76,"context_line":"            **params)"},{"line_number":77,"context_line":"        self.keypairs_client \u003d keypairs_client.KeyPairsClient("},{"line_number":78,"context_line":"            self.auth_provider, **params)"},{"line_number":79,"context_line":"        self.hypervisor_client \u003d \\"},{"line_number":80,"context_line":"            hypervisor_client.HypervisorClient("},{"line_number":81,"context_line":"                self.auth_provider, **params)"},{"line_number":82,"context_line":"        self.availability_zone_client \u003d \\"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f4e5783_a50aa81c","line":79,"updated":"2017-10-17 16:09:21.000000000","message":"nit: can remove the \\ here by just importing as hv_client to shorten the name.  Same thing using az_client below.","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"}],"neutron/tests/tempest/scenario/admin/test_floatingip.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"51705b49743a589b3c202ffd5ce68f468b2365a0","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                networks\u003d[{\u0027uuid\u0027: self.network[\u0027id\u0027]}],"},{"line_number":75,"context_line":"                security_groups\u003d[{\u0027name\u0027: self.secgroup[\u0027name\u0027]}],"},{"line_number":76,"context_line":"                availability_zone\u003daz))"},{"line_number":77,"context_line":"        for i, server in enumerate(servers):"},{"line_number":78,"context_line":"            waiters.wait_for_server_status("},{"line_number":79,"context_line":"                self.os_admin.servers_client, server[\u0027server\u0027][\u0027id\u0027],"},{"line_number":80,"context_line":"                const.SERVER_STATUS_ACTIVE)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1f485f77_0cae16e7","line":77,"updated":"2017-11-09 14:20:23.000000000","message":"do You really need two loops, can\u0027t You do all in one loop?","commit_id":"9f6f05f83a9295b0e88082011105b27dbcd92e03"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"a156b5073b5768e4b8825a136acd4d5c48a333cc","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                networks\u003d[{\u0027uuid\u0027: self.network[\u0027id\u0027]}],"},{"line_number":75,"context_line":"                security_groups\u003d[{\u0027name\u0027: self.secgroup[\u0027name\u0027]}],"},{"line_number":76,"context_line":"                availability_zone\u003daz))"},{"line_number":77,"context_line":"        for i, server in enumerate(servers):"},{"line_number":78,"context_line":"            waiters.wait_for_server_status("},{"line_number":79,"context_line":"                self.os_admin.servers_client, server[\u0027server\u0027][\u0027id\u0027],"},{"line_number":80,"context_line":"                const.SERVER_STATUS_ACTIVE)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1f485f77_8cc68616","line":77,"in_reply_to":"1f485f77_0cae16e7","updated":"2017-11-09 14:56:54.000000000","message":"I actually copied this piece of code from another (already merged) code, you can find it in test_security_groups.py.","commit_id":"9f6f05f83a9295b0e88082011105b27dbcd92e03"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"51705b49743a589b3c202ffd5ce68f468b2365a0","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        # Add created fips to resource cleanup"},{"line_number":91,"context_line":"        for fip in fips:"},{"line_number":92,"context_line":"            self.addCleanup(self.os_admin.network_client.delete_floatingip,"},{"line_number":93,"context_line":"                            fip[\u0027id\u0027])"},{"line_number":94,"context_line":"        return server_ssh_clients, fips"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1f485f77_ecaa9ad0","line":93,"updated":"2017-11-09 14:20:23.000000000","message":"why it is not done in previous \"for\" but there is one more loop used?","commit_id":"9f6f05f83a9295b0e88082011105b27dbcd92e03"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"a156b5073b5768e4b8825a136acd4d5c48a333cc","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        # Add created fips to resource cleanup"},{"line_number":91,"context_line":"        for fip in fips:"},{"line_number":92,"context_line":"            self.addCleanup(self.os_admin.network_client.delete_floatingip,"},{"line_number":93,"context_line":"                            fip[\u0027id\u0027])"},{"line_number":94,"context_line":"        return server_ssh_clients, fips"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1f485f77_6c990a1e","line":93,"in_reply_to":"1f485f77_ecaa9ad0","updated":"2017-11-09 14:56:54.000000000","message":"This is fixed - will push next PS","commit_id":"9f6f05f83a9295b0e88082011105b27dbcd92e03"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"51705b49743a589b3c202ffd5ce68f468b2365a0","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        # Get hypervisor list to pass it for vm creation"},{"line_number":103,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":104,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":105,"context_line":"        az_func \u003d self._list_availability_zones"},{"line_number":106,"context_line":"        avail_zone \u003d az_func()[\u0027availabilityZoneInfo\u0027][0][\u0027zoneName\u0027]"},{"line_number":107,"context_line":"        server_ssh_clients, fips \u003d self._create_vms(hyper, avail_zone)"},{"line_number":108,"context_line":"        self.check_remote_connectivity("}],"source_content_type":"text/x-python","patch_set":18,"id":"1f485f77_ccb7de3a","line":105,"updated":"2017-11-09 14:20:23.000000000","message":"why You need this? can You just call self._list_availability_zones() in next line?","commit_id":"9f6f05f83a9295b0e88082011105b27dbcd92e03"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"a156b5073b5768e4b8825a136acd4d5c48a333cc","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        # Get hypervisor list to pass it for vm creation"},{"line_number":103,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":104,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":105,"context_line":"        az_func \u003d self._list_availability_zones"},{"line_number":106,"context_line":"        avail_zone \u003d az_func()[\u0027availabilityZoneInfo\u0027][0][\u0027zoneName\u0027]"},{"line_number":107,"context_line":"        server_ssh_clients, fips \u003d self._create_vms(hyper, avail_zone)"},{"line_number":108,"context_line":"        self.check_remote_connectivity("}],"source_content_type":"text/x-python","patch_set":18,"id":"1f485f77_cc20fefa","line":105,"in_reply_to":"1f485f77_ccb7de3a","updated":"2017-11-09 14:56:54.000000000","message":"This is fixed - will push next PS.","commit_id":"9f6f05f83a9295b0e88082011105b27dbcd92e03"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6039928684c7d933e0fcb720d5814d2a17416891","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":102,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":103,"context_line":"        avail_zone \u003d self._list_availability_zones("},{"line_number":104,"context_line":"        )[\u0027availabilityZoneInfo\u0027][0][\u0027zoneName\u0027]"},{"line_number":105,"context_line":"        server_ssh_clients, fips \u003d self._create_vms(hyper, avail_zone)"},{"line_number":106,"context_line":"        self.check_remote_connectivity("},{"line_number":107,"context_line":"            server_ssh_clients[0], fips[1][\u0027floating_ip_address\u0027])"}],"source_content_type":"text/x-python","patch_set":19,"id":"1f485f77_02da5fe8","line":104,"updated":"2017-11-09 16:29:18.000000000","message":"this should at least indent for clarity:\n\navail_zone \u003d ...(\n    )[...]\n\nOr maybe (assuming it would fit):\n\navail_zone \u003d (\n    ...()[...])\n\nOr just split like:\n\nzones \u003d ...()[\u0027availabilityZoneInfo\u0027]\nzone_name \u003d zones[0][\u0027zoneName\u0027]","commit_id":"c970b42fd1783dbbe188c04368f0a5b05fa573c1"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"1ba2b82d679d9a59b0350c2728ed968edf31cc49","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":102,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":103,"context_line":"        avail_zone \u003d self._list_availability_zones("},{"line_number":104,"context_line":"        )[\u0027availabilityZoneInfo\u0027][0][\u0027zoneName\u0027]"},{"line_number":105,"context_line":"        server_ssh_clients, fips \u003d self._create_vms(hyper, avail_zone)"},{"line_number":106,"context_line":"        self.check_remote_connectivity("},{"line_number":107,"context_line":"            server_ssh_clients[0], fips[1][\u0027floating_ip_address\u0027])"}],"source_content_type":"text/x-python","patch_set":19,"id":"1f485f77_53692b23","line":104,"in_reply_to":"1f485f77_02da5fe8","updated":"2017-11-12 09:39:46.000000000","message":"Changed to first option.","commit_id":"c970b42fd1783dbbe188c04368f0a5b05fa573c1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"dc25bc4b3c026f8c61f401e93c1c27dcb285839e","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    credentials \u003d [\u0027primary\u0027, \u0027admin\u0027]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    @classmethod"},{"line_number":31,"context_line":"    def resource_setup(cls):"},{"line_number":32,"context_line":"        super(FloatingIpTestCasesAdmin, cls).resource_setup()"},{"line_number":33,"context_line":"        cls.network \u003d cls.create_network()"},{"line_number":34,"context_line":"        cls.subnet \u003d cls.create_subnet(cls.network)"}],"source_content_type":"text/x-python","patch_set":21,"id":"1f485f77_d35f4e3f","line":31,"updated":"2017-11-13 08:42:22.000000000","message":"shoudn\u0027t You set here that \"router\" is required extension for this test?","commit_id":"a3858cf46d5e32a31e94d54ba56462f462dbd186"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"f466556a68902a8d716b8d38ea3f7f19307c7c98","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    credentials \u003d [\u0027primary\u0027, \u0027admin\u0027]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    @classmethod"},{"line_number":31,"context_line":"    def resource_setup(cls):"},{"line_number":32,"context_line":"        super(FloatingIpTestCasesAdmin, cls).resource_setup()"},{"line_number":33,"context_line":"        cls.network \u003d cls.create_network()"},{"line_number":34,"context_line":"        cls.subnet \u003d cls.create_subnet(cls.network)"}],"source_content_type":"text/x-python","patch_set":21,"id":"1f485f77_f140fd09","line":31,"in_reply_to":"1f485f77_d35f4e3f","updated":"2017-11-13 12:23:12.000000000","message":"Added.","commit_id":"a3858cf46d5e32a31e94d54ba56462f462dbd186"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"dc25bc4b3c026f8c61f401e93c1c27dcb285839e","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def _list_availability_zones(self):"},{"line_number":61,"context_line":"        # List of availability zones"},{"line_number":62,"context_line":"        return self.os_admin.az_client.list_availability_zones()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _create_vms(self, hyper, avail_zone, num_servers\u003d2):"},{"line_number":65,"context_line":"        servers, fips, server_ssh_clients \u003d ([], [], [])"}],"source_content_type":"text/x-python","patch_set":21,"id":"1f485f77_b35cd24b","line":62,"updated":"2017-11-13 08:42:22.000000000","message":"maybe I don\u0027t know client\u0027s methods good enough but why in L58 You are returning [\u0027hypervisors\u0027] key only and here not? Doesn\u0027t it mean that here You will return dict with key \u0027availability_zones\u0027 (or something similar)? Can\u0027t You make those two methods consistent?","commit_id":"a3858cf46d5e32a31e94d54ba56462f462dbd186"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"f466556a68902a8d716b8d38ea3f7f19307c7c98","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def _list_availability_zones(self):"},{"line_number":61,"context_line":"        # List of availability zones"},{"line_number":62,"context_line":"        return self.os_admin.az_client.list_availability_zones()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _create_vms(self, hyper, avail_zone, num_servers\u003d2):"},{"line_number":65,"context_line":"        servers, fips, server_ssh_clients \u003d ([], [], [])"}],"source_content_type":"text/x-python","patch_set":21,"id":"1f485f77_b6b15b92","line":62,"in_reply_to":"1f485f77_b35cd24b","updated":"2017-11-13 12:23:12.000000000","message":"I implemented a solution that will make these look more consistent, please take a look.","commit_id":"a3858cf46d5e32a31e94d54ba56462f462dbd186"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"37edab66008a4cea8ebf85c4c7e400170a59e313","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def resource_setup(cls):"},{"line_number":34,"context_line":"        super(FloatingIpTestCasesAdmin, cls).resource_setup()"},{"line_number":35,"context_line":"        cls.network \u003d cls.create_network()"},{"line_number":36,"context_line":"        cls.subnet \u003d cls.create_subnet(cls.network)"},{"line_number":37,"context_line":"        router \u003d cls.create_router_by_client()"},{"line_number":38,"context_line":"        cls.create_router_interface(router[\u0027id\u0027], cls.subnet[\u0027id\u0027])"},{"line_number":39,"context_line":"        # Create keypair with admin privileges"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_051c6e10","line":36,"updated":"2017-11-13 18:48:34.000000000","message":"I don\u0027t think there\u0027s any reason to use cls.* here since the callees are saving the items they create for cleanup, for example cls.subnets is where this subnet will be saved.  So this could use network, subnet, etc. instead.  Same below.\n\nJust noticed since I was looking how it was cleaned-up. Seems others do this too, and this was probably just copy/pasted.","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"5dd1efa1e92494b5a5df6d2bc225d75715a5f322","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def resource_setup(cls):"},{"line_number":34,"context_line":"        super(FloatingIpTestCasesAdmin, cls).resource_setup()"},{"line_number":35,"context_line":"        cls.network \u003d cls.create_network()"},{"line_number":36,"context_line":"        cls.subnet \u003d cls.create_subnet(cls.network)"},{"line_number":37,"context_line":"        router \u003d cls.create_router_by_client()"},{"line_number":38,"context_line":"        cls.create_router_interface(router[\u0027id\u0027], cls.subnet[\u0027id\u0027])"},{"line_number":39,"context_line":"        # Create keypair with admin privileges"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_893aa695","line":36,"in_reply_to":"1f485f77_051c6e10","updated":"2017-11-14 09:29:38.000000000","message":"I did not fully understood the comment.\nNot sure whether to only remove cls, or where is the other resources created.\nPlease provide one example and i\u0027ll catch it no-time :)\n\nP.s noticed lines 324/325 in api/base.py:\n        if client is cls.client:\n            cls.subnets.append(subnet)\nSo I see that whenever subnet is created is already sent to cleanup.\nThis means that I don\u0027t have to save cls.subnet and just subnet? or not at all and just use cls.subnets?","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"c1d8cdde721a1fe7e941daed973da9f3ed097bc9","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def resource_setup(cls):"},{"line_number":34,"context_line":"        super(FloatingIpTestCasesAdmin, cls).resource_setup()"},{"line_number":35,"context_line":"        cls.network \u003d cls.create_network()"},{"line_number":36,"context_line":"        cls.subnet \u003d cls.create_subnet(cls.network)"},{"line_number":37,"context_line":"        router \u003d cls.create_router_by_client()"},{"line_number":38,"context_line":"        cls.create_router_interface(router[\u0027id\u0027], cls.subnet[\u0027id\u0027])"},{"line_number":39,"context_line":"        # Create keypair with admin privileges"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_a280b047","line":36,"in_reply_to":"1f485f77_095ea9e5","updated":"2017-11-15 15:26:13.000000000","message":"Fixed.","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"74a1fe6ef88622944ece8789cae60b1fc0de18f1","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def resource_setup(cls):"},{"line_number":34,"context_line":"        super(FloatingIpTestCasesAdmin, cls).resource_setup()"},{"line_number":35,"context_line":"        cls.network \u003d cls.create_network()"},{"line_number":36,"context_line":"        cls.subnet \u003d cls.create_subnet(cls.network)"},{"line_number":37,"context_line":"        router \u003d cls.create_router_by_client()"},{"line_number":38,"context_line":"        cls.create_router_interface(router[\u0027id\u0027], cls.subnet[\u0027id\u0027])"},{"line_number":39,"context_line":"        # Create keypair with admin privileges"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_095ea9e5","line":36,"in_reply_to":"1f485f77_893aa695","updated":"2017-11-14 18:41:07.000000000","message":"I think that\u0027s exactly what Brian meant: you don\u0027t need to store it on cls, its cleanup will be taken care of.","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"9e118084d8b23f7202159af3a14a2c2df2d72753","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"},{"line_number":98,"context_line":"    def test_two_vms_fips(self):"},{"line_number":99,"context_line":"        \"\"\"This test verifies the ability of two instances"},{"line_number":100,"context_line":"        that were created in the same compute node to reach"},{"line_number":101,"context_line":"        each other."},{"line_number":102,"context_line":"        \"\"\""},{"line_number":103,"context_line":"        # Get hypervisor list to pass it for vm creation"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_6bd1b9cd","line":100,"range":{"start_line":100,"start_character":38,"end_line":100,"end_character":50},"updated":"2017-11-14 13:41:41.000000000","message":"and same AZ","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"40b3c381ec9c2d45c438a19decc4d124a0789de2","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"},{"line_number":98,"context_line":"    def test_two_vms_fips(self):"},{"line_number":99,"context_line":"        \"\"\"This test verifies the ability of two instances"},{"line_number":100,"context_line":"        that were created in the same compute node to reach"},{"line_number":101,"context_line":"        each other."},{"line_number":102,"context_line":"        \"\"\""},{"line_number":103,"context_line":"        # Get hypervisor list to pass it for vm creation"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_f2f69af9","line":100,"range":{"start_line":100,"start_character":38,"end_line":100,"end_character":50},"in_reply_to":"1f485f77_6bd1b9cd","updated":"2017-11-14 15:21:29.000000000","message":"Fixed","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"}],"neutron/tests/tempest/scenario/base.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e542963d3775fed1067d03c6e1f4f4cf94d06b86","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        if \u0027security_groups\u0027 in kwargs:"},{"line_number":82,"context_line":"            security_groups \u003d kwargs[\u0027security_groups\u0027]"},{"line_number":83,"context_line":"        if \u0027availability_zone\u0027 in kwargs:"},{"line_number":84,"context_line":"            availability_zone \u003d kwargs[\u0027availability_zone\u0027]"},{"line_number":85,"context_line":"        if \u0027is_admin\u0027 in kwargs:"},{"line_number":86,"context_line":"            admin \u003d kwargs[\u0027is_admin\u0027]"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7f515b1d_cccb6348","line":84,"updated":"2017-10-03 14:27:16.000000000","message":"This, and most of the others can be changed to something like:\n\navailability_zone \u003d kwargs.get(\u0027availability_zone\u0027)\n\nThen you don\u0027t need to initialize on L77.","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e542963d3775fed1067d03c6e1f4f4cf94d06b86","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @classmethod"},{"line_number":138,"context_line":"    def create_secgroup_rules(cls, rule_list, secgroup_id\u003dNone, client\u003dNone):"},{"line_number":139,"context_line":"        client \u003d client or cls.os_primary.network_client"},{"line_number":140,"context_line":"        if not secgroup_id:"},{"line_number":141,"context_line":"            sgs \u003d client.list_security_groups()[\u0027security_groups\u0027]"},{"line_number":142,"context_line":"            for sg in sgs:"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f515b1d_0c385b3b","line":139,"updated":"2017-10-03 14:27:16.000000000","message":"You could also pass kwargs and do the admin check here, instead of in the callers.","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":4727,"name":"Itzik Brown","email":"itzikb@redhat.com","username":"itzikb1"},"change_message_id":"7077ceaf6b5050321156b95efe041cb07d63e601","unresolved":false,"context_lines":[{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def create_and_associate_floatingip(self, port_id, admin\u003dFalse, **kwargs):"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        if \u0027is_admin\u0027 in kwargs:"},{"line_number":215,"context_line":"            admin \u003d kwargs[\u0027is_admin\u0027]"},{"line_number":216,"context_line":"        if admin:"},{"line_number":217,"context_line":"            fip \u003d self.os_admin.network_client.create_floatingip("},{"line_number":218,"context_line":"                CONF.network.public_network_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f515b1d_a65286dd","line":215,"range":{"start_line":214,"start_character":0,"end_line":215,"end_character":38},"updated":"2017-10-03 14:10:40.000000000","message":"You can probably use if kwargs.get(\u0027is_admin\u0027):","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8995c8b8a2a46f5b82b56d07e47de5885e2f9da","unresolved":false,"context_lines":[{"line_number":372,"context_line":"                      \u0027result\u0027: \u0027expected\u0027 if result else \u0027unexpected\u0027"},{"line_number":373,"context_line":"                  })"},{"line_number":374,"context_line":"        return result"},{"line_number":375,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f4e5783_764383b0","line":375,"updated":"2017-10-15 15:22:38.000000000","message":"???","commit_id":"649860d26ed7df935044cd62fa2173b1ac71c0c9"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        security_groups \u003d \\"},{"line_number":77,"context_line":"            kwargs.get(\u0027security_groups\u0027) or [{\u0027name\u0027: \u0027default\u0027}]"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027)"},{"line_number":79,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        if admin:"},{"line_number":82,"context_line":"            server \u003d self.os_admin.servers_client.create_server("}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_6d134dba","line":79,"updated":"2017-10-18 08:02:17.000000000","message":"You can set \"default\" value for get() method so You don\u0027t need this \"or\" here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1c90b1f959324e76f88fca817cf3ddbe327b6621","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        body \u003d client.create_keypair(name\u003dname)"},{"line_number":123,"context_line":"        if client is cls.os_primary.keypairs_client:"},{"line_number":124,"context_line":"            cls.keypairs.append(body[\u0027keypair\u0027])"},{"line_number":125,"context_line":"        else:"},{"line_number":126,"context_line":"            pass"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        return body[\u0027keypair\u0027]"},{"line_number":129,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5f4e5783_25c35859","line":126,"range":{"start_line":125,"start_character":8,"end_line":126,"end_character":16},"updated":"2017-10-17 16:09:21.000000000","message":"nit: on\u0027t need the else","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1c90b1f959324e76f88fca817cf3ddbe327b6621","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        return body[\u0027keypair\u0027]"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    @classmethod"},{"line_number":131,"context_line":"    def create_secgroup_rules(cls, rule_list, secgroup_id\u003dNone, client\u003dNone,"},{"line_number":132,"context_line":"                              **kwargs):"},{"line_number":133,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":134,"context_line":"        if admin:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f4e5783_451ad416","line":131,"range":{"start_line":131,"start_character":64,"end_line":131,"end_character":75},"updated":"2017-10-17 16:09:21.000000000","message":"client argument isn\u0027t required and it\u0027s always over-ridden below anyways","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":130,"context_line":"    @classmethod"},{"line_number":131,"context_line":"    def create_secgroup_rules(cls, rule_list, secgroup_id\u003dNone, client\u003dNone,"},{"line_number":132,"context_line":"                              **kwargs):"},{"line_number":133,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":134,"context_line":"        if admin:"},{"line_number":135,"context_line":"            client \u003d cls.os_admin.network_client"},{"line_number":136,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_4d1891d2","line":133,"updated":"2017-10-18 08:02:17.000000000","message":"You can set \"default\" value for get() method so You don\u0027t need this \"or\" here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                      \u0027port_range_max\u0027: 22,"},{"line_number":167,"context_line":"                      \u0027remote_ip_prefix\u0027: \u00270.0.0.0/0\u0027}]"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":170,"context_line":"        if admin:"},{"line_number":171,"context_line":"            cls.create_secgroup_rules(rule_list, secgroup_id\u003dsecgroup_id,"},{"line_number":172,"context_line":"                                      is_admin\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_2d0d5590","line":169,"updated":"2017-10-18 08:02:17.000000000","message":"You can set \"default\" value for get() method so You don\u0027t need this \"or\" here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1c90b1f959324e76f88fca817cf3ddbe327b6621","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":170,"context_line":"        if admin:"},{"line_number":171,"context_line":"            cls.create_secgroup_rules(rule_list, secgroup_id\u003dsecgroup_id,"},{"line_number":172,"context_line":"                                      is_admin\u003dTrue)"},{"line_number":173,"context_line":"        else:"},{"line_number":174,"context_line":"            cls.create_secgroup_rules(rule_list, secgroup_id\u003dsecgroup_id)"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5f4e5783_65cef05a","line":172,"updated":"2017-10-17 16:09:21.000000000","message":"Don\u0027t need the if/else here, can just pass \u0027is_admin\u003dadmin\u0027","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                      \u0027port_range_max\u0027: 0,  # code"},{"line_number":186,"context_line":"                      \u0027remote_ip_prefix\u0027: \u00270.0.0.0/0\u0027}]"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":189,"context_line":"        if admin:"},{"line_number":190,"context_line":"            cls.create_secgroup_rules(rule_list, secgroup_id\u003dsecgroup_id,"},{"line_number":191,"context_line":"                                      is_admin\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_0d1299b2","line":188,"updated":"2017-10-18 08:02:17.000000000","message":"You can set \"default\" value for get() method so You don\u0027t need this \"or\" here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1c90b1f959324e76f88fca817cf3ddbe327b6621","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":189,"context_line":"        if admin:"},{"line_number":190,"context_line":"            cls.create_secgroup_rules(rule_list, secgroup_id\u003dsecgroup_id,"},{"line_number":191,"context_line":"                                      is_admin\u003dTrue)"},{"line_number":192,"context_line":"        else:"},{"line_number":193,"context_line":"            cls.create_secgroup_rules(rule_list, secgroup_id\u003dsecgroup_id)"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5f4e5783_45abf473","line":191,"updated":"2017-10-17 16:09:21.000000000","message":"Don\u0027t need the if/else here, can just pass \u0027is_admin\u003dadmin\u0027","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        cls.routers.append(router)"},{"line_number":206,"context_line":"        return router"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    def create_and_associate_floatingip(self, port_id, **kwargs):"},{"line_number":209,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":210,"context_line":"        if admin:"},{"line_number":211,"context_line":"            fip \u003d self.os_admin.network_client.create_floatingip("}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_ed261d17","line":208,"updated":"2017-10-18 08:02:17.000000000","message":"why You need to add \"is_admin\" in kwargs here, can\u0027t it just be defined as parameter with default value?\nAnd this question is in fact for all other changes here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"db001b2edc9c2cfb138df33cae237ee6c6b956e5","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        cls.routers.append(router)"},{"line_number":206,"context_line":"        return router"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    def create_and_associate_floatingip(self, port_id, **kwargs):"},{"line_number":209,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":210,"context_line":"        if admin:"},{"line_number":211,"context_line":"            fip \u003d self.os_admin.network_client.create_floatingip("}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_eb3cc2c0","line":208,"in_reply_to":"3f4b6375_ed261d17","updated":"2017-10-18 10:56:14.000000000","message":"I see that You removed kwargs from this method but what about others? I didn\u0027t comment it everywhere but is it necessary? Maybe in other methods You can also define \"is_admin\" as parameter and then You don\u0027t need to do \"kwargs.get()\" always","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":206,"context_line":"        return router"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    def create_and_associate_floatingip(self, port_id, **kwargs):"},{"line_number":209,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027) or False"},{"line_number":210,"context_line":"        if admin:"},{"line_number":211,"context_line":"            fip \u003d self.os_admin.network_client.create_floatingip("},{"line_number":212,"context_line":"                CONF.network.public_network_id,"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_cd236105","line":209,"updated":"2017-10-18 08:02:17.000000000","message":"You can set \"default\" value for get() method so You don\u0027t need this \"or\" here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1c90b1f959324e76f88fca817cf3ddbe327b6621","unresolved":false,"context_lines":[{"line_number":210,"context_line":"        if admin:"},{"line_number":211,"context_line":"            fip \u003d self.os_admin.network_client.create_floatingip("},{"line_number":212,"context_line":"                CONF.network.public_network_id,"},{"line_number":213,"context_line":"                port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":214,"context_line":"            self.floating_ips.append(fip)"},{"line_number":215,"context_line":"        else:"},{"line_number":216,"context_line":"            fip \u003d self.os_primary.network_client.create_floatingip("}],"source_content_type":"text/x-python","patch_set":8,"id":"5f4e5783_e567804c","line":213,"updated":"2017-10-17 16:09:21.000000000","message":"Do you actually need to do this as admin?  I\u0027m wondering if it was only the AZ things it was required for?","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"7ce23d9b97c19707dadc87a8faef7bd2860e096f","unresolved":false,"context_lines":[{"line_number":210,"context_line":"        if admin:"},{"line_number":211,"context_line":"            fip \u003d self.os_admin.network_client.create_floatingip("},{"line_number":212,"context_line":"                CONF.network.public_network_id,"},{"line_number":213,"context_line":"                port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":214,"context_line":"            self.floating_ips.append(fip)"},{"line_number":215,"context_line":"        else:"},{"line_number":216,"context_line":"            fip \u003d self.os_primary.network_client.create_floatingip("}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_f9cffb54","line":213,"in_reply_to":"5f4e5783_e567804c","updated":"2017-10-18 11:08:25.000000000","message":"Apparently we do, I tried to use non-admin as much as possible and narrowed it down to the minimum admin-created resources.\nIn this scenario, we have to create the FIP as admin or it won\u0027t attach to the admin-created instance.","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"1c90b1f959324e76f88fca817cf3ddbe327b6621","unresolved":false,"context_lines":[{"line_number":211,"context_line":"            fip \u003d self.os_admin.network_client.create_floatingip("},{"line_number":212,"context_line":"                CONF.network.public_network_id,"},{"line_number":213,"context_line":"                port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":214,"context_line":"            self.floating_ips.append(fip)"},{"line_number":215,"context_line":"        else:"},{"line_number":216,"context_line":"            fip \u003d self.os_primary.network_client.create_floatingip("},{"line_number":217,"context_line":"                CONF.network.public_network_id,"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f4e5783_c5cfe426","line":214,"range":{"start_line":214,"start_character":12,"end_line":214,"end_character":41},"updated":"2017-10-17 16:09:21.000000000","message":"This can be right above the return, and can remove the one on L219","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"d47fdc72677676b067f60bb019415e30d4f88a52","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        \"\"\""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        name \u003d kwargs.get(\u0027name\u0027, data_utils.rand_name(\u0027server-test\u0027))"},{"line_number":76,"context_line":"        security_groups \u003d \\"},{"line_number":77,"context_line":"            kwargs.get(\u0027security_groups\u0027, [{\u0027name\u0027: \u0027default\u0027}])"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027, None)"},{"line_number":79,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027, False)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_10671350","line":76,"range":{"start_line":76,"start_character":26,"end_line":76,"end_character":27},"updated":"2017-10-20 02:00:15.000000000","message":"nit: backslashes are frowned-upon upstream, can you just move the kwargs.get() up here and indent args as necessary on the next line.","commit_id":"f12904f18a0f70435b4c10b8abdfa1e98bcbd254"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        security_groups \u003d kwargs.get("},{"line_number":77,"context_line":"            \u0027security_groups\u0027, [{\u0027name\u0027: \u0027default\u0027}])"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027, None)"},{"line_number":79,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027, False)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        if admin:"},{"line_number":82,"context_line":"            server \u003d self.os_admin.servers_client.create_server("}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_1825e3ab","line":79,"updated":"2017-10-20 21:13:00.000000000","message":"you should document is_admin in docstring too\n\nOr even better, make it transparent (use admin client if availability_zone is passed)","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            \u0027security_groups\u0027, [{\u0027name\u0027: \u0027default\u0027}])"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027, None)"},{"line_number":79,"context_line":"        admin \u003d kwargs.get(\u0027is_admin\u0027, False)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        if admin:"},{"line_number":82,"context_line":"            server \u003d self.os_admin.servers_client.create_server("},{"line_number":83,"context_line":"                name\u003dname,"},{"line_number":84,"context_line":"                flavorRef\u003dflavor_ref,"},{"line_number":85,"context_line":"                imageRef\u003dimage_ref,"},{"line_number":86,"context_line":"                key_name\u003dkey_name,"},{"line_number":87,"context_line":"                networks\u003dnetworks,"},{"line_number":88,"context_line":"                security_groups\u003dsecurity_groups,"},{"line_number":89,"context_line":"                availability_zone\u003davailability_zone)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"            self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":92,"context_line":"                            waiters.wait_for_server_termination,"},{"line_number":93,"context_line":"                            self.os_admin.servers_client,"},{"line_number":94,"context_line":"                            server[\u0027server\u0027][\u0027id\u0027])"},{"line_number":95,"context_line":"            self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":96,"context_line":"                            self.os_admin.servers_client.delete_server,"},{"line_number":97,"context_line":"                            server[\u0027server\u0027][\u0027id\u0027])"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        else:"},{"line_number":100,"context_line":"            server \u003d self.os_primary.servers_client.create_server("},{"line_number":101,"context_line":"                name\u003dname,"},{"line_number":102,"context_line":"                flavorRef\u003dflavor_ref,"},{"line_number":103,"context_line":"                imageRef\u003dimage_ref,"},{"line_number":104,"context_line":"                key_name\u003dkey_name,"},{"line_number":105,"context_line":"                networks\u003dnetworks,"},{"line_number":106,"context_line":"                security_groups\u003dsecurity_groups)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"            self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":109,"context_line":"                            waiters.wait_for_server_termination,"},{"line_number":110,"context_line":"                            self.os_primary.servers_client,"},{"line_number":111,"context_line":"                            server[\u0027server\u0027][\u0027id\u0027])"},{"line_number":112,"context_line":"            self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":113,"context_line":"                            self.os_primary.servers_client.delete_server,"},{"line_number":114,"context_line":"                            server[\u0027server\u0027][\u0027id\u0027])"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        return server"},{"line_number":117,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_78e97718","line":114,"range":{"start_line":80,"start_character":0,"end_line":114,"end_character":51},"updated":"2017-10-20 21:13:00.000000000","message":"I think you may reduce some code duplication if you do:\n\nserver_args \u003d {}\nif admin:\n    server_args[\u0027availability_zone\u0027] \u003d availability_zone\nclient \u003d os_admin if admin else os_primary\nclient.create_server(..., **server_args)\n...","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        return body[\u0027keypair\u0027]"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    @classmethod"},{"line_number":129,"context_line":"    def create_secgroup_rules(cls, rule_list, secgroup_id\u003dNone,"},{"line_number":130,"context_line":"                              is_admin\u003dFalse):"},{"line_number":131,"context_line":"        if is_admin:"},{"line_number":132,"context_line":"            client \u003d cls.os_admin.network_client"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_984f9333","line":129,"updated":"2017-10-20 21:13:00.000000000","message":"instead of is_admin argument, pass client, like we do in other places, f.e. in line 119; same below","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"d7a6b65107b3b22b4b70658c1d03759b051c6dc4","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        name \u003d kwargs.get(\u0027name\u0027, data_utils.rand_name(\u0027server-test\u0027))"},{"line_number":76,"context_line":"        security_groups \u003d kwargs.get("},{"line_number":77,"context_line":"            \u0027security_groups\u0027, [{\u0027name\u0027: \u0027default\u0027}])"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027, None)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        client \u003d self.os_primary.servers_client"},{"line_number":81,"context_line":"        server_args \u003d {"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_1d736e4f","line":78,"range":{"start_line":78,"start_character":58,"end_line":78,"end_character":64},"updated":"2017-10-23 16:26:25.000000000","message":"by default get returns None you do not need to do this","commit_id":"1df15662488444fe1ac9c5194d31799643ef7837"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"d9c392b4324acde882cb02e1bbeb54ed1ac07e03","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        name \u003d kwargs.get(\u0027name\u0027, data_utils.rand_name(\u0027server-test\u0027))"},{"line_number":76,"context_line":"        security_groups \u003d kwargs.get("},{"line_number":77,"context_line":"            \u0027security_groups\u0027, [{\u0027name\u0027: \u0027default\u0027}])"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027, None)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        client \u003d self.os_primary.servers_client"},{"line_number":81,"context_line":"        server_args \u003d {"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_f0c88222","line":78,"range":{"start_line":78,"start_character":58,"end_line":78,"end_character":64},"in_reply_to":"3f4b6375_1d736e4f","updated":"2017-10-25 08:25:49.000000000","message":"Removed.","commit_id":"1df15662488444fe1ac9c5194d31799643ef7837"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"d7a6b65107b3b22b4b70658c1d03759b051c6dc4","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            \u0027security_groups\u0027, [{\u0027name\u0027: \u0027default\u0027}])"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027, None)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        client \u003d self.os_primary.servers_client"},{"line_number":81,"context_line":"        server_args \u003d {"},{"line_number":82,"context_line":"            \u0027name\u0027: name,"},{"line_number":83,"context_line":"            \u0027flavorRef\u0027: flavor_ref,"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_3dad0a88","line":80,"updated":"2017-10-23 16:26:25.000000000","message":"nit - you could have an else on line 93 and set this","commit_id":"1df15662488444fe1ac9c5194d31799643ef7837"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"d9c392b4324acde882cb02e1bbeb54ed1ac07e03","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            \u0027security_groups\u0027, [{\u0027name\u0027: \u0027default\u0027}])"},{"line_number":78,"context_line":"        availability_zone \u003d kwargs.get(\u0027availability_zone\u0027, None)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        client \u003d self.os_primary.servers_client"},{"line_number":81,"context_line":"        server_args \u003d {"},{"line_number":82,"context_line":"            \u0027name\u0027: name,"},{"line_number":83,"context_line":"            \u0027flavorRef\u0027: flavor_ref,"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_b0ce8a2a","line":80,"in_reply_to":"3f4b6375_3dad0a88","updated":"2017-10-25 08:25:49.000000000","message":"Done.","commit_id":"1df15662488444fe1ac9c5194d31799643ef7837"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"d7a6b65107b3b22b4b70658c1d03759b051c6dc4","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        client \u003d client or cls.os_primary.keypairs_client"},{"line_number":108,"context_line":"        name \u003d data_utils.rand_name(\u0027keypair-test\u0027)"},{"line_number":109,"context_line":"        body \u003d client.create_keypair(name\u003dname)"},{"line_number":110,"context_line":"        if client is cls.os_primary.keypairs_client:"},{"line_number":111,"context_line":"            cls.keypairs.append(body[\u0027keypair\u0027])"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        return body[\u0027keypair\u0027]"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_3dc62a4a","line":110,"updated":"2017-10-23 16:26:25.000000000","message":"this looks unlrelated to the commit message","commit_id":"1df15662488444fe1ac9c5194d31799643ef7837"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"d9c392b4324acde882cb02e1bbeb54ed1ac07e03","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        client \u003d client or cls.os_primary.keypairs_client"},{"line_number":108,"context_line":"        name \u003d data_utils.rand_name(\u0027keypair-test\u0027)"},{"line_number":109,"context_line":"        body \u003d client.create_keypair(name\u003dname)"},{"line_number":110,"context_line":"        if client is cls.os_primary.keypairs_client:"},{"line_number":111,"context_line":"            cls.keypairs.append(body[\u0027keypair\u0027])"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        return body[\u0027keypair\u0027]"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f4b6375_10df9ed6","line":110,"in_reply_to":"3f4b6375_3dc62a4a","updated":"2017-10-25 08:25:49.000000000","message":"This was a WA to an issue where cleanup couldn\u0027t delete keypairs made by admin.\nFixed now.","commit_id":"1df15662488444fe1ac9c5194d31799643ef7837"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"939b185dffc98253405c061583b52d2b92ed198b","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                      **kwargs):"},{"line_number":53,"context_line":"        \"\"\"Create a server using tempest lib"},{"line_number":54,"context_line":"        All the parameters are the ones used in Compute API"},{"line_number":55,"context_line":"        * - Kwargs that require admin privileges"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        Args:"},{"line_number":58,"context_line":"           flavor_ref(str): The flavor of the server to be provisioned."}],"source_content_type":"text/x-python","patch_set":15,"id":"3f4b6375_65104ba9","line":55,"updated":"2017-10-25 14:02:59.000000000","message":"nit: why uppercase?","commit_id":"253d1a9b61812c8094e844a2556aeb01d624913e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"939b185dffc98253405c061583b52d2b92ed198b","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               an interface to be attached to the server. For network"},{"line_number":64,"context_line":"               it should be {\u0027uuid\u0027: network_uuid} and for port it should"},{"line_number":65,"context_line":"               be {\u0027port\u0027: port_uuid}"},{"line_number":66,"context_line":"        Kwargs:"},{"line_number":67,"context_line":"           name(str): Name of the server to be provisioned."},{"line_number":68,"context_line":"           security_groups(list): List of dictionaries where"},{"line_number":69,"context_line":"                the keys is \u0027name\u0027 and the value is the name of"}],"source_content_type":"text/x-python","patch_set":15,"id":"3f4b6375_4529cfe3","line":66,"updated":"2017-10-25 14:02:59.000000000","message":"nit: uppercase?","commit_id":"253d1a9b61812c8094e844a2556aeb01d624913e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4c41522d98f70743ee8aa875659d81c090c091b7","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               an interface to be attached to the server. For network"},{"line_number":64,"context_line":"               it should be {\u0027uuid\u0027: network_uuid} and for port it should"},{"line_number":65,"context_line":"               be {\u0027port\u0027: port_uuid}"},{"line_number":66,"context_line":"        Kwargs:"},{"line_number":67,"context_line":"           name(str): Name of the server to be provisioned."},{"line_number":68,"context_line":"           security_groups(list): List of dictionaries where"},{"line_number":69,"context_line":"                the keys is \u0027name\u0027 and the value is the name of"}],"source_content_type":"text/x-python","patch_set":15,"id":"3f4b6375_43665dc3","line":66,"in_reply_to":"3f4b6375_20492130","updated":"2017-10-25 21:06:50.000000000","message":"I guess I would only change if you have to re-spin.","commit_id":"253d1a9b61812c8094e844a2556aeb01d624913e"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"ebdf8d97e0cbd5478e25701c00ca03cb4cfd8f14","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               an interface to be attached to the server. For network"},{"line_number":64,"context_line":"               it should be {\u0027uuid\u0027: network_uuid} and for port it should"},{"line_number":65,"context_line":"               be {\u0027port\u0027: port_uuid}"},{"line_number":66,"context_line":"        Kwargs:"},{"line_number":67,"context_line":"           name(str): Name of the server to be provisioned."},{"line_number":68,"context_line":"           security_groups(list): List of dictionaries where"},{"line_number":69,"context_line":"                the keys is \u0027name\u0027 and the value is the name of"}],"source_content_type":"text/x-python","patch_set":15,"id":"3f4b6375_20492130","line":66,"in_reply_to":"3f4b6375_4529cfe3","updated":"2017-10-25 14:17:20.000000000","message":"I followed the logic of \u0027Args\u0027 in line 57.\nNot really sure if I need to change this or not :)\nAnyone want to weigh in on this?","commit_id":"253d1a9b61812c8094e844a2556aeb01d624913e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"8f6cc25d75a3f19ac51d28fbcf4d18250d08a924","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               an interface to be attached to the server. For network"},{"line_number":64,"context_line":"               it should be {\u0027uuid\u0027: network_uuid} and for port it should"},{"line_number":65,"context_line":"               be {\u0027port\u0027: port_uuid}"},{"line_number":66,"context_line":"        Kwargs:"},{"line_number":67,"context_line":"           name(str): Name of the server to be provisioned."},{"line_number":68,"context_line":"           security_groups(list): List of dictionaries where"},{"line_number":69,"context_line":"                the keys is \u0027name\u0027 and the value is the name of"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_553952d4","line":66,"range":{"start_line":66,"start_character":8,"end_line":66,"end_character":9},"updated":"2017-10-26 18:39:36.000000000","message":"I suggest changing this to kwargs","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"1f1d6df74e671ec950d6745f8b0f4b662d1bd31f","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               an interface to be attached to the server. For network"},{"line_number":64,"context_line":"               it should be {\u0027uuid\u0027: network_uuid} and for port it should"},{"line_number":65,"context_line":"               be {\u0027port\u0027: port_uuid}"},{"line_number":66,"context_line":"        Kwargs:"},{"line_number":67,"context_line":"           name(str): Name of the server to be provisioned."},{"line_number":68,"context_line":"           security_groups(list): List of dictionaries where"},{"line_number":69,"context_line":"                the keys is \u0027name\u0027 and the value is the name of"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_e52ce2ad","line":66,"range":{"start_line":66,"start_character":8,"end_line":66,"end_character":9},"in_reply_to":"3f4b6375_553952d4","updated":"2017-10-29 10:18:56.000000000","message":"Changed.","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"8f6cc25d75a3f19ac51d28fbcf4d18250d08a924","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                the keys is \u0027name\u0027 and the value is the name of"},{"line_number":70,"context_line":"                the security group. If it\u0027s not passed the default"},{"line_number":71,"context_line":"                security group will be used."},{"line_number":72,"context_line":"           availability_zone(str)*: The availability zone that"},{"line_number":73,"context_line":"                the instance will be in."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        name \u003d kwargs.get(\u0027name\u0027, data_utils.rand_name(\u0027server-test\u0027))"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_5510324e","line":73,"range":{"start_line":72,"start_character":36,"end_line":73,"end_character":39},"updated":"2017-10-26 18:39:36.000000000","message":"You can pass the availability zone + the hypervisor. Since this is a utility method that can be used by others, I suggest documenting this fact","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"1f1d6df74e671ec950d6745f8b0f4b662d1bd31f","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                the keys is \u0027name\u0027 and the value is the name of"},{"line_number":70,"context_line":"                the security group. If it\u0027s not passed the default"},{"line_number":71,"context_line":"                security group will be used."},{"line_number":72,"context_line":"           availability_zone(str)*: The availability zone that"},{"line_number":73,"context_line":"                the instance will be in."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        name \u003d kwargs.get(\u0027name\u0027, data_utils.rand_name(\u0027server-test\u0027))"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_a5182a84","line":73,"range":{"start_line":72,"start_character":36,"end_line":73,"end_character":39},"in_reply_to":"3f4b6375_5510324e","updated":"2017-10-29 10:18:56.000000000","message":"Added information, please take a look.","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"8f6cc25d75a3f19ac51d28fbcf4d18250d08a924","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        fip \u003d client.create_floatingip("},{"line_number":189,"context_line":"            CONF.network.public_network_id,"},{"line_number":190,"context_line":"            port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":191,"context_line":"        self.floating_ips.append(fip)"},{"line_number":192,"context_line":"        return fip"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    def setup_network_and_server(self, router\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_3a4ec5c0","line":191,"updated":"2017-10-26 18:39:36.000000000","message":"By adding the newly created FIP to this list, you are letting this teardown to execute: https://github.com/openstack/neutron/blob/master/neutron/tests/tempest/api/base.py#L126 But you are taking care of the deletions of the FIPs here: https://review.openstack.org/#/c/509156/16/neutron/tests/tempest/scenario/test_floatingip_admin.py@92. You can see deletion failures in the test execution log here: http://logs.openstack.org/56/509156/16/check/legacy-tempest-dsvm-neutron-dvr-multinode-scenario/0ee8d3d/logs/tempest.txt.gz#_2017-10-26_09_51_20_875. \n\nI think you will need to do something similar to what you did above in L113","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"1f1d6df74e671ec950d6745f8b0f4b662d1bd31f","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        fip \u003d client.create_floatingip("},{"line_number":189,"context_line":"            CONF.network.public_network_id,"},{"line_number":190,"context_line":"            port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":191,"context_line":"        self.floating_ips.append(fip)"},{"line_number":192,"context_line":"        return fip"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    def setup_network_and_server(self, router\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_65447275","line":191,"in_reply_to":"3f4b6375_3a4ec5c0","updated":"2017-10-29 10:18:56.000000000","message":"I get your point, you are absolutely correct.\nThing is, this is being deleted in api/base.py as opposed to keypairs which are not.\nSo in order to do the same process I need to change api/base.py.\nNot sure if I need to do this in this patch as well.\nAny thoughts?","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"acc535cae6d219c9674dd09201a6fccc9c0fea53","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        fip \u003d client.create_floatingip("},{"line_number":189,"context_line":"            CONF.network.public_network_id,"},{"line_number":190,"context_line":"            port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":191,"context_line":"        self.floating_ips.append(fip)"},{"line_number":192,"context_line":"        return fip"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    def setup_network_and_server(self, router\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_2b314f0c","line":191,"in_reply_to":"3f4b6375_65447275","updated":"2017-11-01 17:45:01.000000000","message":"I don\u0027t get your point. I might be missing something, but what prevents you from doing the following:\n\n    if client is self.os_primary.network_client:\n        self.floating_ips.append(fip)\n\nThis way, the floating ips that are being created with the admin client that you pass won\u0027t be in the list and cleanup in api/base.py won\u0027t try to delete them","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8d2c04540ee8a80b9fcc6372a93e990f83ce773e","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        }"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        if availability_zone:"},{"line_number":94,"context_line":"            server_args.update(availability_zone\u003davailability_zone)"},{"line_number":95,"context_line":"            client \u003d self.os_admin.servers_client"},{"line_number":96,"context_line":"        else:"},{"line_number":97,"context_line":"            client \u003d self.os_primary.servers_client"}],"source_content_type":"text/x-python","patch_set":17,"id":"3f4b6375_dcd03fcc","line":94,"range":{"start_line":94,"start_character":12,"end_line":94,"end_character":67},"updated":"2017-11-01 19:23:01.000000000","message":"nit: seems like the following is a bit simpler:\n\nserver_args[\u0027availability_zone\u0027] \u003d availability_zone","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"309d7497d8cd0588235edd4c49451aab44c63bcd","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        }"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        if availability_zone:"},{"line_number":94,"context_line":"            server_args.update(availability_zone\u003davailability_zone)"},{"line_number":95,"context_line":"            client \u003d self.os_admin.servers_client"},{"line_number":96,"context_line":"        else:"},{"line_number":97,"context_line":"            client \u003d self.os_primary.servers_client"}],"source_content_type":"text/x-python","patch_set":17,"id":"3f4b6375_fecc818b","line":94,"range":{"start_line":94,"start_character":12,"end_line":94,"end_character":67},"in_reply_to":"3f4b6375_dcd03fcc","updated":"2017-11-08 14:21:50.000000000","message":"Done.","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6039928684c7d933e0fcb720d5814d2a17416891","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        fip \u003d client.create_floatingip("},{"line_number":192,"context_line":"            CONF.network.public_network_id,"},{"line_number":193,"context_line":"            port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":194,"context_line":"        if client is self.os_primary.network_client:"},{"line_number":195,"context_line":"            self.floating_ips.append(fip)"},{"line_number":196,"context_line":"        return fip"},{"line_number":197,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1f485f77_6299131e","line":194,"updated":"2017-11-09 16:29:18.000000000","message":"I believe self.floating_ips is populated to later clean them up? if client is different, shouldn\u0027t we still schedule cleanup for newly created FIPs?","commit_id":"c970b42fd1783dbbe188c04368f0a5b05fa573c1"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"1ba2b82d679d9a59b0350c2728ed968edf31cc49","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        fip \u003d client.create_floatingip("},{"line_number":192,"context_line":"            CONF.network.public_network_id,"},{"line_number":193,"context_line":"            port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":194,"context_line":"        if client is self.os_primary.network_client:"},{"line_number":195,"context_line":"            self.floating_ips.append(fip)"},{"line_number":196,"context_line":"        return fip"},{"line_number":197,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1f485f77_3377cf3d","line":194,"in_reply_to":"1f485f77_6299131e","updated":"2017-11-12 09:39:46.000000000","message":"This process is happening in api/base.py\nThe \u0027client\u0027 there is hardcoded to os_primary.\nPlease take a look at this and provide instructions.","commit_id":"c970b42fd1783dbbe188c04368f0a5b05fa573c1"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"37edab66008a4cea8ebf85c4c7e400170a59e313","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        name \u003d data_utils.rand_name(\u0027keypair-test\u0027)"},{"line_number":114,"context_line":"        body \u003d client.create_keypair(name\u003dname)"},{"line_number":115,"context_line":"        body.update(client\u003dclient)"},{"line_number":116,"context_line":"        if client is cls.os_primary.keypairs_client:"},{"line_number":117,"context_line":"            cls.keypairs.append(body)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        return body[\u0027keypair\u0027]"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_a517daa3","line":116,"updated":"2017-11-13 18:48:34.000000000","message":"Why save just the keypairs when os_primary?  Won\u0027t the code on L45 do the right thing?","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"5dd1efa1e92494b5a5df6d2bc225d75715a5f322","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        name \u003d data_utils.rand_name(\u0027keypair-test\u0027)"},{"line_number":114,"context_line":"        body \u003d client.create_keypair(name\u003dname)"},{"line_number":115,"context_line":"        body.update(client\u003dclient)"},{"line_number":116,"context_line":"        if client is cls.os_primary.keypairs_client:"},{"line_number":117,"context_line":"            cls.keypairs.append(body)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        return body[\u0027keypair\u0027]"}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_49870e11","line":116,"in_reply_to":"1f485f77_a517daa3","updated":"2017-11-14 09:29:38.000000000","message":"Whenever I append a key to cls.keypairs it reaches api/base.py for cleanup.\nThe code there is strictly cleaning up resources that were created using user credentials.\nI tried cleaning up \u0027os_admin\u0027 with the same process and the result is that the test fails.\nThis and FIP both erased with WA in the actual test.\nThe WA for fips:\nLine 93 in test_floatingip.py\nThe WA for keypairs:\nLine 115 in scenario/base.py - Adding the client used in creation request and then\nLine 46 (same file), using it.","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"37edab66008a4cea8ebf85c4c7e400170a59e313","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        fip \u003d client.create_floatingip("},{"line_number":192,"context_line":"            CONF.network.public_network_id,"},{"line_number":193,"context_line":"            port_id\u003dport_id)[\u0027floatingip\u0027]"},{"line_number":194,"context_line":"        if client is self.os_primary.network_client:"},{"line_number":195,"context_line":"            self.floating_ips.append(fip)"},{"line_number":196,"context_line":"        return fip"},{"line_number":197,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"1f485f77_65d442be","line":194,"updated":"2017-11-13 18:48:34.000000000","message":"Same here, since I\u0027m not sure anything tracks and cleans self.floating_ips anyways.","commit_id":"72ec7e8adcd5fb022f6ee95c7069b9102e09f047"}],"neutron/tests/tempest/scenario/test_floatingip_admin.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4c41522d98f70743ee8aa875659d81c090c091b7","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":104,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":105,"context_line":"        az_func \u003d self._list_availability_zones"},{"line_number":106,"context_line":"        avail_zone \u003d \\"},{"line_number":107,"context_line":"            az_func()[\u0027availabilityZoneInfo\u0027][0][\u0027zoneName\u0027]"},{"line_number":108,"context_line":"        server_ssh_clients, fips \u003d self.create_vms(hyper, avail_zone)"},{"line_number":109,"context_line":"        self.check_remote_connectivity("}],"source_content_type":"text/x-python","patch_set":15,"id":"3f4b6375_a362b1d6","line":106,"range":{"start_line":106,"start_character":21,"end_line":106,"end_character":22},"updated":"2017-10-25 21:06:50.000000000","message":"Just my usual nit about using backslashes","commit_id":"253d1a9b61812c8094e844a2556aeb01d624913e"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"0b4035c48758d959eb660f8bc179429fe3b4b277","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":104,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":105,"context_line":"        az_func \u003d self._list_availability_zones"},{"line_number":106,"context_line":"        avail_zone \u003d \\"},{"line_number":107,"context_line":"            az_func()[\u0027availabilityZoneInfo\u0027][0][\u0027zoneName\u0027]"},{"line_number":108,"context_line":"        server_ssh_clients, fips \u003d self.create_vms(hyper, avail_zone)"},{"line_number":109,"context_line":"        self.check_remote_connectivity("}],"source_content_type":"text/x-python","patch_set":15,"id":"3f4b6375_a87161aa","line":106,"range":{"start_line":106,"start_character":21,"end_line":106,"end_character":22},"in_reply_to":"3f4b6375_a362b1d6","updated":"2017-10-26 08:36:54.000000000","message":"Fixed","commit_id":"253d1a9b61812c8094e844a2556aeb01d624913e"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"8f6cc25d75a3f19ac51d28fbcf4d18250d08a924","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        # List of availability zones"},{"line_number":62,"context_line":"        return self.os_admin.az_client.list_availability_zones()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def create_vms(self, hyper, avail_zone, num_servers\u003d2):"},{"line_number":65,"context_line":"        servers, fips, server_ssh_clients \u003d ([], [], [])"},{"line_number":66,"context_line":"        # Create the availability zone with default zone and"},{"line_number":67,"context_line":"        # a specific mentioned hypervisor."}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_7a279dcb","line":64,"range":{"start_line":64,"start_character":8,"end_line":64,"end_character":18},"updated":"2017-10-26 18:39:36.000000000","message":"why not _create_vms? This is a private method, isn\u0027t it?","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"1f1d6df74e671ec950d6745f8b0f4b662d1bd31f","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        # List of availability zones"},{"line_number":62,"context_line":"        return self.os_admin.az_client.list_availability_zones()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def create_vms(self, hyper, avail_zone, num_servers\u003d2):"},{"line_number":65,"context_line":"        servers, fips, server_ssh_clients \u003d ([], [], [])"},{"line_number":66,"context_line":"        # Create the availability zone with default zone and"},{"line_number":67,"context_line":"        # a specific mentioned hypervisor."}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_05201eb0","line":64,"range":{"start_line":64,"start_character":8,"end_line":64,"end_character":18},"in_reply_to":"3f4b6375_7a279dcb","updated":"2017-10-29 10:18:56.000000000","message":"Corrected.","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"8f6cc25d75a3f19ac51d28fbcf4d18250d08a924","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"},{"line_number":97,"context_line":"    def test_two_vms_fips(self):"},{"line_number":98,"context_line":"        \"\"\"This test verifies the ability of two instances"},{"line_number":99,"context_line":"        that was created in the same compute node to reach"},{"line_number":100,"context_line":"        each other."},{"line_number":101,"context_line":"        \"\"\""},{"line_number":102,"context_line":"        # Get hypervisor list to pass it for vm creation"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_0f986d72","line":99,"range":{"start_line":99,"start_character":13,"end_line":99,"end_character":16},"updated":"2017-10-26 18:39:36.000000000","message":"were","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"1f1d6df74e671ec950d6745f8b0f4b662d1bd31f","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"},{"line_number":97,"context_line":"    def test_two_vms_fips(self):"},{"line_number":98,"context_line":"        \"\"\"This test verifies the ability of two instances"},{"line_number":99,"context_line":"        that was created in the same compute node to reach"},{"line_number":100,"context_line":"        each other."},{"line_number":101,"context_line":"        \"\"\""},{"line_number":102,"context_line":"        # Get hypervisor list to pass it for vm creation"}],"source_content_type":"text/x-python","patch_set":16,"id":"3f4b6375_65123265","line":99,"range":{"start_line":99,"start_character":13,"end_line":99,"end_character":16},"in_reply_to":"3f4b6375_0f986d72","updated":"2017-10-29 10:18:56.000000000","message":"Fixed.","commit_id":"a9e73fc0b4ff26422cf3a867c95a889f5f772025"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8d2c04540ee8a80b9fcc6372a93e990f83ce773e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"from tempest.common import waiters"},{"line_number":16,"context_line":"from tempest.lib.common.utils import data_utils"},{"line_number":17,"context_line":"from tempest.lib import decorators"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.tests.tempest.common import ssh"},{"line_number":20,"context_line":"from neutron.tests.tempest import config"}],"source_content_type":"text/x-python","patch_set":17,"id":"3f4b6375_fc977bea","line":17,"updated":"2017-11-01 19:23:01.000000000","message":"Consider moving the file to neutron/tests/tempest/scenario/admin/... to reflect what we do for api tests (neutron/tests/tempest/api/admin). Then maybe also rename the file into test_floating_ips.py since then it will be clear it\u0027s admin specific.","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"309d7497d8cd0588235edd4c49451aab44c63bcd","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"from tempest.common import waiters"},{"line_number":16,"context_line":"from tempest.lib.common.utils import data_utils"},{"line_number":17,"context_line":"from tempest.lib import decorators"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.tests.tempest.common import ssh"},{"line_number":20,"context_line":"from neutron.tests.tempest import config"}],"source_content_type":"text/x-python","patch_set":17,"id":"3f4b6375_9ec34d58","line":17,"in_reply_to":"3f4b6375_fc977bea","updated":"2017-11-08 14:21:50.000000000","message":"Done.","commit_id":"266b219d497e6871d4857177aa5ebe01b8a35f28"}],"neutron/tests/tempest/scenario/test_two_vms_fips.py":[{"author":{"_account_id":4727,"name":"Itzik Brown","email":"itzikb@redhat.com","username":"itzikb1"},"change_message_id":"7077ceaf6b5050321156b95efe041cb07d63e601","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            self.os_admin.availability_zone_client.list_availability_zones()"},{"line_number":69,"context_line":"        return avail_zones"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def create_vms(self, hyper, avail_zone, num_servers\u003d2):"},{"line_number":72,"context_line":"        servers, fips, server_ssh_clients \u003d ([], [], [])"},{"line_number":73,"context_line":"        # Create the availability zone with default zone and"},{"line_number":74,"context_line":"        # a specific mentioned hypervisor."}],"source_content_type":"text/x-python","patch_set":2,"id":"7f515b1d_8cb32b4e","line":71,"updated":"2017-10-03 14:10:40.000000000","message":"It seems similar to  create_vm_testing_sec_grp in test_security_group","commit_id":"5b0398759a9dc587e40d36776444e07fd799762b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e8995c8b8a2a46f5b82b56d07e47de5885e2f9da","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from tempest.lib import decorators"},{"line_number":17,"context_line":"from tempest.lib.common.utils import data_utils"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"import ipdb"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from neutron.tests.tempest.common import ssh"},{"line_number":22,"context_line":"from neutron.tests.tempest import config"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f4e5783_361bcbd0","line":19,"updated":"2017-10-15 15:22:38.000000000","message":"what is this? it should be above the tempest imports or in the same section","commit_id":"649860d26ed7df935044cd62fa2173b1ac71c0c9"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        # List of hypervisors"},{"line_number":59,"context_line":"        hypers \u003d \\"},{"line_number":60,"context_line":"            self.os_admin.hypervisor_client.list_hypervisors()[\u0027hypervisors\u0027]"},{"line_number":61,"context_line":"        return hypers"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _list_availability_zones(self):"},{"line_number":64,"context_line":"        # List of availability zones"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_cd3a4133","line":61,"updated":"2017-10-18 08:02:17.000000000","message":"nit: You don\u0027t need this variable \"hypers\" here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    def _list_availability_zones(self):"},{"line_number":64,"context_line":"        # List of availability zones"},{"line_number":65,"context_line":"        avail_zones \u003d \\"},{"line_number":66,"context_line":"            self.os_admin.availability_zone_client.list_availability_zones()"},{"line_number":67,"context_line":"        return avail_zones"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def create_vms(self, hyper, avail_zone, num_servers\u003d2):"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_ad4705bd","line":66,"updated":"2017-10-18 08:02:17.000000000","message":"I\u0027m not sure what this client is returning but isn\u0027t it dict like for list_hypervisors() above?","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93fac197535ba3f9e579a5d62efa4c20f05091cb","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        # List of availability zones"},{"line_number":65,"context_line":"        avail_zones \u003d \\"},{"line_number":66,"context_line":"            self.os_admin.availability_zone_client.list_availability_zones()"},{"line_number":67,"context_line":"        return avail_zones"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def create_vms(self, hyper, avail_zone, num_servers\u003d2):"},{"line_number":70,"context_line":"        servers, fips, server_ssh_clients \u003d ([], [], [])"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f4b6375_8d4449b9","line":67,"updated":"2017-10-18 08:02:17.000000000","message":"nit: You don\u0027t need this variable \"avail_zones\" here","commit_id":"055d79ca1933acd212ff3b7346a452e5b5e85cc7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 Red Hat, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_f873277f","line":1,"updated":"2017-10-20 21:13:00.000000000","message":"why not putting the test class in existing neutron/tests/tempest/scenario/test_floatingip.py ?","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"e3e414fc68df4068a3e78e0dd1cc9c84a48b287e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 Red Hat, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_d109482c","line":1,"in_reply_to":"3f4b6375_f873277f","updated":"2017-10-23 13:40:51.000000000","message":"I actually decided to go with another file that will cover all admin scenarios instead of user scenarios.\nin test_floatingip.py, multiple tests running with the same setup and teardown, but all are using user privileges.\nI though that it\u0027ll make sense to create another file to support admin privileges entirely, naming it specifically so when it is expanded (another admin-related-floatingip-test), the name will change to something like test_floatingip_admin.py or similar.\nPlease let me know if my logic is ok or should I change it.","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":24,"context_line":"CONF \u003d config.CONF"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"class TestTwoVmsFips(base.BaseTempestTestCase):"},{"line_number":28,"context_line":"    credentials \u003d [\u0027primary\u0027, \u0027admin\u0027]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_58635bb2","line":27,"range":{"start_line":27,"start_character":6,"end_line":27,"end_character":20},"updated":"2017-10-20 21:13:00.000000000","message":"please add a docstring explaining the scenario.","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        cls.keypair \u003d cls.create_keypair(client\u003dcls.os_admin.keypairs_client)"},{"line_number":39,"context_line":"        # Create security group with admin privileges"},{"line_number":40,"context_line":"        cls.secgroup \u003d cls.os_admin.network_client.create_security_group("},{"line_number":41,"context_line":"            name\u003ddata_utils.rand_name(\u0027secgroup-\u0027))[\u0027security_group\u0027]"},{"line_number":42,"context_line":"        # Execute funcs to achieve ssh and ICMP capabilities"},{"line_number":43,"context_line":"        funcs \u003d [cls.create_loginable_secgroup_rule,"},{"line_number":44,"context_line":"                 cls.create_pingable_secgroup_rule]"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_9868b387","line":41,"range":{"start_line":41,"start_character":47,"end_line":41,"end_character":48},"updated":"2017-10-20 21:13:00.000000000","message":"rand_name already adds a dash, remove","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    @classmethod"},{"line_number":49,"context_line":"    def resource_cleanup(cls):"},{"line_number":50,"context_line":"        super(TestTwoVmsFips, cls).resource_cleanup()"},{"line_number":51,"context_line":"        # Cleanup for keypair and security group"},{"line_number":52,"context_line":"        cls.os_admin.keypairs_client.delete_keypair("},{"line_number":53,"context_line":"            keypair_name\u003dcls.keypair[\u0027name\u0027])"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_d8f3cbe6","line":50,"updated":"2017-10-20 21:13:00.000000000","message":"I think you should first clean up the resources that we create, then call to super(), otherwise we are prone to race condition where some other resource that super() will try to clean up depends to a resource that we created.","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"266292d89bddc1d26fbe303a511efa3580c7359d","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"},{"line_number":99,"context_line":"    def test_two_vms_fips(self):"},{"line_number":100,"context_line":"        # Get hypervisor list to pass it for vm creation"},{"line_number":101,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":102,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":103,"context_line":"        az_func \u003d self._list_availability_zones"},{"line_number":104,"context_line":"        avail_zone \u003d \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_d8e18bfe","line":101,"updated":"2017-10-20 21:13:00.000000000","message":"hm, but it\u0027s not guaranteed that the hypervisor will have the zone available, right?","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"},{"author":{"_account_id":26899,"name":"Roee Agiman","email":"ragiman@redhat.com","username":"ragiman"},"change_message_id":"e3e414fc68df4068a3e78e0dd1cc9c84a48b287e","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    @decorators.idempotent_id(\u00276bba729b-3fb6-494b-9e1e-82bbd89a1045\u0027)"},{"line_number":99,"context_line":"    def test_two_vms_fips(self):"},{"line_number":100,"context_line":"        # Get hypervisor list to pass it for vm creation"},{"line_number":101,"context_line":"        hyper \u003d self._list_hypervisors()[0][\u0027hypervisor_hostname\u0027]"},{"line_number":102,"context_line":"        # Get availability zone list to pass it for vm creation"},{"line_number":103,"context_line":"        az_func \u003d self._list_availability_zones"},{"line_number":104,"context_line":"        avail_zone \u003d \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_962506c5","line":101,"in_reply_to":"3f4b6375_d8e18bfe","updated":"2017-10-23 13:40:51.000000000","message":"It actually does.\nAt first I wasn\u0027t sure how to achieve this goal - opening two instances on the same compute.\nGoogle and ask.openstack suggested to use --availability-zone \u003cdefault-zone\u003e:\u003chypervisor\u003e\nPlease see:\nhttps://ask.openstack.org/en/question/47877/how-to-launch-an-instance-on-specific-host/","commit_id":"b704f47d6c400c5515d53b9c1fb457d0d2efa8da"}]}
