While reverting to a snapshot with generic flow, we create a
temporary volume from snapshot and copy data from temporary to the
original volume.
While creating this temporary volume, the snapshot is in 'restoring'
state whereas the remotefs driver only accepts 'available' and
'backing-up' states for this operation.
This patch adds the 'restoring' state to the list of acceptable states.
Closes-Bug: 1946059
Change-Id: Id1e40fd42b88c63dbbba2aaae77c40660ddac4c7
(cherry picked from commit 862edca0deb366ea980485359216fea020a03c9e)
(cherry picked from commit 1dc950b826acdab740cbcfbe119c0c31a9833a07)
(cherry picked from commit d941ad28f5834bdb3c1413ca03046ac7bcf2c5fd)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/859841 /opendev. org/openstack/ cinder/ commit/ ebc27d371450dcc bba49443ab90944 84a4f9905c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit ebc27d371450dcc bba49443ab90944 84a4f9905c
Author: whoami-rajat <email address hidden>
Date: Tue Oct 5 01:43:18 2021 -0400
NFS: Fix generic revert to snapshot flow
While reverting to a snapshot with generic flow, we create a
temporary volume from snapshot and copy data from temporary to the
original volume.
While creating this temporary volume, the snapshot is in 'restoring'
state whereas the remotefs driver only accepts 'available' and
'backing-up' states for this operation.
This patch adds the 'restoring' state to the list of acceptable states.
Closes-Bug: 1946059
Change-Id: Id1e40fd42b88c6 3dbbba2aaae77c4 0660ddac4c7 a980485359216fe a020a03c9e) 740cbcfbe119c0c 31a9833a07) b3c1413ca03046a c7bcf2c5fd)
(cherry picked from commit 862edca0deb366e
(cherry picked from commit 1dc950b826acdab
(cherry picked from commit d941ad28f5834bd