Re: Virt-manager doesn't attach Sheepdog storage VDI disk correctly

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

 



So, I represented everything that I did before. I've got unsuccessful
results. The xml still almost the same as early.

https://github.com/sheepdog/sheepdog/wiki/Libvirt

This is a sheepdog maintainer's web site. There is a detailed
description of format for libvirtd. I have tested it before and it
works right.

Also look at output of commands, I 've got after the test was finished:

# virsh pool-list
 Name                 State      Autostart 
-------------------------------------------
 default              active     yes       
 LVM                  active     yes       
 sheepdog             active     yes       
 virt-manager         active     yes       

# virsh vol-list sheepdog
 Name                 Path                                    
-------------------------------------------
 dogtest2             dogtest2                                

# virsh vol-dumpxml dogtest2 sheepdog
<volume type='network'>
  <name>dogtest2</name>
  <key>sheepdog/dogtest2</key>
  <source>
  </source>
  <capacity unit='bytes'>8589934592</capacity>
  <allocation unit='bytes'>0</allocation>
  <target>
    <path>dogtest2</path>                 <--- the mistake is here
    <format type='unknown'/>
  </target>
</volume>

#

Thanks,
Dmitriy

On Mon, 10/08/2015 at 17:06 -0400, Cole Robinson wrote:
> On 08/10/2015 06:08 AM, Dmitriy Slachshyov wrote:
> > Cole,
> > 
> > I've repeated the adding process, running --debug flag.
> > Look at the attached file with debug messages.
> > 
> 
> Thanks for the info. Unfortunately I don't have a sheepdog setup so I 
> can't
> debug this easily at the moment. However I pushed a virt-manager 
> commit that
> will give more debugging info. Can you do the following:
> 
> git clone git://fedorahosted.org/virt-manager.git
> cd virt-manager
> ./virt-manager --debug
> 
> Reproduce the issue again: creating a volume in virt-manager, then 
> selecting
> it, and trying to continue the install.
> 
> Take all that info and the summary of your original mail and put it 
> in a bug
> report. https://virt-manager.org/bugs/
> 
> Also please provide 'virsh vol-dumpxml --pool $POOLNAME $VOLNAME' for 
> a
> correctly created sheepdog volume
> 
> Thanks,
> Cole
> 
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (cli:246) Launched with command line: ./virt-manager --debug
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (virt-manager:153) virt-manager version: 1.2.1
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (virt-manager:154) virtManager import: <module 'virtManager' from '/home/dimon/virt-manager/virtManager/__init__.pyc'>
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (virt-manager:213) GTK version: 3.16.6
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (engine:456) libguestfs inspection support: False
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (systray:150) Showing systray: True
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (engine:228) About to connect to uris ['qemu:///system']
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (manager:207) Showing manager
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (engine:357) window counter incremented to 1
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (connection:536) conn=qemu:///system changed to state=Connecting
[Tue, 11 Aug 2015 09:44:34 virt-manager 4106] DEBUG (connection:848) Scheduling background open thread for qemu:///system
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:897) libvirt version=1002017
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:899) daemon version=1002017
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:900) conn version=2003000
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:902) 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>

[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:757) Using domain events
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:771) Error registering domain device added event: virConnectDomainEventRegisterAny() failed
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:794) Using network events
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) network=empty-network status=Active added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) interface=lo status=Active added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) network=isolated-network status=Active added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) domain=sheep-node-02 status=Running added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) pool=default status=Active added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) domain=sheep-node-01 status=Running added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) pool=LVM status=Active added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:1005) pool=sheepdog status=Active added
[Tue, 11 Aug 2015 09:44:38 virt-manager 4106] DEBUG (connection:536) conn=qemu:///system changed to state=Active
[Tue, 11 Aug 2015 09:44:41 virt-manager 4106] DEBUG (host:238) Showing host details: <vmmConnection object at 0x7fe62e135e10 (virtManager+connection+vmmConnection at 0x2b7e580)>
[Tue, 11 Aug 2015 09:44:41 virt-manager 4106] DEBUG (engine:357) window counter incremented to 2
[Tue, 11 Aug 2015 09:44:46 virt-manager 4106] DEBUG (storagelist:653) Refresh pool 'sheepdog'
[Tue, 11 Aug 2015 09:44:51 virt-manager 4106] DEBUG (storagelist:729) Deleting volume 'dogtest1'
[Tue, 11 Aug 2015 09:44:54 virt-manager 4106] DEBUG (storagelist:699) Launching 'Add Volume' wizard for pool 'sheepdog'
[Tue, 11 Aug 2015 09:44:54 virt-manager 4106] DEBUG (createvol:74) Showing new volume wizard for parent_pool=
<pool type="sheepdog">
  <name>sheepdog</name>
  <uuid>7333590b-1dcc-46e2-9af6-09c9c96af70a</uuid>
  <capacity unit="bytes">19414155264</capacity>
  <allocation unit="bytes">25264128</allocation>
  <available unit="bytes">19388891136</available>
  <source>
    <host name="192.168.100.10"/>
    <name>sheepdog</name>
  </source>
