Not return volume type id but name when nova gets volume object from cinder
Bug #1276888 reported by
John Haan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
when nova gets volume object and untranslate its, volume_type_id regards vol.volume_type.
Actually volume_type is returned not an id but a name.
However, some unittest defines volume_type_id to defferent type value.
1. in nova/tests/
'volume_type_id': 99
2. in nova/test/
'volume_type_id': 'fakevoltype'
I think we should change the name of volume_type_id to volume_type for appropriate meaning of value.
Otherwise, volume_type_id should be a one type.
Changed in nova: | |
assignee: | nobody → John Haan (yongiman) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Confirmed |
importance: | Undecided → Wishlist |
assignee: | John Haan (yongiman) → nobody |
To post a comment you must log in.
This is the value in the data model:
volume_type_id = Column(Integer)
So are you talking about just making a change in the tests so they are consistently using an int, or something else? Otherwise if we're talking about changing the actual column in the database I don't think this probably warrants a new database migration.