Changing flavor details results as admin results in flavor "Not Available" for non-admin users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Won't Fix
|
Medium
|
MOS Nova |
Bug Description
Detailed bug description:
In MOS 9.1 environment, I was able to reproduce the exact issue outlined in https:/
where instance flavor is no longer available for a non-admin user after it is modified.
Steps to reproduce:
1. Install/use and all-in-one w/ demo project
2. As admin, create a flavor and assign to the demo project
3. Log out as admin and log in as demo (must not have admin privs)
4. As demo, launch an instance on this flavor in the demo project
5. Log out as demo and log in as admin
6. As admin, change the amount of RAM for the flavor
7. Log out as admin, log in as demo
8. Check the instances page and size should show "Not available" and there should be an error in the upper right saying "Error: Unable to retrieve instance size information."
Expected results:
Since modifying a flavor essentially "deletes" the original and creates a new one, we have to ensure that the non-admin user still has access to the original flavor after it is modified by an admin.
Actual result:
An error doesn't pop up in Horizon (as it occurs in the aforementioned Horizon bug), but the instance size still shows as "Not Available" for a non-admin user.
Reproducibility:
100%
Workaround:
Resize instance with available flavor
Impact:
Customer also mentioned that the instance hangs when it's in this state, but I haven't been able to reproduce that part just yet.
Description of the environment:
- Operation system: Ubuntu 14.04
- Versions of components: Mirantis OpenStack 9.1
- Reference architecture: N/A
- Network model: N/A
- Related projects installed: N/A
Additional information: N/A
Changed in mos: | |
status: | New → Won't Fix |
importance: | Undecided → Medium |
assignee: | nobody → MOS Nova (mos-nova) |
milestone: | none → 10.0 |
It may also be worth mentioning that this is not only observed in Horizon. Here, we can also see "Flavor not found" in the nova show output in the CLI:
root@node-1:~# nova show 0dbba63c- b12a-44de- a409-5b02e7688a a3 ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- + 0afc-4fc9- a4b2-138a2b5802 a9) | c27087b96784e6a 2912da7d086a214 9ce50db1d37 | b12a-44de- a409-5b02e7688a a3 | 6285-44ce- b5d1-ee8dab7480 23) | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- +
+------
| Property | Value |
+------
{truncated}
| description | testInstance |
| flavor | Flavor not found (27278f90-
| hostId | ba6d7e70d29b1d9
| id | 0dbba63c-
| image | TestVM (2d93532f-
{truncated}
+------