Browse Source

Merge "RemoteFS: Use dest vol id instead of source id in snapshot temp name"

changes/60/694460/2
Zuul 3 weeks ago
parent
commit
b20561141b
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      cinder/tests/unit/volume/drivers/test_remotefs.py
  2. +1
    -1
      cinder/volume/drivers/remotefs.py

+ 1
- 1
cinder/tests/unit/volume/drivers/test_remotefs.py View File

@@ -644,7 +644,7 @@ class RemoteFsSnapDriverTestCase(test.TestCase):
'status': fields.SnapshotStatus.CREATING,
'progress': '0%',
'volume_size': src_vref.size,
'display_name': 'tmp-snap-%s' % src_vref['id'],
'display_name': 'tmp-snap-%s' % volume.id,
'display_description': None,
'volume_type_id': src_vref.volume_type_id,
'encryption_key_id': None,

+ 1
- 1
cinder/volume/drivers/remotefs.py View File

@@ -1058,7 +1058,7 @@ class RemoteFSSnapDriverBase(RemoteFSDriver):
'status': fields.SnapshotStatus.CREATING,
'progress': '0%',
'volume_size': src_vref.size,
'display_name': 'tmp-snap-%s' % src_vref.id,
'display_name': 'tmp-snap-%s' % volume.id,
'display_description': None,
'volume_type_id': src_vref.volume_type_id,
'encryption_key_id': src_vref.encryption_key_id,

Loading…
Cancel
Save