Public bug reported: 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 ** Affects: horizon Importance: Undecided Assignee: Paul Karikh (pkarikh) Status: In Progress ** Changed in: horizon Assignee: (unassigned) => Paul Karikh (pkarikh) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1567529 Title: Disabled neutron quota break "Create subnet" button Status in OpenStack Dashboard (Horizon): In Progress Bug description: 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 To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1567529/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp