Bug 2002755

Summary: Cinder and Glance rbd chunk size should be the same and configurable
Product: Red Hat OpenStack Reporter: Giulio Fidente <gfidente>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: ON_DEV --- QA Contact: Yogev Rabl <yrabl>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: abishop, eharney, ekuvaja, fpantano, gcharot, johfulto, ltoscano, mburns
Target Milestone: ---Keywords: Triaged
Target Release: ---Flags: gfidente: needinfo? (eharney)
gfidente: needinfo? (ltoscano)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Giulio Fidente 2021-09-09 15:56:21 UTC
Glance and Cinder appear to be using different defaults for the rbd_chunk_size while they should not or operations which involve snapshotting/cloning images will fail.

This is especially important when the Ceph cluster is at the Pacific level, where such a thing is enforced with the cluster returning error if it isn't, see https://review.opendev.org/c/openstack/cinder/+/804265

While recent versions of Cinder are trying to workaround this by adopting whichever chunk size is in use for the source image, we should configure the services to use by the same value and eventually make it configurable for performance reasons.

puppet-glance and puppet-cinder support this already

https://github.com/openstack/puppet-glance/blob/master/manifests/backend/multistore/rbd.pp#L32

https://github.com/openstack/puppet-cinder/blob/master/manifests/backend/rbd.pp#L62

Comment 2 Alan Bishop 2022-01-13 17:26:34 UTC
There's a discussion in #rhos-storage that suggests this BZ should be an RFE, and coordinated with the cinder squad to address any questions such as whether there's a performance impact on changing the chunk size for all newly created cinder volumes. The change might be suitable for a future release, but may not be suitable for slipping into an OSP-16 maintenance release.