libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Kozyrev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LIBCLOUD-936) AWS ELB/ALB Driver connection object initialization is broken
Date Mon, 07 Aug 2017 15:21:00 GMT

     [ https://issues.apache.org/jira/browse/LIBCLOUD-936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Anton Kozyrev updated LIBCLOUD-936:
-----------------------------------
    Description: 
Code to reproduce:

{code}
from libcloud.loadbalancer.types import Provider
from libcloud.loadbalancer.providers import get_driver

key = ''
secret = ''
token = ''

cls = get_driver(Provider.ELB)
#cls = get_driver(Provider.ALB)

driver = cls(key, secret, 'us-east-1', token=token)
data = driver.list_balancers()
{code}

Error:
 File "/Users/irvan/py27venv/lib/python2.7/site-packages/requests/adapters.py", line 502,
in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='elasticloadbalancing.%s.amazonaws.com',
port=443): Max retries exceeded with url: /2012-06-01/?Action=DescribeLoadBalancers&Version=2012-06-01
(Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x10760f4d0>: Failed to establish a new connection: [Errno 8] nodename nor servname
provided, or not known',))


  was:
Code to reproduce:

{code:python}
from libcloud.loadbalancer.types import Provider
from libcloud.loadbalancer.providers import get_driver

key = ''
secret = ''
token = ''

cls = get_driver(Provider.ELB)
#cls = get_driver(Provider.ALB)

driver = cls(key, secret, 'us-east-1', token=token)
data = driver.list_balancers()
{code}

Error:
 File "/Users/irvan/py27venv/lib/python2.7/site-packages/requests/adapters.py", line 502,
in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='elasticloadbalancing.%s.amazonaws.com',
port=443): Max retries exceeded with url: /2012-06-01/?Action=DescribeLoadBalancers&Version=2012-06-01
(Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x10760f4d0>: Failed to establish a new connection: [Errno 8] nodename nor servname
provided, or not known',))



> AWS ELB/ALB Driver connection object initialization is broken
> -------------------------------------------------------------
>
>                 Key: LIBCLOUD-936
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-936
>             Project: Libcloud
>          Issue Type: Bug
>          Components: LoadBalancer
>            Reporter: Anton Kozyrev
>
> Code to reproduce:
> {code}
> from libcloud.loadbalancer.types import Provider
> from libcloud.loadbalancer.providers import get_driver
> key = ''
> secret = ''
> token = ''
> cls = get_driver(Provider.ELB)
> #cls = get_driver(Provider.ALB)
> driver = cls(key, secret, 'us-east-1', token=token)
> data = driver.list_balancers()
> {code}
> Error:
>  File "/Users/irvan/py27venv/lib/python2.7/site-packages/requests/adapters.py", line
502, in send
>     raise ConnectionError(e, request=request)
> requests.exceptions.ConnectionError: HTTPSConnectionPool(host='elasticloadbalancing.%s.amazonaws.com',
port=443): Max retries exceeded with url: /2012-06-01/?Action=DescribeLoadBalancers&Version=2012-06-01
(Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x10760f4d0>: Failed to establish a new connection: [Errno 8] nodename nor servname
provided, or not known',))



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message