Unable to get quota information: floating ips

Bug #1043080 reported by Syd Logan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

I'm trying to deploy Openstack with quantum and OVS plugin using devstack pulled a few hours ago. Openstack installs without errors. When I run horizon, I notice two things that are different than from pre-folsom work I did two weeks ago):

1) in admin panel, I no longer see a Launch Instance button on the Instances page.
2) When I switch to demo project, and click on Instances page, I do see a Launch Instance button, but when I click it, Horizon complains with "Error: Unable to get quota information"

I enabled logging and restarted nova, and saw the following which leads me to believe that some failure in getting floating IP information led to the horizon failure.

2012-08-28 21:48:00 INFO nova.api.openstack.wsgi [^[[01;36mreq-6e7e6940-b986-4813-a11d-c174b5c86c90 ^[[00;36madmin demo] ^[[01;35mGET http://192.168.4.1:8774/v2/8423a2b4e9dd4dcf896cfeb28bb97405/os-floating-ips^[[00m
2012-08-28 21:48:00 DEBUG nova.api.openstack.wsgi [^[[01;36mreq-6e7e6940-b986-4813-a11d-c174b5c86c90 ^[[00;36madmin demo] ^[[01;35mNo Content-Type provided in request^[[00m ^[[00;33mfrom (pid=5358) get_body /opt/stack/nova/nova/api/openstack/wsgi.py:762^[[00m
2012-08-28 21:48:00 ERROR nova.api.openstack [^[[01;36mreq-6e7e6940-b986-4813-a11d-c174b5c86c90 ^[[00;36madmin demo] ^[[01;35mCaught error: ^[[00m
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00mTraceback (most recent call last):
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/__init__.py", line 78, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return req.get_response(self.application)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1295, in send
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m application, catch_exc_info=False)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1259, in call_application
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m app_iter = application(self.environ, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return resp(environ, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/opt/stack/keystone/keystone/middleware/auth_token.py", line 278, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return self.app(env, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return resp(environ, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return resp(environ, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return resp(environ, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m response = self.app(environ, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return resp(environ, start_response)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m resp = self.call_func(req, *args, **self.kwargs)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return self.func(req, *args, **kwargs)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 864, in __call__
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m content_type, body, accept)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 912, in _process_stack
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m action_result = self.dispatch(meth, request, action_args)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1000, in dispatch
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m return method(req=request, **action_args)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/compute/contrib/floating_ips.py", line 155, in index
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m floating_ips = self.network_api.get_floating_ips_by_project(context)
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m File "/opt/stack/nova/nova/network/quantumv2/api.py", line 257, in get_floating_ips_by_project
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m raise NotImplementedError()
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00mNotImplementedError
2012-08-28 21:48:00 TRACE nova.api.openstack ^[[01;35m^[[00m
2012-08-28 21:48:00 INFO nova.api.openstack [^[[01;36mreq-6e7e6940-b986-4813-a11d-c174b5c86c90 ^[[00;36madmin demo] ^[[01;35mhttp://192.168.4.1:8774/v2/8423a2b4e9dd4dcf896cfeb28bb97405/os-floating-ips returned with HTTP 500^[[00m

stack@openstack4:/etc/nova$ nova --version
2.6.10.53

Here is my nova.conf:

[DEFAULT]
verbose=True
auth_strategy=keystone
log_dir=/tmp
log_file=nova.log
allow_resize_to_same_host=True
root_helper=sudo /usr/local/bin/nova-rootwrap /etc/nova/rootwrap.conf
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
dhcpbridge_flagfile=/etc/nova/nova.conf
fixed_range=10.4.128.0/20
s3_host=192.168.4.1
s3_port=3333
network_api_class=nova.network.quantumv2.api.API
quantum_admin_username=quantum
quantum_admin_password=password
quantum_admin_auth_url=http://192.168.4.1:35357/v2.0
quantum_auth_strategy=noauth
quantum_admin_tenant_name=service
quantum_url=http://localhost:9696
libvirt_vif_type=ethernet
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
my_ip=192.168.4.1
public_interface=br100
vlan_interface=eth0
flat_network_bridge=br100
flat_interface=eth1
sql_connection=mysql://root:password@localhost/nova?charset=utf8
libvirt_type=qemu
libvirt_cpu_mode=none
instance_name_template=instance-%08x
novncproxy_base_url=http://192.168.4.1:6080/vnc_auto.html
xvpvncproxy_base_url=http://192.168.4.1:6081/console
vncserver_listen=127.0.0.1
vncserver_proxyclient_address=127.0.0.1
api_paste_config=/etc/nova/api-paste.ini
image_service=nova.image.glance.GlanceImageService
ec2_dmz_host=192.168.4.1
rabbit_host=localhost
rabbit_password=password
glance_api_servers=192.168.4.1:9292
force_dhcp_release=True
multi_host=True
send_arp_for_ha=True
logging_context_format_string=%(asctime)s %(color)s%(levelname)s %(name)s [^[[01;36m%(request_id)s ^[[00;36m%(user_name)s %(project_name)s%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
logging_default_format_string=%(asctime)s %(color)s%(levelname)s %(name)s [^[[00;36m-%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
logging_debug_format_suffix=^[[00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d^[[00m
logging_exception_prefix=%(color)s%(asctime)s TRACE %(name)s ^[[01;35m%(instance)s^[[00m
volume_api_class=nova.volume.cinder.API
compute_driver=libvirt.LibvirtDriver
firewall_driver=nova.virt.firewall.NoopFirewallDriver
enabled_apis=ec2,osapi_compute,metadata

A similar bug (​#1040956 horizon unable to obtain quota information ) is currently open, but the nova logs show a completely different exception stack than the one I am seeing, so I'm claiming it is not a duplicate.

Please contact me if I can provide more information, try out a possible fix, and I'll jump right on it.

Revision history for this message
Mark McLoughlin (markmc) wrote :

In the attachment in bug #1040956, we can see:

  File "/usr/local/lib/python2.7/dist-packages/nova-2012.2-py2.7.egg/nova/network/quantumv2/api.py", line 260, in get_floating_ips_by_project
  2012-08-25 13:26:43 TRACE nova.api.openstack raise NotImplementedError()

that's what you're seeing too, so I'm going to mark as a duplicate

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.