If we set OPENSTACK_NEUTRON_NETWORK= {'enable_quotas': False}, "Create subnet" button dissapears and we get the following error:
Error while checking action permissions.
Traceback (most recent call last):
File "horizon/horizon/tables/base.py", line 1278, in _filter_action
return action._allowed(request, datum) and row_matched
File "horizon/horizon/tables/actions.py", line 136, in _allowed
self.allowed(request, datum))
File "horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 103, in allowed
if usages['subnets']['available'] <= 0:
KeyError: 'available'
Error while checking action permissions.
Steps to reproduce:
1) Set 'enable_quotas': False in OPENSTACK_NEUTRON_NETWORK
2) Restart Horizon
3) Go to Project/Networks
4) Click on any network
5) Note that you've got "Delete" button, but there is no "Create" button
6) Enable neutron quotas again and make sure that "Create" button appeared
There were already patch[1] for fixing this but looks like this piece of code has been missed.
[1] https://github.com/openstack/horizon/commit/5ba219acbfddb9b9308a75da361fda915ba61f37#diff-6f73ca5e50c3e694b8147669832912baR2152
Fix proposed to branch: master /review. openstack. org/302925
Review: https:/