Can't create shares - quota update broken

Bug #1783232 reported by Goutham Pacha Ravi
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
manila-ui
Fix Released
Critical
Victoria Martinez de la Cruz

Bug Description

When deploying manila-ui from git, the "create share" button on the "Shares" dashboard is missing. The following error occurs on the horizon error log:

2018-07-23 23:51:42.625456 ERROR horizon.tables.base Error while checking action permissions.
2018-07-23 23:51:42.625480 Traceback (most recent call last):
2018-07-23 23:51:42.625484 File "/opt/stack/horizon/horizon/tables/base.py", line 1390, in _filter_action
2018-07-23 23:51:42.625486 return action._allowed(request, datum) and row_matched
2018-07-23 23:51:42.625489 File "/opt/stack/horizon/horizon/tables/actions.py", line 138, in _allowed
2018-07-23 23:51:42.625491 self.allowed(request, datum))
2018-07-23 23:51:42.625493 File "/opt/stack/manila-ui/manila_ui/dashboards/project/shares/tables.py", line 96, in allowed
2018-07-23 23:51:42.625495 if usages['shares']['available'] <= 0:
2018-07-23 23:51:42.625498 KeyError: 'available'
2018-07-23 23:51:42.629946 CRITICAL:manila_ui.dashboards.project.shares.tables:Available usages for shares {}
2018-07-23 23:51:42.630166 ERROR horizon.tables.base Error while checking action permissions.
2018-07-23 23:51:42.630183 Traceback (most recent call last):
2018-07-23 23:51:42.630186 File "/opt/stack/horizon/horizon/tables/base.py", line 1390, in _filter_action
2018-07-23 23:51:42.630189 return action._allowed(request, datum) and row_matched
2018-07-23 23:51:42.630191 File "/opt/stack/horizon/horizon/tables/actions.py", line 138, in _allowed
2018-07-23 23:51:42.630193 self.allowed(request, datum))
2018-07-23 23:51:42.630195 File "/opt/stack/manila-ui/manila_ui/dashboards/project/shares/tables.py", line 96, in allowed
2018-07-23 23:51:42.630198 if usages['shares']['available'] <= 0:
2018-07-23 23:51:42.630200 KeyError: 'available'

Changed in manila-ui:
importance: Undecided → Critical
Changed in manila-ui:
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/587269

Changed in manila-ui:
status: Triaged → In Progress
Tom Barron (tpb)
tags: added: horizon rocky-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/587482

Changed in manila-ui:
assignee: Victoria Martinez de la Cruz (vkmc) → Tom Barron (tpb)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila-ui (master)

Change abandoned by Tom Barron (<email address hidden>) on branch: master
Review: https://review.openstack.org/587482
Reason: bad change ID

Changed in manila-ui:
assignee: Tom Barron (tpb) → Victoria Martinez de la Cruz (vkmc)
Changed in manila-ui:
assignee: Victoria Martinez de la Cruz (vkmc) → Tom Barron (tpb)
Changed in manila-ui:
assignee: Tom Barron (tpb) → Victoria Martinez de la Cruz (vkmc)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila-ui (master)

Reviewed: https://review.openstack.org/587269
Committed: https://git.openstack.org/cgit/openstack/manila-ui/commit/?id=1ed6c85a86bf5935f31710c8fd713a3987ea14e0
Submitter: Zuul
Branch: master

commit 1ed6c85a86bf5935f31710c8fd713a3987ea14e0
Author: Victoria Martinez de la Cruz <email address hidden>
Date: Mon Jul 30 23:38:48 2018 -0300

    Fix quotas retrieval for shares and snapshots tables

    After refactoring manila-ui plugin to adapt
    to the tabbed quotas interface in horizon,
    we stopped accesing the usages data structure
    which (in horizon side) carries quotas information.
    In this patch set we perform quotas control by
    querying manilaclient directly.

    Change-Id: I2896d54fde0d5e3975afbb7274faadf2a1a81d7c
    Closes-Bug: #1783232
    Co-Authored-By: Tom Barron <email address hidden>

Changed in manila-ui:
status: In Progress → Fix Released
Revision history for this message
anny (annymai) wrote :

Quota changed to end-of-system (EOs) status. broken status is
no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. Visit https://www.printererrorrepair.com/hp-printer-support-phone-number/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila-ui 2.16.0

This issue was fixed in the openstack/manila-ui 2.16.0 release.

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.