Add volume bootable information to api response
If there is any glance metadata associated with a volume, we'll consider the volume bootable. This will return the information for both /volumes and /detail calls. blueprint list-bootable-volumes Change-Id: Id9dbe5cb648be62fb19bb8bd6a97d8eab05ec25a
This commit is contained in:
@@ -213,6 +213,11 @@ class VolumeGlanceMetadata(BASE, CinderBase):
|
||||
snapshot_id = Column(String(36), ForeignKey('snapshots.id'))
|
||||
key = Column(String(255))
|
||||
value = Column(Text)
|
||||
volume = relationship(Volume, backref="volume_glance_metadata",
|
||||
foreign_keys=volume_id,
|
||||
primaryjoin='and_('
|
||||
'VolumeGlanceMetadata.volume_id == Volume.id,'
|
||||
'VolumeGlanceMetadata.deleted == False)')
|
||||
|
||||
|
||||
class Quota(BASE, CinderBase):
|
||||
|
||||
Reference in New Issue
Block a user