libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Udvare (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-483) HostVirtual DNS Driver uses incorrect URL https://True:443/...
Date Mon, 30 Dec 2013 17:02:57 GMT

    [ https://issues.apache.org/jira/browse/LIBCLOUD-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13858925#comment-13858925
] 

Andrew Udvare commented on LIBCLOUD-483:
----------------------------------------

Thanks

That clears it up and now it works (by passing in only the key as a non-keyword argument).

> HostVirtual DNS Driver uses incorrect URL https://True:443/...
> --------------------------------------------------------------
>
>                 Key: LIBCLOUD-483
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-483
>             Project: Libcloud
>          Issue Type: Bug
>    Affects Versions: 0.13.2
>            Reporter: Andrew Udvare
>
> Code is below:
> {noformat}
> #!/usr/bin/env python2
> from os.path import expanduser
> from pprint import pprint as pp
> import yaml
> from libcloud.dns.providers import get_driver as get_dns_driver
> from libcloud.dns.types import Provider as DNSProvider, RecordType
> if __name__ == '__main__':
>     with open(expanduser('~/.vr-api.yml')) as f:
>         settings = yaml.load(f.read())
>     _ = get_dns_driver(DNSProvider.HOSTVIRTUAL)
>     dns_driver = _(settings['user'], secret=settings['key'])
>     pp(dns_driver.list_zones())
> {noformat}
> Output with debug mode:
> {noformat}
> # -------- begin 24674600 request ----------
> curl -i -X GET -H 'Host: True' -H 'X-LC-Request-ID: 24674600' -H 'Accept-Encoding: gzip,deflate'
-H 'User-Agent: libcloud/0.13.2 (Host Virtual DNS) ' --compress 'https://True:443/vapi/dns/zones/?key=xY.EQtns-X%5EBLatCf9BS58hqiv4ymAad9GNM0Zpp-jx2r%5EzzNgLHdjiqp4RS9fMF0HpBhVJkf%5E'
> Traceback (most recent call last):
>   File "/home/tatsh/usr/bin/vr-test", line 21, in <module>
>     pp(dns_driver.list_zones())
>   File "/usr/lib64/python2.7/site-packages/libcloud/dns/drivers/hostvirtual.py", line
107, in list_zones
>     API_ROOT + '/dns/zones/').object
>   File "/usr/lib64/python2.7/site-packages/libcloud/common/base.py", line 631, in request
>     headers=headers)
>   File "/usr/lib64/python2.7/site-packages/libcloud/common/base.py", line 364, in request
>     headers)
>   File "/usr/lib64/python2.7/httplib.py", line 973, in request
>     self._send_request(method, url, body, headers)
>   File "/usr/lib64/python2.7/httplib.py", line 1007, in _send_request
>     self.endheaders(body)
>   File "/usr/lib64/python2.7/httplib.py", line 969, in endheaders
>     self._send_output(message_body)
>   File "/usr/lib64/python2.7/httplib.py", line 829, in _send_output
>     self.send(msg)
>   File "/usr/lib64/python2.7/httplib.py", line 791, in send
>     self.connect()
>   File "/usr/lib64/python2.7/site-packages/libcloud/httplib_ssl.py", line 99, in connect
>     self.timeout)
>   File "/usr/lib64/python2.7/socket.py", line 553, in create_connection
>     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
> TypeError: getaddrinfo() argument 1 must be string or None
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message