Browse Source

Adding missing Volume states to VolumeStatus enum

Some of the valid volume states are missing
from the VolumeStatus enum.
This patch adds these states.

Change-Id: I478f23ca2a01e731c7d64f0e0f73df06437d3fcc
Closes-Bug: #1805692
changes/33/621533/2
whoami-rajat 3 years ago
parent
commit
179ebac5d6
  1. 14
      cinder/objects/fields.py

14
cinder/objects/fields.py

@ -179,10 +179,22 @@ class VolumeStatus(BaseCinderEnum):
MAINTENANCE = 'maintenance'
RESTORING_BACKUP = 'restoring-backup'
ERROR_RESTORING = 'error_restoring'
RESERVED = 'reserved'
AWAITING_TRANSFER = 'awaiting-transfer'
BACKING_UP = 'backing-up'
ERROR_BACKING_UP = 'error_backing-up'
ERROR_EXTENDING = 'error_extending'
DOWNLOADING = 'downloading'
UPLOADING = 'uploading'
RETYPING = 'retyping'
EXTENDING = 'extending'
ALL = (CREATING, AVAILABLE, DELETING, ERROR, ERROR_DELETING,
ERROR_MANAGING, MANAGING, ATTACHING, IN_USE, DETACHING,
MAINTENANCE, RESTORING_BACKUP, ERROR_RESTORING)
MAINTENANCE, RESTORING_BACKUP, ERROR_RESTORING,
RESERVED, AWAITING_TRANSFER, BACKING_UP,
ERROR_BACKING_UP, ERROR_EXTENDING, DOWNLOADING,
UPLOADING, RETYPING, EXTENDING)
class VolumeStatusField(BaseEnumField):

Loading…
Cancel
Save