Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

create and add floating IP to instance via Python API

I am following this tutorial (http://docs.pistoncloud.com/getting_started/tutorials/api_tutorial.html) and got the part of adding and associating a floating IP;

However, I get the following when I try this: http://paste.openstack.org/show/204048/

create and add floating IP to instance via Python API

I am following this tutorial (http://docs.pistoncloud.com/getting_started/tutorials/api_tutorial.html) and got the part of adding and associating a floating IP;

However, I get the following when I try this: http://paste.openstack.org/show/204048/

fip = nova.floating_ips.create() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/floating_ips.py", line 41, in create return self._create("/os-floating-ips", {'pool': pool}, "floating_ip") File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 152, in _create _resp, body = self.api.client.post(url, body=body) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 286, in post return self._cs_request(url, 'POST', *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 260, in _cs_request *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 242, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in request raise exceptions.from_response(resp, body, url, method) novaclient.exceptions.NotFound: FloatingIpPoolNotFound: Floating ip pool not found. (HTTP 404) (Request-ID: req-c1c73af4-89c2-4871-a84c-ff0cfc6e6ba7)

create and add floating IP to instance via Python API

I am following this tutorial (http://docs.pistoncloud.com/getting_started/tutorials/api_tutorial.html) and got the part of adding and associating a floating IP;

However, I get the following when I try this: http://paste.openstack.org/show/204048/

>>> fip = nova.floating_ips.create()
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/floating_ips.py", line 41, in create
     return self._create("/os-floating-ips", {'pool': pool}, "floating_ip")
   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 152, in _create
     _resp, body = self.api.client.post(url, body=body)
   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 286, in post
     return self._cs_request(url, 'POST', *kwargs)
      **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 260, in _cs_request
          *kwargs)
      **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 242, in _time_request
     resp, body = self.request(url, method, **kwargs)
   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in request
     raise exceptions.from_response(resp, body, url, method)
 novaclient.exceptions.NotFound: FloatingIpPoolNotFound: Floating ip pool not found. (HTTP 404) (Request-ID: req-c1c73af4-89c2-4871-a84c-ff0cfc6e6ba7)

req-c1c73af4-89c2-4871-a84c-ff0cfc6e6ba7)