Flavor name edit should trim for white spaces and compare with other flavor names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Yakup Adakli |
Bug Description
When editing the flavor name from horizon
1. Enter new flavor name which is same as one of the existing flavor name
2. Make sure that you have entered leading and trailing spaces
Try saving this flavor and it fails with error.
we should ideally strip the flavor name before making any comparison.
As a specific example
1. Create flavor with name test1
2. Create flavor with name test2
3. Edit flavor test2
4. When editing try giving name " test1 "(new name same as one of the existing flavor and leading and trailing spaces in the new name)
5. Save the flavor
6. we get an error that 'Unable to modify test1'.
Now we were modifying test2 and not test1. Error should ideally say that the flavor with name 'test1' already exists(as the case is if we try the same from CLI)
One more unexpected behavior that happens is that 'test2' in above case is removed from the flavor listing page in UI
Changed in horizon: | |
assignee: | nobody → Vivek Agrawal (vivek-agrawal) |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in horizon: | |
status: | In Progress → New |
Changed in horizon: | |
importance: | Undecided → Medium |
status: | In Progress → Triaged |
milestone: | none → ocata-3 |
tags: | added: newton-backport-potential |
Fix proposed to branch: master /review. openstack. org/403687
Review: https:/