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
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>:
Thanks for the patch. Can you describe how to reproduce this issue? If viaOn 01/27/2015 08:10 AM, Anatoly.Belikov.wormblood@xxxxxxxxx wrote:
> From: Anatoly Belikov <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
> self.source_name = path
> self.type = "network"
>
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
https://www.redhat.com/mailman/listinfo/virt-tools-list
--
С уважением
А. Беликов
А. Беликов
[Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (cli:213) Launched with command line: /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 [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (cli:223) Requesting libvirt URI default [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (cli:227) Received libvirt URI qemu:///system [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (virt-install:349) Requesting virt method 'default', hv type 'default'. [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (virt-install:586) Received virt method 'kvm' [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (virt-install:587) Hypervisor name is 'hvm' [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (virt-install:261) Distilled --network options: ['bridge=br0,model=virtio'] [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (virt-install:177) Distilled --disk options: ['vol=gluster-pool/vm3vv.qcow2,bus=ide,cache=none'] [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (cli:1572) Parsed volume: as pool='gluster-pool' vol='vm3vv.qcow2' [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (distroinstaller:509) installer.detect_distro returned=None [Срд, 28 Янв 2015 12:36:03 virt-install 13879] DEBUG (guest:221) Setting Guest.os_variant to 'None' [Срд, 28 Янв 2015 12:36:04 virt-install 13879] WARNING (virt-install:548) No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results. [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (virt-install:722) Guest.has_install_phase: True [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (guest:972) Using default_graphics=spice [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (guest:972) Using default_graphics=spice [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (guest:457) Generated install XML: <domain type="kvm"> <name>vm3vv</name> <uuid>cab3d1eb-5113-42da-b620-58069d0c77da</uuid> <memory>1048576</memory> <currentMemory>1048576</currentMemory> <vcpu>1</vcpu> <os> <type arch="x86_64">hvm</type> <boot dev="cdrom"/> <boot dev="hd"/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode="custom" match="exact"> <model>SandyBridge</model> </cpu> <clock offset="utc"> <timer name="rtc" tickpolicy="catchup"/> <timer name="pit" tickpolicy="delay"/> <timer name="hpet" present="no"/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>destroy</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type="network" device="disk"> <driver name="qemu" type="qcow2" cache="none"/> <source protocol="gluster" name="vm_storage_volume/vm3vv.qcow2"> <host name="aldserver2"/> </source> <target dev="hda" bus="ide"/> </disk> <disk type="file" device="cdrom"> <driver name="qemu" type="raw"/> <source file="/var/glusterfs/vm_images_and_config/iso/msvs3_12.2.iso"/> <target dev="hdb" bus="ide"/> <readonly/> </disk> <controller type="usb" index="0" model="ich9-ehci1"/> <controller type="usb" index="0" model="ich9-uhci1"> <master startport="0"/> </controller> <controller type="usb" index="0" model="ich9-uhci2"> <master startport="2"/> </controller> <controller type="usb" index="0" model="ich9-uhci3"> <master startport="4"/> </controller> <interface type="bridge"> <source bridge="br0"/> <mac address="52:54:00:15:2a:bc"/> <model type="virtio"/> </interface> <input type="mouse" bus="ps2"/> <graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/> <console type="pty"/> <channel type="spicevmc"> <target type="virtio" name="com.redhat.spice.0"/> </channel> <sound model="ich6"/> <video> <model type="qxl"/> </video> <redirdev bus="usb" type="spicevmc"/> <redirdev bus="usb" type="spicevmc"/> </devices> </domain> [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (guest:458) Generated boot XML: <domain type="kvm"> <name>vm3vv</name> <uuid>cab3d1eb-5113-42da-b620-58069d0c77da</uuid> <memory>1048576</memory> <currentMemory>1048576</currentMemory> <vcpu>1</vcpu> <os> <type arch="x86_64">hvm</type> <boot dev="hd"/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode="custom" match="exact"> <model>SandyBridge</model> </cpu> <clock offset="utc"> <timer name="rtc" tickpolicy="catchup"/> <timer name="pit" tickpolicy="delay"/> <timer name="hpet" present="no"/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type="network" device="disk"> <driver name="qemu" type="qcow2" cache="none"/> <source protocol="gluster" name="vm_storage_volume/vm3vv.qcow2"> <host name="aldserver2"/> </source> <target dev="hda" bus="ide"/> </disk> <disk type="block" device="cdrom"> <target dev="hdb" bus="ide"/> <readonly/> </disk> <controller type="usb" index="0" model="ich9-ehci1"/> <controller type="usb" index="0" model="ich9-uhci1"> <master startport="0"/> </controller> <controller type="usb" index="0" model="ich9-uhci2"> <master startport="2"/> </controller> <controller type="usb" index="0" model="ich9-uhci3"> <master startport="4"/> </controller> <interface type="bridge"> <source bridge="br0"/> <mac address="52:54:00:15:2a:bc"/> <model type="virtio"/> </interface> <input type="mouse" bus="ps2"/> <graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/> <console type="pty"/> <channel type="spicevmc"> <target type="virtio" name="com.redhat.spice.0"/> </channel> <sound model="ich6"/> <video> <model type="qxl"/> </video> <redirdev bus="usb" type="spicevmc"/> <redirdev bus="usb" type="spicevmc"/> </devices> </domain> [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (cli:262) File "/usr/share/virt-manager/virt-install", line 1065, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-install", line 1059, in main start_install(guest, continue_inst, options) File "/usr/share/virt-manager/virt-install", line 759, in start_install fail(e, do_exit=False) File "/usr/share/virt-manager/virtinst/cli.py", line 262, in fail logging.debug("".join(traceback.format_stack())) [Срд, 28 Янв 2015 12:36:04 virt-install 13879] ERROR (cli:263) Cannot access storage file '/vm3vv.qcow2' (as uid:0, gid:0): Нет такого файла или каталога [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (cli:265) Traceback (most recent call last): File "/usr/share/virt-manager/virt-install", line 731, in start_install dom = guest.start_install(meter=meter, noboot=options.noreboot) File "/usr/share/virt-manager/virtinst/guest.py", line 411, in start_install noboot) File "/usr/share/virt-manager/virtinst/guest.py", line 475, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3263, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: Cannot access storage file '/vm3vv.qcow2' (as uid:0, gid:0): Нет такого файла или каталога [Срд, 28 Янв 2015 12:36:04 virt-install 13879] DEBUG (cli:276) Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start vm3vv otherwise, please restart your installation. Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start vm3vv otherwise, please restart your installation. Starting install...
<!-- WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: virsh pool-edit gluster-pool or other application using the libvirt API. --> <pool type='gluster'> <name>gluster-pool</name> <uuid>af387f03-61d3-bce7-b46c-d540dee1d200</uuid> <capacity unit='bytes'>0</capacity> <allocation unit='bytes'>0</allocation> <available unit='bytes'>0</available> <source> <host name='aldserver2'/> <dir path='/vm_images_and_config/images'/> <name>vm_storage_volume</name> </source> </pool>
_______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list