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.
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/812429 /opendev. org/openstack/ cinder/ commit/ 862edca0deb366e a980485359216fe a020a03c9e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 862edca0deb366e a980485359216fe a020a03c9e
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