create snapshot failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
TommyLike |
Bug Description
When creating snapshot, we could delete the volume right after the creation of snapshot record in database, that means the cinder-volume service could not really create snapshot at backend and the snapshot can never be deletable again.
ERROR log:
```
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
Dec 25 14:25:02 SZX1000299228 cinder-
```
Changed in cinder: | |
assignee: | nobody → TommyLike (hu-husheng) |
Changed in cinder: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/529993 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=7ccfb2c8d94 824321d4bfca726 6c5d72674c061f
Committed: https:/
Submitter: Zuul
Branch: master
commit 7ccfb2c8d948243 21d4bfca7266c5d 72674c061f
Author: TommyLike <email address hidden>
Date: Mon Dec 25 09:19:20 2017 +0800
Validate volume status again when snapshot created
In a multitask environment, the volume can be deleted
after the snapshot record is created. Add the validation
right after the creation to avoid undeletable snapshot.
Closes-Bug: #1739995
Change-Id: Icbe86473243871 996483fdc96c079 b8861bac2e5