Thank you, I'm currently trying to accomplish what you reported. But I'm currently
stuck:
I launched this:
hosted-engine --deploy --4
--restore-from-file=/root/deploy_hosted_engine_230117/230117-scopeall-backup.tar.gz
--config-append=/root/deploy_hosted_engine_230117/hosted_engine_deploy.answer.conf
--ansible-extra-vars=Debug=99 --ansible-extra-vars=pauseonRestore=true
--ansible-extra-vars=he_pause_before_engine_setup=true
--otopi-environment="OVESETUP_CONFIG/keycloakEnable=bool:False"
I can install correctly the ovirt-engine locally, it launch the engine-setup with the
restore of the database but it fails invalidating: OVESETUP_OVN/ovirtProviderOvnSecret as
is possible to see in the engine under /ver/log/ovirt-engine/setup/
[...]
2023-01-17 15:58:05,667+0000 DEBUG otopi.context context._executeMethod:127 Stage misc
METHOD
otopi.plugins.ovirt_engine_setup.ovirt_engine.network.ovirtproviderovn.Plugin._misc_configure_provider
2023-01-17 15:58:05,667+0000 DEBUG otopi.context context._executeMethod:145 method
exception
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in
_executeMethod
method['method']()
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
line 1124, in _misc_configure_provider
self._configure_ovirt_provider_ovn()
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
line 807, in _configure_ovirt_provider_ovn
content = self._create_config_content()
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/network/ovirtproviderovn.py",
line 772, in _create_config_content
OvnEnv.OVIRT_PROVIDER_OVN_SECRET
KeyError: 'OVESETUP_OVN/ovirtProviderOvnSecret'
2023-01-17 15:58:05,669+0000 ERROR otopi.context context._executeMethod:154 Failed to
execute stage 'Misc configuration': 'OVESETUP_OVN/ovirtProviderOvnSecret'
2023-01-17 15:58:05,669+0000 DEBUG otopi.transaction transaction.abort:124 aborting
'DNF Transaction'
[...]
And also I have a problem because it seem the keycloak is enabled even if I disable and
also ovn I tried to disable it and in the engine under
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf I have:
[...]
20-setup-ovirt-post.conf:OVESETUP_OVN/ovirtProviderOvn=bool:True
20-setup-ovirt-post.conf:OVESETUP_OVN/ovirtProviderOvnId=str:e6b92384-b112-40e0-8d6f-2c6e4536cd1a
[...]
but it doesn't appear any ovirtProviderOvnSecret
by the way I don't use keycloak (I don't have any keycloak table in the engine
dump) and even OVN.
I will try to set OVESETUP_OVN/ovirtProviderOvn=bool:True to False before ansible launch
engine-setup