flavor-show of mixed case flavorid fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
High
|
melanie witt |
Bug Description
The fix for bug 1423885 broke flavor-show for flavorids with upper case letters:
Excerpts from bug 1423885:
"This fix broke it for people with flavorid with upper case like "SuperCase1".
To reproduce:
- nova --debug flavor-create SuperCase1 SuperCase1 512 10 1
- nova --debug flavor-show SuperCase1
This also breaks nova boot which won't be able to find the flavor by id.
Please also consider installations with existing flavor ids which can't be changed for obvious reasons."
I found the problem is that the server side db item caching keys off flavorid from the result of the db query in a case-sensitive manner, so the flavor can't be found in the cache if novaclient sends an all lowercase flavorid.
Ideally maybe nova would treat flavorid as case-insensitive in the cache as it does with the db query, but since this breaks existing users with mixed case flavorids, I think we have to revert https:/
Changed in python-novaclient: | |
milestone: | none → 2.25.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/176106
Review: https:/