Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error: Unable to retrieve floating IP addresses.

In DevStack, after assigning a floating IP address, the Access & Security page continuously shows the error "Error: Unable to retrieve floating IP addresses."

The IP appears to be assigned correctly, but before I can access my instances using the new IP address, I have to flush iptables using "sudo iptables -F". Even though I can access my instances with the assigned floating IPs, I can't manage them through horizon because of this error. The horizon log shows this:

    [Fri Aug 29 20:18:40.863093 2014] [:error] [pid 17087:tid 140015743969024] Error while checking action permissions.
[Fri Aug 29 20:18:40.863119 2014] [:error] [pid 17087:tid 140015743969024] Traceback (most recent call last):
[Fri Aug 29 20:18:40.863126 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/base.py", line 1186, in _filter_action
[Fri Aug 29 20:18:40.863719 2014] [:error] [pid 17087:tid 140015743969024]     return action._allowed(request, datum) and row_matched
[Fri Aug 29 20:18:40.863725 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/actions.py", line 135, in _allowed
[Fri Aug 29 20:18:40.863730 2014] [:error] [pid 17087:tid 140015743969024]     return self.allowed(request, datum)
[Fri Aug 29 20:18:40.863736 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py", line 50, in allowed
[Fri Aug 29 20:18:40.863742 2014] [:error] [pid 17087:tid 140015743969024]     usages = quotas.tenant_quota_usages(request)
[Fri Aug 29 20:18:40.863747 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py", line 90, in wrapped
[Fri Aug 29 20:18:40.863753 2014] [:error] [pid 17087:tid 140015743969024]     value = cache[key] = func(*args, **kwargs)
[Fri Aug 29 20:18:40.863758 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 203, in tenant_quota_usages
[Fri Aug 29 20:18:40.863770 2014] [:error] [pid 17087:tid 140015743969024]     floating_ips = network.tenant_floating_ip_list(request)
[Fri Aug 29 20:18:40.863775 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/network.py", line 48, in tenant_floating_ip_list
[Fri Aug 29 20:18:40.863781 2014] [:error] [pid 17087:tid 140015743969024]     return NetworkClient(request).floating_ips.list()
[Fri Aug 29 20:18:40.863804 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 358, in list
[Fri Aug 29 20:18:40.863809 2014] [:error] [pid 17087:tid 140015743969024]     for fip in self.client.floating_ips.list()]
[Fri Aug 29 20:18:40.863815 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/python-novaclient/novaclient/v1_1/floating_ips.py", line 38, in list
[Fri Aug 29 20:18:40.863820 2014] [:error] [pid 17087:tid 140015743969024]     return self._list(url, "floating_ips")
[Fri Aug 29 20:18:40.863825 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/python-novaclient/novaclient/base.py", line 67, in _list
[Fri Aug 29 20:18:40.863830 2014] [:error] [pid 17087:tid 140015743969024]     _resp, body = self.api.client.get(url)
[Fri Aug 29 20:18:40.863835 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/python-novaclient/novaclient/client.py", line 487, in get
[Fri Aug 29 20:18:40.863840 2014] [:error] [pid 17087:tid 140015743969024]     return self._cs_request(url, 'GET', **kwargs)
[Fri Aug 29 20:18:40.863850 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/python-novaclient/novaclient/client.py", line 465, in _cs_request
[Fri Aug 29 20:18:40.863855 2014] [:error] [pid 17087:tid 140015743969024]     resp, body = self._time_request(url, method, **kwargs)
[Fri Aug 29 20:18:40.863860 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/python-novaclient/novaclient/client.py", line 439, in _time_request
[Fri Aug 29 20:18:40.863865 2014] [:error] [pid 17087:tid 140015743969024]     resp, body = self.request(url, method, **kwargs)
[Fri Aug 29 20:18:40.863870 2014] [:error] [pid 17087:tid 140015743969024]   File "/opt/stack/python-novaclient/novaclient/client.py", line 433, in request
[Fri Aug 29 20:18:40.863875 2014] [:error] [pid 17087:tid 140015743969024]     raise exceptions.from_response(resp, body, url, method)
[Fri Aug 29 20:18:40.863883 2014] [:error] [pid 17087:tid 140015743969024] ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-8ed064bd-bc7c-4810-b0fe-622bbc06a6ef)

How can I fix this error? Also, is there some way to avoid the need to flush iptables before I can use my floating IP addresses?