You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by Philip Longley <Ph...@attenda.net> on 2012/06/29 17:36:31 UTC

[dev] RE: vcloud - listnodes on a vcd 1.5 cloud

Hi,
                I've hit a problem on using the latest stable release of libcloud against a vcloud director 1.5 cloud and need  help in trying to resolve this problem .

In debug mode I've managed to track this down to here :

nodes = driver.list_nodes()
  File "/root/my_new_env/lib/python2.6/site-packages/libcloud/compute/drivers/vcloud.py", line 480, in list_nodes
    res = self.connection.request(vdc.id)
  File "/root/my_new_env/lib/python2.6/site-packages/libcloud/compute/drivers/vcloud.py", line 255, in request
    return super(VCloudConnection, self).request(*args, **kwargs)
  File "/root/my_new_env/lib/python2.6/site-packages/libcloud/common/base.py", line 581, in request
    connection=self)
  File "/root/my_new_env/lib/python2.6/site-packages/libcloud/common/base.py", line 76, in __init__
    raise Exception(self.parse_error())


The url in the curl request seems to be doubled up  -

# -------- begin 14362312 request ----------
curl -i -X GET -H 'Host: acloud.attenda.net' -H 'Accept-Encoding: gzip,deflate' -H 'x-vcloud-authorization =' -H 'X-LC-Request-ID: 14362312' -H 'Content-Length: 0' -H 'Accept: application/*+xml;version=1.5' -H 'User-Agent: libcloud/0.10.1 (vCloud)' --compress https://acloud.attenda.net:443https://acloud.attenda.net/api/vdc/dec855c4-dd8d-49cf-8ff5-b5ab7106acf3<https://acloud.attenda.net:443https:/acloud.attenda.net/api/vdc/dec855c4-dd8d-49cf-8ff5-b5ab7106acf3>
# -------- begin 14362312:12028312 response ----------
HTTP/1.1 302 Found
Connection: close
Location: https://acloud.attenda.net/cloud/org/


Where should I look next in trying to resolve this problem - is it code or configuration?

Thx,


Philip Longley | Product Manager
Attenda - the Business Critical IT company

m: +44 (0) 785 0311050
philip.longley@attenda.net<ma...@attenda.net> | w: www.attenda.net<http://www.attenda.net/>

Attenda Limited is a limited company registered in England. Registered No 03276974.
Registered Office: One London Road, Staines, Middlesex, TW18 4EX



The information contained in this e-mail and its attachments is confidential.
It is intended only for the named address(es) and may not be disclosed to anyone else without Attenda's consent.


RE: [dev] RE: vcloud - listnodes on a vcd 1.5 cloud

Posted by Philip Longley <Ph...@attenda.net>.
Thx, this patch works with my vcloud director 1.5 based provider.

Cheers,

Philip

-----Original Message-----
From: Sengor [mailto:sengork@gmail.com] 
Sent: 22 July 2012 14:49
To: dev@libcloud.apache.org
Cc: Philip Longley
Subject: Re: [dev] RE: vcloud - listnodes on a vcd 1.5 cloud

Hi Philip,

FYI - Have a look @ this update to the vCloud driver, worth a try:
https://issues.apache.org/jira/browse/LIBCLOUD-222



