Horizon does not report properly quota exceeded errors

Bug #1769128 reported by Saverio Proto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Huang.Xiangdong

Bug Description

This bug is in Openstack Pike, I dont have the possibility to test in master at the moment.

The user can have a instance that is booted from volume. The user is at the page horizon/project/instances/ and he clicks on create snapshot.

In the Create Snapshot dialog he puts the name of the snapshot, and there is no other information available about this quota.

When the user goes beyond quota to create cinder snapshots we observe this in the cinder backend:

2018-05-04 13:43:13,172.172 24030 WARNING cinder.quota_utils [req-562b1787-837b-49fb-9882-f3053cbd395e 6c3d8d645b31444f998d054ce5a3d4cd ef11372569d145599dd9e62dbed6889a - default default] Quota exceeded for ef11372569d145599dd9e62dbed6889a, tried to create 160G snapshot (160G of 200G already consumed)

However the user in Horizon gets this error message in a red window at the top right corner:

Error: unable to create snapshot.

It does not get any indication that the problem is the quota.

Other workflows, like making a Cinder snapshot from the volume list, report correctly that it is a quota problem.

This is a problem because the user does not understand that it is a problem with his quota, and he complains with the Openstack admins believing it is a backend error.

Saverio Proto (zioproto)
description: updated
Ivan Kolodyazhny (e0ne)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: nobody → Huang.Xiangdong (privaterookie)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/594330
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a24aa0c87cd61897ebe3c2983104dcd0a1ddee84
Submitter: Zuul
Branch: master

commit a24aa0c87cd61897ebe3c2983104dcd0a1ddee84
Author: PrivateRookie <email address hidden>
Date: Tue Aug 21 23:51:47 2018 +0800

    fix incorrect quota exceeded error when creating snapshot

    Change-Id: Ib8b7e1bfe02641fd0ac7f50ab99093dc7c77d9bf
    Closes-Bug:#1769128

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 15.0.0.0b1

This issue was fixed in the openstack/horizon 15.0.0.0b1 development milestone.

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.