Attaching volume to instance

asked 2017-02-12 11:59:59 -0600

anonymous user

Anonymous

updated 2017-04-04 12:28:22 -0600

rbowen gravatar image

Hi,

I've finished the installation of openstack in the first node, where all services are running.

I'm using centos7 and I installed everything with rdo.

I've configured cinder,glance and nova to use a remote glusterfs filesystem. In the node everything is mounted properly:

cinder: /var/lib/cinder/mnt/9e3fca4e0e8afc61915b53d5c2f9c808
glance: /mnt/gluster/glance
nova: /mnt/gluster/nova

The volume creation is working properly, but the problem is when I'm trying to attach the volume to the instance. The volume is attached properly (no errors) but the instance is not able to power on.

Checking the libvirt.xml, I noticed that the field "source file" is generated wrongly.

source file="/var/lib/nova/mnt/9e3fca4e0e8afc61915b53d5c2f9c808/volume-5d2e5fa7-e6c6-439e-8f0d-b12addcae38c

When it should be

source file="/var/lib/cinder/mnt/9e3fca4e0e8afc61915b53d5c2f9c808/volume-5d2e5fa7-e6c6-439e-8f0d-b12addcae38c

Instead of /var/lib/nova, it should be /var/lib/cinder/.

Could you help me? Please let me know if you need the configuration files.

Thanks in advance Pazzeo

edit retag flag offensive close merge delete