Bug 1566619

Summary: Enable discard support for Ceph RBD
Product: Red Hat OpenStack Reporter: Eric Harney <eharney>
Component: puppet-cinderAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: Tzach Shefi <tshefi>
Severity: low Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: acanan, jjoyce, jschluet, mburns, rhel-osp-director-maint, slinaber, tshefi, tvignaud
Target Milestone: Upstream M3Keywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-cinder-14.4.1-0.20190420083336.1cf0604.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:16:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Harney 2018-04-12 15:52:22 UTC
When deploying the tripleo_ceph backend for cinder, the cinder.conf setting "report_discard_supported" should be set for RBD backends, to enable use of discard (trim/unmap).

Comment 1 Alan Bishop 2018-04-23 20:50:47 UTC
This looks like an easy thing to take care of in puppet-cinder.

Comment 3 Alan Bishop 2019-01-29 22:20:33 UTC
Retargeting for OSP-15 as upstream patch is not on stable/rocky, and puppet-cinder community is resistant to backporting patches that are more like a feature than a bug fix.

Comment 7 Tzach Shefi 2019-05-20 09:09:54 UTC
Verified on:
puppet-cinder-14.4.1-0.20190420083336.1cf0604.el8ost.noarch

Deployed 15 +ceph below is the ceph conf section from cinder.conf


[tripleo_ceph]
backend_host=hostgroup
volume_backend_name=tripleo_ceph
volume_driver=cinder.volume.drivers.rbd.RBDDriver
rbd_ceph_conf=/etc/ceph/ceph.conf
rbd_user=openstack
rbd_pool=volumes
rbd_secret_uuid=702c62d2-7a05-11e9-9deb-525400da38c6
report_discard_supported=True    -> is enabled OK to verify.

Comment 8 Tzach Shefi 2019-05-20 09:10:23 UTC
Forgot to set verified, see above.

Comment 10 errata-xmlrpc 2019-09-21 11:16:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:2811