I am testing uploading image to a volume in an auto-zoning enabled environment
Before test, the openstack host is just physically connect with fc swich and fc storage
“ImageCopyFailure: Failed to copy image to volume: Unable to find a Fibre Channel volume device.” Error always occurred ,
After I sometime dig in the code, I found
When create volume from image, the cinder will not invoke def initialize_connection(self, context, volume_id, connector) in cinder.cinder.volume.manager.py,
Instead it invokes def _attach_volume(self, context, volume, properties, remote=False) in cinder.cinder.volume.driver.py
So that auto-zoning related code is not invoked, this cause the host could not find the fc device.
In testing, I had to zoning cinder host with array manually to avoid this error.
will add cinder trace log when I saw it again