oVirt / cockpit-ovirt

cockpit-ovirt: oVirt plugin for Cockpit Project
Apache License 2.0
36 stars 18 forks source link

[4.5.3] Unable to complete the Hosted Engine Depolyment successfully #39

Open mnsmithuk opened 1 year ago

mnsmithuk commented 1 year ago

Hi,

Any ideas what I'm missing? I'm doing a vanilla install of Ovirt Node 4.5.3 from the latest image and I get the following error:

[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Obtain SSO token using username/password credentials] [ ERROR ] ovirtsdk4.AuthError: Error during SSO authentication access_denied : Cannot authenticate user Invalid user credentials. [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 50, "changed": false, "msg": "Error during SSO authentication access_denied : Cannot authenticate user Invalid user credentials."} [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Sync on engine machine] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Fetch logs from the engine VM] [ INFO ] ok: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Set destination directory path] [ INFO ] ok: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Create destination directory] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks] [ INFO ] ok: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Find the local appliance image] [ INFO ] ok: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Set local_vm_disk_path] [ INFO ] ok: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Give the vm time to flush dirty buffers] [ INFO ] ok: [localhost -> localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Copy engine logs] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Change ownership of copied engine logs] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks] [ INFO ] ok: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Remove local vm dir] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Remove temporary entry in /etc/hosts for the local VM] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks] [ INFO ] ok: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Destroy local storage-pool localvm9vlw234a] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Undefine local storage-pool localvm9vlw234a] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Destroy local storage-pool 74b5f861-b063-4679-9aa9-48b7727e65b6] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Undefine local storage-pool 74b5f861-b063-4679-9aa9-48b7727e65b6] [ INFO ] changed: [localhost] [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Notify the user about a failure] [ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "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"}

Red-Ex commented 1 year ago

Hi mnsmithuk, It seems, that the password confirmation fails or is missing in cockpit. The cli-deployment currently works.

mnsmithuk commented 1 year ago

Not sure how it could be missing cockpit if I'm using the Node image to install.

How do I check the password confirmation as you suggested?

Red-Ex commented 1 year ago

When you execute the hosted-engine --deploy --4 on cli, you get a password confirmation for the root-user of the vm and the admin-user for managment. During the Cockpit-Installation on web you only set the password once. So I assume, that the confirmation-field is missing or the process do not use the correct variable on ansible. Currently I can't figuring out, what processes are triggered trough the cockpit-installation cause I started with ovirt some weeks ago:). I can suggest you the cli-installer cause it currently works.

mnsmithuk commented 1 year ago

Ok. Thanks for the heads up. I give it another try when I get a chance.

sandrobonazzola commented 1 year ago

@mnsmithuk can you please update?

Red-Ex commented 1 year ago

@sandrobonazzola could it be an error or a missing part in case of the missing confirmation field in the wizard? Or was that planned to use the password-field in the background for the ansible-deployment? In case of the missing field it is hard to go trough a clean installation:). For a good result you have to start the wizard/cockpit-deployment, which saves some informations for the ansible-deployment. After that fails you can go trough the cli-installation to get a working installation. Otherwise you have to tweak aroun with the virtbr-bridge-interface an so on. If I can help to dig it down or try to find a solution, a hint for the right place would be helpfull.

sandrobonazzola commented 1 year ago

@Red-Ex I'm sorry I don't know this code enough to help here.

michalskrivanek commented 1 year ago

note cockpit-ovirt is no actively developed. contributed fixes are still going to be merged, but there's no one around to investigate or fix issues