/var/log/cinder/volume.log
将 Glance 注册的 QCOW2 映像转换为 Cinder 卷时显示以下错误。
local variable 'tmp' referenced before assignment failed to copy image to volume
答案1
创建临时转换目录并授予 cinder 用户和组所有权:
mkdir /images/conversion
chown cinder:cinder /images/conversion
修改image_conversion_dir
中的指令/etc/cinder/cinder.conf
:
image_conversion_dir=/images/conversion
重启 cinder 卷服务:
systemctl restart openstack-cinder-volume.service target.service