)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0f595cdb7638f3290b1fc9b3996c4d3772dd89f7","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Tom Barron \u003ctpb@dyncloud.net\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-06-25 21:30:43 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check login in addtion to port reachability to make sure share server is available"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5f7c97a3_89a9e08f","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":82},"updated":"2018-06-26 21:15:45.000000000","message":"Please restrict to ~50 characters or less, perhaps something like:\n\n    Validate login during service instance creation","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Tom Barron \u003ctpb@dyncloud.net\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-06-25 21:30:43 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check login in addtion to port reachability to make sure share server is available"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f79a3b5_cf0497c8","line":7,"range":{"start_line":7,"start_character":15,"end_line":7,"end_character":22},"updated":"2018-10-05 09:59:17.000000000","message":"addition","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check login in addtion to port reachability to make sure share server is available"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"},{"line_number":11,"context_line":"reachable is not enough, especially when using private key to access a slow"},{"line_number":12,"context_line":"share server, the immediately access after the port first available will fail."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f79a3b5_0ffa8fb9","line":9,"range":{"start_line":9,"start_character":51,"end_line":9,"end_character":74},"updated":"2018-10-05 09:59:17.000000000","message":"make sure that we can login on server","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Check login in addtion to port reachability to make sure share server is available"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"},{"line_number":11,"context_line":"reachable is not enough, especially when using private key to access a slow"},{"line_number":12,"context_line":"share server, the immediately access after the port first available will fail."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f79a3b5_cfd25734","line":10,"range":{"start_line":10,"start_character":58,"end_line":10,"end_character":63},"updated":"2018-10-05 09:59:17.000000000","message":"checking","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Check login in addtion to port reachability to make sure share server is available"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"},{"line_number":11,"context_line":"reachable is not enough, especially when using private key to access a slow"},{"line_number":12,"context_line":"share server, the immediately access after the port first available will fail."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f79a3b5_2f1c2b13","line":10,"range":{"start_line":10,"start_character":44,"end_line":10,"end_character":51},"updated":"2018-10-05 09:59:17.000000000","message":"succeed.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"},{"line_number":11,"context_line":"reachable is not enough, especially when using private key to access a slow"},{"line_number":12,"context_line":"share server, the immediately access after the port first available will fail."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I7bdc267eedaf3a43fcb6bfdecbb5863129a9ac5b"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f79a3b5_0fe84fdd","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":9},"updated":"2018-10-05 09:59:17.000000000","message":"reach-ability","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0f595cdb7638f3290b1fc9b3996c4d3772dd89f7","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Check login in addtion to port reachability to make sure share server is available"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"},{"line_number":11,"context_line":"reachable is not enough, especially when using private key to access a slow"},{"line_number":12,"context_line":"share server, the immediately access after the port first available will fail."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I7bdc267eedaf3a43fcb6bfdecbb5863129a9ac5b"},{"line_number":15,"context_line":"Closes-Bug: 1748139"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5f7c97a3_498f482d","line":12,"range":{"start_line":9,"start_character":0,"end_line":12,"end_character":78},"updated":"2018-06-26 21:15:45.000000000","message":"Wrap at 72 characters or less.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":9,"context_line":"When we start a share server,  we should make sure the server can be login"},{"line_number":10,"context_line":"so that the later access to the server will success. Only check the port"},{"line_number":11,"context_line":"reachable is not enough, especially when using private key to access a slow"},{"line_number":12,"context_line":"share server, the immediately access after the port first available will fail."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I7bdc267eedaf3a43fcb6bfdecbb5863129a9ac5b"},{"line_number":15,"context_line":"Closes-Bug: 1748139"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f79a3b5_6fb0e3fe","line":12,"range":{"start_line":12,"start_character":18,"end_line":12,"end_character":29},"updated":"2018-10-05 09:59:17.000000000","message":"immediate","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"}],"manila/share/drivers/service_instance.py":[{"author":{"_account_id":26968,"name":"Amit O","email":"oamit.work@gmail.com","username":"amito"},"change_message_id":"fd689a17cfd88ea2b3e5de762d126943b3714e0b","unresolved":false,"context_lines":[{"line_number":638,"context_line":""},{"line_number":639,"context_line":"    def _check_server_availability(self, instance_details):"},{"line_number":640,"context_line":"        connectable \u003d False"},{"line_number":641,"context_line":"        t \u003d time.time()"},{"line_number":642,"context_line":"        while time.time() - t \u003c self.max_time_to_build_instance:"},{"line_number":643,"context_line":"            LOG.debug(\u0027Checking server availability.\u0027)"},{"line_number":644,"context_line":"            if not connectable:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_bf085427","line":641,"range":{"start_line":641,"start_character":8,"end_line":641,"end_character":9},"updated":"2018-10-22 14:05:02.000000000","message":"On this occasion, maybe change \u0027t\u0027 to \u0027start_time\u0027, thanks.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":641,"context_line":"        t \u003d time.time()"},{"line_number":642,"context_line":"        while time.time() - t \u003c self.max_time_to_build_instance:"},{"line_number":643,"context_line":"            LOG.debug(\u0027Checking server availability.\u0027)"},{"line_number":644,"context_line":"            if not connectable:"},{"line_number":645,"context_line":"                connectable \u003d self._test_server_connection(instance_details)"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"            if connectable and self._test_server_ssh_login(instance_details):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_0cfffd02","line":644,"range":{"start_line":644,"start_character":12,"end_line":644,"end_character":31},"updated":"2018-10-05 09:59:17.000000000","message":"since the connectable is set to False everytime this method is called, i think this line is not needed.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":26968,"name":"Amit O","email":"oamit.work@gmail.com","username":"amito"},"change_message_id":"fd689a17cfd88ea2b3e5de762d126943b3714e0b","unresolved":false,"context_lines":[{"line_number":641,"context_line":"        t \u003d time.time()"},{"line_number":642,"context_line":"        while time.time() - t \u003c self.max_time_to_build_instance:"},{"line_number":643,"context_line":"            LOG.debug(\u0027Checking server availability.\u0027)"},{"line_number":644,"context_line":"            if not connectable:"},{"line_number":645,"context_line":"                connectable \u003d self._test_server_connection(instance_details)"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"            if connectable and self._test_server_ssh_login(instance_details):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_2d63c11b","line":644,"range":{"start_line":644,"start_character":12,"end_line":644,"end_character":31},"in_reply_to":"3f79a3b5_0cfffd02","updated":"2018-10-22 14:05:02.000000000","message":"Regarding the comment: on the first iteration of the while loop, connectable is False, so we go into this clause, however, the next line (L645) might change connectable to True, so it is necessary to check it each time.\n\nHowever, the value of connectable might indeed not change here, so this can be re-written as:\nconnectable \u003d connectable or self._test_server_connection(instance_details)\n\nwithout changing the behavior or functionality of this clause.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0f595cdb7638f3290b1fc9b3996c4d3772dd89f7","unresolved":false,"context_lines":[{"line_number":644,"context_line":"            if not connectable:"},{"line_number":645,"context_line":"                connectable \u003d self._test_server_connection(instance_details)"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"            if connectable and self._test_server_ssh_login(instance_details):"},{"line_number":648,"context_line":"                return True"},{"line_number":649,"context_line":"            else:"},{"line_number":650,"context_line":"                time.sleep(5)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_a9d13c59","line":647,"range":{"start_line":647,"start_character":12,"end_line":647,"end_character":31},"updated":"2018-06-26 21:15:45.000000000","message":"elif","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":26968,"name":"Amit O","email":"oamit.work@gmail.com","username":"amito"},"change_message_id":"fd689a17cfd88ea2b3e5de762d126943b3714e0b","unresolved":false,"context_lines":[{"line_number":644,"context_line":"            if not connectable:"},{"line_number":645,"context_line":"                connectable \u003d self._test_server_connection(instance_details)"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"            if connectable and self._test_server_ssh_login(instance_details):"},{"line_number":648,"context_line":"                return True"},{"line_number":649,"context_line":"            else:"},{"line_number":650,"context_line":"                time.sleep(5)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_ad1cb17b","line":647,"range":{"start_line":647,"start_character":12,"end_line":647,"end_character":31},"in_reply_to":"5f7c97a3_a9d13c59","updated":"2018-10-22 14:05:02.000000000","message":"Regarding the comment, I don\u0027t think it should be \u0027elif\u0027, since connectable might\u0027ve just changed in the \u0027if\u0027 clause above (L644). IMHO think \u0027if\u0027 is correct here.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":26968,"name":"Amit O","email":"oamit.work@gmail.com","username":"amito"},"change_message_id":"fd689a17cfd88ea2b3e5de762d126943b3714e0b","unresolved":false,"context_lines":[{"line_number":647,"context_line":"            if connectable and self._test_server_ssh_login(instance_details):"},{"line_number":648,"context_line":"                return True"},{"line_number":649,"context_line":"            else:"},{"line_number":650,"context_line":"                time.sleep(5)"},{"line_number":651,"context_line":""},{"line_number":652,"context_line":"        return False"},{"line_number":653,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_df22f0a6","line":650,"range":{"start_line":650,"start_character":27,"end_line":650,"end_character":28},"updated":"2018-10-22 14:05:02.000000000","message":"This seems like a really long sleeping time, however, I\u0027m not sure what a better value would be. I\u0027d like someone else to review it and see if my hunch is right.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":656,"context_line":"        ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":657,"context_line":"        look_for_keys \u003d True"},{"line_number":658,"context_line":"        path_to_private_key \u003d None"},{"line_number":659,"context_line":"        if server.get(\u0027pk_path\u0027) and server[\u0027pk_path\u0027]:"},{"line_number":660,"context_line":"            path_to_private_key \u003d os.path.expanduser(server[\u0027pk_path\u0027])"},{"line_number":661,"context_line":"            look_for_keys \u003d False"},{"line_number":662,"context_line":"        elif server.get(\u0027password\u0027) and server[\u0027password\u0027]:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_4f3887ca","line":659,"range":{"start_line":659,"start_character":11,"end_line":659,"end_character":54},"updated":"2018-10-05 09:59:17.000000000","message":"aren\u0027t the two conditions doing same thing? correct me if i\u0027m wrong.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":26968,"name":"Amit O","email":"oamit.work@gmail.com","username":"amito"},"change_message_id":"fd689a17cfd88ea2b3e5de762d126943b3714e0b","unresolved":false,"context_lines":[{"line_number":656,"context_line":"        ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":657,"context_line":"        look_for_keys \u003d True"},{"line_number":658,"context_line":"        path_to_private_key \u003d None"},{"line_number":659,"context_line":"        if server.get(\u0027pk_path\u0027) and server[\u0027pk_path\u0027]:"},{"line_number":660,"context_line":"            path_to_private_key \u003d os.path.expanduser(server[\u0027pk_path\u0027])"},{"line_number":661,"context_line":"            look_for_keys \u003d False"},{"line_number":662,"context_line":"        elif server.get(\u0027password\u0027) and server[\u0027password\u0027]:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_e617eeee","line":659,"range":{"start_line":659,"start_character":11,"end_line":659,"end_character":54},"in_reply_to":"3f79a3b5_4f3887ca","updated":"2018-10-22 14:05:02.000000000","message":"You\u0027re right, \"if server.get(\u0027pk_path\u0027)\" would be enough.","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0b2a416c54fbce0349aa56ceccec6b6f2f420fbf","unresolved":false,"context_lines":[{"line_number":659,"context_line":"        if server.get(\u0027pk_path\u0027) and server[\u0027pk_path\u0027]:"},{"line_number":660,"context_line":"            path_to_private_key \u003d os.path.expanduser(server[\u0027pk_path\u0027])"},{"line_number":661,"context_line":"            look_for_keys \u003d False"},{"line_number":662,"context_line":"        elif server.get(\u0027password\u0027) and server[\u0027password\u0027]:"},{"line_number":663,"context_line":"            look_for_keys \u003d False"},{"line_number":664,"context_line":""},{"line_number":665,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_af703ba9","line":662,"range":{"start_line":662,"start_character":13,"end_line":662,"end_character":58},"updated":"2018-10-05 09:59:17.000000000","message":"same","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"},{"author":{"_account_id":26968,"name":"Amit O","email":"oamit.work@gmail.com","username":"amito"},"change_message_id":"fd689a17cfd88ea2b3e5de762d126943b3714e0b","unresolved":false,"context_lines":[{"line_number":659,"context_line":"        if server.get(\u0027pk_path\u0027) and server[\u0027pk_path\u0027]:"},{"line_number":660,"context_line":"            path_to_private_key \u003d os.path.expanduser(server[\u0027pk_path\u0027])"},{"line_number":661,"context_line":"            look_for_keys \u003d False"},{"line_number":662,"context_line":"        elif server.get(\u0027password\u0027) and server[\u0027password\u0027]:"},{"line_number":663,"context_line":"            look_for_keys \u003d False"},{"line_number":664,"context_line":""},{"line_number":665,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_86163af2","line":662,"range":{"start_line":662,"start_character":13,"end_line":662,"end_character":58},"in_reply_to":"3f79a3b5_af703ba9","updated":"2018-10-22 14:05:02.000000000","message":"+1","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"}],"manila/tests/share/drivers/test_service_instance.py":[{"author":{"_account_id":26968,"name":"Amit O","email":"oamit.work@gmail.com","username":"amito"},"change_message_id":"fd689a17cfd88ea2b3e5de762d126943b3714e0b","unresolved":false,"context_lines":[{"line_number":288,"context_line":"        result \u003d self._manager._check_server_availability(fake_server)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"        self.assertTrue(result)"},{"line_number":291,"context_line":"        self.assertTrue(self._manager._test_server_connection.called)"},{"line_number":292,"context_line":"        self.assertTrue(self._manager._test_server_ssh_login.called)"},{"line_number":293,"context_line":"        service_instance.time.time.assert_has_calls(["},{"line_number":294,"context_line":"            mock.call(), mock.call()])"},{"line_number":295,"context_line":"        service_instance.time.sleep.assert_has_calls([])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_25f5fc84","line":292,"range":{"start_line":291,"start_character":8,"end_line":292,"end_character":68},"updated":"2018-10-22 14:05:02.000000000","message":"Aren\u0027t you using the mock infrastructure? (it seems like you do)\nYou can use object.assert_called ... \nSee here for example:\nhttps://github.com/openstack/manila/blob/master/manila/tests/share/drivers/infinidat/test_infinidat.py#L227","commit_id":"1ec553f7983e041d36b7279afeebff169117404c"}]}
