Problem when suspend instances

asked 2015-02-17 09:39:18 -0500

XicoLoco gravatar image

in Icehouse on Debian, everything is working fine, then when i suspend a instance from ADMIN he seems suspended. But when i resume i got erros:

But when i try to root@compute1:~# nova resume teste

i got this error .... on logs

root@compute1:~# tail -f /var/log/nova/nova-compute.log

2015-02-17 05:06:57.871 3135 ERROR nova.virt.libvirt.driver [req-a576f0f1-1f6c-4fd9-a34a-d282ef5eeb19 0192593d6a134a8797f7c1ee1d7c645f a65a939c8d5d49d8bbaf643027d6938a] An error occurred while trying to launch a defined domain with xml: <domain type='kvm'>
  <name>instance-00000014</name>
  <uuid>de3b091d-ecbe-4bdd-b84c-1b70675d9259</uuid>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
    <sysinfo type='smbios'>
      <system>
        <entry name='manufacturer'>OpenStack Foundation</entry>
        <entry name='product'>OpenStack Nova</entry>
        <entry name='version'>2014.1.2</entry>
        <entry name='serial'>523f479a-1742-11e1-98e3-5cf3fcb85330</entry>
        <entry name='uuid'>de3b091d-ecbe-4bdd-b84c-1b70675d9259</entry>
      </system>
    </sysinfo>
  <os>
    <type arch='x86_64' machine='pc-i440fx-1.7'>hvm</type>
    <boot dev='hd'/>
    <smbios mode='sysinfo'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
  </cpu>
  <clock offset='utc'>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='rtc' tickpolicy='catchup'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/de3b091d-ecbe-4bdd-b84c-1b70675d9259/disk'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='fa:16:3e:09:7a:75'/>
      <source bridge='qbrac8b0d81-1b'/>
      <target dev='tapac8b0d81-1b'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='file'>
      <source path='/var/lib/nova/instances/de3b091d-ecbe-4bdd-b84c-1b70675d9259/console.log'/>
      <target port='0'/>
    </serial>
    <serial type='pty'>
      <target port='1'/>
    </serial>
    <console type='file'>
      <source path='/var/lib/nova/instances/de3b091d-ecbe-4bdd-b84c-1b70675d9259/console.log'/>
      <target type='serial' port='0'/>
    </console>
    <channel type='pty'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <graphics type='spice' autoport='yes' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </memballoon>
  </devices>
</domain>

2015-02-17 05:06:58.141 3135 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: unsupported configuration: host doesn't support invariant TSC
2015-02-17 05:06:58.141 3135 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-02-17 05 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-02-17 12:15:14 -0500

Hi XicoLoco, I think you are trying to host a KVM box instead of qemu. once go through this http://docs.openstack.org/juno/install-guide/install/apt/content/ch_nova.html (link text) From the guide: If you install Compute on a virtual machine for testing purposes, you must determine whether your hypervisor and/or CPU support nested hardware acceleration using the following command:

egrep  -c '(vmx|svm)' /proc/cpuinfo

If this command returns a value of one or greater, your hypervisor and/or CPU support nested hardware acceleration which requires no additional configuration.

If this command returns a value of zero, your hypervisor and/or CPU do not support nested hardware acceleration and libvirt must use QEMU instead of KVM. Edit the [libvirt] section in the /etc/nova/nova-compute.conf file to modify this key:

[libvirt]
... 
virt_type = qemu
edit flag offensive delete link more

Comments

tk you for answer but i have tested the host before :

root@compute1:~# egrep -c '(vmx|svm)' /proc/cpuinfo 
24

the cloud is working the only thing is on suspend and resume action ... any other idea

XicoLoco gravatar imageXicoLoco ( 2015-02-17 13:14:45 -0500 )edit
0

answered 2015-02-18 03:48:18 -0500

Hey XicoLoco, from the error message above, I doubt on this line

unsupported configuration: host doesn't support invariant TSC to caller

The Time Stamp Counter (TSC) is a 64-bit register present on all x86 processors since the Pentium. It counts the number of cycles since reset. (source: wiki)

  1. Check whether /proc/cpuinfo talks about TSC
  2. I believe TSC falg is disabled on your host, check whether, is there any way to enable TSC
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-02-17 09:39:18 -0500

Seen: 1,299 times

Last updated: Feb 18 '15