[DRBD-user] [openstack] create volume from snapshot fails on LINSTOR side
Volodymyr Litovka
doka.ua at gmx.com
Thu May 28 08:27:41 CEST 2020
Hi,
just hit the issue:
openstack volume create --bootable --image cirros --size 5 cird
openstack volume snapshot create --volume
7f3278c2-eb86-44e1-871a-464eb7f1bdf1 snapcird
openstack volume create --bootable --snapshot snapcird --size 7 volcird
at the moment:
# openstack volume list
+--------------------------------------+---------+----------+------+-------------------------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+---------+----------+------+-------------------------------+
| 4cc883df-5c1c-431e-bc8e-f0f228593b0b | volcird | creating | 7 | |
| 7f3278c2-eb86-44e1-871a-464eb7f1bdf1 | cird | in-use | 5 | Attached to cir4 on /dev/vda |
+--------------------------------------+---------+----------+------+-------------------------------+
but later becomes to error state with to the following message in cinder
log:
linstor.errors.LinstorError: Error: Could not resource definition
'CV_4cc883df-5c1c-431e-bc8e-f0f228593b0b' for snapshot restore: The
creation of a new resource definition failed due to a name collision
Possible something related to similar naming? Note, that CV_c1245... and
CV_c1245 have exactly the same "LV Thin origin name":
--- Logical volume ---
LV Path /dev/sds/CV_7f3278c2-eb86-44e1-871a-464eb7f1bdf1_00000_SN_a247b8ad-7e61-40b7-a3f6-cd2d6d32c3b3
LV Name CV_7f3278c2-eb86-44e1-871a-464eb7f1bdf1_00000_SN_a247b8ad-7e61-40b7-a3f6-cd2d6d32c3b3
VG Name sds
LV UUID 5a5Zvp-70HG-MdIW-Xcs2-5iom-dFl7-Y4V0Ne
LV Write Access read/write
LV Creation host, time cmp1, 2020-05-28 09:08:25 +0300
LV Pool name thin
LV Thin origin name CV_7f3278c2-eb86-44e1-871a-464eb7f1bdf1_00000
LV Status available
# open 0
LV Size 5.00 GiB
Mapped size 100.00%
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6
--- Logical volume ---
LV Path /dev/sds/CV_c12457f3-a601-4c2a-9783-048f91b394e0_00000
LV Name CV_c12457f3-a601-4c2a-9783-048f91b394e0_00000
VG Name sds
LV UUID y2flrk-A94A-qjT1-TUjh-Lsau-Iu8n-HYRiZQ
LV Write Access read/write
LV Creation host, time cmp1, 2020-05-28 09:10:19 +0300
LV Pool name thin
LV Thin origin name CV_7f3278c2-eb86-44e1-871a-464eb7f1bdf1_00000_SN_a247b8ad-7e61-40b7-a3f6-cd2d6d32c3b3
LV Status available
# open 2
LV Size 7.00 GiB
Mapped size 71.43%
Current LE 1792
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:7
--- Logical volume ---
LV Path /dev/sds/CV_4cc883df-5c1c-431e-bc8e-f0f228593b0b_00000
LV Name CV_4cc883df-5c1c-431e-bc8e-f0f228593b0b_00000
VG Name sds
LV UUID kD3gAf-I82K-25Ac-Gcmr-E9T8-Nivs-8zzIcU
LV Write Access read/write
LV Creation host, time cmp1, 2020-05-28 09:17:25 +0300
LV Pool name thin
LV Thin origin name CV_7f3278c2-eb86-44e1-871a-464eb7f1bdf1_00000_SN_a247b8ad-7e61-40b7-a3f6-cd2d6d32c3b3
LV Status available
# open 2
LV Size 7.00 GiB
Mapped size 71.43%
Current LE 1792
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:8
Fulll traceback:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
res = self.dispatcher.dispatch(message)
File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 274, in dispatch
return self._do_dispatch(endpoint, method, ctxt, args)
File "/usr/lib/python3/dist-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
result = func(ctxt, **new_args)
File "<decorator-gen-239>", line 2, in create_volume
File "/usr/lib/python3/dist-packages/cinder/objects/cleanable.py", line 212, in wrapper
result = f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 752, in create_volume
_run_flow()
File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 741, in _run_flow
flow_engine.run()
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 247, in run
for _state in self.run_iter(timeout=timeout):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
failure.Failure.reraise_if_any(er_failures)
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 339, in reraise_if_any
failures[0].reraise()
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 346, in reraise
six.reraise(*self._exc_info)
File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
raise value
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
result = task.execute(**arguments)
File "/usr/lib/python3/dist-packages/cinder/volume/flows/manager/create_volume.py", line 1128, in execute
**volume_spec)
File "/usr/lib/python3/dist-packages/cinder/volume/flows/manager/create_volume.py", line 460, in _create_from_snapshot
snapshot)
File "/usr/lib/python3/dist-packages/cinder/volume/drivers/linstordrv.py", line 728, in create_volume_from_snapshot
new_vol_name)
File "/usr/lib/python3/dist-packages/cinder/volume/drivers/linstordrv.py", line 404, in _api_snapshot_resource_restore
new_rsc = lin.restore_from_snapshot(src_snap_name, new_vol_name)
File "/usr/lib/python3.6/dist-packages/linstor/resource.py", line 627, in restore_from_snapshot
.format(r=resource_name_to, err=Linstor.filter_api_call_response_errors(rs)[0].message))
linstor.errors.LinstorError: Error: Could not resource definition 'CV_4cc883df-5c1c-431e-bc8e-f0f228593b0b' for snapshot restore: The creation of a new resource definition failed due to a name collision
--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20200528/0ab77351/attachment.htm>
More information about the drbd-user
mailing list