Horizon crashes when a non-admin user try to resize a locked instance
Bug #1433847 reported by
Kahou Lei
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
In Progress
|
Medium
|
wei.ying |
Bug Description
Steps to reproduce:
1. Login as admin
2. Boot an instance.
3. Lock an instance.
4. Resize that instance.
5. While that instance is in "Confirm" state, logout and login as a non-admin user.
6. Go to the instance panel and notice that the instance has "Confirm Resize" action enabled.
7. Click the action and Horizon crash.
The problem is due to nova client doesn't have the lock state report to the GUI and that's why we cannot filter out the action.
description: | updated |
tags: | added: nova |
Changed in horizon: | |
importance: | Undecided → Medium |
To post a comment you must log in.
The non-admin does not allow operation the locked instance, including the following actions: /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L2178 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3015 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L2985 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3714 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3725 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3580 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3648 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3749 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3233 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3264 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3166 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L3061 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L2817 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L2817 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L2170 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L2858 /github. com/openstack/ nova/blob/ master/ nova/compute/ api.py# L2115
StartInstance: https:/
ConfirmResize: https:/
RevertResize: https:/
AttachInterface: https:/
DetachInterface: https:/
AttachVolume: https:/
DetachVolume: https:/
UpdateMetadata: https:/
TogglePause: https:/
ToggleSuspend: https:/
ToggleShelve: https:/
ResizeLink: https:/
SoftRebootInstance: https:/
RebootInstance: https:/
StopInstance: https:/
RebuildInstance: https:/
DeleteInstance: https:/