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 14:06:47 GMT
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 <anu@opencollective.in> 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 &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.
>
> -----
>
>
>
> Greetings,
>
> Anu
>
>
>
>  ---- On Tue, 20 Oct 2015 18:35:24 +0530 Markos Gogoulos &
> lt;mgogoulos@mist.io&gt; 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 &lt;anu@opencollective.in&gt; wrote:
>
>
>
> &gt; Hi,
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; Libcloud version: 0.18.0
>
> &gt;
>
> &gt; Openstack version: Juno
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; I get below error while calling ex_list_networks() in Openstack
> driver.
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; ------
>
> &gt;
>
> &gt; Traceback (most recent call last):
>
> &gt;
>
> &gt; File "list_networks_v2.py", line 33, in &amp;lt;module&amp;gt;
>
> &gt;
>
> &gt; networks = driver.ex_list_networks()
>
> &gt;
>
> &gt; File
>
> &gt;
> "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/openstack.py",
>
> &gt; line 1579, in ex_list_networks
>
> &gt;
>
> &gt; response = self.connection.request(self._networks_url_prefix).object
>
> &gt;
>
> &gt; File "/usr/lib/python2.7/site-packages/libcloud/common/openstack.py",
>
> &gt; line 202, in request
>
> &gt;
>
> &gt; raw=raw)
>
> &gt;
>
> &gt; File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line
>
> &gt; 799, in request
>
> &gt;
>
> &gt; response = responseCls(**kwargs)
>
> &gt;
>
> &gt; File
>
> &gt;
> "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/openstack.py",
>
> &gt; line 1001, in __init__
>
> &gt;
>
> &gt; super(OpenStack_1_1_Response, self).__init__(*args, **kwargs)
>
> &gt;
>
> &gt; File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line
>
> &gt; 143, in __init__
>
> &gt;
>
> &gt; headers=self.headers)
>
> &gt;
>
> &gt; libcloud.common.exceptions.BaseHTTPError: 404 Not Found 404 Not Found
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; The resource could not be found.
>
> &gt;
>
> &gt; ------
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; In openstack.py, I can see url prefix is set as below
>
> &gt;
>
> &gt; networks_url_prefix = '/os-networks'
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; But in Openstack API guide(
>
> &gt; http://developer.openstack.org/api-ref-networking-v2.html), I am
> seeing
>
> &gt; network APIs end with '/v2.0/networks'
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; Any assistance is appreciated. Thanks in advance.
>
> &gt;
>
> &gt;
>
> &gt;
>
> &gt; --
>
> &gt;
>
> &gt; Greetings
>
> &gt;
>
> &gt; Anu
>
> &gt;
>
> &gt;
>
> &gt;
>
>
>
>
>
>

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