</pool>

[Tue, 11 Aug 2015 09:45:03 virt-manager 4106] DEBUG (createvol:318) Starting backround vol creation.
[Tue, 11 Aug 2015 09:45:03 virt-manager 4106] DEBUG (storage:765) Creating storage volume 'dogtest2' with xml:
<volume>
  <name>dogtest2</name>
  <capacity>8589934592</capacity>
  <allocation>8589934592</allocation>
</volume>

[Tue, 11 Aug 2015 09:45:03 virt-manager 4106] DEBUG (storage:798) Using vol create flags=0
[Tue, 11 Aug 2015 09:45:04 virt-manager 4106] DEBUG (storage:834) Couldn't lookup storage volume in prog thread.
[Tue, 11 Aug 2015 09:45:04 virt-manager 4106] DEBUG (storage:805) Storage volume 'dogtest2' install complete.
[Tue, 11 Aug 2015 09:45:04 virt-manager 4106] DEBUG (createvol:320) vol creation complete.
[Tue, 11 Aug 2015 09:45:04 virt-manager 4106] DEBUG (createvol:80) Closing new volume wizard
[Tue, 11 Aug 2015 09:45:07 virt-manager 4106] DEBUG (host:250) Closing host details: <vmmConnection object at 0x7fe62e135e10 (virtManager+connection+vmmConnection at 0x2b7e580)>
[Tue, 11 Aug 2015 09:45:07 virt-manager 4106] DEBUG (engine:361) window counter decremented to 1
[Tue, 11 Aug 2015 09:45:11 virt-manager 4106] DEBUG (create:157) Showing new vm wizard
[Tue, 11 Aug 2015 09:45:11 virt-manager 4106] DEBUG (create:890) Guest type set to os_type=hvm, arch=x86_64, dom_type=kvm
[Tue, 11 Aug 2015 09:45:19 virt-manager 4106] DEBUG (storagebrowse:53) Showing storage browser
[Tue, 11 Aug 2015 09:45:23 virt-manager 4106] DEBUG (storagebrowse:138) Chosen volume XML:
<volume type="network">
  <name>dogtest2</name>
  <key>sheepdog/dogtest2</key>
  <source>
  </source>
  <capacity unit="bytes">8589934592</capacity>
  <allocation unit="bytes">0</allocation>
  <target>
    <path>dogtest2</path>
    <format type="unknown"/>
  </target>
</volume>

[Tue, 11 Aug 2015 09:45:23 virt-manager 4106] DEBUG (storagebrowse:66) Closing storage browser
[Tue, 11 Aug 2015 09:45:26 virt-manager 4106] DEBUG (guest:238) Setting Guest.os_variant to 'fedora22'
[Tue, 11 Aug 2015 09:45:26 virt-manager 4106] DEBUG (diskbackend:146) Attempting to build pool=virt-manager target=/home/dimon/virt-manager
[Tue, 11 Aug 2015 09:45:26 virt-manager 4106] DEBUG (storage:497) Creating storage pool 'virt-manager' with xml:
<pool type="dir">
  <name>virt-manager</name>
  <uuid>971c96ad-ae86-47f6-bbb5-8e9a781f301f</uuid>
  <target>
    <path>/home/dimon/virt-manager</path>
  </target>
</pool>

[Tue, 11 Aug 2015 09:45:26 virt-manager 4106] ERROR (error:142) Validation Error: Storage parameter error. Size must be specified for non existent volume 'dogtest2'
Traceback (most recent call last):
  File "/home/dimon/virt-manager/virtManager/addstorage.py", line 301, in validate_storage
    size, sparse, fmt=fmt or None)
  File "/home/dimon/virt-manager/virtinst/devicedisk.py", line 416, in build_vol_install
    "existent volume '%s'" % volname))
ValueError: Size must be specified for non existent volume 'dogtest2'
[Tue, 11 Aug 2015 09:45:26 virt-manager 4106] DEBUG (connection:1005) pool=virt-manager status=Active added
[Tue, 11 Aug 2015 09:45:28 virt-manager 4106] DEBUG (create:167) Closing new vm wizard
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (manager:218) Closing manager
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (engine:361) window counter decremented to 0
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (host:250) Closing host details: <vmmConnection object at 0x7fe62e135e10 (virtManager+connection+vmmConnection at 0x2b7e580)>
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (createvol:80) Closing new volume wizard
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (createvol:80) Closing new volume wizard
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (connection:810) conn.close() uri=qemu:///system
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (connection:536) conn=qemu:///system changed to state=Disconnected
[Tue, 11 Aug 2015 09:45:31 virt-manager 4106] DEBUG (engine:443) Exiting app normally.
_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux