[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] virDomainAttachDevice error during disk hotplug

On Sat, Aug 10, 2013 at 05:38:20PM +0530, Deepak C Shetty wrote:
> Hi All,
>     I am trying to do a hotplug of a disk from VDSM (which uses
> libvirt to get things done).
> I hit the below error "operation failed: open disk image file
> failed" comign from virDomainAttachDevice.

> 1) The qemu-img create  cmd I use (inside vdsm) to create the file
> being hotplugged is
> /usr/bin/qemu-img create -f qcow2 -F qcow2 -b /rhev/data-center/000065de-04b8-42e2-986c-2de664708be7/11112d24-4cda-4200-8f6d-a1d8362c70fd/images/22224c45-6504-4ea1-bd24-12340017dd32/3333017d-1278-4bfb-8129-62bded257399
> /var/run/vdsm/3333017d-1278-4bfb-8129-62bded257399' (cwd
> /var/run/vdsm)

So here you're using paths under /rhev or /var/run/vdsm.

> 2013-08-10 11:19:41.770+0000: 1103: debug :
> virStorageFileGetMetadataRecurse:939 : path=/home/dpkshetty/libSM_disk/localstoragedomain/11112d24-4cda-4200-8f6d-a1d8362c70fd/images/22224c45-6504-4ea1-bd24-12340017dd32/3333017d-1278-4bfb-8129-62bded257399

This log suggests those paths are just symlinks into your home

What permissions are set on /home/dpkshetty ?  By default $HOME permissions
will not allow any other user to access files under it. So you would have
to do  'chmod o+x /home/dpkshetty' to make this work

|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]