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)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/845039 /opendev. org/openstack/ cinder/ commit/ 50c94ed0960e8be bbf5d17bac06c16 46538f2fc2
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 50c94ed0960e8be bbf5d17bac06c16 46538f2fc2
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)
Change-Id: I8f55c3beb2f8df
(cherry picked from commit e726c07948138f5