← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1366168] [NEW] delete private flavor will cause access problem with existed instance

 

Public bug reported:

How to reproduce


1. create a private flavor "private-flavor"
2. add a tenant access to "private-flavor"
3. use Member role user to create instance "XXX" with "private-flavor"
4. nova flavor-delete "private-flavor" with admin role
5. nova show XXX with Member role suer, will be end with error message say do not have access to the flavor


Reason 

the delete a flavor will also delete the access in
instance_type_projects table


Solution

One quick solution is mark flavor as public while do soft delete

** Affects: nova
     Importance: Undecided
     Assignee: Wei T (nuaafe)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Wei T (nuaafe)

-- 
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/1366168

Title:
  delete private flavor will cause access problem with existed instance

Status in OpenStack Compute (Nova):
  New

Bug description:
  How to reproduce

  
  1. create a private flavor "private-flavor"
  2. add a tenant access to "private-flavor"
  3. use Member role user to create instance "XXX" with "private-flavor"
  4. nova flavor-delete "private-flavor" with admin role
  5. nova show XXX with Member role suer, will be end with error message say do not have access to the flavor

  
  Reason 

  the delete a flavor will also delete the access in
  instance_type_projects table

  
  Solution

  One quick solution is mark flavor as public while do soft delete

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


Follow ups

References