[ovirt-users] hosted-engine --deploy : Failed executing ansible-playbook
geomeid at mairie-saint-ouen.fr
geomeid at mairie-saint-ouen.fr
Fri Mar 2 10:25:51 UTC 2018
Hello,
I am on CENTOS 7.4.1708
I follow the documentation:
[root at srvvm42 ~]# yum install ovirt-hosted-engine-setup
[root at srvvm42 ~]# yum info ovirt-hosted-engine-setup
Loaded plugins:
fastestmirror, package_upload, product-id, search-disabled-repos,
subscription-manager
This system is not registered with an entitlement
server. You can use subscription-manager to register.
Loading mirror
speeds from cached hostfile
* base: centos.quelquesmots.fr
* epel:
mirrors.ircam.fr
* extras: centos.mirrors.ovh.net
* ovirt-4.2:
ftp.nluug.nl
* ovirt-4.2-epel: mirrors.ircam.fr
* updates:
centos.mirrors.ovh.net
Installed Packages
Name :
ovirt-hosted-engine-setup
Arch : noarch
Version : 2.2.9
Release :
1.el7.centos
Size : 2.3 M
Repo : installed
>From repo : ovirt-4.2
Summary
: oVirt Hosted Engine setup tool
URL : http://www.ovirt.org
License :
LGPLv2+
Description : Hosted Engine setup tool for oVirt
project.
[root at srvvm42 ~]# hosted-engine --deploy
I encounter an issue
when i try to install my hosted-engine. Here is the last line of the
installation:
....
[ INFO ] TASK [Clean /etc/hosts for the engine
VM]
[ INFO ] skipping: [localhost]
[ INFO ] TASK [Copy /etc/hosts back
to the engine VM]
[ INFO ] skipping: [localhost]
[ INFO ] TASK [Clean
/etc/hosts on the host]
[ INFO ] changed: [localhost]
[ INFO ] TASK [Add
an entry in /etc/hosts for the target VM]
[ INFO ] changed:
[localhost]
[ INFO ] TASK [Start broker]
[ INFO ] changed: [localhost]
[
INFO ] TASK [Initialize lockspace volume]
[ INFO ] changed:
[localhost]
[ INFO ] TASK [Start agent]
[ INFO ] changed: [localhost]
[
INFO ] TASK [Wait for the engine to come up on the target VM]
[ ERROR ]
fatal: [localhost]: FAILED! => {"msg": "The conditional check
'health_result.rc == 0 and
health_result.stdout|from_json|json_query('*."engine-status"."health"')|first=="good"'
failed. The error was: error while evaluating conditional
(health_result.rc == 0 and
health_result.stdout|from_json|json_query('*."engine-status"."health"')|first=="good"):
No first item, sequence was empty."}
[ ERROR ] Failed to execute stage
'Closing up': Failed executing ansible-playbook
[ INFO ] Stage: Clean
up
[ INFO ] Cleaning temporary resources
[ INFO ] TASK [Gathering
Facts]
[ INFO ] ok: [localhost]
[ INFO ] TASK [Remove local vm dir]
[
INFO ] changed: [localhost]
[ INFO ] Generating answer file
'/var/lib/ovirt-hosted-engine-setup/answers/answers-20180302104441.conf'
[
INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination
[ ERROR ]
Hosted Engine deployment failed: please check the logs for the issue,
fix accordingly or re-deploy from scratch.
Log file is located at
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20180302101734-fuzcop.log
And
here is a part of the log file:
2018-03-02 10:44:13,760+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 TASK [debug]
2018-03-02
10:44:13,861+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 changed: False
2018-03-02
10:44:13,962+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 result: {'stderr_lines': [],
u'changed': True, u'end': u'2018-03-02 10:44:13.401854', u'stdou
t':
u'', u'cmd': [u'hosted-engine', u'--reinitialize-lockspace',
u'--force'], 'failed': False, 'attempts': 2, u'stderr': u'', u'rc': 0,
u'delta': u'0:00:00.202734', 'stdout_lines': [], u'start': u'2018-03-02
10:44:13.199120'}
2018-03-02 10:44:14,063+0100 INFO
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:100 TASK [Start agent]
2018-03-02
10:44:14,565+0100 INFO otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:100 changed: [localhost]
2018-03-02
10:44:14,667+0100 INFO otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:100 TASK [Wait for the engine to come up
on the target VM]
2018-03-02 10:44:36,555+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 {u'msg': u'The conditional check
'health_result.rc == 0 and
health_result.stdout|from_json|j
son_query('*."engine-status"."health"')|first=="good"'
failed. The error was: error while evaluating conditional
(health_result.rc == 0 and
health_result.stdout|from_json|json_query('*."engine-status"."h
ealth"')|first=="good"):
No first item, sequence was empty.'}
2018-03-02 10:44:36,657+0100 ERROR
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:98 fatal: [localhost]: FAILED! => {"msg":
"The conditional check 'health_result.rc == 0 and
heal
th_result.stdout|from_json|json_query('*."engine-status"."health"')|first=="good"'
failed. The error was: error while evaluating conditional
(health_result.rc == 0 and
health_result.stdout|from_json|js
on_query('*."engine-status"."health"')|first=="good"):
No first item, sequence was empty."}
2018-03-02 10:44:36,759+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:180
ansible-playbook rc: 2
2018-03-02 10:44:36,759+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 PLAY RECAP [localhost] : ok: 57
changed: 20 unreachable: 0 skipped: 3 failed: 1
2018-03-02
10:44:36,760+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 PLAY RECAP [ovirtengine.stouen.local] :
ok: 10 changed: 5 unreachable: 0 skipped: 0 failed: 0
2018-03-02
10:44:36,760+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils.run:187 ansible-playbook stdout:
2018-03-02
10:44:36,760+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils.run:189 to retry, use: --limit
@/usr/share/ovirt-hosted-engine-setup/ansible/create_target_vm.retry
2018-03-02
10:44:36,760+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils.run:190 ansible-playbook stderr:
2018-03-02
10:44:36,761+0100 DEBUG otopi.context context._executeMethod:143 method
exception
Traceback (most recent call last):
File
"/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in
_executeMethod
method['method']()
File
"/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-ansiblesetup/core/target_vm.py",
line 193, in _closeup
r = ah.run()
File
"/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/ansible_utils.py",
line 194, in run
raise RuntimeError(_('Failed executing
ansible-playbook'))
RuntimeError: Failed executing
ansible-playbook
2018-03-02 10:44:36,763+0100 ERROR otopi.context
context._executeMethod:152 Failed to execute stage 'Closing up': Failed
executing ansible-playbook
2018-03-02 10:44:36,764+0100 DEBUG
otopi.context context.dumpEnvironment:859 ENVIRONMENT DUMP -
BEGIN
2018-03-02 10:44:36,765+0100 DEBUG otopi.context
context.dumpEnvironment:869 ENV BASE/error=bool:'True'
2018-03-02
10:44:36,765+0100 DEBUG otopi.context context.dumpEnvironment:869 ENV
BASE/exceptionInfo=list:'[(<type 'exceptions.RuntimeError'>,
RuntimeError('Failed executing ansible-playbook',), <traceback ob
ject
at 0x3122fc8>)]'
2018-03-02 10:44:36,766+0100 DEBUG otopi.context
context.dumpEnvironment:873 ENVIRONMENT DUMP - END
2018-03-02
10:44:36,767+0100 INFO otopi.context context.runSequence:741 Stage:
Clean up
2018-03-02 10:44:36,767+0100 DEBUG otopi.context
context.runSequence:745 STAGE cleanup
2018-03-02 10:44:36,768+0100 DEBUG
otopi.context context._executeMethod:128 Stage cleanup METHOD
otopi.plugins.gr_he_ansiblesetup.core.misc.Plugin._cleanup
2018-03-02
10:44:36,769+0100 INFO otopi.plugins.gr_he_ansiblesetup.core.misc
misc._cleanup:236 Cleaning temporary resources
2018-03-02
10:44:36,769+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils.run:153 ansible-playbook: cmd: ['/bin/ansible-playbook',
'--module-path=/usr/share/ovirt-hosted-engine-setup/ans
ible',
'--inventory=localhost,', '--extra-vars=@/tmp/tmpCctJN4',
'/usr/share/ovirt-hosted-engine-setup/ansible/final_clean.yml']
2018-03-02
10:44:36,770+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils.run:154 ansible-playbook: out_path:
/tmp/tmpBm1bE0
2018-03-02 10:44:36,770+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:155
ansible-playbook: vars_path: /tmp/tmpCctJN4
2018-03-02 10:44:36,770+0100
DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils.run:156 ansible-playbook: env: {'LC_NUMERIC':
'fr_FR.UTF-8', 'HE_ANSIBLE_LOG_PATH':
'/var/log/ovirt-hosted-engin
e-setup/ovirt-hosted-engine-setup-ansible-final_clean-20180302104436-0yt7bk.log',
'LESSOPEN': '||/usr/bin/lesspipe.sh %s', 'SSH_CLIENT': '10.2.10.112
38120 22', 'SELINUX_USE_CURRENT_RANGE': '', 'LOGNAME': 'r
oot', 'USER':
'root', 'HOME': '/root', 'LC_PAPER': 'fr_FR.UTF-8', 'PATH':
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin',
'LANG': 'en_US.UTF-8',
'TERM': 'xterm-256color', 'SHELL': '/bin/bash',
'LC_MEASUREMENT': 'fr_FR.UTF-8', 'HISTSIZE': '1000',
'OTOPI_CALLBACK_OF': '/tmp/tmpBm1bE0', 'LC_MONETARY': 'fr_FR.UTF-8',
'XDG_RUNTIME_DIR': '/run/user/0', 'AN
SIBLE_STDOUT_CALLBACK':
'1_otopi_json', 'LC_ADDRESS': 'fr_FR.UTF-8', 'PYTHONPATH':
'/usr/share/ovirt-hosted-engine-setup/scripts/..:',
'SELINUX_ROLE_REQUESTED': '', 'MAIL': '/var/spool/mail/root',
'ANSIBLE_C
ALLBACK_WHITELIST': '1_otopi_json,2_ovirt_logger',
'XDG_SESSION_ID': '1', 'LC_IDENTIFICATION': 'fr_FR.UTF-8', 'LS_COLORS':
'rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5
;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar
=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38
;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;
9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.t
ga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13
:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;
13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=3
8;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=
38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:',
'SSH_TTY': '/dev/pts/0', 'H
OSTNAME': 'srvvm42.stouen.local',
'LC_TELEPHONE': 'fr_FR.UTF-8', 'SELINUX_LEVEL_REQUESTED': '',
'HISTCONTROL': 'ignoredups', 'SHLVL': '1', 'PWD': '/root', 'LC_NAME':
'fr_FR.UTF-8', 'OTOPI_LOGFILE':
'/var/log
/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20180302101734-fuzcop.log',
'LC_TIME': 'fr_FR.UTF-8', 'SSH_CONNECTION': '10.2.10.112 38120
10.2.200.130 22', 'OTOPI_EXECDIR': '/root'}
2018-03-02 10:44:37,885+0100
DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 PLAY [Clean temporary
resources]
2018-03-02 10:44:37,987+0100 INFO
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:100 TASK [Gathering Facts]
2018-03-02
10:44:40,098+0100 INFO otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:100 ok: [localhost]
2018-03-02
10:44:40,300+0100 INFO otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:100 TASK [Remove local vm dir]
2018-03-02
10:44:41,105+0100 INFO otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:100 changed: [localhost]
2018-03-02
10:44:41,206+0100 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:94 PLAY RECAP [localhost] : ok: 2 changed:
1 unreachable: 0 skipped: 0 failed: 0
2018-03-02 10:44:41,307+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:180
ansible-playbook rc: 0
2018-03-02 10:44:41,307+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:187
ansible-playbook stdout:
2018-03-02 10:44:41,307+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils.run:190
ansible-playbook stderr:
2018-03-02 10:44:41,308+0100 DEBUG
otopi.plugins.gr_he_ansiblesetup.core.misc misc._cleanup:238
{}
2018-03-02 10:44:41,311+0100 DEBUG otopi.context
context._executeMethod:128 Stage cleanup METHOD
otopi.plugins.gr_he_common.engine.ca.Plugin._cleanup
2018-03-02
10:44:41,312+0100 DEBUG otopi.context context._executeMethod:135
condition False
2018-03-02 10:44:41,315+0100 DEBUG otopi.context
context._executeMethod:128 Stage cleanup METHOD
otopi.plugins.gr_he_common.vm.boot_disk.Plugin._cleanup
2018-03-02
10:44:41,315+0100 DEBUG otopi.context context._executeMethod:135
condition False
2018-03-02 10:44:41,318+0100 DEBUG otopi.context
context._executeMethod:128 Stage cleanup METHOD
otopi.plugins.gr_he_common.vm.cloud_init.Plugin._cleanup
2018-03-02
10:44:41,319+0100 DEBUG otopi.context context._executeMethod:135
condition False
2018-03-02 10:44:41,320+0100 DEBUG otopi.context
context._executeMethod:128 Stage cleanup METHOD
otopi.plugins.otopi.dialog.answer_file.Plugin._generate_answer_file
2018-03-02
10:44:41,320+0100 DEBUG otopi.context context.dumpEnvironment:859
ENVIRONMENT DUMP - BEGIN
2018-03-02 10:44:41,320+0100 DEBUG
otopi.context context.dumpEnvironment:869 ENV
DIALOG/answerFileContent=str:'# OTOPI answer file, generated by human
dialog
[environment:default]
QUESTION/1/CI_VM_ETC_HOST=str:yes
--
I
don't understand the problem. I searched on the web and found nothing.
I'm using an other ovirt in a test environement from a while, but here
i'm really lost...
Thanks for any help !
Georges
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180302/86781c8e/attachment.html>
More information about the Users
mailing list