)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Nir Gilboa \u003cgilboa.nir@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-02-10 15:05:55 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Scenario Tests: Move shared logic to base class, in prep. for new tests"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: Ia7db48ae0ecab7a11b1d724b6ca71015ee675aea"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"df7087c5_749033ee","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":71},"updated":"2018-03-15 11:50:22.000000000","message":"This header line is too long and should be limited to 50 characters. There should also be a summary below this detailing what this change does and why it was needed. See the link below for some more information.\n\nhttps://wiki.openstack.org/wiki/GitCommitMessages#Summary_of_Git_commit_message_structure","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"}],"manila_tempest_tests/tests/scenario/manager_share.py":[{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    ip_version \u003d 4"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    @property"},{"line_number":43,"context_line":"    def use_ipv6(self):"},{"line_number":44,"context_line":"        return self.ip_version \u003d\u003d 6"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_cbbcda07","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":16},"updated":"2018-03-15 11:50:22.000000000","message":"This is an odd name for a Boolean property. Something like ipv6_enabled would make the property\u0027s purpose more clear.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    ip_version \u003d 4"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    @property"},{"line_number":43,"context_line":"    def use_ipv6(self):"},{"line_number":44,"context_line":"        return self.ip_version \u003d\u003d 6"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_e927acb5","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":16},"in_reply_to":"df7087c5_cbbcda07","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def setUp(self):"},{"line_number":63,"context_line":"        super(ShareScenarioTest, self).setUp()"},{"line_number":64,"context_line":"        if self.use_ipv6 and not CONF.share.run_ipv6_tests:"},{"line_number":65,"context_line":"            raise self.skipException(\"IPv6 tests are disabled\")"},{"line_number":66,"context_line":"        base.verify_test_has_appropriate_tags(self)"},{"line_number":67,"context_line":"        self.image_ref \u003d None"},{"line_number":68,"context_line":"        # Setup image and flavor the test instance"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_ab340694","line":65,"range":{"start_line":64,"start_character":8,"end_line":65,"end_character":63},"updated":"2018-03-15 11:50:22.000000000","message":"We should probably move this check and the protocol checks below this above the super call as it is possible that we will create resources that will never be used as the test is irrelevant to the back end under test. We should see if the test is applicable before setting up any resources for it.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def setUp(self):"},{"line_number":63,"context_line":"        super(ShareScenarioTest, self).setUp()"},{"line_number":64,"context_line":"        if self.use_ipv6 and not CONF.share.run_ipv6_tests:"},{"line_number":65,"context_line":"            raise self.skipException(\"IPv6 tests are disabled\")"},{"line_number":66,"context_line":"        base.verify_test_has_appropriate_tags(self)"},{"line_number":67,"context_line":"        self.image_ref \u003d None"},{"line_number":68,"context_line":"        # Setup image and flavor the test instance"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_e9832c55","line":65,"range":{"start_line":64,"start_character":8,"end_line":65,"end_character":63},"in_reply_to":"df7087c5_ab340694","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        self.image_ref \u003d None"},{"line_number":68,"context_line":"        # Setup image and flavor the test instance"},{"line_number":69,"context_line":"        # Support both configured and injected values"},{"line_number":70,"context_line":"        self.floatings \u003d {}"},{"line_number":71,"context_line":"        if self.protocol not in CONF.share.enable_protocols:"},{"line_number":72,"context_line":"            message \u003d \"%s tests are disabled\" % self.protocol"},{"line_number":73,"context_line":"            raise self.skipException(message)"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_abd96657","line":70,"range":{"start_line":70,"start_character":13,"end_line":70,"end_character":22},"updated":"2018-03-15 11:50:22.000000000","message":"This should be renamed to something more clear. Something like floating_ips should suffice.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        self.image_ref \u003d None"},{"line_number":68,"context_line":"        # Setup image and flavor the test instance"},{"line_number":69,"context_line":"        # Support both configured and injected values"},{"line_number":70,"context_line":"        self.floatings \u003d {}"},{"line_number":71,"context_line":"        if self.protocol not in CONF.share.enable_protocols:"},{"line_number":72,"context_line":"            message \u003d \"%s tests are disabled\" % self.protocol"},{"line_number":73,"context_line":"            raise self.skipException(message)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_8992b09e","line":70,"range":{"start_line":70,"start_character":13,"end_line":70,"end_character":22},"in_reply_to":"df7087c5_abd96657","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        # Setup image and flavor the test instance"},{"line_number":69,"context_line":"        # Support both configured and injected values"},{"line_number":70,"context_line":"        self.floatings \u003d {}"},{"line_number":71,"context_line":"        if self.protocol not in CONF.share.enable_protocols:"},{"line_number":72,"context_line":"            message \u003d \"%s tests are disabled\" % self.protocol"},{"line_number":73,"context_line":"            raise self.skipException(message)"},{"line_number":74,"context_line":"        if self.protocol not in CONF.share.enable_ip_rules_for_protocols:"},{"line_number":75,"context_line":"            message \u003d (\"%s tests for access rules other than IP are disabled\" %"},{"line_number":76,"context_line":"                       self.protocol)"},{"line_number":77,"context_line":"            raise self.skipException(message)"},{"line_number":78,"context_line":"        if not hasattr(self, \u0027flavor_ref\u0027):"},{"line_number":79,"context_line":"            self.flavor_ref \u003d CONF.share.client_vm_flavor_ref"},{"line_number":80,"context_line":"        if CONF.share.image_with_share_tools:"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_8bbd82d9","line":77,"range":{"start_line":71,"start_character":8,"end_line":77,"end_character":45},"updated":"2018-03-15 11:50:22.000000000","message":"Same as above; we should move these checks before the super call to avoid unnecessarily creating resources that are not needed.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        # Setup image and flavor the test instance"},{"line_number":69,"context_line":"        # Support both configured and injected values"},{"line_number":70,"context_line":"        self.floatings \u003d {}"},{"line_number":71,"context_line":"        if self.protocol not in CONF.share.enable_protocols:"},{"line_number":72,"context_line":"            message \u003d \"%s tests are disabled\" % self.protocol"},{"line_number":73,"context_line":"            raise self.skipException(message)"},{"line_number":74,"context_line":"        if self.protocol not in CONF.share.enable_ip_rules_for_protocols:"},{"line_number":75,"context_line":"            message \u003d (\"%s tests for access rules other than IP are disabled\" %"},{"line_number":76,"context_line":"                       self.protocol)"},{"line_number":77,"context_line":"            raise self.skipException(message)"},{"line_number":78,"context_line":"        if not hasattr(self, \u0027flavor_ref\u0027):"},{"line_number":79,"context_line":"            self.flavor_ref \u003d CONF.share.client_vm_flavor_ref"},{"line_number":80,"context_line":"        if CONF.share.image_with_share_tools:"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_09878063","line":77,"range":{"start_line":71,"start_character":8,"end_line":77,"end_character":45},"in_reply_to":"df7087c5_8bbd82d9","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            images \u003d self.compute_images_client.list_images()[\"images\"]"},{"line_number":82,"context_line":"            for img in images:"},{"line_number":83,"context_line":"                if img[\"name\"] \u003d\u003d CONF.share.image_with_share_tools:"},{"line_number":84,"context_line":"                    self.image_ref \u003d img[\u0027id\u0027]"},{"line_number":85,"context_line":"                    break"},{"line_number":86,"context_line":"            if not self.image_ref:"},{"line_number":87,"context_line":"                msg \u003d (\"Image %s not found\" %"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_6b9b4e65","line":84,"range":{"start_line":84,"start_character":25,"end_line":84,"end_character":34},"updated":"2018-03-15 11:50:22.000000000","message":"I feel like this name is slightly misleading as it\u0027s not a reference to the image object but rather its ID. This should be renamed to be more accurate.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            images \u003d self.compute_images_client.list_images()[\"images\"]"},{"line_number":82,"context_line":"            for img in images:"},{"line_number":83,"context_line":"                if img[\"name\"] \u003d\u003d CONF.share.image_with_share_tools:"},{"line_number":84,"context_line":"                    self.image_ref \u003d img[\u0027id\u0027]"},{"line_number":85,"context_line":"                    break"},{"line_number":86,"context_line":"            if not self.image_ref:"},{"line_number":87,"context_line":"                msg \u003d (\"Image %s not found\" %"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_69dcfc73","line":84,"range":{"start_line":84,"start_character":25,"end_line":84,"end_character":34},"in_reply_to":"df7087c5_6b9b4e65","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":84,"context_line":"                    self.image_ref \u003d img[\u0027id\u0027]"},{"line_number":85,"context_line":"                    break"},{"line_number":86,"context_line":"            if not self.image_ref:"},{"line_number":87,"context_line":"                msg \u003d (\"Image %s not found\" %"},{"line_number":88,"context_line":"                       CONF.share.image_with_share_tools)"},{"line_number":89,"context_line":"                raise exceptions.InvalidConfiguration(message\u003dmsg)"},{"line_number":90,"context_line":"        self.ssh_user \u003d CONF.share.image_username"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_eba67eab","line":87,"range":{"start_line":87,"start_character":24,"end_line":87,"end_character":42},"updated":"2018-03-15 11:50:22.000000000","message":"We should be more explicit about which image was not found. The configuration option seems to imply that it\u0027s an image with the required share tools so we should tell that to the user.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":84,"context_line":"                    self.image_ref \u003d img[\u0027id\u0027]"},{"line_number":85,"context_line":"                    break"},{"line_number":86,"context_line":"            if not self.image_ref:"},{"line_number":87,"context_line":"                msg \u003d (\"Image %s not found\" %"},{"line_number":88,"context_line":"                       CONF.share.image_with_share_tools)"},{"line_number":89,"context_line":"                raise exceptions.InvalidConfiguration(message\u003dmsg)"},{"line_number":90,"context_line":"        self.ssh_user \u003d CONF.share.image_username"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_49ba580a","line":87,"range":{"start_line":87,"start_character":24,"end_line":87,"end_character":42},"in_reply_to":"df7087c5_eba67eab","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                       CONF.share.image_with_share_tools)"},{"line_number":89,"context_line":"                raise exceptions.InvalidConfiguration(message\u003dmsg)"},{"line_number":90,"context_line":"        self.ssh_user \u003d CONF.share.image_username"},{"line_number":91,"context_line":"        LOG.debug(\u0027Starting test for i:{image}, f:{flavor}. \u0027"},{"line_number":92,"context_line":"                  \u0027user: {ssh_user}\u0027.format("},{"line_number":93,"context_line":"                      image\u003dself.image_ref, flavor\u003dself.flavor_ref,"},{"line_number":94,"context_line":"                      ssh_user\u003dself.ssh_user))"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_abe3a6d8","line":91,"range":{"start_line":91,"start_character":36,"end_line":91,"end_character":59},"updated":"2018-03-15 11:50:22.000000000","message":"Why not spell out image and flavor in the debug output? It\u0027ll make it easier to know what those values are in a log.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                       CONF.share.image_with_share_tools)"},{"line_number":89,"context_line":"                raise exceptions.InvalidConfiguration(message\u003dmsg)"},{"line_number":90,"context_line":"        self.ssh_user \u003d CONF.share.image_username"},{"line_number":91,"context_line":"        LOG.debug(\u0027Starting test for i:{image}, f:{flavor}. \u0027"},{"line_number":92,"context_line":"                  \u0027user: {ssh_user}\u0027.format("},{"line_number":93,"context_line":"                      image\u003dself.image_ref, flavor\u003dself.flavor_ref,"},{"line_number":94,"context_line":"                      ssh_user\u003dself.ssh_user))"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_e9a00ca8","line":91,"range":{"start_line":91,"start_character":36,"end_line":91,"end_character":59},"in_reply_to":"df7087c5_abe3a6d8","updated":"2018-04-10 20:10:50.000000000","message":"Notice self.image_ref (or as it is now self.image_id) is set only inside the \"if CONF.share.image_with_share_tools\".\nWhat happens in the alt. case ?\n\nAdditionally I\u0027m not sure how to obtain the image name.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":92,"context_line":"                  \u0027user: {ssh_user}\u0027.format("},{"line_number":93,"context_line":"                      image\u003dself.image_ref, flavor\u003dself.flavor_ref,"},{"line_number":94,"context_line":"                      ssh_user\u003dself.ssh_user))"},{"line_number":95,"context_line":"        self.security_group \u003d self._create_security_group()"},{"line_number":96,"context_line":"        self.create_share_network()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def create_share_network(self):"},{"line_number":99,"context_line":"        self.net \u003d self._create_network(namestart\u003d\"manila-share\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_0b4092a4","line":96,"range":{"start_line":95,"start_character":8,"end_line":96,"end_character":35},"updated":"2018-03-15 11:50:22.000000000","message":"This is kinda odd here where we\u0027re setting a member variable value via a method above and then relying on a side-effecting method on the line beneath to presumably do something similar to the first line. We should try to make this behavior consistent.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":92,"context_line":"                  \u0027user: {ssh_user}\u0027.format("},{"line_number":93,"context_line":"                      image\u003dself.image_ref, flavor\u003dself.flavor_ref,"},{"line_number":94,"context_line":"                      ssh_user\u003dself.ssh_user))"},{"line_number":95,"context_line":"        self.security_group \u003d self._create_security_group()"},{"line_number":96,"context_line":"        self.create_share_network()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def create_share_network(self):"},{"line_number":99,"context_line":"        self.net \u003d self._create_network(namestart\u003d\"manila-share\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_29f364a0","line":96,"range":{"start_line":95,"start_character":8,"end_line":96,"end_character":35},"in_reply_to":"df7087c5_0b4092a4","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":111,"context_line":"            name\u003ddata_utils.rand_name(\"sn-name\"))"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    def boot_instance(self, wait_until\u003d\"ACTIVE\"):"},{"line_number":114,"context_line":"        self.keypair \u003d self.create_keypair()"},{"line_number":115,"context_line":"        security_groups \u003d [{\u0027name\u0027: self.security_group[\u0027name\u0027]}]"},{"line_number":116,"context_line":"        create_kwargs \u003d {"},{"line_number":117,"context_line":"            \u0027key_name\u0027: self.keypair[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_6b102ea9","line":114,"range":{"start_line":114,"start_character":8,"end_line":114,"end_character":44},"updated":"2018-03-15 11:50:22.000000000","message":"What happens if we boot two or more instances in a test? This looks to overwrite whichever value was in self.keypair with a new value.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":119,"context_line":"            \u0027wait_until\u0027: wait_until,"},{"line_number":120,"context_line":"            \u0027networks\u0027: [{\u0027uuid\u0027: self.net[\u0027id\u0027]}, ],"},{"line_number":121,"context_line":"        }"},{"line_number":122,"context_line":"        instance \u003d self.create_server("},{"line_number":123,"context_line":"            image_id\u003dself.image_ref, flavor\u003dself.flavor_ref, **create_kwargs)"},{"line_number":124,"context_line":"        return instance"},{"line_number":125,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_2b02363e","line":122,"range":{"start_line":122,"start_character":24,"end_line":122,"end_character":37},"updated":"2018-03-15 11:50:22.000000000","message":"We interchangeably use the terms \"server\" and \"instance\". We should pick one and be consistent with our nomenclature. I\u0027d defer to what Nova suggests we should call them.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":119,"context_line":"            \u0027wait_until\u0027: wait_until,"},{"line_number":120,"context_line":"            \u0027networks\u0027: [{\u0027uuid\u0027: self.net[\u0027id\u0027]}, ],"},{"line_number":121,"context_line":"        }"},{"line_number":122,"context_line":"        instance \u003d self.create_server("},{"line_number":123,"context_line":"            image_id\u003dself.image_ref, flavor\u003dself.flavor_ref, **create_kwargs)"},{"line_number":124,"context_line":"        return instance"},{"line_number":125,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_2980448b","line":122,"range":{"start_line":122,"start_character":24,"end_line":122,"end_character":37},"in_reply_to":"df7087c5_2b02363e","updated":"2018-04-10 20:10:50.000000000","message":"Investigating this, it looks like the discrepancy runs very deep. \"Instance\" is the name appearing in the Nova docs,which sounds more accurate.\n\nHowever it looks quite difficult to remove the \"server\" entirely.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":147,"context_line":"            username\u003dself.ssh_user,"},{"line_number":148,"context_line":"            private_key\u003dself.keypair[\u0027private_key\u0027])"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"        # NOTE(u_glide): Workaround for bug #1465682"},{"line_number":151,"context_line":"        ssh_client \u003d ssh_client.ssh_client"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":154,"context_line":"        return ssh_client"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_a6d99d57","line":151,"range":{"start_line":150,"start_character":7,"end_line":151,"end_character":42},"updated":"2018-03-15 11:50:22.000000000","message":"This bug has been fixed for years. Are we sure that this is still a relevant workaround to have?","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        # NOTE(u_glide): Workaround for bug #1465682"},{"line_number":151,"context_line":"        ssh_client \u003d ssh_client.ssh_client"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":154,"context_line":"        return ssh_client"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def write_data(self, data, ssh_client):"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_a6c2fd57","line":153,"range":{"start_line":153,"start_character":8,"end_line":153,"end_character":67},"updated":"2018-03-15 11:50:22.000000000","message":"This is a pretty odd side-effect to have in this method. Why is this here?","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":154,"context_line":"        return ssh_client"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def write_data(self, data, ssh_client):"},{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_2149f72f","line":156,"range":{"start_line":156,"start_character":8,"end_line":156,"end_character":18},"updated":"2018-03-15 11:50:22.000000000","message":"Would be nice to refactor this to be something like write_data_to_mounted_share to be more explicit.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":154,"context_line":"        return ssh_client"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def write_data(self, data, ssh_client):"},{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_6924fcc6","line":156,"range":{"start_line":156,"start_character":8,"end_line":156,"end_character":18},"in_reply_to":"df7087c5_2149f72f","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return ssh_client"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def write_data(self, data, ssh_client):"},{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_e1b9bf14","line":157,"range":{"start_line":157,"start_character":56,"end_line":157,"end_character":63},"updated":"2018-03-15 11:50:22.000000000","message":"We might want to include the mount location as a parameter to this method?","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return ssh_client"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def write_data(self, data, ssh_client):"},{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_064089a4","line":157,"range":{"start_line":157,"start_character":38,"end_line":157,"end_character":44},"updated":"2018-03-15 11:50:22.000000000","message":"What happens if our data contains a double quote? Will it be required to escape them ourselves?","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return ssh_client"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def write_data(self, data, ssh_client):"},{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_049e85b7","line":157,"range":{"start_line":157,"start_character":38,"end_line":157,"end_character":44},"in_reply_to":"df7087c5_064089a4","updated":"2018-04-10 20:10:50.000000000","message":"Currently we have only one usage, so I\u0027ve renamed the parameter to \"escaped_string\" to be explicit.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return ssh_client"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def write_data(self, data, ssh_client):"},{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_a4a47909","line":157,"range":{"start_line":157,"start_character":56,"end_line":157,"end_character":63},"in_reply_to":"df7087c5_e1b9bf14","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"},{"line_number":161,"context_line":"        data \u003d ssh_client.exec_command(\"sudo cat /mnt/t1\")"},{"line_number":162,"context_line":"        return data.rstrip()"},{"line_number":163,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_c1ffdba8","line":160,"range":{"start_line":160,"start_character":8,"end_line":160,"end_character":17},"updated":"2018-03-15 11:50:22.000000000","message":"Could refactor this to read_data_from_share to be more explicit.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"daecd7daf1b4399943b7485b7f1a4522cae3f56c","unresolved":false,"context_lines":[{"line_number":157,"context_line":"        ssh_client.exec_command(\"echo \\\"%s\\\" | sudo tee /mnt/t1 \u0026\u0026 sudo sync\" %"},{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"},{"line_number":161,"context_line":"        data \u003d ssh_client.exec_command(\"sudo cat /mnt/t1\")"},{"line_number":162,"context_line":"        return data.rstrip()"},{"line_number":163,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bf659307_c4808d49","line":160,"range":{"start_line":160,"start_character":8,"end_line":160,"end_character":17},"in_reply_to":"df7087c5_c1ffdba8","updated":"2018-04-10 20:10:50.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"},{"line_number":161,"context_line":"        data \u003d ssh_client.exec_command(\"sudo cat /mnt/t1\")"},{"line_number":162,"context_line":"        return data.rstrip()"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def migrate_share(self, share_id, dest_host, status, force_host_assisted):"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_c19b5b70","line":161,"range":{"start_line":161,"start_character":49,"end_line":161,"end_character":56},"updated":"2018-03-15 11:50:22.000000000","message":"We might want to include the mount location as a parameter to this method.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"0cb5108e6af16e6ffd3fbfaa7bef7cc475e906a4","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                                data)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def read_data(self, ssh_client):"},{"line_number":161,"context_line":"        data \u003d ssh_client.exec_command(\"sudo cat /mnt/t1\")"},{"line_number":162,"context_line":"        return data.rstrip()"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def migrate_share(self, share_id, dest_host, status, force_host_assisted):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f6a8fd7_48c6069d","line":161,"range":{"start_line":161,"start_character":49,"end_line":161,"end_character":56},"in_reply_to":"df7087c5_c19b5b70","updated":"2018-04-18 07:47:05.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":161,"context_line":"        data \u003d ssh_client.exec_command(\"sudo cat /mnt/t1\")"},{"line_number":162,"context_line":"        return data.rstrip()"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def migrate_share(self, share_id, dest_host, status, force_host_assisted):"},{"line_number":165,"context_line":"        share \u003d self._migrate_share("},{"line_number":166,"context_line":"            share_id, dest_host, status, force_host_assisted,"},{"line_number":167,"context_line":"            self.shares_admin_v2_client)"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_c174bb38","line":164,"range":{"start_line":164,"start_character":57,"end_line":164,"end_character":76},"updated":"2018-03-15 11:50:22.000000000","message":"We should set the default value of this to false","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            self.shares_admin_v2_client)"},{"line_number":168,"context_line":"        return share"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def migration_complete(self, share_id, dest_host):"},{"line_number":171,"context_line":"        return self._migration_complete(share_id, dest_host)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    def create_share(self, **kwargs):"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_6137ef4e","line":170,"range":{"start_line":170,"start_character":8,"end_line":170,"end_character":26},"updated":"2018-03-15 11:50:22.000000000","message":"Since this isn\u0027t a predicate method, we should rename this to \"complete_migration\" to make the purpose of the method more clear. At first glance this looks like a method that returns whether or not the migration is complete rather than actually completing the migration.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"0cb5108e6af16e6ffd3fbfaa7bef7cc475e906a4","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            self.shares_admin_v2_client)"},{"line_number":168,"context_line":"        return share"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def migration_complete(self, share_id, dest_host):"},{"line_number":171,"context_line":"        return self._migration_complete(share_id, dest_host)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    def create_share(self, **kwargs):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f6a8fd7_880f3ee0","line":170,"range":{"start_line":170,"start_character":8,"end_line":170,"end_character":26},"in_reply_to":"df7087c5_6137ef4e","updated":"2018-04-18 07:47:05.000000000","message":"The name of the method and action posted by the SharesV2Client is \"migration_complete\", and it does actually complete the migration. I wouldn\u0027t want to rename it and be inconsistent with the client.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        kwargs.update({"},{"line_number":175,"context_line":"            \u0027share_protocol\u0027: self.protocol,"},{"line_number":176,"context_line":"        })"},{"line_number":177,"context_line":"        if not (\u0027share_type_id\u0027 in kwargs or \u0027snapshot_id\u0027 in kwargs):"},{"line_number":178,"context_line":"            kwargs.update({\u0027share_type_id\u0027: self._get_share_type()[\u0027id\u0027]})"},{"line_number":179,"context_line":"        if CONF.share.multitenancy_enabled:"},{"line_number":180,"context_line":"            kwargs.update({\u0027share_network_id\u0027: self.share_net[\u0027id\u0027]})"},{"line_number":181,"context_line":"        self.share \u003d self._create_share(**kwargs)"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_a1cd0732","line":178,"range":{"start_line":177,"start_character":8,"end_line":178,"end_character":74},"updated":"2018-03-15 11:50:22.000000000","message":"I\u0027m guessing that this will get the default share type if no share type ID or snapshot ID is specified?","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"0cb5108e6af16e6ffd3fbfaa7bef7cc475e906a4","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        kwargs.update({"},{"line_number":175,"context_line":"            \u0027share_protocol\u0027: self.protocol,"},{"line_number":176,"context_line":"        })"},{"line_number":177,"context_line":"        if not (\u0027share_type_id\u0027 in kwargs or \u0027snapshot_id\u0027 in kwargs):"},{"line_number":178,"context_line":"            kwargs.update({\u0027share_type_id\u0027: self._get_share_type()[\u0027id\u0027]})"},{"line_number":179,"context_line":"        if CONF.share.multitenancy_enabled:"},{"line_number":180,"context_line":"            kwargs.update({\u0027share_network_id\u0027: self.share_net[\u0027id\u0027]})"},{"line_number":181,"context_line":"        self.share \u003d self._create_share(**kwargs)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f6a8fd7_6890aa4f","line":178,"range":{"start_line":177,"start_character":8,"end_line":178,"end_character":74},"in_reply_to":"df7087c5_a1cd0732","updated":"2018-04-18 07:47:05.000000000","message":"Simplified a bit by adding a local variable. If you have an additional suggestion please let me know.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        self.share \u003d self._create_share(**kwargs)"},{"line_number":182,"context_line":"        return self.share"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def get_remote_client(self, *args, **kwargs):"},{"line_number":185,"context_line":"        if not CONF.share.image_with_share_tools:"},{"line_number":186,"context_line":"            return super(ShareScenarioTest,"},{"line_number":187,"context_line":"                         self).get_remote_client(*args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_3105c811","line":184,"range":{"start_line":184,"start_character":8,"end_line":184,"end_character":25},"updated":"2018-03-15 11:50:22.000000000","message":"We refer to this remote connection as \"ssh_client\" elsewhere in the code. Should we refactor this method to match that nomenclature or change the parameters in the other methods to say \"remote_client\"?","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"0cb5108e6af16e6ffd3fbfaa7bef7cc475e906a4","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        self.share \u003d self._create_share(**kwargs)"},{"line_number":182,"context_line":"        return self.share"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def get_remote_client(self, *args, **kwargs):"},{"line_number":185,"context_line":"        if not CONF.share.image_with_share_tools:"},{"line_number":186,"context_line":"            return super(ShareScenarioTest,"},{"line_number":187,"context_line":"                         self).get_remote_client(*args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f6a8fd7_68f50a83","line":184,"range":{"start_line":184,"start_character":8,"end_line":184,"end_character":25},"in_reply_to":"df7087c5_3105c811","updated":"2018-04-18 07:47:05.000000000","message":"Renamed all to \"remote_client\"","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                first_address \u003d net_addresses.values()[0][0]"},{"line_number":223,"context_line":"                ip \u003d first_address[\u0027addr\u0027]"},{"line_number":224,"context_line":"            except Exception:"},{"line_number":225,"context_line":"                LOG.debug(\"Instance: %s\", instance)"},{"line_number":226,"context_line":"                # In case on an error ip will be still none"},{"line_number":227,"context_line":"                LOG.exception(\"Instance does not have a valid IP address.\""},{"line_number":228,"context_line":"                              \"Falling back to default\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_b11f9806","line":225,"range":{"start_line":225,"start_character":0,"end_line":225,"end_character":51},"updated":"2018-03-15 11:50:22.000000000","message":"Should we put more details in this debug print as to why we\u0027re printing the instance? We print the exception below but we should say why we are above.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"0cb5108e6af16e6ffd3fbfaa7bef7cc475e906a4","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                first_address \u003d net_addresses.values()[0][0]"},{"line_number":223,"context_line":"                ip \u003d first_address[\u0027addr\u0027]"},{"line_number":224,"context_line":"            except Exception:"},{"line_number":225,"context_line":"                LOG.debug(\"Instance: %s\", instance)"},{"line_number":226,"context_line":"                # In case on an error ip will be still none"},{"line_number":227,"context_line":"                LOG.exception(\"Instance does not have a valid IP address.\""},{"line_number":228,"context_line":"                              \"Falling back to default\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f6a8fd7_6823ca06","line":225,"range":{"start_line":225,"start_character":0,"end_line":225,"end_character":51},"in_reply_to":"df7087c5_b11f9806","updated":"2018-04-18 07:47:05.000000000","message":"Done","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":236,"context_line":"            self._allow_access(share_id, access_type\u003d\u0027ip\u0027, access_to\u003dip,"},{"line_number":237,"context_line":"                               cleanup\u003dcleanup, client\u003dself.shares_v2_client)"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def provide_access_to_auxiliary_instance(self, instance, share\u003dNone,"},{"line_number":240,"context_line":"                                             snapshot\u003dNone):"},{"line_number":241,"context_line":"        share \u003d share or self.share"},{"line_number":242,"context_line":"        if self.protocol.lower() \u003d\u003d \u0027cifs\u0027:"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_94b1224a","line":239,"range":{"start_line":239,"start_character":8,"end_line":239,"end_character":44},"updated":"2018-03-15 11:50:22.000000000","message":"What is an auxiliary instance? We should likely include some doctext to describe what this method does as it\u0027s unclear from looking at it.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"3de982b83ba6ac274a155c0a8c00050cb7091a62","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":159,"context_line":"        return remote_client"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    def write_data_to_mounted_share(self, escaped_string, remote_client, mount_point\u003d\u0027/mnt/t1\u0027):"},{"line_number":162,"context_line":"        remote_client.exec_command(\"echo \\\"{escaped_string}\\\" | sudo tee {mount_point} \u0026\u0026 sudo sync\""},{"line_number":163,"context_line":"                                   .format(escaped_string\u003descaped_string, mount_point\u003dmount_point))"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def read_data_from_mounted_share(self, remote_client, mount_point\u003d\u0027/mnt/t1\u0027):"},{"line_number":166,"context_line":"        data \u003d remote_client.exec_command(\"sudo cat {mount_point}\".format(mount_point\u003dmount_point))"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f6a8fd7_dc841461","line":163,"range":{"start_line":161,"start_character":0,"end_line":163,"end_character":99},"updated":"2018-04-18 09:47:07.000000000","message":"These lines exceed 79 characters in length so pep8 is unhappy.","commit_id":"2725009d8a1264c2bb9ef6e36bb5bddd473c74b1"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"3de982b83ba6ac274a155c0a8c00050cb7091a62","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                   .format(escaped_string\u003descaped_string, mount_point\u003dmount_point))"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def read_data_from_mounted_share(self, remote_client, mount_point\u003d\u0027/mnt/t1\u0027):"},{"line_number":166,"context_line":"        data \u003d remote_client.exec_command(\"sudo cat {mount_point}\".format(mount_point\u003dmount_point))"},{"line_number":167,"context_line":"        return data.rstrip()"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"    def migrate_share(self, share_id, dest_host, status, force_host_assisted\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9f6a8fd7_9c7e9c69","line":166,"range":{"start_line":166,"start_character":7,"end_line":166,"end_character":99},"updated":"2018-04-18 09:47:07.000000000","message":"Here too.","commit_id":"2725009d8a1264c2bb9ef6e36bb5bddd473c74b1"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                       CONF.share.image_with_share_tools)"},{"line_number":92,"context_line":"                raise exceptions.InvalidConfiguration(message\u003dmsg)"},{"line_number":93,"context_line":"        self.ssh_user \u003d CONF.share.image_username"},{"line_number":94,"context_line":"        LOG.debug(\u0027Starting test for i:{image_id}, f:{flavor}. \u0027"},{"line_number":95,"context_line":"                  \u0027user: {ssh_user}\u0027.format(image_id\u003dself.image_id,"},{"line_number":96,"context_line":"                                            flavor\u003dself.flavor_ref,"},{"line_number":97,"context_line":"                                            ssh_user\u003dself.ssh_user))"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        self.security_group \u003d self._create_security_group()"},{"line_number":100,"context_line":"        self.share_network \u003d self.create_share_network()"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_d53a98cb","line":97,"range":{"start_line":94,"start_character":8,"end_line":97,"end_character":68},"updated":"2018-06-07 15:07:34.000000000","message":"It doesn\u0027t seem like we need this logging here.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                            ssh_user\u003dself.ssh_user))"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        self.security_group \u003d self._create_security_group()"},{"line_number":100,"context_line":"        self.share_network \u003d self.create_share_network()"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def create_share_network(self):"},{"line_number":103,"context_line":"        self.net \u003d self._create_network(namestart\u003d\"manila-share\")"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_d1be3ead","line":100,"range":{"start_line":100,"start_character":0,"end_line":100,"end_character":56},"updated":"2018-06-07 15:07:34.000000000","message":"A share network is only required when DHSS\u003dTrue. We should add some logic here to create this resource only when it\u0027s required.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        return share_network"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def boot_instance(self, wait_until\u003d\"ACTIVE\"):"},{"line_number":119,"context_line":"        self.keypair \u003d self.create_keypair()"},{"line_number":120,"context_line":"        security_groups \u003d [{\u0027name\u0027: self.security_group[\u0027name\u0027]}]"},{"line_number":121,"context_line":"        create_kwargs \u003d {"},{"line_number":122,"context_line":"            \u0027key_name\u0027: self.keypair[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_9662e6d7","line":119,"range":{"start_line":119,"start_character":8,"end_line":119,"end_character":44},"updated":"2018-06-07 15:07:34.000000000","message":"Multiple calls to this method will overwrite the keypair value in the class. We should be sure this is the desired behavior.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":128,"context_line":"            image_id\u003dself.image_id, flavor\u003dself.flavor_ref, **create_kwargs)"},{"line_number":129,"context_line":"        return instance"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    def init_remote_client(self, instance):"},{"line_number":132,"context_line":"        if self.ipv6_enabled:"},{"line_number":133,"context_line":"            server_ip \u003d self._get_ipv6_server_ip(instance)"},{"line_number":134,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_316bf2f1","line":131,"range":{"start_line":131,"start_character":8,"end_line":131,"end_character":26},"updated":"2018-06-07 15:07:34.000000000","message":"We should refactor this to be something like init_remote_ssh_client to make it more clear that we\u0027re creating an SSH connection rather than a connection to some sort of OpenStack client.\n\nIt\u0027s also hard to differentiate the purposes of init_remote_client() and get_remote_client(). I\u0027d expect get_remote_client() to just return the client created by init_remote_client() but that doesn\u0027t seem to be the case. This will need to be cleaned up at some point.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            username\u003dself.ssh_user,"},{"line_number":153,"context_line":"            private_key\u003dself.keypair[\u0027private_key\u0027])"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"        # NOTE(u_glide): Workaround for bug #1465682"},{"line_number":156,"context_line":"        remote_client \u003d remote_client.ssh_client"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":159,"context_line":"        return remote_client"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_f691da9b","line":156,"range":{"start_line":155,"start_character":8,"end_line":156,"end_character":48},"updated":"2018-06-07 15:07:34.000000000","message":"This bug has been fixed for years. Is this still a relevant thing thing work around?","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":155,"context_line":"        # NOTE(u_glide): Workaround for bug #1465682"},{"line_number":156,"context_line":"        remote_client \u003d remote_client.ssh_client"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":159,"context_line":"        return remote_client"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    def write_data_to_mounted_share(self, escaped_string, remote_client,"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_f5d6b453","line":158,"range":{"start_line":158,"start_character":0,"end_line":158,"end_character":67},"updated":"2018-06-07 15:07:34.000000000","message":"This seems like an odd side effect to have in this method. Why would we want to modify the class\u0027s share variable just by creating an SSH connection to a Nova instance?","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    def write_data_to_mounted_share(self, escaped_string, remote_client,"},{"line_number":162,"context_line":"                                    mount_point\u003d\u0027/mnt/t1\u0027):"},{"line_number":163,"context_line":"        remote_client.exec_command(\"echo \\\"{escaped_string}\\\" \""},{"line_number":164,"context_line":"                                   \"| sudo tee {mount_point} \u0026\u0026 sudo sync\""},{"line_number":165,"context_line":"                                   .format(escaped_string\u003descaped_string,"},{"line_number":166,"context_line":"                                           mount_point\u003dmount_point))"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def read_data_from_mounted_share(self,"},{"line_number":169,"context_line":"                                     remote_client,"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_f51b1419","line":166,"range":{"start_line":163,"start_character":8,"end_line":166,"end_character":68},"updated":"2018-06-07 15:07:34.000000000","message":"If we just use the mount point as our target for for the echo command, we will get an error saying that the path is a directory. We should either add another parameter to this method to specify a file to write to or rename the mount_point parameter to be a path to a file on the mounted share (e.g. /mnt/t1/testfile.txt)","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":168,"context_line":"    def read_data_from_mounted_share(self,"},{"line_number":169,"context_line":"                                     remote_client,"},{"line_number":170,"context_line":"                                     mount_point\u003d\u0027/mnt/t1\u0027):"},{"line_number":171,"context_line":"        data \u003d remote_client.exec_command(\"sudo cat {mount_point}\""},{"line_number":172,"context_line":"                                          .format(mount_point\u003dmount_point))"},{"line_number":173,"context_line":"        return data.rstrip()"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    def migrate_share(self, share_id, dest_host, status,"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_95c8a074","line":172,"range":{"start_line":171,"start_character":8,"end_line":172,"end_character":75},"updated":"2018-06-07 15:07:34.000000000","message":"Same as in write_data_to_mounted_share; the way this is worded currently seems to assume that mountpoint will point to a file on the mounted share. We should make this clearer.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":172,"context_line":"                                          .format(mount_point\u003dmount_point))"},{"line_number":173,"context_line":"        return data.rstrip()"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    def migrate_share(self, share_id, dest_host, status,"},{"line_number":176,"context_line":"                      force_host_assisted\u003dFalse):"},{"line_number":177,"context_line":"        share \u003d self._migrate_share("},{"line_number":178,"context_line":"            share_id, dest_host, status, force_host_assisted,"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_db8727b6","line":175,"range":{"start_line":175,"start_character":8,"end_line":175,"end_character":21},"updated":"2018-06-07 15:07:34.000000000","message":"We can likely just move the implementation from _migrate_share() to here.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":179,"context_line":"            self.shares_admin_v2_client)"},{"line_number":180,"context_line":"        return share"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    def migration_complete(self, share_id, dest_host):"},{"line_number":183,"context_line":"        return self._migration_complete(share_id, dest_host)"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def create_share(self, **kwargs):"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_b5711c47","line":182,"range":{"start_line":182,"start_character":8,"end_line":182,"end_character":26},"updated":"2018-06-07 15:07:34.000000000","message":"I don\u0027t like that the client calls this method like this. We should rename the client so we can rename it here :)","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":191,"context_line":"            kwargs.update({\u0027share_type_id\u0027: default_share_type_id})"},{"line_number":192,"context_line":"        if CONF.share.multitenancy_enabled:"},{"line_number":193,"context_line":"            kwargs.update({\u0027share_network_id\u0027: self.share_net[\u0027id\u0027]})"},{"line_number":194,"context_line":"        self.share \u003d self._create_share(**kwargs)"},{"line_number":195,"context_line":"        return self.share"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    def get_remote_client(self, *args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_f5c5543e","line":194,"range":{"start_line":194,"start_character":0,"end_line":194,"end_character":49},"updated":"2018-06-07 15:07:34.000000000","message":"Setting a class variable here seems dangerous. What happens if we want to create two or more shares in a test? We should just return the share and let the test handle the lifecycle of the share.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":192,"context_line":"        if CONF.share.multitenancy_enabled:"},{"line_number":193,"context_line":"            kwargs.update({\u0027share_network_id\u0027: self.share_net[\u0027id\u0027]})"},{"line_number":194,"context_line":"        self.share \u003d self._create_share(**kwargs)"},{"line_number":195,"context_line":"        return self.share"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    def get_remote_client(self, *args, **kwargs):"},{"line_number":198,"context_line":"        if not CONF.share.image_with_share_tools:"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_552a08e7","line":195,"range":{"start_line":195,"start_character":8,"end_line":195,"end_character":25},"updated":"2018-06-07 15:07:34.000000000","message":"Same thing as the line above; I can\u0027t think of a good reason to return a class variable here. We should just return an instance of a share.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":194,"context_line":"        self.share \u003d self._create_share(**kwargs)"},{"line_number":195,"context_line":"        return self.share"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    def get_remote_client(self, *args, **kwargs):"},{"line_number":198,"context_line":"        if not CONF.share.image_with_share_tools:"},{"line_number":199,"context_line":"            return super(ShareScenarioTest,"},{"line_number":200,"context_line":"                         self).get_remote_client(*args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_d587f8b5","line":197,"range":{"start_line":197,"start_character":32,"end_line":197,"end_character":47},"updated":"2018-06-07 15:07:34.000000000","message":"We\u0027re specifying *args and **kwargs here without any indication of what are valid options to those parameters. We should add some docstrings here or figure out which parameters are required and explicitly call those out.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":217,"context_line":"            \u0027pkey\u0027: kwargs.get(\u0027private_key\u0027),"},{"line_number":218,"context_line":"        }"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"        linux_client \u003d remote_client.RemoteClient(ip, **client_params)"},{"line_number":221,"context_line":"        try:"},{"line_number":222,"context_line":"            linux_client.validate_authentication()"},{"line_number":223,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_b5535c39","line":220,"range":{"start_line":220,"start_character":8,"end_line":220,"end_character":20},"updated":"2018-06-07 15:07:34.000000000","message":"It\u0027s not exactly a Linux Client, but an SSH client connection right? We should make it clear that this is an SSH connection.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":220,"context_line":"        linux_client \u003d remote_client.RemoteClient(ip, **client_params)"},{"line_number":221,"context_line":"        try:"},{"line_number":222,"context_line":"            linux_client.validate_authentication()"},{"line_number":223,"context_line":"        except Exception:"},{"line_number":224,"context_line":"            LOG.exception(\u0027Initializing SSH connection to %s failed\u0027, ip)"},{"line_number":225,"context_line":"            self._log_console_output()"},{"line_number":226,"context_line":"            raise"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_3548ac85","line":223,"range":{"start_line":223,"start_character":15,"end_line":223,"end_character":24},"updated":"2018-06-07 15:07:34.000000000","message":"Can we catch a more specific exception here?","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        try:"},{"line_number":222,"context_line":"            linux_client.validate_authentication()"},{"line_number":223,"context_line":"        except Exception:"},{"line_number":224,"context_line":"            LOG.exception(\u0027Initializing SSH connection to %s failed\u0027, ip)"},{"line_number":225,"context_line":"            self._log_console_output()"},{"line_number":226,"context_line":"            raise"},{"line_number":227,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_7565c41c","line":224,"range":{"start_line":224,"start_character":70,"end_line":224,"end_character":72},"updated":"2018-06-07 15:07:34.000000000","message":"We can probably name this something better as sometimes it\u0027s not an IP address. Maybe something like hostname_or_ip?","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":232,"context_line":"        if instance and not ip:"},{"line_number":233,"context_line":"            try:"},{"line_number":234,"context_line":"                net_addresses \u003d instance[\u0027addresses\u0027]"},{"line_number":235,"context_line":"                first_address \u003d net_addresses.values()[0][0]"},{"line_number":236,"context_line":"                ip \u003d first_address[\u0027addr\u0027]"},{"line_number":237,"context_line":"            except Exception:"},{"line_number":238,"context_line":"                LOG.debug(\"Instance has no valid IP address: %s\", instance)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_107d7e6d","line":235,"range":{"start_line":235,"start_character":16,"end_line":235,"end_character":60},"updated":"2018-06-07 15:07:34.000000000","message":"What happens when we have an instance with multiple addresses and we want to allow access to a different IP than just the first one returned?","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":251,"context_line":"                                      cleanup\u003dcleanup,"},{"line_number":252,"context_line":"                                      client\u003dself.shares_v2_client)"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def deny_access(self, share_id, access_rule_id):"},{"line_number":255,"context_line":"        self._deny_access(share_id, access_rule_id)"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def provide_access_to_auxiliary_instance(self, instance, share\u003dNone,"},{"line_number":258,"context_line":"                                             snapshot\u003dNone, access_level\u003d\u0027rw\u0027):"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_fb6303dc","line":255,"range":{"start_line":254,"start_character":4,"end_line":255,"end_character":51},"updated":"2018-06-07 15:07:34.000000000","message":"Why not just move the implementation of _deny_access() to here?","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":254,"context_line":"    def deny_access(self, share_id, access_rule_id):"},{"line_number":255,"context_line":"        self._deny_access(share_id, access_rule_id)"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def provide_access_to_auxiliary_instance(self, instance, share\u003dNone,"},{"line_number":258,"context_line":"                                             snapshot\u003dNone, access_level\u003d\u0027rw\u0027):"},{"line_number":259,"context_line":"        share \u003d share or self.share"},{"line_number":260,"context_line":"        if self.protocol.lower() \u003d\u003d \u0027cifs\u0027:"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_d03dc62c","line":257,"range":{"start_line":257,"start_character":8,"end_line":257,"end_character":72},"updated":"2018-06-07 15:07:34.000000000","message":"What makes this method different than just calling allow_access_ip on another Nova instance? And what is an auxiliary instance?","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        return self.os_primary.servers_client.show_server("},{"line_number":285,"context_line":"            instance_id)[\"server\"]"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"    def _get_share_type(self):"},{"line_number":288,"context_line":"        if CONF.share.default_share_type_name:"},{"line_number":289,"context_line":"            return self.shares_client.get_share_type("},{"line_number":290,"context_line":"                CONF.share.default_share_type_name)[\u0027share_type\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_106c9e06","line":287,"range":{"start_line":287,"start_character":8,"end_line":287,"end_character":23},"updated":"2018-06-07 15:07:34.000000000","message":"I feel like this should purely be a getter method and shouldn\u0027t create another share type if there\u0027s not a default. We should have another method to create a share type if we don\u0027t have a default.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                      client\u003dNone, cleanup_in_class\u003dTrue):"},{"line_number":308,"context_line":"        \"\"\"Create a share"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        :param share_protocol: NFS or CIFS"},{"line_number":311,"context_line":"        :param size: size in GB"},{"line_number":312,"context_line":"        :param name: name of the share (otherwise random)"},{"line_number":313,"context_line":"        :param snapshot_id: snapshot as basis for the share"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_b0536a39","line":310,"range":{"start_line":310,"start_character":31,"end_line":310,"end_character":42},"updated":"2018-06-07 15:07:34.000000000","message":"This will need to be updated to the current state of share protocols.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"777b49167c541a929dc58971c912c0b1c74ccfac","unresolved":false,"context_lines":[{"line_number":244,"context_line":"            except Exception:"},{"line_number":245,"context_line":"                LOG.debug(\"Instance has no valid IP address: %s\", instance)"},{"line_number":246,"context_line":"                # In case on an error ip will be still none"},{"line_number":247,"context_line":"                LOG.exception(\"Instance has no valid IP address.\""},{"line_number":248,"context_line":"                              \"Falling back to default\")"},{"line_number":249,"context_line":"        if not ip:"},{"line_number":250,"context_line":"            ip \u003d \u00270.0.0.0/0\u0027"}],"source_content_type":"text/x-python","patch_set":14,"id":"5f7c97a3_da07a5c8","line":247,"range":{"start_line":247,"start_character":62,"end_line":247,"end_character":64},"updated":"2018-06-26 14:46:19.000000000","message":"There should be a space between \"address.\" and \"Falling\".","commit_id":"e08520c33ca3c89ec67dca9381d93ead75252496"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"9b3839bafd253480ba98230ccf251c6ff301398d","unresolved":false,"context_lines":[{"line_number":244,"context_line":"            except Exception:"},{"line_number":245,"context_line":"                LOG.debug(\"Instance has no valid IP address: %s\", instance)"},{"line_number":246,"context_line":"                # In case on an error ip will be still none"},{"line_number":247,"context_line":"                LOG.exception(\"Instance has no valid IP address.\""},{"line_number":248,"context_line":"                              \"Falling back to default\")"},{"line_number":249,"context_line":"        if not ip:"},{"line_number":250,"context_line":"            ip \u003d \u00270.0.0.0/0\u0027"}],"source_content_type":"text/x-python","patch_set":14,"id":"5f7c97a3_79fe8d05","line":247,"range":{"start_line":247,"start_character":62,"end_line":247,"end_character":64},"in_reply_to":"5f7c97a3_da07a5c8","updated":"2018-06-27 07:18:59.000000000","message":"Fixed","commit_id":"e08520c33ca3c89ec67dca9381d93ead75252496"}],"manila_tempest_tests/tests/scenario/manila_scenario_test.py":[{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":12,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"class ManilaScenarioTest(manager.ShareScenarioTest):"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"    protocol \u003d None"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_434f776a","line":15,"range":{"start_line":15,"start_character":0,"end_line":15,"end_character":52},"updated":"2018-03-15 11:50:22.000000000","message":"Agreed with Tatyana; why is there a differentiation between ManilaScenarioTest and this ShareScenarioTest?","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":26503,"name":"Tatyana","email":"tdyshka@gmail.com","username":"tdyshka"},"change_message_id":"9e48fb90b7a48ff5eff46f52997d1fae2c3c69ea","unresolved":false,"context_lines":[{"line_number":12,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"class ManilaScenarioTest(manager.ShareScenarioTest):"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"    protocol \u003d None"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7f96bb07_855e6843","line":15,"range":{"start_line":15,"start_character":0,"end_line":15,"end_character":52},"updated":"2018-01-21 08:57:00.000000000","message":"Why no embed these functions in the ShareScenarioTest class itself? or even in the ScenarioTest class (that\u0027s where the wrapped SSH client creation and more exist), lots of the functions we use aren\u0027t directly related to shares and could fit in there nicely. Instead of creating yet another \"base\" scenario class.\n \nPerhaps the share, mount etc. stuff can be in the ShareScenarioTest and the others in ScenarioTest.","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":22,"context_line":"        self.image_ref \u003d None"},{"line_number":23,"context_line":"        # Setup image and flavor the test instance"},{"line_number":24,"context_line":"        # Support both configured and injected values"},{"line_number":25,"context_line":"        self.floatings \u003d {}"},{"line_number":26,"context_line":"        if self.protocol not in CONF.share.enable_protocols:"},{"line_number":27,"context_line":"            message \u003d \"%s tests are disabled\" % self.protocol"},{"line_number":28,"context_line":"            raise self.skipException(message)"}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_63a2bbff","line":25,"range":{"start_line":25,"start_character":13,"end_line":25,"end_character":22},"updated":"2018-03-15 11:50:22.000000000","message":"This member name is unclear. I\u0027m guessing it\u0027s for floating IPs? We should refactor this to make its purpose explicit.","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":23,"context_line":"        # Setup image and flavor the test instance"},{"line_number":24,"context_line":"        # Support both configured and injected values"},{"line_number":25,"context_line":"        self.floatings \u003d {}"},{"line_number":26,"context_line":"        if self.protocol not in CONF.share.enable_protocols:"},{"line_number":27,"context_line":"            message \u003d \"%s tests are disabled\" % self.protocol"},{"line_number":28,"context_line":"            raise self.skipException(message)"},{"line_number":29,"context_line":"        if self.protocol not in CONF.share.enable_ip_rules_for_protocols:"},{"line_number":30,"context_line":"            message \u003d (\"%s tests for access rules other than IP are disabled\" %"},{"line_number":31,"context_line":"                       self.protocol)"},{"line_number":32,"context_line":"            raise self.skipException(message)"},{"line_number":33,"context_line":"        if not hasattr(self, \u0027flavor_ref\u0027):"},{"line_number":34,"context_line":"            self.flavor_ref \u003d CONF.share.client_vm_flavor_ref"},{"line_number":35,"context_line":"        if CONF.share.image_with_share_tools:"}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_e396cb93","line":32,"range":{"start_line":26,"start_character":8,"end_line":32,"end_character":45},"updated":"2018-03-15 11:50:22.000000000","message":"I feel like these checks should be moved about the super() call at the beginning of the method. It\u0027s possible that the superclass will create (or attempt) to create resources that are not needed if the test will be skipped anyway.","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":36,"context_line":"            images \u003d self.compute_images_client.list_images()[\"images\"]"},{"line_number":37,"context_line":"            for img in images:"},{"line_number":38,"context_line":"                if img[\"name\"] \u003d\u003d CONF.share.image_with_share_tools:"},{"line_number":39,"context_line":"                    self.image_ref \u003d img[\u0027id\u0027]"},{"line_number":40,"context_line":"                    break"},{"line_number":41,"context_line":"            if not self.image_ref:"},{"line_number":42,"context_line":"                msg \u003d (\"Image %s not found\" %"}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_94170746","line":39,"range":{"start_line":39,"start_character":25,"end_line":39,"end_character":34},"updated":"2018-03-15 11:50:22.000000000","message":"It\u0027s mentioned in the configuration option that this is the Glance image with the proper share tools installed. We should make that clear with this member name to differentiate it from any other image references that there might be.","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":39,"context_line":"                    self.image_ref \u003d img[\u0027id\u0027]"},{"line_number":40,"context_line":"                    break"},{"line_number":41,"context_line":"            if not self.image_ref:"},{"line_number":42,"context_line":"                msg \u003d (\"Image %s not found\" %"},{"line_number":43,"context_line":"                       CONF.share.image_with_share_tools)"},{"line_number":44,"context_line":"                raise exceptions.InvalidConfiguration(message\u003dmsg)"},{"line_number":45,"context_line":"        self.ssh_user \u003d CONF.share.image_username"}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_943067ea","line":42,"range":{"start_line":42,"start_character":24,"end_line":42,"end_character":42},"updated":"2018-03-15 11:50:22.000000000","message":"We should make this more explicit about what the purpose of the image is; similar to the above.","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                       CONF.share.image_with_share_tools)"},{"line_number":44,"context_line":"                raise exceptions.InvalidConfiguration(message\u003dmsg)"},{"line_number":45,"context_line":"        self.ssh_user \u003d CONF.share.image_username"},{"line_number":46,"context_line":"        LOG.debug(\u0027Starting test for i:{image}, f:{flavor}. \u0027"},{"line_number":47,"context_line":"                  \u0027user: {ssh_user}\u0027.format("},{"line_number":48,"context_line":"                      image\u003dself.image_ref, flavor\u003dself.flavor_ref,"},{"line_number":49,"context_line":"                      ssh_user\u003dself.ssh_user))"}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_7448335b","line":46,"range":{"start_line":46,"start_character":58,"end_line":46,"end_character":59},"updated":"2018-03-15 11:50:22.000000000","message":"Nit: Change to a comma","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        }"},{"line_number":61,"context_line":"        if CONF.share.multitenancy_enabled:"},{"line_number":62,"context_line":"            create_kwargs[\u0027networks\u0027] \u003d [{\u0027uuid\u0027: self.net[\u0027id\u0027]}, ]"},{"line_number":63,"context_line":"        instance \u003d self.create_server("},{"line_number":64,"context_line":"            image_id\u003dself.image_ref, flavor\u003dself.flavor_ref, **create_kwargs)"},{"line_number":65,"context_line":"        return instance"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_34d4fb47","line":63,"range":{"start_line":63,"start_character":24,"end_line":63,"end_character":37},"updated":"2018-03-15 11:50:22.000000000","message":"We should refactor this to create_instance() if possible to keep the nomenclature consistent with Nova\u0027s.","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        # Obtain a floating IP"},{"line_number":69,"context_line":"        floating_ip \u003d (self.compute_floating_ips_client.create_floating_ip()"},{"line_number":70,"context_line":"                       [\u0027floating_ip\u0027])"},{"line_number":71,"context_line":"        self.floatings[instance[\u0027id\u0027]] \u003d floating_ip"},{"line_number":72,"context_line":"        self.addCleanup(test_utils.call_and_ignore_notfound_exc,"},{"line_number":73,"context_line":"                        self.compute_floating_ips_client.delete_floating_ip,"},{"line_number":74,"context_line":"                        floating_ip[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_f43e8389","line":71,"range":{"start_line":71,"start_character":13,"end_line":71,"end_character":22},"updated":"2018-03-15 11:50:22.000000000","message":"Same as above, we should change this to be more explicit about what\u0027s being held in it.","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            username\u003dself.ssh_user,"},{"line_number":82,"context_line":"            private_key\u003dself.keypair[\u0027private_key\u0027])"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        # NOTE(u_glide): Workaround for bug #1465682"},{"line_number":85,"context_line":"        ssh_client \u003d ssh_client.ssh_client"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        self.share \u003d self.shares_client.get_share(self.share[\u0027id\u0027])"},{"line_number":88,"context_line":"        if do_ping:"}],"source_content_type":"text/x-python","patch_set":2,"id":"df7087c5_348cfb34","line":85,"range":{"start_line":84,"start_character":8,"end_line":85,"end_character":42},"updated":"2018-03-15 11:50:22.000000000","message":"Looking at that launchpad bug referenced, a fix for it was released years ago. Is this workaround still needed?","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"}],"manila_tempest_tests/tests/scenario/test_share_basic_ops.py":[{"author":{"_account_id":26503,"name":"Tatyana","email":"tdyshka@gmail.com","username":"tdyshka"},"change_message_id":"9e48fb90b7a48ff5eff46f52997d1fae2c3c69ea","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    \"\"\""},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    @tc.attr(base.TAG_POSITIVE, base.TAG_BACKEND)"},{"line_number":48,"context_line":"    def test_mount_share_one_vm(self):"},{"line_number":49,"context_line":"        instance \u003d self.boot_instance(wait_until\u003d\"BUILD\")"},{"line_number":50,"context_line":"        self.create_share()"},{"line_number":51,"context_line":"        instance \u003d self.wait_for_active_instance(instance[\"id\"])"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f96bb07_45062023","line":48,"updated":"2018-01-21 08:57:00.000000000","message":"When making big changes, I\u0027d recommend adding a few logging lines so it\u0027s easier to trace in the logs (just a friendly note).","commit_id":"039b8f63ef9bd87270e82cf4c6f0d94902a934f0"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":65,"context_line":"            raise self.skipException(message)"},{"line_number":66,"context_line":"        return ip, version"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def _ping_export_location(self, export, ssh_client):"},{"line_number":69,"context_line":"        ip, version \u003d self.get_ip_and_version_from_export_location(export)"},{"line_number":70,"context_line":"        if version \u003d\u003d 6:"},{"line_number":71,"context_line":"            ssh_client.exec_command(\"ping6 -c 1 %s\" % ip)"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_85747cd0","line":68,"range":{"start_line":68,"start_character":0,"end_line":68,"end_character":56},"updated":"2018-03-15 11:50:22.000000000","message":"We\u0027re not actually pinging the export location but rather the host that\u0027s serving it. We should rename this to something like \"ping_host_from_export_location\" to make it more clear that we\u0027re getting the host information from the export location. Some doctext might make this more clear as well.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            raise self.skipException(message)"},{"line_number":86,"context_line":"        return locations"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def _get_user_export_locations(self, share\u003dNone, snapshot\u003dNone,"},{"line_number":89,"context_line":"                                   error_on_invalid_ip_version\u003dFalse):"},{"line_number":90,"context_line":"        locations \u003d None"},{"line_number":91,"context_line":"        if share:"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_c80a891e","line":88,"range":{"start_line":88,"start_character":8,"end_line":88,"end_character":34},"updated":"2018-03-15 11:50:22.000000000","message":"This method seems to not have anything to do with getting a user\u0027s export locations (or if it does, it\u0027s unclear how). We should either rename this \"_get_export_locations\" or add some doctext as to how it gets the exports on a per-user basis.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        return locations"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def _get_user_export_locations(self, share\u003dNone, snapshot\u003dNone,"},{"line_number":89,"context_line":"                                   error_on_invalid_ip_version\u003dFalse):"},{"line_number":90,"context_line":"        locations \u003d None"},{"line_number":91,"context_line":"        if share:"},{"line_number":92,"context_line":"            locations \u003d self._get_share_export_locations(share)"}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_281b0573","line":89,"range":{"start_line":89,"start_character":35,"end_line":89,"end_character":68},"updated":"2018-03-15 11:50:22.000000000","message":"Seems to me that you\u0027d want to error out on an invalid IP version by default rather than not.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"66f49478eaaa396e4a9221c42ca38a411050e887","unresolved":false,"context_lines":[{"line_number":114,"context_line":"    def _get_snapshot_export_locations(self, snapshot):"},{"line_number":115,"context_line":"        exports \u003d (self.shares_v2_client."},{"line_number":116,"context_line":"                   list_snapshot_export_locations(snapshot[\u0027id\u0027]))"},{"line_number":117,"context_line":"        locations \u003d [x[\u0027path\u0027] for x in exports]"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        return locations"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"df7087c5_286225d9","line":117,"range":{"start_line":117,"start_character":35,"end_line":117,"end_character":36},"updated":"2018-03-15 11:50:22.000000000","message":"Nit: Should make this \"export\" to make it more clear what this variable is doing.","commit_id":"7dace781f7c772dc091d8e6e1570581e7de7c11e"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":46,"context_line":"     * Mount share"},{"line_number":47,"context_line":"     * Terminate the instance"},{"line_number":48,"context_line":"    \"\"\""},{"line_number":49,"context_line":"    def mount_share(self, location, remote_client, target_dir\u003dNone):"},{"line_number":50,"context_line":"        raise NotImplementedError"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def umount_share(self, remote_client, target_dir\u003dNone):"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_1bb7df88","line":49,"range":{"start_line":49,"start_character":8,"end_line":49,"end_character":19},"updated":"2018-06-07 15:07:34.000000000","message":"mount_share isn\u0027t implemented?! No wonder the scenario tests fail :)\n\nWe should also move mount_share and unmount_share to the manager class.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    def mount_share(self, location, remote_client, target_dir\u003dNone):"},{"line_number":50,"context_line":"        raise NotImplementedError"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def umount_share(self, remote_client, target_dir\u003dNone):"},{"line_number":53,"context_line":"        target_dir \u003d target_dir or \"/mnt\""},{"line_number":54,"context_line":"        remote_client.exec_command(\"sudo umount %s\" % target_dir)"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_2a04c2c5","line":52,"range":{"start_line":52,"start_character":8,"end_line":52,"end_character":20},"updated":"2018-06-07 15:07:34.000000000","message":"We should probably move this to the manager class.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":17780,"name":"Dustin Schoenbrun","email":"dschoenb@redhat.com","username":"dschoenb"},"change_message_id":"a797d0c7dab4213a21712ccce0a058054e5d3eeb","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    def _get_snapshot_export_locations(self, snapshot):"},{"line_number":135,"context_line":"        exports \u003d (self.shares_v2_client."},{"line_number":136,"context_line":"                   list_snapshot_export_locations(snapshot[\u0027id\u0027]))"},{"line_number":137,"context_line":"        locations \u003d [x[\u0027path\u0027] for x in exports]"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"        return locations"},{"line_number":140,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_b6a5a249","line":137,"range":{"start_line":137,"start_character":35,"end_line":137,"end_character":36},"updated":"2018-06-07 15:07:34.000000000","message":"We should refactor this to \"export\" to make it more explicit in purpose.","commit_id":"4041b357d707f5a4107dece41e64799d7eda3224"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"777b49167c541a929dc58971c912c0b1c74ccfac","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        if not hasattr(self, \u0027flavor_ref\u0027):"},{"line_number":77,"context_line":"            self.flavor_ref \u003d CONF.share.client_vm_flavor_ref"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        if CONF.share.image_with_share_tools \u003d\u003d \u0027centos\u0027:"},{"line_number":80,"context_line":"            self.image_ref \u003d self._create_centos_based_glance_image()"},{"line_number":81,"context_line":"        elif CONF.share.image_with_share_tools:"},{"line_number":82,"context_line":"            images \u003d self.compute_images_client.list_images()[\"images\"]"},{"line_number":83,"context_line":"            for img in images:"}],"source_content_type":"text/x-python","patch_set":14,"id":"5f7c97a3_17f978c3","side":"PARENT","line":80,"range":{"start_line":79,"start_character":1,"end_line":80,"end_character":69},"updated":"2018-06-26 14:46:19.000000000","message":"This branch didn\u0027t get moved to the super class, is that intentional?","commit_id":"4c99f09457ef49137c1182bfba67b8931ec72ce3"},{"author":{"_account_id":26535,"name":"Nir Gilboa","email":"gilboa.nir@gmail.com","username":"nirgilbo"},"change_message_id":"9b3839bafd253480ba98230ccf251c6ff301398d","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        if not hasattr(self, \u0027flavor_ref\u0027):"},{"line_number":77,"context_line":"            self.flavor_ref \u003d CONF.share.client_vm_flavor_ref"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        if CONF.share.image_with_share_tools \u003d\u003d \u0027centos\u0027:"},{"line_number":80,"context_line":"            self.image_ref \u003d self._create_centos_based_glance_image()"},{"line_number":81,"context_line":"        elif CONF.share.image_with_share_tools:"},{"line_number":82,"context_line":"            images \u003d self.compute_images_client.list_images()[\"images\"]"},{"line_number":83,"context_line":"            for img in images:"}],"source_content_type":"text/x-python","patch_set":14,"id":"5f7c97a3_f93a9dca","side":"PARENT","line":80,"range":{"start_line":79,"start_character":1,"end_line":80,"end_character":69},"in_reply_to":"5f7c97a3_17f978c3","updated":"2018-06-27 07:18:59.000000000","message":"You\u0027re absolutely right - thank you. Fixed it, and moved the _create_centos_based_glance_image() method up to the current class.","commit_id":"4c99f09457ef49137c1182bfba67b8931ec72ce3"}]}
