Instance created by demo user(non-admin), shelved by admin and unshelved by demo user --> ends up in error state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Pike |
Won't Fix
|
Medium
|
Unassigned | ||
Queens |
Won't Fix
|
Medium
|
Seyeong Kim | ||
Rocky |
Fix Committed
|
Medium
|
Seyeong Kim |
Bug Description
Steps to reproduce
===========
1) Login as demo user and create an instance.
2) Login as a admin user navigate to admin panel and shelve the instance (as admin user is able shelve any instance).
3) Login as demo user and try to unshelve the instance shelved by admin user.
Expected : instance should be unshelved
Actual : instance is not shelved but is went to error state.
Concerns
===========
There are two conditions here 1.If this scenarios is not valid admin user should not have an option to shelve the instance , this option should be removed .
2.If this is a valid flow , instance should be unsheleved by the demo user. During the shelve process a snap shot will be created in the instance panel and it will be removed automatically when instance is unshelved. But when admin user is trying to shelve instance a snapshot is created under admin projects instead of demo project . This may be the reason for unshelve failure
Admin user is able to unsheleve an instance shelved by demo user as he is seeing both snapshots.
Environment
===========
Reproduced it with pure stable/Newton in devstack environment
Also reproduced it with Liberty.
Changed in nova: | |
importance: | Undecided → Medium |
tags: |
added: shelve removed: multitenancy nova |
Changed in nova: | |
status: | Invalid → Triaged |
Changed in nova: | |
assignee: | nobody → Nikolai Korablin (nkorabli) |
Changed in nova: | |
status: | Triaged → In Progress |
tags: | added: openstack-version.liberty |
Changed in nova: | |
assignee: | nobody → Damini Chopra (damini) |
Changed in nova: | |
assignee: | Damini Chopra (damini) → nobody |
Changed in nova: | |
assignee: | nobody → Damini Chopra (damini) |
Changed in nova: | |
assignee: | Damini Chopra (damini) → nobody |
Please, say what you think about this? What is the valid workflow for this scenario?