Thanks! Pushed now commit e44b95149bdfe83d49b1b6026969fc7304eb1761 Author: Anatoly Belikov <wormblood@xxxxxxxxx> Date: Tue Jan 27 16:10:12 2015 +0300 devicedisk: fix source name attribute for gluster volumes - Cole On 01/29/2015 11:19 AM, Anatoly Belikov wrote: > Ok, here it is. > > 2015-01-29 18:26 GMT+03:00 Cole Robinson <crobinso@xxxxxxxxxx > <mailto:crobinso@xxxxxxxxxx>>: > > Ah okay, that pool output explains things, I didn't realize there could be a > dir path that's more than just '/' > > Can you provide an example volume XML from that pool as well? With that I will > apply your patch and make sure the test suite covers this case. > > Thanks, > Cole > > On 01/28/2015 03:59 AM, Anatoly Belikov wrote: > > I got this error when i made few subdirectories in gluster volume, and changed > > <dir path /> in libvirt pool xml accordingly. > > Here is command line and debug output in attached file: > > python /usr/share/virt-manager/virt-install --name=vm3vv --disk > > vol=gluster-pool/vm3vv.qcow2,bus=ide,cache=none --ram=1024 --vcpus=1 > > --cdrom=/var/glusterfs/vm_images_and_config/iso/msvs3_12.2.iso --debug > > --network=bridge:br0,model=virtio --noautoconsole >> virtinstall.log 2>&1 > > > > gluster-pool.xml is pool definition from /etc/libvirt/storage > > > > 2015-01-27 21:52 GMT+03:00 Cole Robinson <crobinso@xxxxxxxxxx <mailto:crobinso@xxxxxxxxxx> > > <mailto:crobinso@xxxxxxxxxx <mailto:crobinso@xxxxxxxxxx>>>: > > > > On 01/27/2015 08:10 AM, Anatoly.Belikov.wormblood@xxxxxxxxx > <mailto:Anatoly.Belikov.wormblood@xxxxxxxxx> > > <mailto:Anatoly.Belikov.wormblood@xxxxxxxxx > <mailto:Anatoly.Belikov.wormblood@xxxxxxxxx>> wrote: > > > From: Anatoly Belikov <wormblood@xxxxxxxxx > <mailto:wormblood@xxxxxxxxx> <mailto:wormblood@xxxxxxxxx > <mailto:wormblood@xxxxxxxxx>>> > > > > > > --- > > > virtinst/devicedisk.py | 6 +++++- > > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > > > diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py > > > index ac03716..df2befc 100644 > > > --- a/virtinst/devicedisk.py > > > +++ b/virtinst/devicedisk.py > > > @@ -627,7 +627,11 @@ class VirtualDisk(VirtualDevice): > > > > > > path = "" > > > if poolxml.source_name: > > > - path += poolxml.source_name + "/" > > > + path += poolxml.source_name > > > + if poolxml.type == poolxml.TYPE_GLUSTER: > > > + path += poolxml.source_path > > > + if not path.endswith('/'): > > > + path += "/" > > > path += volxml.name <http://volxml.name> <http://volxml.name> > > > self.source_name = path > > > self.type = "network" > > > > > > > Thanks for the patch. Can you describe how to reproduce this issue? If via > > virt-install, please provide the full command line and debug output, since I'd > > like to add a test case that covers this > > > > Thanks, > > Cole > > > > _______________________________________________ > > virt-tools-list mailing list > > virt-tools-list@xxxxxxxxxx <mailto:virt-tools-list@xxxxxxxxxx> > <mailto:virt-tools-list@xxxxxxxxxx <mailto:virt-tools-list@xxxxxxxxxx>> > > https://www.redhat.com/mailman/listinfo/virt-tools-list > > > > > > > > > > -- > > С уважением > > А. Беликов > > > > > -- > С уважением > А. Беликов _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list