I think this will be partially fixed with the Nova RBAC patch in Icehouse ( https://blueprints.launchpad.net/horizon/+spec/compute-rbac ), the action button won't be shown if the action isn't allowed.
However we should still fail more gracefully in the meantime, the exception message indicates an initialisation error in the code. We should make sure the redirect happens in the exception, I think https://github.com/openstack/horizon/blob/1fdac75d4f/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py#L70
I think this will be partially fixed with the Nova RBAC patch in Icehouse ( https:/ /blueprints. launchpad. net/horizon/ +spec/compute- rbac ), the action button won't be shown if the action isn't allowed.
However we should still fail more gracefully in the meantime, the exception message indicates an initialisation error in the code. We should make sure the redirect happens in the exception, I think https:/ /github. com/openstack/ horizon/ blob/1fdac75d4f /openstack_ dashboard/ dashboards/ project/ access_ and_security/ keypairs/ views.py# L70