NFS: Creating multiple volumes from the same image fails when image caching is turned on by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Devstack recently changed to enable the cinder image cache by default:
https:/
This means that after you create a volume from an image in the cache at least once, it tries to clone the volume on subsequent creates, and cloning isn't supported by the NFS driver.
So you end up with failures in cinder-volume like this:
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
2016-11-13 15:29:26.733 825 ERROR cinder.
The code here handles a CinderException trying to create the image cache from a volume entry:
Which fails from _clone_
Because the NFS driver doesn't extend the CloneableImageVD mixin and implement the clone_image method.
So the volume manager code should probably be checking if the volume driver is an instance of CloneableImageVD before it tries going down this route.
The quick fix for the devstack-plugin-nfs code is to disable the image cache but this should still probably be fixed in cinder to not fail - or attempt an optional operation that's not supported by the driver.
Changed in cinder: | |
status: | New → Confirmed |
Fix proposed to branch: master /review. openstack. org/398581
Review: https:/