[Rdo-list] nova floating-ip-create does not work

Zhang, Kimi (NSN - CN/Cheng Du) kimi.zhang at nsn.com
Tue Jul 30 08:05:24 UTC 2013


Hello,

My nova and quantum versions:
openstack-nova-api-2013.1.2-4.el6.noarch
python-novaclient-2.13.0-1.el6.noarch
python-novaclient-doc-2.13.0-1.el6.noarch
python-quantum-2013.1.2-2.el6.noarch
python-quantumclient-2.2.1-2.el6.noarch

During Heat try-out, I found "nova floating-ip-create" does not work:
[root at controller-1 ~(keystone_ncep)]# nova floating-ip-create
ERROR: FloatingIpPoolNotFound: Floating ip pool not found. (HTTP 404) (Request-ID: req-657bd433-526c-482f-a2c5-d2ef3359d00f)

But I do have a floating IP pool:
[root at controller-1 ~(keystone_ncep)]# nova floating-ip-pool-list
+---------+
| name    |
+---------+
| ext_net |
+---------+

Floating IP creation works only by adding the pool name as argument explicitly.
[root at controller-1 ~(keystone_ncep)]# nova floating-ip-create ext_net
+---------------+-------------+----------+---------+
| Ip            | Instance Id | Fixed Ip | Pool    |
+---------------+-------------+----------+---------+
| 10.68.124.109 | None        | None     | ext_net |
+---------------+-------------+----------+---------+

But from help I know the pool name argument is optional, and Heat seems also use "nova floating-ip-create" to create floating IP.


==> /var/log/nova/api.log <==
2013-07-30 15:52:59.815 ERROR nova.api.openstack [req-657bd433-526c-482f-a2c5-d2ef3359d00f c35b26946b3944248a9f77141298d2bf 45f69c2ba1e34f61ab7e86a81605589d] Caught error: Floating ip pool not found.
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack Traceback (most recent call last):
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 81, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return req.get_response(self.application)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     application, catch_exc_info=False)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return resp(environ, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 451, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return self.app(env, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return resp(environ, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return resp(environ, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return resp(environ, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py", line 131, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     response = self.app(environ, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return resp(environ, start_response)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 890, in __call__
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     content_type, body, accept)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 942, in _process_stack
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 1022, in dispatch
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     return method(req=request, **action_args)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/api/openstack/compute/contrib/floating_ips.py", line 158, in create
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     address = self.network_api.allocate_floating_ip(context, pool)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/network/quantumv2/api.py", line 703, in allocate_floating_ip
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     pool_id = self._get_floating_ip_pool_id_by_name_or_id(client, pool)
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/network/quantumv2/api.py", line 693, in _get_floating_ip_pool_id_by_name_or_id
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack     raise exception.FloatingIpPoolNotFound()
2013-07-30 15:52:59.815 49772 TRACE nova.api.openstack FloatingIpPoolNotFound: Floating ip pool not found.


Does anyone meet the same problem ?

Kimi Zhang
 +86 186 0800 8182



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20130730/071b1206/attachment.html>


More information about the dev mailing list