Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[nova-compute] libvirt permission denied

In Kilo,

since my local disk is too small, newly attaching a new disk, /data1 as following.

root@cn2:/var/lib/nova# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 23G 1.7G 20G 8% / ... /dev/mapper/vg_data-lv_data1 356G 703M 338G 1% /data1

and add a setting 'instances_path=/data1/instances' in nova.conf at compute node.

root@cn2:/data1# ls -la total 28 drwxr-xr-x 4 nova nova 4096 16:51 . drwxr-xr-x 25 root root 4096 10:07 .. drwxr-xr-x 2 nova nova 4096 16:50 instances drwx------ 2 nova nova 16384 13:51 lost+found root@cn2:/data1# pwd /data1 root@cn2:/data1# ls -la instances/ total 8 drwxr-xr-x 2 nova nova 4096 16:50 . drwxr-xr-x 4 nova nova 4096 16:51 .. root@cn2:/data1#

but whenever creating an instance, nova-compute.log shows libvirt error as below:

libvirtError: internal error: process exited while connecting to monitor: 2015-10-02T07:02:25.031125Z qemu-system-x86_64: -drive file=/data1/instances/03e58fd3-b555-4aa3-91fa-5e6fcc15978a/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /data1/instances/03e58fd3-b555-4aa3-91fa-5e6fcc15978a/disk: Could not open backing file: Could not open '/data1/instances/_base/d7607a887a4e5b41ec4b9ccdbf16d356ca6c9c0f': Permission denied

instead of a setting 'instances_path=/data1/instances' in nova.conf at compute node, symbolic link 'ln -s /data1/instances /var/lib/nova/' also shows the same errors.

no changes in /etc/libvirt/qemu.conf libvirt-bin.conf ...

what's the matter in this situation? plz help me...

[nova-compute] libvirt permission denied

In Kilo,

since my local disk is too small, newly attaching a new disk, /data1 as following.

root@cn2:/var/lib/nova# df -h -h

Filesystem Size Used Avail Use% Mounted on on

/dev/sda5 23G 1.7G 20G 8% / ... /

...

/dev/mapper/vg_data-lv_data1 356G 703M 338G 1% /data1

and add a setting 'instances_path=/data1/instances' in nova.conf at compute node.

root@cn2:/data1# ls -la -la

total 28 28

drwxr-xr-x 4 nova nova 4096 16:51 . .

drwxr-xr-x 25 root root 4096 10:07 .. ..

drwxr-xr-x 2 nova nova 4096 16:50 instances instances

drwx------ 2 nova nova 16384 13:51 lost+found lost+found

root@cn2:/data1# pwd /data1 pwd

/data1

root@cn2:/data1# ls -la instances/ instances/

total 8 8

drwxr-xr-x 2 nova nova 4096 16:50 . .

drwxr-xr-x 4 nova nova 4096 16:51 .. ..

root@cn2:/data1#

but whenever creating an instance, nova-compute.log shows libvirt error as below:

libvirtError: internal error: process exited while connecting to monitor: 2015-10-02T07:02:25.031125Z qemu-system-x86_64: -drive file=/data1/instances/03e58fd3-b555-4aa3-91fa-5e6fcc15978a/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /data1/instances/03e58fd3-b555-4aa3-91fa-5e6fcc15978a/disk: Could not open backing file: Could not open '/data1/instances/_base/d7607a887a4e5b41ec4b9ccdbf16d356ca6c9c0f': Permission denied

instead of a setting 'instances_path=/data1/instances' in nova.conf at compute node, symbolic link 'ln -s /data1/instances /var/lib/nova/' also shows the same errors.

no changes in /etc/libvirt/qemu.conf libvirt-bin.conf ...

what's the matter in this situation? plz help me...

[nova-compute] libvirt permission denied

In Kilo,

since my local disk is too small, newly attaching a new disk, /data1 as following.

root@cn2:/var/lib/nova# df -h

-h Filesystem Size Used Avail Use% Mounted on

on /dev/sda5 23G 1.7G 20G 8% /

...

/ ... /dev/mapper/vg_data-lv_data1 356G 703M 338G 1% /data1

/data1

and add a setting 'instances_path=/data1/instances' in nova.conf at compute node.

root@cn2:/data1# ls -la

-la total 28

28 drwxr-xr-x 4 nova nova 4096 16:51 .

. drwxr-xr-x 25 root root 4096 10:07 ..

.. drwxr-xr-x 2 nova nova 4096 16:50 instances

instances drwx------ 2 nova nova 16384 13:51 lost+found

lost+found root@cn2:/data1# pwd

/data1

pwd /data1 root@cn2:/data1# ls -la instances/

instances/ total 8

8 drwxr-xr-x 2 nova nova 4096 16:50 .

. drwxr-xr-x 4 nova nova 4096 16:51 ..

root@cn2:/data1#

.. root@cn2:/data1#

but whenever creating an instance, nova-compute.log shows libvirt error as below:

libvirtError: internal error: process exited while connecting to monitor: 2015-10-02T07:02:25.031125Z qemu-system-x86_64: -drive file=/data1/instances/03e58fd3-b555-4aa3-91fa-5e6fcc15978a/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /data1/instances/03e58fd3-b555-4aa3-91fa-5e6fcc15978a/disk: Could not open backing file: Could not open 
'/data1/instances/_base/d7607a887a4e5b41ec4b9ccdbf16d356ca6c9c0f': Permission denied

instead denied

**instead of a setting 'instances_path=/data1/instances' in nova.conf at compute node,

symbolic link 'ln -s /data1/instances /var/lib/nova/' also shows the same errors. 

errors.** no changes in /etc/libvirt/qemu.conf libvirt-bin.conf ...

...

what's the matter in this situation? plz help me...