MySQL backend: Updating flavor extra-specs with altered case throws conflicts
Bug #1463948 reported by
Nicolas Simonds
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Nicolas Simonds |
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
summary: |
MySQL backend: Updating flavor extra-specs with altered case throws - KeyErrors + conflicts |
Changed in nova: | |
milestone: | none → liberty-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-2 → 12.0.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/190300
Review: https:/