RBD: Run flatten in a different thread when cloning a volume
The current implementation of create_cloned_volume calls flatten
directly, and this makes whole thread of cinder-volume blocked by that
flatten call. This causes heartbeat timeout in RabbitMQ when cloning
a volume with rbd backend.
This patch makes sure that flatten is executed in a different thread,
to allow heatbeat thread to run while flattening a rbd image.
Reviewed: https:/ /review. opendev. org/756416 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=bafe440b941 8a1e3acd0045687 2d4d97a9c64c61
Committed: https:/
Submitter: Zuul
Branch: master
commit bafe440b9418a1e 3acd00456872d4d 97a9c64c61
Author: Takashi Kajinami <email address hidden>
Date: Wed Oct 7 09:55:32 2020 +0900
RBD: Run flatten in a different thread when cloning a volume
The current implementation of create_ cloned_ volume calls flatten
directly, and this makes whole thread of cinder-volume blocked by that
flatten call. This causes heartbeat timeout in RabbitMQ when cloning
a volume with rbd backend.
This patch makes sure that flatten is executed in a different thread,
to allow heatbeat thread to run while flattening a rbd image.
Closes-Bug: #1898918 bcebfc96dbe69bf 892f5cd14fe
Change-Id: I9f28260008117a