Comment 2 for bug 1276888

Revision history for this message
John Haan (yongiman) wrote :

No, I don't mention of database model.

I just say nova regards volume_type as a volume_type_id even it means type name when it gets volume object from cinder.

in nova/volume/cinder.py

def _untranslate_volume_summary_view(context, vol):
.
.
    d['volume_type_id'] = vol.volume_type
    d['snapshot_id'] = vol.snapshot_id

Therefore it is easy to think volume_type_id as a int type. Actually it includes volume type name.