libcloud-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markos Gogoulos <mgogou...@mist.io>
Subject Re: List network errors with Openstack Juno
Date Tue, 20 Oct 2015 13:05:24 GMT
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 <anu@opencollective.in> 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 &lt;module&gt;
>
>     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
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message