[Openstack] failure doing snapshot: State blocked by non-migratable device 'cpu'

Don Waterloo don.waterloo at gmail.com
Tue Oct 28 01:24:12 UTC 2014


juno, ubunto 14.10, kvm.
When i do 'nova image-create server snapshot', I am getting no error,
but no snapshot.
Looking in the api logs, i see an immediate create/delete operation.
Looking in the compute logs, i see this error:

libvirtError: internal error: unable to execute QEMU command
'migrate': State blocked by non-migratable device 'cpu'

The virsh dumpxml domain shows as below (I'm not aware of setting
anything that would affect this so it should be from defaults).

Does anyone have any suggestion for where to look for 'non-migratable
device cpu', and how to tell what is blocking migration?

Also, where is it migrating? this is to put it to sleep to snap it?

<domain type='kvm' id='132'>
  <name>instance-000011d2</name>
  <uuid>7e154f2c-1d58-4081-a8ea-775f3c28faba</uuid>
  <metadata>
    <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0">
      <nova:package version="2014.2"/>
      <nova:name>c</nova:name>
      <nova:creationTime>2014-10-27 21:29:29</nova:creationTime>
      <nova:flavor name="m1.5G">
        <nova:memory>1024</nova:memory>
        <nova:disk>5</nova:disk>
        <nova:swap>0</nova:swap>
        <nova:ephemeral>0</nova:ephemeral>
        <nova:vcpus>1</nova:vcpus>
      </nova:flavor>
      <nova:owner>
        <nova:user uuid="dcec599e9fc9467fad91ce953ec7f1bd">don</nova:user>
        <nova:project uuid="4c4f696dbb054c24b30b32562ba624f2">don</nova:project>
      </nova:owner>
      <nova:root type="image" uuid="3943715d-f838-4d09-b861-eed286151f69"/>
    </nova:instance>
  </metadata>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static' cpuset='0,2,4,6,8,10,12,14,16,18,20,22'>1</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
    <sysinfo type='smbios'>
      <system>
        <entry name='manufacturer'>OpenStack Foundation</entry>
        <entry name='product'>OpenStack Nova</entry>
        <entry name='version'>2014.2</entry>
        <entry name='serial'>e9029c35-121d-6b4a-690e-7fe353ee8734</entry>
        <entry name='uuid'>7e154f2c-1d58-4081-a8ea-775f3c28faba</entry>
      </system>
    </sysinfo>
  <os>
    <type arch='x86_64' machine='pc-i440fx-utopic'>hvm</type>
    <boot dev='hd'/>
    <smbios mode='sysinfo'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-model'>
    <model fallback='allow'/>
    <topology sockets='1' cores='1' threads='1'/>
  </cpu>
  <clock offset='utc'>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm-spice</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/7e154f2c-1d58-4081-a8ea-775f3c28faba/disk'/>
      <backingStore type='file' index='1'>
        <format type='raw'/>
        <source
file='/var/lib/nova/instances/_base/4f4d8c1855912e6480d6b965ebd9b8b14154c29d'/>
        <backingStore/>
      </backingStore>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/var/lib/nova/instances/7e154f2c-1d58-4081-a8ea-775f3c28faba/disk.config'/>
      <backingStore/>
      <target dev='hdd' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-1'/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='fa:16:3e:3c:3e:ae'/>
      <source bridge='qbr8c1c1ddd-05'/>
      <target dev='tap8c1c1ddd-05'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
    </interface>
    <serial type='file'>
      <source path='/var/lib/nova/instances/7e154f2c-1d58-4081-a8ea-775f3c28faba/console.log'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <serial type='pty'>
      <source path='/dev/pts/26'/>
      <target port='1'/>
      <alias name='serial1'/>
    </serial>
    <console type='file'>
      <source path='/var/lib/nova/instances/7e154f2c-1d58-4081-a8ea-775f3c28faba/console.log'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5921' autoport='yes' listen='0.0.0.0'
keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
      <stats period='10'/>
    </memballoon>
  </devices>
</domain>




More information about the Openstack mailing list