← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1463948] [NEW] MySQL backend: Updating flavor extra-specs with altered case throws KeyErrors

 

Public bug reported:

The DB query for flavor extra-specs is case-insensitive, but the code to
handle update vs. create is case-sensitive.  This causes unexpected
behavior when trying to "fix" case on extra-specs:

Steps to reproduce:

    Stand up a devstack with the MySQL backend.

    nova flavor-key set 1 aaa=haha
    nova flavor-key set 1 AAA=lolz

Expected results:

Option 1: Two extra specs, named "aaa" and "AAA", with distinct values

Option 2: The extra spec named "aaa" replaced with "AAA"

Actual results:

a 409 Error from the client, and an exception throwing the exception on
the backend

** Affects: nova
     Importance: Undecided
     Assignee: Nicolas Simonds (nicolas.simonds)
         Status: In Progress

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

Title:
  MySQL backend: Updating flavor extra-specs with altered case throws
  KeyErrors

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  The DB query for flavor extra-specs is case-insensitive, but the code
  to handle update vs. create is case-sensitive.  This causes unexpected
  behavior when trying to "fix" case on extra-specs:

  Steps to reproduce:

      Stand up a devstack with the MySQL backend.

      nova flavor-key set 1 aaa=haha
      nova flavor-key set 1 AAA=lolz

  Expected results:

  Option 1: Two extra specs, named "aaa" and "AAA", with distinct values

  Option 2: The extra spec named "aaa" replaced with "AAA"

  Actual results:

  a 409 Error from the client, and an exception throwing the exception
  on the backend

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


Follow ups

References