On 30 June 2012 01:36, Philip Longley <Ph...@attenda.net> wrote:
>
> Hi,
>                 I've hit a problem on using the latest stable release of libcloud against a vcloud director 1.5 cloud and need  help in trying to resolve this problem .
>
> In debug mode I've managed to track this down to here :
>
> nodes = driver.list_nodes()
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/compute/drivers/vcloud.py", line 480, in list_nodes
>     res = self.connection.request(vdc.id)
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/compute/drivers/vcloud.py", line 255, in request
>     return super(VCloudConnection, self).request(*args, **kwargs)
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/common/base.py", line 581, in request
>     connection=self)
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/common/base.py", line 76, in __init__
>     raise Exception(self.parse_error())
>
>
> The url in the curl request seems to be doubled up  -
>
> # -------- begin 14362312 request ---------- curl -i -X GET -H 'Host: 
> acloud.attenda.net' -H 'Accept-Encoding: gzip,deflate' -H 
> 'x-vcloud-authorization =' -H 'X-LC-Request-ID: 14362312' -H 
> 'Content-Length: 0' -H 'Accept: application/*+xml;version=1.5' -H 
> 'User-Agent: libcloud/0.10.1 (vCloud)' --compress 
> https://acloud.attenda.net:443https://acloud.attenda.net/api/vdc/dec85
> 5c4-dd8d-49cf-8ff5-b5ab7106acf3<https://acloud.attenda.net:443https:/a
> cloud.attenda.net/api/vdc/dec855c4-dd8d-49cf-8ff5-b5ab7106acf3>
> # -------- begin 14362312:12028312 response ----------
> HTTP/1.1 302 Found
> Connection: close
> Location: https://acloud.attenda.net/cloud/org/
>
>
> Where should I look next in trying to resolve this problem - is it code or configuration?
>
> Thx,
>
>
> Philip Longley | Product Manager
> Attenda - the Business Critical IT company
>
> m: +44 (0) 785 0311050
> philip.longley@attenda.net<ma...@attenda.net> | w: 
> www.attenda.net<http://www.attenda.net/>
>
> Attenda Limited is a limited company registered in England. Registered No 03276974.
> Registered Office: One London Road, Staines, Middlesex, TW18 4EX
>
>
>
> The information contained in this e-mail and its attachments is confidential.
> It is intended only for the named address(es) and may not be disclosed to anyone else without Attenda's consent.
>



--
sengork


The information contained in this e-mail and its attachments is confidential.
It is intended only for the named address(es) and may not be disclosed to anyone else without Attenda's consent.



Re: [dev] RE: vcloud - listnodes on a vcd 1.5 cloud

Posted by Sengor <se...@gmail.com>.
Hi Philip,

FYI - Have a look @ this update to the vCloud driver, worth a try:
https://issues.apache.org/jira/browse/LIBCLOUD-222



On 30 June 2012 01:36, Philip Longley <Ph...@attenda.net> wrote:
>
> Hi,
>                 I've hit a problem on using the latest stable release of libcloud against a vcloud director 1.5 cloud and need  help in trying to resolve this problem .
>
> In debug mode I've managed to track this down to here :
>
> nodes = driver.list_nodes()
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/compute/drivers/vcloud.py", line 480, in list_nodes
>     res = self.connection.request(vdc.id)
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/compute/drivers/vcloud.py", line 255, in request
>     return super(VCloudConnection, self).request(*args, **kwargs)
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/common/base.py", line 581, in request
>     connection=self)
>   File "/root/my_new_env/lib/python2.6/site-packages/libcloud/common/base.py", line 76, in __init__
>     raise Exception(self.parse_error())
>
>
> The url in the curl request seems to be doubled up  -
>
> # -------- begin 14362312 request ----------
> curl -i -X GET -H 'Host: acloud.attenda.net' -H 'Accept-Encoding: gzip,deflate' -H 'x-vcloud-authorization =' -H 'X-LC-Request-ID: 14362312' -H 'Content-Length: 0' -H 'Accept: application/*+xml;version=1.5' -H 'User-Agent: libcloud/0.10.1 (vCloud)' --compress https://acloud.attenda.net:443https://acloud.attenda.net/api/vdc/dec855c4-dd8d-49cf-8ff5-b5ab7106acf3<https://acloud.attenda.net:443https:/acloud.attenda.net/api/vdc/dec855c4-dd8d-49cf-8ff5-b5ab7106acf3>
> # -------- begin 14362312:12028312 response ----------
> HTTP/1.1 302 Found
> Connection: close
> Location: https://acloud.attenda.net/cloud/org/
>
>
> Where should I look next in trying to resolve this problem - is it code or configuration?
>
> Thx,
>
>
> Philip Longley | Product Manager
> Attenda - the Business Critical IT company
>
> m: +44 (0) 785 0311050
> philip.longley@attenda.net<ma...@attenda.net> | w: www.attenda.net<http://www.attenda.net/>
>
> Attenda Limited is a limited company registered in England. Registered No 03276974.
> Registered Office: One London Road, Staines, Middlesex, TW18 4EX
>
>
>
> The information contained in this e-mail and its attachments is confidential.
> It is intended only for the named address(es) and may not be disclosed to anyone else without Attenda's consent.
>



-- 
sengork