Return-Path: X-Original-To: apmail-libcloud-notifications-archive@www.apache.org Delivered-To: apmail-libcloud-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D746F18A67 for ; Wed, 13 Jan 2016 22:31:40 +0000 (UTC) Received: (qmail 98883 invoked by uid 500); 13 Jan 2016 22:31:40 -0000 Delivered-To: apmail-libcloud-notifications-archive@libcloud.apache.org Received: (qmail 98745 invoked by uid 500); 13 Jan 2016 22:31:40 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 98437 invoked by uid 99); 13 Jan 2016 22:31:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2016 22:31:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E5C362C1F5C for ; Wed, 13 Jan 2016 22:31:39 +0000 (UTC) Date: Wed, 13 Jan 2016 22:31:39 +0000 (UTC) From: "Heath Naylor (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (LIBCLOUD-791) Connection to the Linode API drops MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LIBCLOUD-791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15097148#comment-15097148 ] Heath Naylor edited comment on LIBCLOUD-791 at 1/13/16 10:30 PM: ----------------------------------------------------------------- Looks to be using TLS v1.0? Is this something we need to get changed? https://github.com/apache/libcloud/blob/ecbaa0b57b1b1fcbda11cef60bcaae8ee67a9340/libcloud/security.py#L37 Python ssl library, 1.2 requires python version 2.7.9 https://docs.python.org/2/library/ssl.html#ssl.PROTOCOL_TLSv1_2 was (Author: heath_n): Looks to be using TLS v1.0? Is this something we need to get changed? https://github.com/apache/libcloud/blob/ecbaa0b57b1b1fcbda11cef60bcaae8ee67a9340/libcloud/security.py#L37 > Connection to the Linode API drops > ---------------------------------- > > Key: LIBCLOUD-791 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-791 > Project: Libcloud > Issue Type: Bug > Components: Compute > Environment: apache-libcloud==0.18.0 > Ubuntu 14.04 > Python2.7 > Reporter: Jacob Riley > > When attempting to connect to Linode through the Linode provider, I am receiving a dropped connection. The following DEBUG information is attached. > I have also found that when taking the below curl request and sending it normally, I do not have any errors on getting a response. > # -------- begin 140040111659984 request ---------- > curl -i -X GET -H 'Host: api.linode.com' -H 'X-LC-Request-ID: 140040111659984' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.18.0 (Linode) ' --compress 'https://api.linode.com:443/?api_key=sekrit&api_responseFormat=json&api_action=avail.linodeplans' > Traceback (most recent call last): > File "test.py", line 6, in > p.worker.consume_queue() > File "/srv/auction-balancer/Auction-Balancer/sae/prov/util/worker.py", line 53, in wrapped_func > channel.start_consuming() > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1681, in start_consuming > self.connection.process_data_events(time_limit=None) > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 656, in process_data_events > self._dispatch_channel_events() > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 469, in _dispatch_channel_events > impl_channel._get_cookie()._dispatch_events() > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1310, in _dispatch_events > evt.body) > File "/srv/auction-balancer/Auction-Balancer/sae/prov/util/worker.py", line 45, in callback > success = func(message) > File "/srv/auction-balancer/Auction-Balancer/sae/prov/util/worker.py", line 102, in consume_queue > node = server.create_node('linode', name=machine_name, size_id='Linode 1024', image_id='Ubuntu 14.04 LTS') > File "/srv/auction-balancer/Auction-Balancer/sae/prov/util/provider.py", line 78, in create_node > size = [s for s in driver.list_sizes() if s.name == size_id][0] > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/libcloud/compute/drivers/linode.py", line 405, in list_sizes > data = self.connection.request(API_ROOT, params=params).objects[0] > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/libcloud/common/base.py", line 784, in request > headers=headers) > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/libcloud/common/base.py", line 443, in request > headers) > File "/usr/lib/python2.7/httplib.py", line 979, in request > self._send_request(method, url, body, headers) > File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request > self.endheaders(body) > File "/usr/lib/python2.7/httplib.py", line 975, in endheaders > self._send_output(message_body) > File "/usr/lib/python2.7/httplib.py", line 835, in _send_output > self.send(msg) > File "/usr/lib/python2.7/httplib.py", line 797, in send > self.connect() > File "/srv/auction-balancer/Auction-Balancer/provenv/local/lib/python2.7/site-packages/libcloud/httplib_ssl.py", line 280, in connect > ssl_version=libcloud.security.SSL_VERSION) > File "/usr/lib/python2.7/ssl.py", line 487, in wrap_socket > ciphers=ciphers) > File "/usr/lib/python2.7/ssl.py", line 243, in __init__ > self.do_handshake() > File "/usr/lib/python2.7/ssl.py", line 405, in do_handshake > self._sslobj.do_handshake() > socket.error: [Errno 104] Connection reset by peer > Testing with a separate library also based on httplib , I found that it is not failing when connecting to the Linode API however. -- This message was sent by Atlassian JIRA (v6.3.4#6332)