"Import key pairs" button active after limit reaching

Bug #1561039 reported by Sergei Chipiga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
Timur Sufiev

Bug Description

Steps:
- login as admin
- Go to Administrator -> System -> Default
- Set Quota "Key pairs" equal to 1 and update quotas.
- Go to Project -> Access & Security -> Key pairs
- Create key pair

Expected result:
- Button "Import key pairs" will be disabled and will change a title to "Import key pairs (quota exceeded)"

Actual result:
- Button "Import key pairs" is active with the same title. When try to import key pair, it fails with unclear alert "Failed to import key pair." (no words about quota limit).

env:
cat /etc/fuel_build_id:
 92
cat /etc/fuel_build_number:
 92
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 liberty-9.0
rpm -qa | egrep 'fuel|astute|network-checker|shotgun':
 fuel-release-9.0.0-1.mos6316.noarch
 rubygem-astute-9.0.0-1.mos724.noarch
 fuel-library9.0-9.0.0-1.mos8133.noarch
 fuel-agent-9.0.0-1.mos261.noarch
 fuel-ui-9.0.0-1.mos2600.noarch
 fuel-nailgun-9.0.0-1.mos8553.noarch
 fuel-migrate-9.0.0-1.mos8133.noarch
 fuel-misc-9.0.0-1.mos8133.noarch
 fuel-mirror-9.0.0-1.mos128.noarch
 fuel-bootstrap-cli-9.0.0-1.mos261.noarch
 fuel-provisioning-scripts-9.0.0-1.mos8553.noarch
 network-checker-9.0.0-1.mos72.x86_64
 shotgun-9.0.0-1.mos84.noarch
 fuel-openstack-metadata-9.0.0-1.mos8553.noarch
 fuel-notify-9.0.0-1.mos8133.noarch
 fuel-setup-9.0.0-1.mos6316.noarch
 python-fuelclient-9.0.0-1.mos291.noarch
 fuelmenu-9.0.0-1.mos261.noarch
 fuel-9.0.0-1.mos6316.noarch
 fuel-utils-9.0.0-1.mos8133.noarch
 fuel-ostf-9.0.0-1.mos918.noarch

tags: added: quota
tags: added: keypairs
description: updated
description: updated
Timur Sufiev (tsufiev-x)
tags: added: move-to-10.0
Changed in mos:
assignee: MOS Horizon (mos-horizon) → Paul Karikh (pkarikh)
status: New → Confirmed
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/19055

Changed in mos:
status: Confirmed → In Progress
Timur Sufiev (tsufiev-x)
Changed in mos:
assignee: Paul Karikh (pkarikh) → Timur Sufiev (tsufiev-x)
Timur Sufiev (tsufiev-x)
tags: removed: move-to-10.0
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/19055
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: adc37bf11dd5c9901f40a1606c83e0c1d19817ad
Author: Timur Sufiev <email address hidden>
Date: Thu Mar 31 15:14:13 2016

Disable 'Import Key Pair' button if Key Pairs Quota is exceeded

Change-Id: I646c34eb717adbae2c05996428532cc74f656542
Closes-Bug: #1561039

Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Sergei Chipiga (schipiga) wrote :

Checked with mos9.0#188

Steps:
- login as admin
- Go to Administrator -> System -> Default
- Set Quota "Key pairs" equal to 1 and update quotas.
- Go to Project -> Access & Security -> Key pairs
- Create key pair

Result:
- Button "Import key pairs" is disabled and changes a title to "Import key pairs (quota exceeded)"

Fixed

Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (11.0/ocata)

Fix proposed to branch: 11.0/ocata
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/34212

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (mcp/newton)

Fix proposed to branch: mcp/newton
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/34238

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/horizon (mcp/ocata)

Fix proposed to branch: mcp/ocata
Change author: Timur Sufiev <email address hidden>
Review: https://review.fuel-infra.org/34883

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/horizon (11.0/ocata)

Change abandoned by Ihor Kalnytskyi <email address hidden> on branch: 11.0/ocata
Review: https://review.fuel-infra.org/34212
Reason: 11.0/ocata is obsolete. We use mcp/ocata instead.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (mcp/ocata)

Reviewed: https://review.fuel-infra.org/34883
Submitter: Pkgs Jenkins <email address hidden>
Branch: mcp/ocata

Commit: 3dfb2deefda20872bca899c89bc8f07b0e7c9e23
Author: Michael Dovgal <email address hidden>
Date: Wed Apr 26 15:51:16 2017

Disable 'Import Key Pair' button if Key Pairs Quota is exceeded

Change-Id: I646c34eb717adbae2c05996428532cc74f656542
Closes-Bug: #1561039

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (mcp/newton)

Reviewed: https://review.fuel-infra.org/34238
Submitter: Pkgs Jenkins <email address hidden>
Branch: mcp/newton

Commit: bf65aefe1752b7d1acfd828a5248c7a46994a076
Author: Timur Sufiev <email address hidden>
Date: Mon May 8 13:31:48 2017

Disable 'Import Key Pair' button if Key Pairs Quota is exceeded

Change-Id: I646c34eb717adbae2c05996428532cc74f656542
Closes-Bug: #1561039

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.