cinder backup api don't support the backup of in-use volume if cinder backupend is nfs and cinder backup backupend is nfs too
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
cinder backup api don't support the backup of in-use volume if cinder backupend is nfs and cinder backup backupend is nfs too.
Here is the code in https:/
def create(self, context, name, description, volume_id,
"""Make the RPC call to create a volume backup."""
volume = self.volume_
snapshot = None
if snapshot_id:
if volume_id != snapshot.volume_id:
msg = (_('Volume %(vol1)s does not match with '
if volume['status'] not in ["available", "in-use"]:
msg = (_('Volume to be backed up must be available '
raise exception.
elif volume['status'] in ["in-use"] and not snapshot_id and not force:
msg = _('Backing up an in-use volume must use '
raise exception.
elif snapshot_id and snapshot['status'] not in ["available"]:
msg = (_('Snapshot to be backed up must be available, '
raise exception.
Infact,if the cinder volume backupend is nfs not lvm,it would be wrong if you backup a in-use volume to a nfs backup backupend.
Changed in cinder: | |
assignee: | nobody → NidhiMittalHada (nidhimittal19) |
status: | New → In Progress |
Changed in cinder: | |
status: | In Progress → New |
Unassigning due to no activity for > 6 months.