← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1675790] [NEW] Instance created by demo user(non-admin), shelved by admin and unshelved by demo user --> ends up in error state

 

Public bug reported:

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.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: multitenancy nova

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1675790

Title:
  Instance created by demo user(non-admin), shelved by admin and
  unshelved by demo user --> ends up in error state

Status in OpenStack Compute (nova):
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1675790/+subscriptions


Follow ups