]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add config option to enable reporting discard
authorPatrick East <patrick.east@purestorage.com>
Thu, 17 Dec 2015 00:59:51 +0000 (16:59 -0800)
committerPatrick East <patrick.east@purestorage.com>
Mon, 21 Dec 2015 18:08:45 +0000 (10:08 -0800)
commit63e54b80d0b3103621e248122c48b8bbb167580a
treee7217c5862f628a7e5ad1814c58a506d00879fe2
parente8efa5b364a0a473866cf5ded0d8c6f42568d301
Add config option to enable reporting discard

The way for a client of Cinder (read: Nova) to know whether or not it
can and should use the discard feature for the block device attachment
is to report back discard=True in the connection info. Previously a
driver would need to be updated to provide this functionality, which is
kind of a pain with so many drivers in Cinder.

This change adds a shared boolean config option called
‘report_discard_supported’ which can be set to enable reporting this
functionality to the caller of initialize_connection.

DocImpact
Change-Id: I078e74583621316bcfe138096507e7d22af0d712
Implements: blueprint discard-config-option
cinder/tests/unit/test_volume.py
cinder/volume/driver.py
cinder/volume/manager.py
releasenotes/notes/discard-config-option-711a7fbf20685834.yaml [new file with mode: 0644]