Thank you. I will try that one.


--

Greetings,

Anu





 ---- On Tue, 20 Oct 2015 19:36:47 +0530 Markos Gogoulos 
<[email protected]> wrote ----




We have implemented some custom functions on mistio branch of libcloud, 

checkout https://github.com/mistio/libcloud mistio branch 

 

Both ex_list_networks and ex_list_neutron_networks should work 

 

Cheers, 

Markos 

 

On Tue, Oct 20, 2015 at 4:21 PM, anu <[email protected]> wrote: 

 

> Hi, 

> 

> 

> 

> It is throwing same error with '/v2.0/networks' or '/networks'. 

> 

> 

> 

> ---- 

> 

> Traceback (most recent call last): 

> 

> File "list_networks_v2.py", line 33, in <module> 

> 

> networks = driver.ex_list_networks() 

> 

> File 

> "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/openstack.py", 

> line 1579, in ex_list_networks 

> 

> response = self.connection.request(self._networks_url_prefix).object 

> 

> File "/usr/lib/python2.7/site-packages/libcloud/common/openstack.py", 

> line 202, in request 

> 

> raw=raw) 

> 

> File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 

> 799, in request 

> 

> response = responseCls(**kwargs) 

> 

> File 

> "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/openstack.py", 

> line 1001, in __init__ 

> 

> super(OpenStack_1_1_Response, self).__init__(*args, **kwargs) 

> 

> File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 

> 143, in __init__ 

> 

> headers=self.headers) 

> 

> libcloud.common.exceptions.BaseHTTPError: 404 Not Found 404 Not Found 

> 

> 

> 

> The resource could not be found. 

> 

> ----- 

> 

> 

> 

> Greetings, 

> 

> Anu 

> 

> 

> 

> ---- On Tue, 20 Oct 2015 18:35:24 +0530 Markos Gogoulos & 

> lt;[email protected]> wrote ---- 

> 

> 

> 

> 

> Hi, 

> 

> 

> 

> did you try to set 

> 

> 

> 

> networks_url_prefix = '/v2.0/networks' 

> 

> in openstack.py and re-try? 

> 

> 

> 

> Cheers, 

> 

> Markos 

> 

> 

> 

> 

> 

> 

> 

> On Tue, Oct 20, 2015 at 3:55 PM, anu 
<[email protected]> wrote: 

> 

> 

> 

> > Hi, 

> 

> > 

> 

> > 

> 

> > 

> 

> > Libcloud version: 0.18.0 

> 

> > 

> 

> > Openstack version: Juno 

> 

> > 

> 

> > 

> 

> > 

> 

> > I get below error while calling ex_list_networks() in Openstack 

> driver. 

> 

> > 

> 

> > 

> 

> > 

> 

> > ------ 

> 

> > 

> 

> > Traceback (most recent call last): 

> 

> > 

> 

> > File "list_networks_v2.py", line 33, in 
<module> 

> 

> > 

> 

> > networks = driver.ex_list_networks() 

> 

> > 

> 

> > File 

> 

> > 

> "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/openstack.py", 

> 

> > line 1579, in ex_list_networks 

> 

> > 

> 

> > response = 
self.connection.request(self._networks_url_prefix).object 

> 

> > 

> 

> > File 
"/usr/lib/python2.7/site-packages/libcloud/common/openstack.py", 

> 

> > line 202, in request 

> 

> > 

> 

> > raw=raw) 

> 

> > 

> 

> > File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", 
line 

> 

> > 799, in request 

> 

> > 

> 

> > response = responseCls(**kwargs) 

> 

> > 

> 

> > File 

> 

> > 

> "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/openstack.py", 

> 

> > line 1001, in __init__ 

> 

> > 

> 

> > super(OpenStack_1_1_Response, self).__init__(*args, **kwargs) 

> 

> > 

> 

> > File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", 
line 

> 

> > 143, in __init__ 

> 

> > 

> 

> > headers=self.headers) 

> 

> > 

> 

> > libcloud.common.exceptions.BaseHTTPError: 404 Not Found 404 Not 
Found 

> 

> > 

> 

> > 

> 

> > 

> 

> > The resource could not be found. 

> 

> > 

> 

> > ------ 

> 

> > 

> 

> > 

> 

> > 

> 

> > In openstack.py, I can see url prefix is set as below 

> 

> > 

> 

> > networks_url_prefix = '/os-networks' 

> 

> > 

> 

> > 

> 

> > 

> 

> > But in Openstack API guide( 

> 

> > http://developer.openstack.org/api-ref-networking-v2.html), I am 

> seeing 

> 

> > network APIs end with '/v2.0/networks' 

> 

> > 

> 

> > 

> 

> > 

> 

> > Any assistance is appreciated. Thanks in advance. 

> 

> > 

> 

> > 

> 

> > 

> 

> > -- 

> 

> > 

> 

> > Greetings 

> 

> > 

> 

> > Anu 

> 

> > 

> 

> > 

> 

> > 

> 

> 

> 

> 

> 

> 





Reply via email to