← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1425747] [NEW] User-created flavors do not enforce flavor id uniqueness

 

Public bug reported:

The nova API makes an implicit assumption that the "flavorid" field is
unique, but under certain circumstances this is not enforced. This
results in incorrect behavior in the situation where a deleted flavor's
flavorid is re-used for a new flavor. Any instances that are associated
to the deleted flavor will now appear to be associated to the new flavor
that re-used the id.

Steps to reproduce:

  1. Create a flavor named FOO with a flavorid of 5
  2. Create an instance using flavor FOO
  3. Delete the flavor FOO
  4. Create a flavor named BAR with a flavorid of 5

Look at the instance detail for the launched instance

Expected Behavior:

The instance detail says the instance is launched against FOO

Actual Behavior:

The instance detail says the instance is launched against BAR

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  User-created flavors do not enforce flavor id uniqueness

Status in OpenStack Compute (Nova):
  New

Bug description:
  The nova API makes an implicit assumption that the "flavorid" field is
  unique, but under certain circumstances this is not enforced. This
  results in incorrect behavior in the situation where a deleted
  flavor's flavorid is re-used for a new flavor. Any instances that are
  associated to the deleted flavor will now appear to be associated to
  the new flavor that re-used the id.

  Steps to reproduce:

    1. Create a flavor named FOO with a flavorid of 5
    2. Create an instance using flavor FOO
    3. Delete the flavor FOO
    4. Create a flavor named BAR with a flavorid of 5

  Look at the instance detail for the launched instance

  Expected Behavior:

  The instance detail says the instance is launched against FOO

  Actual Behavior:

  The instance detail says the instance is launched against BAR

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


Follow ups

References