Nova-compute is not running using devstack

asked 2015-10-09 00:41:43 -0500

sahil gravatar image

updated 2015-10-09 01:14:38 -0500

dbaxps gravatar image

The nova-compute service is not running currently on the system hence the availability zones are not being shown . Below are the error logs when I try to run it manually :

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 457, in fire_timers
    timer()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__
    cb(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 168, in _do_send
    waiter.switch(result)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
    result = function(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo_service/service.py", line 645, in run_service
    service.start()
  File "/opt/stack/nova/nova/service.py", line 164, in start
    self.manager.init_host()
  File "/opt/stack/nova/nova/compute/manager.py", line 1297, in init_host
    self.driver.init_host(host=self.host)
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 562, in init_host
    self._do_quality_warnings()
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 540, in _do_quality_warnings
    caps = self._host.get_capabilities()
  File "/opt/stack/nova/nova/virt/libvirt/host.py", line 773, in get_capabilities
    libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 183, in doit
    result = proxy_call(self._autowrap, f, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 141, in proxy_call
    rv = execute(f, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 122, in execute
    six.reraise(c, e, tb)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 80, in tworker
    rv = meth(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/libvirt.py", line 3153, in baselineCPU
    if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self)
libvirtError: XML error: Missing CPU model name

output of kvm-ok and version of libvirtd

stack@ubuntu:~/devstack$ sudo /usr/sbin/kvm-ok

INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used
stack@ubuntu:~/devstack$ libvirtd –version
libvirtd (libvirt) 1.2.2

output of /proc/cpuinfo

stack@ubuntu:~/devstack$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : QEMU Virtual CPU version (cpu64-rhel6)
stepping        : 3
microcode       : 0x1
cpu MHz         : 1799.999
cache size      : 4096 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 4
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall lm nopl pni cx16 hypervisor lahf_lm
bugs            :
bogomips        : 3599.99
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : QEMU Virtual CPU version (cpu64-rhel6)
stepping        : 3
microcode       : 0x1
cpu MHz         : 1799.999
cache size      : 4096 KB
physical id     : 1
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2015-10-09 01:21:55 -0500

dbaxps gravatar image

updated 2015-10-09 07:47:51 -0500

UPDATE
Create Ubuntu 14.04.3 VM at KVM/Libvirt Hypervisor on Fedora 22
Enabled Nested KVM and restarted VM
Checked out stable/liberty branch

$ cd dev*
$ git checkout -b liberty origin/stable/liberty
    local.conf
    [[local|localrc]]
    HOST_IP=192.169.142.47
    ADMIN_PASSWORD=secret
    MYSQL_PASSWORD=secret
    RABBIT_PASSWORD=secret
    SERVICE_PASSWORD=secret
    FLOATING_RANGE=192.168.12.0/24
    FLAT_INTERFACE=eth0
    Q_FLOATING_ALLOCATION_POOL=start=192.168.12.150,end=192.168.12.254
    PUBLIC_NETWORK_GATEWAY=192.168.12.15
    SERVICE_TOKEN=super-secret-admin-token
    DEST=/opt/stack
    SERVICE_DIR=$DEST/status
    DATA_DIR=$DEST/data
    LOGFILE=$DEST/logs/stack.sh.log
    LOGDIR=$DEST/logs

./stack.sh completed OK

    Generated section [libvirt]  in nova.conf
    [libvirt]
    inject_partition = -2
    live_migration_uri = qemu+ssh://boris@%s/system
    use_usb_tablet = False
    cpu_mode = none
    virt_type = kvm

Liberty AIO instance completely functional on Ubuntu 14.04.3 VM
END UPDATE
1. If your CPU supports VT-X, then enable VT-X in board's BIOS.
2. Attempt in nova.conf

[libvirt]
virt_type = qemu <== in case you would be unable enable KVM
cpu_mode="none"

Per http://docs.openstack.org/juno/config...

If virt_type="kvm|qemu", it will default to "host-model", otherwise it will default to "none"
edit flag offensive delete link more

Comments

Thanks for your reply ,have already changed virt_type to qemu and sorry i forgot to mention i used the Virtual Machine to setup the openstack using devstack ...so no success till now

sahil gravatar imagesahil ( 2015-10-09 01:26:04 -0500 )edit

Thanks dbaxps,That Solves my problem :)

sahil gravatar imagesahil ( 2015-10-09 07:54:47 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-10-09 00:41:43 -0500

Seen: 951 times

Last updated: Oct 09 '15