)]}'
{"sahara/conductor/objects.py":[{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"10b0b5d500308e792939722eab6a90febbce0e21","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    open_ports - List of ports that will be opened if auto_security_group is"},{"line_number":98,"context_line":"                 True"},{"line_number":99,"context_line":"    is_proxy_gateway - indicates if nodes from this node group should be used"},{"line_number":100,"context_line":"                       as proxy to access other cluster nodes"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    count"},{"line_number":103,"context_line":"    instances - list of Instance objects"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_ba130d0c","line":100,"updated":"2014-11-12 10:02:26.000000000","message":"To be clear, you should indicate here that only one of the instances will be used as a proxy.","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"43c5748032c939628d9d1aec223b823770073406","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    open_ports - List of ports that will be opened if auto_security_group is"},{"line_number":98,"context_line":"                 True"},{"line_number":99,"context_line":"    is_proxy_gateway - indicates if nodes from this node group should be used"},{"line_number":100,"context_line":"                       as proxy to access other cluster nodes"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    count"},{"line_number":103,"context_line":"    instances - list of Instance objects"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_ec006703","line":100,"in_reply_to":"5a890539_ba130d0c","updated":"2014-11-12 23:50:26.000000000","message":"Actually it is rather easy to implement load balancing. But this is out of scope of this CR, I think.","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":6786,"name":"Sergey Lukjanov","email":"me@slukjanov.name","username":"slukjanov"},"change_message_id":"7d26bdb1f6c25a14ea8bca5da92a164fc31afdd6","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    def get_proxy_gateway_node(self):"},{"line_number":69,"context_line":"        for ng in self.node_groups:"},{"line_number":70,"context_line":"            if ng.is_proxy_gateway and ng.instances:"},{"line_number":71,"context_line":"                return ng.instances[0]"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        return None"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a890539_5519c086","line":71,"updated":"2014-11-24 11:09:51.000000000","message":"It means that we\u0027ll use only first instance as a gateway node. I\u0027m proposing to add random here to provide something like round robin algorithm for using gateway nodes and support more than one gateway nodes.","commit_id":"187b3b8293f3ee18b485ea4380f3b2865588fb57"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"16bd528395acc1b7354732c383c9bfa90a69ea13","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    def get_proxy_gateway_node(self):"},{"line_number":69,"context_line":"        for ng in self.node_groups:"},{"line_number":70,"context_line":"            if ng.is_proxy_gateway and ng.instances:"},{"line_number":71,"context_line":"                return ng.instances[0]"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        return None"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a890539_f98ffeca","line":71,"in_reply_to":"5a890539_5519c086","updated":"2014-11-24 15:32:13.000000000","message":"I was thinking to do it by next CR. Actually it is not hard to do, will update this CR.","commit_id":"187b3b8293f3ee18b485ea4380f3b2865588fb57"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"16111eb33f85ab97cbc9aa33c3329aed0c2395f6","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    def get_proxy_gateway_node(self):"},{"line_number":69,"context_line":"        for ng in self.node_groups:"},{"line_number":70,"context_line":"            if ng.is_proxy_gateway and ng.instances:"},{"line_number":71,"context_line":"                return ng.instances[0]"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        return None"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a890539_1ec2e784","line":71,"in_reply_to":"5a890539_f98ffeca","updated":"2014-11-24 19:05:13.000000000","message":"Done","commit_id":"187b3b8293f3ee18b485ea4380f3b2865588fb57"},{"author":{"_account_id":7428,"name":"Yaroslav Lobankov","email":"lobankovyv@gmail.com","username":"ylobankov"},"change_message_id":"5e9a3b155f37e4fb5d58a493d4a7c96b59e6e6c6","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                return True"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def get_proxy_gateway_node(self):"},{"line_number":72,"context_line":"        for ng in self.node_groups:"},{"line_number":73,"context_line":"            if ng.is_proxy_gateway and ng.instances:"},{"line_number":74,"context_line":"                return random.choice(ng.instances)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"fa81d914_0a889b21","line":72,"updated":"2015-01-27 18:42:35.000000000","message":"I think you should collect all proxy nodes of all proxy node groups and choose random instance of this list.","commit_id":"a5da768bade13513e3e8e6f542039e5a3fc34b7f"},{"author":{"_account_id":6786,"name":"Sergey Lukjanov","email":"me@slukjanov.name","username":"slukjanov"},"change_message_id":"b583b90157d2335ad54e67e47a1cde93cab2ab96","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                return True"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def get_proxy_gateway_node(self):"},{"line_number":72,"context_line":"        for ng in self.node_groups:"},{"line_number":73,"context_line":"            if ng.is_proxy_gateway and ng.instances:"},{"line_number":74,"context_line":"                return random.choice(ng.instances)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"1a930d6b_f19b5c63","line":72,"updated":"2015-01-27 16:28:23.000000000","message":"If we have several node groups enabled as proxy gateways, we should randomly choose the node group too.","commit_id":"a5da768bade13513e3e8e6f542039e5a3fc34b7f"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"ef0e9894dd06446c9192cf211ad14734c10200ab","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                return True"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def get_proxy_gateway_node(self):"},{"line_number":72,"context_line":"        for ng in self.node_groups:"},{"line_number":73,"context_line":"            if ng.is_proxy_gateway and ng.instances:"},{"line_number":74,"context_line":"                return random.choice(ng.instances)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"fa81d914_855ab181","line":72,"in_reply_to":"fa81d914_0a889b21","updated":"2015-01-28 00:02:17.000000000","message":"Done","commit_id":"a5da768bade13513e3e8e6f542039e5a3fc34b7f"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"ef0e9894dd06446c9192cf211ad14734c10200ab","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                return True"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def get_proxy_gateway_node(self):"},{"line_number":72,"context_line":"        for ng in self.node_groups:"},{"line_number":73,"context_line":"            if ng.is_proxy_gateway and ng.instances:"},{"line_number":74,"context_line":"                return random.choice(ng.instances)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"fa81d914_c525890b","line":72,"in_reply_to":"fa81d914_0a889b21","updated":"2015-01-28 00:02:17.000000000","message":"Done","commit_id":"a5da768bade13513e3e8e6f542039e5a3fc34b7f"}],"sahara/service/validations/base.py":[{"author":{"_account_id":6786,"name":"Sergey Lukjanov","email":"me@slukjanov.name","username":"slukjanov"},"change_message_id":"7b8709e243a65f348f37a8a3a46d2a2911646e98","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                                           cluster_template_id):"},{"line_number":293,"context_line":"    c_t \u003d api.get_cluster_template(id\u003dcluster_template_id)"},{"line_number":294,"context_line":"    n_groups \u003d c_t.to_wrapped_dict()[\u0027cluster_template\u0027][\u0027node_groups\u0027]"},{"line_number":295,"context_line":"    proxy_gateway_used \u003d len([ng for ng in n_groups if"},{"line_number":296,"context_line":"                              ng.get(\u0027is_proxy_gateway\u0027, False)]) \u003e 0"},{"line_number":297,"context_line":"    check_network_config(n_groups, proxy_gateway_used)"},{"line_number":298,"context_line":"    for node_group in n_groups:"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a890539_4732f610","line":295,"updated":"2014-11-24 10:18:19.000000000","message":"IMO we should have validation to ensure number of proxy nodes is equal to 1","commit_id":"187b3b8293f3ee18b485ea4380f3b2865588fb57"},{"author":{"_account_id":6786,"name":"Sergey Lukjanov","email":"me@slukjanov.name","username":"slukjanov"},"change_message_id":"7d26bdb1f6c25a14ea8bca5da92a164fc31afdd6","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                                           cluster_template_id):"},{"line_number":293,"context_line":"    c_t \u003d api.get_cluster_template(id\u003dcluster_template_id)"},{"line_number":294,"context_line":"    n_groups \u003d c_t.to_wrapped_dict()[\u0027cluster_template\u0027][\u0027node_groups\u0027]"},{"line_number":295,"context_line":"    proxy_gateway_used \u003d len([ng for ng in n_groups if"},{"line_number":296,"context_line":"                              ng.get(\u0027is_proxy_gateway\u0027, False)]) \u003e 0"},{"line_number":297,"context_line":"    check_network_config(n_groups, proxy_gateway_used)"},{"line_number":298,"context_line":"    for node_group in n_groups:"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a890539_f509cc31","line":295,"in_reply_to":"5a890539_4732f610","updated":"2014-11-24 11:09:51.000000000","message":"I think it\u0027s better ti support any number of proxy nodes by random usage of them.","commit_id":"187b3b8293f3ee18b485ea4380f3b2865588fb57"},{"author":{"_account_id":8091,"name":"Trevor McKay","email":"tmckay@redhat.com","username":"tmckay"},"change_message_id":"0197e953196ac8a8f5c1dc35b9ceb133836275db","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                                           cluster_template_id):"},{"line_number":293,"context_line":"    c_t \u003d api.get_cluster_template(id\u003dcluster_template_id)"},{"line_number":294,"context_line":"    n_groups \u003d c_t.to_wrapped_dict()[\u0027cluster_template\u0027][\u0027node_groups\u0027]"},{"line_number":295,"context_line":"    proxy_gateway_used \u003d len([ng for ng in n_groups if"},{"line_number":296,"context_line":"                              ng.get(\u0027is_proxy_gateway\u0027, False)]) \u003e 0"},{"line_number":297,"context_line":"    check_network_config(n_groups, proxy_gateway_used)"},{"line_number":298,"context_line":"    for node_group in n_groups:"}],"source_content_type":"text/x-python","patch_set":15,"id":"3a961159_bfb19ce1","line":295,"updated":"2014-12-23 21:17:53.000000000","message":"hmm, len(list_comprehension) to find proxy_gateway_used is the same as used in clusters.py\n\nI wonder if it makes sense to put it in a util.py somewhere?","commit_id":"ff2574324f20593f4a7e12ad2d4f923e6beb6dd1"}],"sahara/tests/unit/service/validation/test_cluster_create_validation.py":[{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"5e8a70b93dec31d8f177abdc86aa8f5fbee187c2","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                        \"node_processes\": [\"datanode\"],"},{"line_number":312,"context_line":"                        \"flavor_id\": \"42\","},{"line_number":313,"context_line":"                        \"count\": 100,"},{"line_number":314,"context_line":"                        \u0027security_groups\u0027: [\u0027group1\u0027, \u0027group2\u0027]"},{"line_number":315,"context_line":"                    }"},{"line_number":316,"context_line":"                ]"},{"line_number":317,"context_line":"            },"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_84b993cd","line":314,"updated":"2014-11-20 12:27:47.000000000","message":"I don\u0027t understand this test.\n\nIs \"\u0027is_proxy_gateway\u0027: True\" missing in ng2?","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"17352ddabbd2305a43359d7a79324b1a1315b13d","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                        \"node_processes\": [\"datanode\"],"},{"line_number":312,"context_line":"                        \"flavor_id\": \"42\","},{"line_number":313,"context_line":"                        \"count\": 100,"},{"line_number":314,"context_line":"                        \u0027security_groups\u0027: [\u0027group1\u0027, \u0027group2\u0027]"},{"line_number":315,"context_line":"                    }"},{"line_number":316,"context_line":"                ]"},{"line_number":317,"context_line":"            },"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_9c71deaa","line":314,"in_reply_to":"5a890539_0863e91a","updated":"2014-11-20 17:14:01.000000000","message":"Good, thanks.","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"c6a72a5c9aa07bb3d3d62c7c338a48d031363d65","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                        \"node_processes\": [\"datanode\"],"},{"line_number":312,"context_line":"                        \"flavor_id\": \"42\","},{"line_number":313,"context_line":"                        \"count\": 100,"},{"line_number":314,"context_line":"                        \u0027security_groups\u0027: [\u0027group1\u0027, \u0027group2\u0027]"},{"line_number":315,"context_line":"                    }"},{"line_number":316,"context_line":"                ]"},{"line_number":317,"context_line":"            },"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_0863e91a","line":314,"in_reply_to":"5a890539_84b993cd","updated":"2014-11-20 17:02:17.000000000","message":"No, this is test without \"is_proxy_gateway\" and with \"floating_ip_pool\" missing. We didn\u0027t have such test before, so I added it in contradictory to the next test.","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"}],"sahara/utils/ssh_remote.py":[{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"10b0b5d500308e792939722eab6a90febbce0e21","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    if type(private_key) in [str, unicode]:"},{"line_number":81,"context_line":"        private_key \u003d crypto.to_paramiko_private_key(private_key)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    global _ssh"},{"line_number":84,"context_line":"    _ssh \u003d paramiko.SSHClient()"},{"line_number":85,"context_line":"    _ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":86,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_3a547d20","line":83,"updated":"2014-11-12 10:02:26.000000000","message":"For clarity \"global\" definition are often placed at the beginning of the function.","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"43c5748032c939628d9d1aec223b823770073406","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    if type(private_key) in [str, unicode]:"},{"line_number":81,"context_line":"        private_key \u003d crypto.to_paramiko_private_key(private_key)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    global _ssh"},{"line_number":84,"context_line":"    _ssh \u003d paramiko.SSHClient()"},{"line_number":85,"context_line":"    _ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":86,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_2c0b4f26","line":83,"in_reply_to":"5a890539_3a547d20","updated":"2014-11-12 23:50:26.000000000","message":"Done","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"10b0b5d500308e792939722eab6a90febbce0e21","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        proxy \u003d paramiko.ProxyCommand(proxy_command)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    if gateway_host:"},{"line_number":93,"context_line":"        global _proxy_ssh"},{"line_number":94,"context_line":"        _proxy_ssh \u003d paramiko.SSHClient()"},{"line_number":95,"context_line":"        _proxy_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_7a3525f6","line":93,"updated":"2014-11-12 10:02:26.000000000","message":"same here","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"43c5748032c939628d9d1aec223b823770073406","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        proxy \u003d paramiko.ProxyCommand(proxy_command)"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    if gateway_host:"},{"line_number":93,"context_line":"        global _proxy_ssh"},{"line_number":94,"context_line":"        _proxy_ssh \u003d paramiko.SSHClient()"},{"line_number":95,"context_line":"        _proxy_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_4c0edb35","line":93,"in_reply_to":"5a890539_7a3525f6","updated":"2014-11-12 23:50:26.000000000","message":"Done","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"10b0b5d500308e792939722eab6a90febbce0e21","unresolved":false,"context_lines":[{"line_number":107,"context_line":"def _cleanup():"},{"line_number":108,"context_line":"    global _ssh"},{"line_number":109,"context_line":"    _ssh.close()"},{"line_number":110,"context_line":"    global _proxy_ssh"},{"line_number":111,"context_line":"    if _proxy_ssh:"},{"line_number":112,"context_line":"        _proxy_ssh.close()"},{"line_number":113,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_fa2035b2","line":110,"updated":"2014-11-12 10:02:26.000000000","message":"same here","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"43c5748032c939628d9d1aec223b823770073406","unresolved":false,"context_lines":[{"line_number":107,"context_line":"def _cleanup():"},{"line_number":108,"context_line":"    global _ssh"},{"line_number":109,"context_line":"    _ssh.close()"},{"line_number":110,"context_line":"    global _proxy_ssh"},{"line_number":111,"context_line":"    if _proxy_ssh:"},{"line_number":112,"context_line":"        _proxy_ssh.close()"},{"line_number":113,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_6c147744","line":110,"in_reply_to":"5a890539_fa2035b2","updated":"2014-11-12 23:50:26.000000000","message":"Done","commit_id":"1d9ba38344509fa0bb083f504bc108f3db48c846"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"17204bafc7f0937a36772220997acb6793900d67","unresolved":false,"context_lines":[{"line_number":421,"context_line":""},{"line_number":422,"context_line":"        LOG.debug(\u0027connecting to proxy gateway at: %s\u0027, self.gateway_host)"},{"line_number":423,"context_line":"        self.ssh.connect(self.gateway_host, username\u003dself.gateway_username,"},{"line_number":424,"context_line":"                         pkey\u003dself.gateway_private_key, sock\u003dproxy)"},{"line_number":425,"context_line":"        self.stdin, self.stdout, self.stderr \u003d self.ssh.exec_command("},{"line_number":426,"context_line":"            \"nc {0} {1}\".format(self.host, self.port))"},{"line_number":427,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_dadfb40b","line":424,"updated":"2014-11-14 00:05:01.000000000","message":"It looks like nested ssh with paramiko doesn\u0027t work with eventlet. Exactly the same code block works in new python process, but doesn\u0027t work in this context. Not sure how sahara-\u003eproxy_command-\u003egateway-\u003edestination scenario important for http. But current code doesn\u0027t work for it. And I don\u0027t know how to fix it without moving ssh client to clean process.\n\nTest code block is very simple (several lines). Like \"ssh2 \u003d paramiko.SSHClient(); proxy2 \u003d paramiko.ProxyCommand(...); ssh2.connect(...)\". It doesn\u0027t use any of context variables. It works fine when it is run as \"python test.py\", but doesn\u0027t work in pdb at this line.\n\nAny ideas?","commit_id":"4e7cd9572df5909d0ad868d788c59e0860fcfb4b"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"5d91b8ee8c7f3ef176d8c00b82a53bd9ec24c21f","unresolved":false,"context_lines":[{"line_number":421,"context_line":""},{"line_number":422,"context_line":"        LOG.debug(\u0027connecting to proxy gateway at: %s\u0027, self.gateway_host)"},{"line_number":423,"context_line":"        self.ssh.connect(self.gateway_host, username\u003dself.gateway_username,"},{"line_number":424,"context_line":"                         pkey\u003dself.gateway_private_key, sock\u003dproxy)"},{"line_number":425,"context_line":"        self.stdin, self.stdout, self.stderr \u003d self.ssh.exec_command("},{"line_number":426,"context_line":"            \"nc {0} {1}\".format(self.host, self.port))"},{"line_number":427,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_d5bce7de","line":424,"in_reply_to":"5a890539_150e6fe5","updated":"2014-11-14 00:38:10.000000000","message":"Yeah, https://github.com/paramiko/paramiko/issues/337","commit_id":"4e7cd9572df5909d0ad868d788c59e0860fcfb4b"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"82c176dc692aa3d5fc273db418faf8b201be6126","unresolved":false,"context_lines":[{"line_number":421,"context_line":""},{"line_number":422,"context_line":"        LOG.debug(\u0027connecting to proxy gateway at: %s\u0027, self.gateway_host)"},{"line_number":423,"context_line":"        self.ssh.connect(self.gateway_host, username\u003dself.gateway_username,"},{"line_number":424,"context_line":"                         pkey\u003dself.gateway_private_key, sock\u003dproxy)"},{"line_number":425,"context_line":"        self.stdin, self.stdout, self.stderr \u003d self.ssh.exec_command("},{"line_number":426,"context_line":"            \"nc {0} {1}\".format(self.host, self.port))"},{"line_number":427,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_150e6fe5","line":424,"in_reply_to":"5a890539_157bcf7b","updated":"2014-11-14 00:32:43.000000000","message":"It it works fine if sock\u003dproxy is present, but paramiko.SSHClient() is used instead of paramiko.ProxyCommand. So, it seems like paramiko.ProxyCommand conflicts with eventlet (or something else).","commit_id":"4e7cd9572df5909d0ad868d788c59e0860fcfb4b"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"29928a103ca5eb4415e725683a65040f876527bd","unresolved":false,"context_lines":[{"line_number":421,"context_line":""},{"line_number":422,"context_line":"        LOG.debug(\u0027connecting to proxy gateway at: %s\u0027, self.gateway_host)"},{"line_number":423,"context_line":"        self.ssh.connect(self.gateway_host, username\u003dself.gateway_username,"},{"line_number":424,"context_line":"                         pkey\u003dself.gateway_private_key, sock\u003dproxy)"},{"line_number":425,"context_line":"        self.stdin, self.stdout, self.stderr \u003d self.ssh.exec_command("},{"line_number":426,"context_line":"            \"nc {0} {1}\".format(self.host, self.port))"},{"line_number":427,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_157bcf7b","line":424,"in_reply_to":"5a890539_dadfb40b","updated":"2014-11-14 00:26:16.000000000","message":"Note, problem happens only if sock\u003dproxy parameter is present here.","commit_id":"4e7cd9572df5909d0ad868d788c59e0860fcfb4b"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"5e8a70b93dec31d8f177abdc86aa8f5fbee187c2","unresolved":false,"context_lines":[{"line_number":416,"context_line":"class ProxiedHTTPAdapter(adapters.HTTPAdapter):"},{"line_number":417,"context_line":"    port \u003d None"},{"line_number":418,"context_line":"    host \u003d None"},{"line_number":419,"context_line":"    create_process_func \u003d None"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def __init__(self, create_process_func, host, port):"},{"line_number":422,"context_line":"        super(ProxiedHTTPAdapter, self).__init__()"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_04e20301","line":419,"updated":"2014-11-20 12:27:47.000000000","message":"Why are these 3 variables static? This can be a problem if we have several clusters.","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"c6a72a5c9aa07bb3d3d62c7c338a48d031363d65","unresolved":false,"context_lines":[{"line_number":416,"context_line":"class ProxiedHTTPAdapter(adapters.HTTPAdapter):"},{"line_number":417,"context_line":"    port \u003d None"},{"line_number":418,"context_line":"    host \u003d None"},{"line_number":419,"context_line":"    create_process_func \u003d None"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def __init__(self, create_process_func, host, port):"},{"line_number":422,"context_line":"        super(ProxiedHTTPAdapter, self).__init__()"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_9c239ea6","line":419,"in_reply_to":"5a890539_04e20301","updated":"2014-11-20 17:02:17.000000000","message":"I don\u0027t see static variables. Adapter is created for host:port pair where host is a final destination. I don\u0027t see how different cluster could interfere. Note, this class didn\u0027t change much, I just replaced \"cmd\" member (was introduced in __init__) with more generic \"create_process_func\".","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"977c22542a6de327a437c65af3c6188ade4be546","unresolved":false,"context_lines":[{"line_number":416,"context_line":"class ProxiedHTTPAdapter(adapters.HTTPAdapter):"},{"line_number":417,"context_line":"    port \u003d None"},{"line_number":418,"context_line":"    host \u003d None"},{"line_number":419,"context_line":"    create_process_func \u003d None"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def __init__(self, create_process_func, host, port):"},{"line_number":422,"context_line":"        super(ProxiedHTTPAdapter, self).__init__()"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_72ca9ba2","line":419,"in_reply_to":"5a890539_324d7373","updated":"2014-11-20 17:54:51.000000000","message":"Done","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"},{"author":{"_account_id":8411,"name":"Andrew Lazarev","email":"alazarev@mirantis.com","username":"alazarev"},"change_message_id":"f301e436f48dcf3ef44241eb8f7078d741eb3b5b","unresolved":false,"context_lines":[{"line_number":416,"context_line":"class ProxiedHTTPAdapter(adapters.HTTPAdapter):"},{"line_number":417,"context_line":"    port \u003d None"},{"line_number":418,"context_line":"    host \u003d None"},{"line_number":419,"context_line":"    create_process_func \u003d None"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def __init__(self, create_process_func, host, port):"},{"line_number":422,"context_line":"        super(ProxiedHTTPAdapter, self).__init__()"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_324d7373","line":419,"in_reply_to":"5a890539_9c01de6c","updated":"2014-11-20 17:50:33.000000000","message":"Oh, I see. Still switching from Java to Python. I thought it is just member fields declaration with default value. Thank you.","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"17352ddabbd2305a43359d7a79324b1a1315b13d","unresolved":false,"context_lines":[{"line_number":416,"context_line":"class ProxiedHTTPAdapter(adapters.HTTPAdapter):"},{"line_number":417,"context_line":"    port \u003d None"},{"line_number":418,"context_line":"    host \u003d None"},{"line_number":419,"context_line":"    create_process_func \u003d None"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"    def __init__(self, create_process_func, host, port):"},{"line_number":422,"context_line":"        super(ProxiedHTTPAdapter, self).__init__()"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a890539_9c01de6c","line":419,"in_reply_to":"5a890539_9c239ea6","updated":"2014-11-20 17:14:01.000000000","message":"Lines 417 to 419 declare static variables. If you read ProxiedHTTPAdapter.port anywhere in the program, None would be returned (whereas ProxiedHTTPAdapter(fn, host, 80).port would return 80).\n\nThese three lines are useless and confusing, can you remove them?","commit_id":"be4c49774cfcb23738dddb5e2ce3fe0f1bd45a1a"}]}
