troubleshooting SHE - Run engine-setup with answerfile - ?
by lejeczek
Hi guys.
I'm revisiting my failed attempt to make friends with oVirt
- novice so go easy on me.
Deployment fails sooner that what can troubleshoot - at
least I manged to find in docs so far - and I wanted to ask
hot to troubleshot such failure as this:
...
INFO ] TASK [ovirt.ovirt.engine_setup : Run engine-setup
with answerfile]
[ ERROR ] fatal: [localhost -> 192.168.1.209]: FAILED! =>
{"changed": true, "cmd": ["engine-setup",
"--accept-defaults",
"--config-append=/root/ovirt-engine-answers"], "delta":
"0:08:05.997322", "end": "2023-06-01 13:07:15.932517",
"msg": "non-zero return code", "rc": 1, "start": "2023-06-01
12:59:09.935195", "stderr": "", "stderr_lines": [],
"stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Stage:
Environment setup\n Configuration files:\n
...
Start with setting up Keycloak for Ovirt Engine", "[ ERROR ]
Failed to execute stage 'Closing up': Command
'/usr/share/ovirt-engine-keycloak/bin/kk_cli.sh' failed to
execute", "[ INFO ] Stage: Clean up", " Log file
is located at", "
/var/log/ovirt-engine/setup/ovirt-engine-setup-20230601125911-448xvj.log",
...
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false,
"msg": "There was a failure deploying the engine on the
local engine VM. The system may not be provisioned according
to the playbook results: please check the logs for the
issue, fix accordingly or re-deploy from scratch.\n"}
[ ERROR ] Failed to execute stage 'Closing up': Failed
executing ansible-playbook
[ INFO ] Stage: Clean up
...
Log file is located at
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20230601123237-rhwx8e.log
Logfile to which 'stdout' points, shows nothing or I fail to
find anything in it and/or understand it:
...
2023-06-01 13:07:17,716+0100 ERROR
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:113 fatal: [localhost ->
192.168.1.209]: FAILED! => {"changed": true, "cmd":
["engine-setup", "--accept-defaults",
"--config-append=/root/ovirt-engine-answers"], "delta":
"0:08:05.997322", "end": "2023-06-01 13:07:15.932517",
"msg": "non-zero return code", "rc": 1, "start": "2023-06-01
12:59:09.935195", "stderr": "", "stderr_lines": [], "stdout":
...
or Ovirt Engine\n[ ERROR ] Failed to execute stage 'Closing
up': Command
'/usr/share/ovirt-engine-keycloak/bin/kk_cli.sh' failed to
execute\n[ INFO ] Stage: Clean up\n Log file is
located at\n
/var/log/ovirt-engine/setup/ovirt-engine-setup-20230601125911-448xvj.log\n[
INFO ] Generating answer file
'/var/lib/ovirt-engine/setup/answers/20230601130714-setup.conf'\n[
INFO ] Stage: Pre-termination\n[ INFO ] Stage:
Termination\n[ ERROR ] Execution of setup failed",
"stdout_lines": ["[ INFO ] Stage: Initializing", "[ INFO ]
Stage: Environment setup", " Configuration files:",
" /etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf,",
" /etc/ovirt-engine-setup.conf.d/10-packaging.conf,"
...
...
2023-06-01 13:08:52,946+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:109 {'msg': "The tas
k includes an option with an undefined variable. The error
was: 'local_vm_ip' is undefined. 'local_vm_ip' is
undefined\n\nThe error
appears to be in
'/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/sync_on_engine_ma
chine.yml': line 2, column 3, but may\nbe elsewhere in the
file depending on the exact syntax problem.\n\nThe offending
line appear
s to be:\n\n---\n- name: Set the name for add_host\n ^
here\n", '_ansible_no_log': False}
2023-06-01 13:08:53,047+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:109 ignored: [localh
ost]: FAILED! => {"msg": "The task includes an option with
an undefined variable. The error was: 'local_vm_ip' is
undefined. 'local
_vm_ip' is undefined\n\nThe error appears to be in
'/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_eng
ine_setup/tasks/sync_on_engine_machine.yml': line 2, column
3, but may\nbe elsewhere in the file depending on the exact
syntax prob
lem.\n\nThe offending line appears to be:\n\n---\n- name:
Set the name for add_host\n ^ here\n"}
...
2023-06-01 13:09:16,818+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:109 {'changed': True,
'stdout': '', 'stderr': "error: Failed to destroy pool
9ab14cca-78e0-4a8e-8a1b-00e98c300208\nerror: Requested
operation is not valid: storage pool
'9ab14cca-78e0-4a8e-8a1b-00e98c300208' is not active", 'rc':
1, 'cmd': ['virsh', '-c',
'qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf',
'pool-destroy', '9ab14cca-78e0-4a8e-8a1b-00e98c300208'],
'start': '2023-06-01 13:09:16.614978', 'end': '2023-06-01
13:09:16.672260', 'delta': '0:00:00.057282', 'msg':
'non-zero return code', 'invocation': {'module_args':
{'_raw_params': 'virsh -c
qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf
pool-destroy 9ab14cca-78e0-4a8e-8a1b-00e98c300208',
'_uses_shell': False, 'stdin_add_newline': True,
'strip_empty_ends': True, 'argv': None, 'chdir': None,
'executable': None, 'creates': None, 'removes': None,
'stdin': None}}, 'stdout_lines': [], 'stderr_lines':
['error: Failed to destroy pool
9ab14cca-78e0-4a8e-8a1b-00e98c300208', "error: Requested
operation is not valid: storage pool
'9ab14cca-78e0-4a8e-8a1b-00e98c300208' is not active"],
'_ansible_no_log': None}
2023-06-01 13:09:16,918+0100 DEBUG
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:109 ignored: [localhost]:
FAILED! => {"changed": true, "cmd": ["virsh", "-c",
"qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf",
"pool-destroy", "9ab14cca-78e0-4a8e-8a1b-00e98c300208"],
"delta": "0:00:00.057282", "end": "2023-06-01
13:09:16.672260", "msg": "non-zero return code", "rc": 1,
"start": "2023-06-01 13:09:16.614978", "stderr": "error:
Failed to destroy pool
9ab14cca-78e0-4a8e-8a1b-00e98c300208\nerror: Requested
operation is not valid: storage pool
'9ab14cca-78e0-4a8e-8a1b-00e98c300208' is not active",
"stderr_lines": ["error: Failed to destroy pool
9ab14cca-78e0-4a8e-8a1b-00e98c300208", "error: Requested
operation is not valid: storage pool
'9ab14cca-78e0-4a8e-8a1b-00e98c300208' is not active"],
"stdout": "", "stdout_lines": []}
2023-06-01 13:09:17,023+0100 INFO
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:115 TASK
[ovirt.ovirt.hosted_engine_setup : Undefine local
storage-pool 9ab14cca-78e0-4a8e-8a1b-00e98c300208]
2023-06-01 13:09:17,224+0100 INFO
otopi.ovirt_hosted_engine_setup.ansible_utils
ansible_utils._process_output:115 changed: [localhost]
..
I think that last two snippets-blocks, might be most useful
- but what does it says?
When 'installer' is finished, there is no aforementioned
pool however there is:
-> $ virsh pool-list | grep
'9ab14cca-78e0-4a8e-8a1b-00e98c300208'
9ab14cca-78e0-4a8e-8a1b-00e98c300208-1 active yes
Engine VM remains is up & running,
How far from successful deployment that is & what would be
advised to do next?
many thanks, L.
1 year, 6 months