vCheck engine VM health]

mollom 1人参与 0 次点击

环境:

vmware-workstation16.1

ovirt-engine-appliance-4.3-20200603.1.el7.x86_64.rpm

ovirt-node-ng-installer-4.3.10-2020060117.el7.iso

<h1> 以前卡住的地方照 在vmware里部署ovirt遇到的问题及解决办法 解决了,中间有一个疑问:</h1>

1 解决 卡 Get local VM IP 的时间文章中说 将“–machine pc-i440fx-rhel7.6.0”修改为“–machine pc-i440fx-rhel7.1.0”,我的情况是里面并没有 “–machine ….” 于是直接添加这内容 -machine pc-i440fx-rhel7.1.0 就可以正常

2 但是在解决这个卡Check engine VM health 的时间

/usr/libexec/vdsm/hooks/before_vm_start目录下,新建一个名为“50_vm_rhel7_1_0”的文件

那个PYTHON脚本有一句:

if type_elem[0].attributes['machine'].value == 'pc-i440fx-rhel7.6.0':
  type_elem[0].setAttribute('machine', "pc-i440fx-rhel7.1.0")

· 我在想是不是因为我之前和原来版本不一致(/usr/share/ansible/roles/ovirt.hosted-engine-setup/tasks/bootstrap_local_vm/02_create_local_vm.yml文件中virt-install没有 “–machine ….”)的原因,我自己机器是用的架构没匹配到上面python中的那句

其它尝试的方法

1 下载作者大佬的

ovirt-node-ng-installer-4.3.9-2020031917.el7.iso

ovirt-engine-appliance-4.3-20190319.1.el7.x86_64.rpm

发现还是原文中一样没有“–machine ….”

<h1>2 论坛另一篇大作:部署oVirt4.2+Gluster超融合架构</h1>

写到:

“首先ssh到node1.com中,增加engine的域名映射

……

开启一个shell终端,长ping engine的ip(192.168.105.224),一旦能够ping通,立即ssh到engine里面去,在/etc/hosts中增加engine的域名映射

处是一个bug,若不进行上述步骤将会导致最后一步engine health check失败而导致部署不完整。

我也照作了还是不行,对了真实物理机确实成功,什么都不需要修改。。。

卡在 Check engine VM health出现如下报错:

[ ERROR ] fatal: [localhost]: FAILED! => {“attempts”: 180, “changed”: true, “cmd”: [“hosted-engine”, “–vm-status”, “–json”], “delta”: “0:00:00.372621”, “end”: “2021-04-05 16:13:49.773605”, “rc”: 0, “start”: “2021-04-05 16:13:49.400984”, “stderr”: “”, “stderr_lines”: [], “stdout”: “{\”1\”: {\”conf_on_shared_storage\”: true, \”live-data\”: true, \”extra\”: \”metadata_parse_version=1\\nmetadata_feature_version=1\\ntimestamp=3628 (Mon Apr 5 16:13:42 2021)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=3628 (Mon Apr 5 16:13:42 2021)\\nconf_on_shared_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\”, \”hostname\”: \”ovn.netiler.org\”, \”host-id\”: 1, \”engine-status\”: {\”reason\”: \”bad vm status\”, \”health\”: \”bad\”, \”vm\”: \”up\”, \”detail\”: \”Powering up\”}, \”score\”: 3400, \”stopped\”: false, \”maintenance\”: false, \”crc32\”: \”e7f10689\”, \”local_conf_timestamp\”: 3628, \”host-ts\”: 3628}, \”global_maintenance\”: false}”, “stdout_lines”: [“{\”1\”: {\”conf_on_shared_storage\”: true, \”live-data\”: true, \”extra\”: \”metadata_parse_version=1\\nmetadata_feature_version=1\\ntimestamp=3628 (Mon Apr 5 16:13:42 2021)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=3628 (Mon Apr 5 16:13:42 2021)\\nconf_on_shared_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\”, \”hostname\”: \”ovn.netiler.org\”, \”host-id\”: 1, \”engine-status\”: {\”reason\”: \”bad vm status\”, \”health\”: \”bad\”, \”vm\”: \”up\”, \”detail\”: \”Powering up\”}, \”score\”: 3400, \”stopped\”: false, \”maintenance\”: false, \”crc32\”: \”e7f10689\”, \”local_conf_timestamp\”: 3628, \”host-ts\”: 3628}, \”global_maintenance\”: false}”]}

[ INFO ] TASK [ovirt.hosted_engine_setup : Check VM status at virt level]

[ INFO ] changed: [localhost]

[ INFO ] TASK [ovirt.hosted_engine_setup : Fail if engine VM is not running]

[ INFO ] skipping: [localhost]

[ INFO ] TASK [ovirt.hosted_engine_setup : Get target engine VM IP address]

[ INFO ] changed: [localhost]

[ INFO ] TASK [ovirt.hosted_engine_setup : Get VDSM’s target engine VM stats]

[ INFO ] changed: [localhost]

[ INFO ] TASK [ovirt.hosted_engine_setup : Convert stats to JSON format]

[ INFO ] ok: [localhost]

[ INFO ] TASK [ovirt.hosted_engine_setup : Get target engine VM IP address from VDSM stats]

[ INFO ] ok: [localhost]

[ INFO ] TASK [ovirt.hosted_engine_setup : Fail if Engine IP is different from engine’s he_fqdn resolved IP]

[ ERROR ] fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Engine VM IP address is while the engine’s he_fqdn ove.netiler.org resolves to 10.0.0.251. If you are using DHCP, check your DHCP reservation configuration”}