shiftrepo / OperationBreakingDawn

The Unlicense
0 stars 0 forks source link

novaのエラー対処 #43

Open MITLabo opened 5 years ago

MITLabo commented 5 years ago

Describe the bug 2019-02-23 21:52:45.635 54765 ERROR oslo_service.service InternalError: Nova requires QEMU version 2.5.0 or greater.

[root@master00 nova(keystone_admin)]# qemu-img --help | grep version
qemu-img version 2.12.0 (qemu-kvm-ev-2.12.0-18.el7_6.3.1)
    '-V', '--version'    output version information and exit
       conversion. If the number of bytes is 0, the source will not be scanned for
[root@master00 nova(keystone_admin)]# /usr/libexec/qemu-kvm -version
QEMU emulator version 2.12.0 (qemu-kvm-ev-2.12.0-18.el7_6.3.1)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
[root@master00 nova(keystone_admin)]# virsh -c qemu:///system version --daemon
Compiled against library: libvirt 4.5.0
Using library: libvirt 4.5.0
Using API: QEMU 4.5.0

Running hypervisor: QEMU 2.0.0

Running against daemon: 4.5.0

To Reproduce exec packstack

Additional context http://85niu.com/98.html

MITLabo commented 5 years ago

qemu is provided by two different repos qemu-ev and EPEL. libvert only sees qemu version installed by epel repository. so removing epel repo and restarting libvirt service should fix the issue だって あーqemuでイメージつくるときも注意しないとな。

yum remove qemu-system-x86
systemctl restart openstack-nova-compute
MITLabo commented 5 years ago

qemuの問題だけではなく、novaの設定も見直し。

コンソールのアタッチ用にlistenを変更する。

7022c7022
< hw_machine_type= x86_64=pc-i440fx-rhel7.2.0
---
> #hw_machine_type=<None>
10407c10407
< server_listen=0.0.0.0
---
> #server_listen=127.0.0.1
10420c10420
< server_proxyclient_address=10.0.2.6
---
> #server_proxyclient_address=127.0.0.1
10439c10439
< novncproxy_base_url=http://localhost:6080/vnc_auto.html
---
> novncproxy_base_url=http://10.0.2.6:6080/vnc_auto.html