Cole, I've repeated the adding process, running --debug flag. Look at the attached file with debug messages. On Sun, 09/08/2015 at 13:58 -0400, Cole Robinson wrote: > On 08/03/2015 04:58 AM, Dmitriy Slachshyov wrote: > > Hi, > > > > Recently, I 've installed libvirt (version 1.2.17) and sucessfully > > attached > > working sheepdog storage (version 0.9.2) as a pool. > > I use virt-manager 1.2.1 > > > > Everything looks fine. I can create and remove VDI disks in the > > storage pool > > without any errors. > > > > Everytime, when I try to connect my created VDI disk using virt > > -manager to any > > virtual machine, I see that my attached disk is not a disk from > > sheepdog > > storage. While connecting VDI storage disk, the disk creates on the > > local file > > system (newly created storage with full path $HOME/test). > > > > So, I can't attach real VDI disk from sheepdog storage to my > > virtual machine. > > > > As I see, this problem appears because the sheepdog's target path > > is NULL > > and/or xml-parsing isn't valid for sheepdog. > > > > The commands at bottom of message may help you! > > > > # virsh pool-list > > Name State Autostart > > ------------------------------------------- > > default active yes > > $MYUSER active yes # suddenly created > > storage pool > > while connecting sheeddog's VDI disk to. > > LVM active yes > > sheepdog active yes > > > > # virsh pool-dumpxml sheepdog > > <pool type='sheepdog'> > > <name>sheepdog</name> > > <uuid>7333590b-1dcc-46e2-9af6-09c9c96af70a</uuid> > > <capacity unit='bytes'>19414155264</capacity> > > <allocation unit='bytes'>25198592</allocation> > > <available unit='bytes'>19388956672</available> > > <source> > > <host name='192.168.100.10'/> > > <name>sheepdog</name> > > </source> > > </pool> > > > > # virsh vol-list sheepdog > > Name Path > > -------------------------------------------- > > test test > > > > # dog vdi list -a 192.168.100.10 > > Name Id Size Used Shared Creation time VDI id > > Copies Tag > > test 0 8.0 GB 0.0 MB 0.0 MB 2015-08-02 00:09 7c2b25 > > 2:2 > > > > > > Also look at the next issue: > > > > - <disk type='file' device='disk'> # It's automatically > > created by > > virt-manager > > + <disk type='network'> # I made it manually > > and it works > > <driver name='qemu' type='raw'/> > > - <source file='$HOME/test'/> > > + <source protocol="sheepdog" name="test"/> > > <target dev='hda' bus='ide'/> > > <address type='drive' controller='0' bus='0' target='0' > > unit='0'/> > > </disk> > > Thanks for the report. Please provide virt-manager --debug when > reproducing, > from app start to app shutdown > > - Cole >
[Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (cli:246) Launched with command line: /usr/share/virt-manager/virt-manager --debug [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (virt-manager:153) virt-manager version: 1.2.1 [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (virt-manager:154) virtManager import: <module 'virtManager' from '/usr/share/virt-manager/virtManager/__init__.pyc'> [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (virt-manager:213) GTK version: 3.16.6 [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (engine:456) libguestfs inspection support: False [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (systray:150) Showing systray: True [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (engine:228) About to connect to uris ['qemu:///system'] [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (manager:207) Showing manager [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (engine:357) window counter incremented to 1 [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (connection:536) conn=qemu:///system changed to state=Connecting [Mon, 10 Aug 2015 15:49:48 virt-manager 7278] DEBUG (connection:846) Scheduling background open thread for qemu:///system [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:895) libvirt version=1002017 [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:897) daemon version=1002017 [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:898) conn version=2003000 [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:900) qemu:///system capabilities: <capabilities> <host> <uuid>35434434-3339-345a-3139-8cdcd4876d85</uuid> <cpu> <arch>x86_64</arch> <model>Westmere</model> <vendor>Intel</vendor> <topology sockets="1" cores="2" threads="2"/> <feature name="invtsc"/> <feature name="invpcid"/> <feature name="erms"/> <feature name="bmi2"/> <feature name="smep"/> <feature name="avx2"/> <feature name="bmi1"/> <feature name="fsgsbase"/> <feature name="abm"/> <feature name="rdtscp"/> <feature name="pdpe1gb"/> <feature name="rdrand"/> <feature name="f16c"/> <feature name="avx"/> <feature name="osxsave"/> <feature name="xsave"/> <feature name="tsc-deadline"/> <feature name="movbe"/> <feature name="pcid"/> <feature name="pdcm"/> <feature name="xtpr"/> <feature name="fma"/> <feature name="tm2"/> <feature name="est"/> <feature name="vmx"/> <feature name="ds_cpl"/> <feature name="monitor"/> <feature name="dtes64"/> <feature name="pclmuldq"/> <feature name="pbe"/> <feature name="tm"/> <feature name="ht"/> <feature name="ss"/> <feature name="acpi"/> <feature name="ds"/> <feature name="vme"/> <pages unit="KiB" size="4"/> <pages unit="KiB" size="2048"/> </cpu> <power_management> <suspend_mem/> <suspend_disk/> <suspend_hybrid/> </power_management> <migration_features> <live/> <uri_transports> <uri_transport>tcp</uri_transport> <uri_transport>rdma</uri_transport> </uri_transports> </migration_features> <topology> <cells num="1"> <cell id="0"> <memory unit="KiB">8108772</memory> <pages unit="KiB" size="4">2027193</pages> <pages unit="KiB" size="2048">0</pages> <distances> <sibling id="0" value="10"/> </distances> <cpus num="4"> <cpu id="0" socket_id="0" core_id="0" siblings="0-1"/> <cpu id="1" socket_id="0" core_id="0" siblings="0-1"/> <cpu id="2" socket_id="0" core_id="1" siblings="2-3"/> <cpu id="3" socket_id="0" core_id="1" siblings="2-3"/> </cpus> </cell> </cells> </topology> <secmodel> <model>none</model> <doi>0</doi> </secmodel> <secmodel> <model>dac</model> <doi>0</doi> <baselabel type="kvm">+107:+107</baselabel> <baselabel type="qemu">+107:+107</baselabel> </secmodel> </host> <guest> <os_type>hvm</os_type> <arch name="i686"> <wordsize>32</wordsize> <emulator>/usr/bin/qemu-system-i386</emulator> <machine maxCpus="255">pc-i440fx-2.3</machine> <machine canonical="pc-i440fx-2.3" maxCpus="255">pc</machine> <machine maxCpus="255">pc-0.12</machine> <machine maxCpus="255">pc-1.3</machine> <machine maxCpus="255">pc-q35-1.6</machine> <machine maxCpus="255">pc-q35-1.5</machine> <machine maxCpus="255">pc-i440fx-1.6</machine> <machine maxCpus="255">pc-q35-2.2</machine> <machine maxCpus="1">xenpv</machine> <machine maxCpus="255">pc-i440fx-1.7</machine> <machine maxCpus="255">pc-q35-2.1</machine> <machine maxCpus="255">pc-0.11</machine> <machine maxCpus="255">pc-0.10</machine> <machine maxCpus="255">pc-1.2</machine> <machine maxCpus="255">pc-i440fx-2.2</machine> <machine maxCpus="1">isapc</machine> <machine maxCpus="255">pc-q35-1.4</machine> <machine maxCpus="128">xenfv</machine> <machine maxCpus="255">pc-0.15</machine> <machine maxCpus="255">pc-i440fx-1.5</machine> <machine maxCpus="255">pc-0.14</machine> <machine maxCpus="255">pc-i440fx-1.4</machine> <machine maxCpus="255">pc-q35-2.0</machine> <machine maxCpus="255">pc-1.1</machine> <machine maxCpus="255">pc-q35-1.7</machine> <machine maxCpus="255">pc-i440fx-2.1</machine> <machine maxCpus="255">pc-1.0</machine> <machine maxCpus="255">pc-i440fx-2.0</machine> <machine maxCpus="255">pc-q35-2.3</machine> <machine canonical="pc-q35-2.3" maxCpus="255">q35</machine> <machine maxCpus="255">pc-0.13</machine> <domain type="qemu"> <emulator>/usr/bin/qemu-system-i386</emulator> </domain> <domain type="kvm"> <emulator>/usr/bin/qemu-kvm</emulator> <machine maxCpus="255">pc-i440fx-2.3</machine> <machine canonical="pc-i440fx-2.3" maxCpus="255">pc</machine> <machine maxCpus="255">pc-1.3</machine> <machine maxCpus="255">pc-0.12</machine> <machine maxCpus="255">pc-q35-1.6</machine> <machine maxCpus="255">pc-q35-1.5</machine> <machine maxCpus="255">pc-i440fx-1.6</machine> <machine maxCpus="255">pc-q35-2.2</machine> <machine maxCpus="255">pc-i440fx-1.7</machine> <machine maxCpus="1">xenpv</machine> <machine maxCpus="255">pc-q35-2.1</machine> <machine maxCpus="255">pc-0.11</machine> <machine maxCpus="255">pc-0.10</machine> <machine maxCpus="255">pc-i440fx-2.2</machine> <machine maxCpus="255">pc-1.2</machine> <machine maxCpus="1">isapc</machine> <machine maxCpus="255">pc-q35-1.4</machine> <machine maxCpus="128">xenfv</machine> <machine maxCpus="255">pc-0.15</machine> <machine maxCpus="255">pc-i440fx-1.5</machine> <machine maxCpus="255">pc-i440fx-1.4</machine> <machine maxCpus="255">pc-q35-2.0</machine> <machine maxCpus="255">pc-0.14</machine> <machine maxCpus="255">pc-1.1</machine> <machine maxCpus="255">pc-q35-1.7</machine> <machine maxCpus="255">pc-i440fx-2.1</machine> <machine maxCpus="255">pc-1.0</machine> <machine maxCpus="255">pc-i440fx-2.0</machine> <machine maxCpus="255">pc-q35-2.3</machine> <machine canonical="pc-q35-2.3" maxCpus="255">q35</machine> <machine maxCpus="255">pc-0.13</machine> </domain> </arch> <features> <cpuselection/> <deviceboot/> <disksnapshot default="on" toggle="no"/> <acpi default="on" toggle="yes"/> <apic default="on" toggle="no"/> <pae/> <nonpae/> </features> </guest> <guest> <os_type>hvm</os_type> <arch name="x86_64"> <wordsize>64</wordsize> <emulator>/usr/bin/qemu-system-x86_64</emulator> <machine maxCpus="255">pc-i440fx-2.3</machine> <machine canonical="pc-i440fx-2.3" maxCpus="255">pc</machine> <machine maxCpus="255">pc-1.3</machine> <machine maxCpus="255">pc-0.12</machine> <machine maxCpus="255">pc-q35-1.6</machine> <machine maxCpus="255">pc-q35-1.5</machine> <machine maxCpus="255">pc-i440fx-1.6</machine> <machine maxCpus="255">pc-q35-2.2</machine> <machine maxCpus="255">pc-i440fx-1.7</machine> <machine maxCpus="1">xenpv</machine> <machine maxCpus="255">pc-q35-2.1</machine> <machine maxCpus="255">pc-0.11</machine> <machine maxCpus="255">pc-0.10</machine> <machine maxCpus="255">pc-i440fx-2.2</machine> <machine maxCpus="255">pc-1.2</machine> <machine maxCpus="1">isapc</machine> <machine maxCpus="255">pc-q35-1.4</machine> <machine maxCpus="128">xenfv</machine> <machine maxCpus="255">pc-0.15</machine> <machine maxCpus="255">pc-i440fx-1.5</machine> <machine maxCpus="255">pc-i440fx-1.4</machine> <machine maxCpus="255">pc-q35-2.0</machine> <machine maxCpus="255">pc-0.14</machine> <machine maxCpus="255">pc-1.1</machine> <machine maxCpus="255">pc-q35-1.7</machine> <machine maxCpus="255">pc-i440fx-2.1</machine> <machine maxCpus="255">pc-1.0</machine> <machine maxCpus="255">pc-i440fx-2.0</machine> <machine maxCpus="255">pc-q35-2.3</machine> <machine canonical="pc-q35-2.3" maxCpus="255">q35</machine> <machine maxCpus="255">pc-0.13</machine> <domain type="qemu"> <emulator>/usr/bin/qemu-system-x86_64</emulator> </domain> <domain type="kvm"> <emulator>/usr/bin/qemu-kvm</emulator> <machine maxCpus="255">pc-i440fx-2.3</machine> <machine canonical="pc-i440fx-2.3" maxCpus="255">pc</machine> <machine maxCpus="255">pc-1.3</machine> <machine maxCpus="255">pc-0.12</machine> <machine maxCpus="255">pc-q35-1.6</machine> <machine maxCpus="255">pc-q35-1.5</machine> <machine maxCpus="255">pc-i440fx-1.6</machine> <machine maxCpus="255">pc-q35-2.2</machine> <machine maxCpus="255">pc-i440fx-1.7</machine> <machine maxCpus="1">xenpv</machine> <machine maxCpus="255">pc-q35-2.1</machine> <machine maxCpus="255">pc-0.11</machine> <machine maxCpus="255">pc-0.10</machine> <machine maxCpus="255">pc-i440fx-2.2</machine> <machine maxCpus="255">pc-1.2</machine> <machine maxCpus="1">isapc</machine> <machine maxCpus="255">pc-q35-1.4</machine> <machine maxCpus="128">xenfv</machine> <machine maxCpus="255">pc-0.15</machine> <machine maxCpus="255">pc-i440fx-1.5</machine> <machine maxCpus="255">pc-i440fx-1.4</machine> <machine maxCpus="255">pc-q35-2.0</machine> <machine maxCpus="255">pc-0.14</machine> <machine maxCpus="255">pc-1.1</machine> <machine maxCpus="255">pc-q35-1.7</machine> <machine maxCpus="255">pc-i440fx-2.1</machine> <machine maxCpus="255">pc-1.0</machine> <machine maxCpus="255">pc-i440fx-2.0</machine> <machine maxCpus="255">pc-q35-2.3</machine> <machine canonical="pc-q35-2.3" maxCpus="255">q35</machine> <machine maxCpus="255">pc-0.13</machine> </domain> </arch> <features> <cpuselection/> <deviceboot/> <disksnapshot default="on" toggle="no"/> <acpi default="on" toggle="yes"/> <apic default="on" toggle="no"/> </features> </guest> </capabilities> [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:755) Using domain events [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:769) Error registering domain device added event: virConnectDomainEventRegisterAny() failed [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:792) Using network events [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) network=empty-network status=Active added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) network=isolated-network status=Active added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) interface=lo status=Active added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) domain=sheep-node-02 status=Running added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) pool=default status=Active added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) domain=sheep-node-01 status=Running added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) pool=LVM status=Active added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:1003) pool=sheepdog status=Active added [Mon, 10 Aug 2015 15:49:52 virt-manager 7278] DEBUG (connection:536) conn=qemu:///system changed to state=Active [Mon, 10 Aug 2015 15:49:58 virt-manager 7278] DEBUG (host:238) Showing host details: <vmmConnection object at 0x7fa1662556e0 (virtManager+connection+vmmConnection at 0x2c0a0a0)> [Mon, 10 Aug 2015 15:49:58 virt-manager 7278] DEBUG (engine:357) window counter incremented to 2 [Mon, 10 Aug 2015 15:50:02 virt-manager 7278] DEBUG (storagelist:653) Refresh pool 'sheepdog' [Mon, 10 Aug 2015 15:50:28 virt-manager 7278] DEBUG (host:250) Closing host details: <vmmConnection object at 0x7fa1662556e0 (virtManager+connection+vmmConnection at 0x2c0a0a0)> [Mon, 10 Aug 2015 15:50:28 virt-manager 7278] DEBUG (engine:361) window counter decremented to 1 [Mon, 10 Aug 2015 15:50:32 virt-manager 7278] DEBUG (create:157) Showing new vm wizard [Mon, 10 Aug 2015 15:50:32 virt-manager 7278] DEBUG (create:889) Guest type set to os_type=hvm, arch=x86_64, dom_type=kvm [Mon, 10 Aug 2015 15:51:02 virt-manager 7278] DEBUG (storagebrowse:53) Showing storage browser [Mon, 10 Aug 2015 15:51:11 virt-manager 7278] DEBUG (storagelist:699) Launching 'Add Volume' wizard for pool 'sheepdog' [Mon, 10 Aug 2015 15:51:11 virt-manager 7278] DEBUG (createvol:67) Showing new volume wizard [Mon, 10 Aug 2015 15:51:27 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 15:51:31 virt-manager 7278] DEBUG (storagelist:653) Refresh pool 'sheepdog' [Mon, 10 Aug 2015 15:51:36 virt-manager 7278] DEBUG (storagelist:699) Launching 'Add Volume' wizard for pool 'sheepdog' [Mon, 10 Aug 2015 15:51:36 virt-manager 7278] DEBUG (createvol:67) Showing new volume wizard [Mon, 10 Aug 2015 15:51:45 virt-manager 7278] DEBUG (createvol:311) Starting backround vol creation. [Mon, 10 Aug 2015 15:51:45 virt-manager 7278] DEBUG (storage:765) Creating storage volume 'dogtest' with xml: <volume> <name>dogtest</name> <capacity>8589934592</capacity> <allocation>0</allocation> </volume> [Mon, 10 Aug 2015 15:51:45 virt-manager 7278] DEBUG (storage:798) Using vol create flags=0 [Mon, 10 Aug 2015 15:51:45 virt-manager 7278] DEBUG (storage:834) Couldn't lookup storage volume in prog thread. [Mon, 10 Aug 2015 15:51:45 virt-manager 7278] DEBUG (storage:805) Storage volume 'dogtest' install complete. [Mon, 10 Aug 2015 15:51:45 virt-manager 7278] DEBUG (createvol:313) vol creation complete. [Mon, 10 Aug 2015 15:51:46 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 15:51:59 virt-manager 7278] DEBUG (storagelist:653) Refresh pool 'sheepdog' [Mon, 10 Aug 2015 15:52:07 virt-manager 7278] DEBUG (storagebrowse:66) Closing storage browser [Mon, 10 Aug 2015 15:52:07 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 15:52:15 virt-manager 7278] DEBUG (guest:235) Setting Guest.os_variant to 'fedora22' [Mon, 10 Aug 2015 15:52:15 virt-manager 7278] DEBUG (diskbackend:146) Attempting to build pool=dimon target=/home/dimon [Mon, 10 Aug 2015 15:52:15 virt-manager 7278] DEBUG (storage:497) Creating storage pool 'dimon' with xml: <pool type="dir"> <name>dimon</name> <uuid>c7be60b9-2548-4006-a7be-316f306b8014</uuid> <target> <path>/home/dimon</path> </target> </pool> [Mon, 10 Aug 2015 15:52:15 virt-manager 7278] ERROR (error:140) Validation Error: Storage parameter error. Size must be specified for non existent volume 'dogtest' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/addstorage.py", line 332, in validate_storage size, sparse, fmt=fmt or None) File "/usr/share/virt-manager/virtinst/devicedisk.py", line 418, in build_vol_install "existent volume '%s'" % volname)) ValueError: Size must be specified for non existent volume 'dogtest' [Mon, 10 Aug 2015 15:52:16 virt-manager 7278] DEBUG (connection:1003) pool=dimon status=Active added [Mon, 10 Aug 2015 15:58:27 virt-manager 7278] DEBUG (create:167) Closing new vm wizard [Mon, 10 Aug 2015 15:58:27 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 15:58:40 virt-manager 7278] DEBUG (host:238) Showing host details: <vmmConnection object at 0x7fa1662556e0 (virtManager+connection+vmmConnection at 0x2c0a0a0)> [Mon, 10 Aug 2015 15:58:40 virt-manager 7278] DEBUG (engine:357) window counter incremented to 2 [Mon, 10 Aug 2015 15:58:43 virt-manager 7278] DEBUG (storagelist:653) Refresh pool 'dimon' [Mon, 10 Aug 2015 16:00:09 virt-manager 7278] DEBUG (host:238) Showing host details: <vmmConnection object at 0x7fa1662556e0 (virtManager+connection+vmmConnection at 0x2c0a0a0)> [Mon, 10 Aug 2015 16:00:16 virt-manager 7278] DEBUG (host:250) Closing host details: <vmmConnection object at 0x7fa1662556e0 (virtManager+connection+vmmConnection at 0x2c0a0a0)> [Mon, 10 Aug 2015 16:00:16 virt-manager 7278] DEBUG (engine:361) window counter decremented to 1 [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (manager:218) Closing manager [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (engine:361) window counter decremented to 0 [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (createvol:73) Closing new volume wizard [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (host:250) Closing host details: <vmmConnection object at 0x7fa1662556e0 (virtManager+connection+vmmConnection at 0x2c0a0a0)> [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (connection:808) conn.close() uri=qemu:///system [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (connection:536) conn=qemu:///system changed to state=Disconnected [Mon, 10 Aug 2015 16:00:21 virt-manager 7278] DEBUG (engine:443) Exiting app normally.
_______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list