There are instances where cinder needs to create a temporary volume and
this can trigger a flatten of the new temporary volume, which will make
the operation take a lot longer.
In some cases this means slower operations, but in others it leads to
rpc timeout failures.
A case where we see timeout failures is when doing a backup of a
snapshot and we have rbd_flatten_volume_from_snapshot=true.
This patch ensures that we don't flatten temporary volumes.
Closes-Bug: #1916843
Change-Id: I8f55c3beb2f8df5b2227506f82ddf6ee57c951ae
(cherry picked from commit e726c07948138f514706cc69440971a2105c2bc0)
(cherry picked from commit 50c94ed0960e8bebbf5d17bac06c1646538f2fc2)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/845130 /opendev. org/openstack/ cinder/ commit/ 5a21cd9be243e07 6a402db2c465319 d5d946658d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 5a21cd9be243e07 6a402db2c465319 d5d946658d
Author: Gorka Eguileor <email address hidden>
Date: Mon May 10 10:35:57 2021 +0200
RBD: Don't flatten temporary resources
There are instances where cinder needs to create a temporary volume and
this can trigger a flatten of the new temporary volume, which will make
the operation take a lot longer.
In some cases this means slower operations, but in others it leads to
rpc timeout failures.
A case where we see timeout failures is when doing a backup of a volume_ from_snapshot= true.
snapshot and we have rbd_flatten_
This patch ensures that we don't flatten temporary volumes.
Closes-Bug: #1916843 5b2227506f82ddf 6ee57c951ae 14706cc69440971 a2105c2bc0) bbf5d17bac06c16 46538f2fc2)
Change-Id: I8f55c3beb2f8df
(cherry picked from commit e726c07948138f5
(cherry picked from commit 50c94ed0960e8be