Add ability to support discard/unmap/trim for Cinder backend
During volume attach if a cinder backend supports discard Nova should enable this. This functionality requires properties in the glance image to enable creation of the correct scsi controller on the instance.
Required glance properties are
hw_scsi_
hw_disk_bus=scsi
Without the correct glance properties this flag will be ignored. The old scsi connector just ignores this setting.
A check is also added to make sure the minimum version of QEMU is present. If min version requirement is not satisfied the discard flag will not be added to the attached volume.
Work is required on Cinder side to make use of this functionality.
Cinder BP: https:/
Cinder Spec: Updated version https:/
Cinder Patch: https:/
Blueprint information
- Status:
- Complete
- Approver:
- Matt Riedemann
- Priority:
- Low
- Drafter:
- Danny Wilson
- Direction:
- Approved
- Assignee:
- Pure Storage Openstack Team
- Definition:
- Approved
- Series goal:
- Accepted for mitaka
- Implementation:
- Implemented
- Milestone target:
- mitaka-2
- Started by
- Matt Riedemann
- Completed by
- Matt Riedemann
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
libvirt: add virtio-scsi support for attached volumes
Addressed by: https:/
Add ability to support discard/unmap/trim for Cinder backend