You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@libcloud.apache.org by anu <an...@opencollective.in> on 2015/10/20 14:55:30 UTC
List network errors with Openstack Juno
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
Re: List network errors with Openstack Juno
Posted by Tomaz Muraus <to...@apache.org>.
Just FYI - there is also this https://github.com/apache/libcloud/pull/345,
but it's not finished yet.
I hope someone will pick it up for GSoC 2016 :)
On Wed, Oct 21, 2015 at 5:21 AM, anu <an...@opencollective.in> wrote:
> Thank you. I will try that one.
>
>
>
> --
>
> Greetings,
>
> Anu
>
>
>
>
>
> ---- On Tue, 20 Oct 2015 19:36:47 +0530 Markos Gogoulos &
> lt;mgogoulos@mist.io> 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 <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;
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
>
>
>
>
>
Re: List network errors with Openstack Juno
Posted by anu <an...@opencollective.in>.
Thank you. I will try that one.
--
Greetings,
Anu
---- On Tue, 20 Oct 2015 19:36:47 +0530 Markos Gogoulos <mgogoulos@mist.io> 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 <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;
>
>
>
>
>
>
Re: List network errors with Openstack Juno
Posted by Markos Gogoulos <mg...@mist.io>.
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 <an...@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 <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;mgogoulos@mist.io> 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 <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
>
> >
>
> >
>
> >
>
>
>
>
>
>
Re: List network errors with Openstack Juno
Posted by anu <an...@opencollective.in>.
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 <mgogoulos@mist.io> 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 <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
>
>
>
Re: List network errors with Openstack Juno
Posted by Markos Gogoulos <mg...@mist.io>.
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 <an...@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 <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
>
>
>