-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
When creating a volume where the source is a volume. The first creation works, but if I create another volume, it fails.
2023-01-28 22:38:25.687 407797 INFO cinder.volume.drivers.ixsystems.freenasapi [None req-a123df1f-3880-47a7-ae6c-53b9eddba151 fff44df7b41d4fd39edf513ca497a8c4 ba20d749b68045bba695de9dd0123471 - - - -] Error returned from server: "Failed to snapshot tank/vms/volume-abc2c893@snap-cabc2c893: dataset already exists"
The driver tries to create a duplicate snapshot with the same name as the first one.
I believe this is the code that is causing the issue https://github.com/iXsystems/cinder/blob/master/driver/ixsystems/iscsi.py#L286-L287
The name key in temp_snapshot probably should be the volume.id, not referencing the source volume.
Metadata
Metadata
Assignees
Labels
No labels