horizon deployment causes KeyError on /project/network-topology/

Bug #1837483 reported by Sean Newman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
New
Undecided
Unassigned

Bug Description

This bug was found with a Stein deployment on Ubuntu 18.04. Horizon was deployed in LXC containers.

The current deployment of Horizon with the openstack-ansible-os_horizon role appears to cause a KeyError when navigating to /project/network-topology/ in Horizon. I've attached a traceback from the Django debug page.

It looks like the issue is that the OPENSTACK_HYPERVISOR_FEATURES setting doesn't include a 'enable_quotas' feature. I've tried adding both 'enable_quotas': True and 'enable_quotas': False to that dictionary in /etc/horizon/local_settings.py and restarting apache2, and the issue goes away. Whether the 'enable_quotas' is set to True or False does not appear to matter - either way, the network topology page loads without error.

This error also manifests on the project overview page (/project/) as a red pop-up warning in the corner that states "Error: Unable to retrieve limits information.". The Limit Summary section on the overview page will be empty - the pie graphs will not appear. If 'enable_quotas': False is set, the page will load without the pop-up warning and the Volume and Network limits sections will populate with accurate pie graphs. If 'enable_quotas': True is set, the Compute limits sections will also function properly.

I tried setting horizon_config_overrides to modify OPENSTACK_HYPERVISOR_FEATURES, but this simply adds the dictionary within settings.HORIZON_SETTINGS, and does not override settings.OPENSTACK_HYPERVISOR_FEATURES. There does not appear to be a way to override this setting.

Tags: horizon
Revision history for this message
Sean Newman (s-newman) wrote :
Revision history for this message
XiaoRuiguo (705437650-6) wrote :

504 Gateway Time-out

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.