Failed to add host using ansible runner

Hi, I am failing to add a new host to my env with the following message: 2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log. The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4 /etc/ansible-runner-service/config.yaml: --- version: 1 target_user: root playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root There are no logs at all at the specified location in the error message. Did someone encounter that issue? Thanks, -- Regards, Eyal Shenitzky

Hey Eyal, Based in the message below, I'd say it probably might be a null pointer exception, You can check your ovirt-engine code at *InstallVdsInternalCommand.java at line 347.* *AnsibleExecutor.java at line 155* to debug and understand why NPE was thrown in your case from Java code side(highly unlikely that this is reason but FYI). Are you trying to add a new host while running the engine in your local, if so can you tell me to which folder it is accessible with respect to the log location mentioned below? /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ ovirt-host-deploy-ansible-20191225105714-10.35.0.158- 41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log. Regards, Prajith K Prasad On Wed, Dec 25, 2019, 2:38 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...

On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...

On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay. I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys. I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky

Dear Eyal, try running: ansible-runner --version If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4 You will also need to install a new host, el8 or equivalent. With Best Regards. Steven. On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...

Thanks, The I already have 1.3.4 version I am working on an engine that runs under Fedora-30. The host I am trying to add is also Fedora-30. On Wed, 25 Dec 2019 at 19:02, Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Eyal,
try running: ansible-runner --version
If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4
You will also need to install a new host, el8 or equivalent.
With Best Regards.
Steven.
On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...
-- Regards, Eyal Shenitzky

OK, so make sure that python2-ansible-runner is also 1.3.4. There wass an issue with upgrading the dependencies and I had to install this package manually. I did have different errors in my journal however, your error is: cb_event_handler event_data={'uuid': '46ace4a9-b93c-4488-90ed-895c2b077a79', 'stdout': u"ERROR! Unexpected Except> Did you check the contents of the file: home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log In my scenario the log was not being created, but maybe yours is. With Best Regards. Steven. On Thu, Dec 26, 2019 at 2:18 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Thanks,
The I already have 1.3.4 version I am working on an engine that runs under Fedora-30. The host I am trying to add is also Fedora-30.
On Wed, 25 Dec 2019 at 19:02, Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Eyal,
try running: ansible-runner --version
If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4
You will also need to install a new host, el8 or equivalent.
With Best Regards.
Steven.
On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...
-- Regards, Eyal Shenitzky

On Thu, 26 Dec 2019 at 15:09, Steven Rosenberg <srosenbe@redhat.com> wrote:
OK, so make sure that python2-ansible-runner is also 1.3.4. There wass an issue with upgrading the dependencies and I had to install this package manually.
I did have different errors in my journal however, your error is:
cb_event_handler event_data={'uuid': '46ace4a9-b93c-4488-90ed-895c2b077a79', 'stdout': u"ERROR! Unexpected Except>
Did you check the contents of the file:
home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log
In my scenario the log was not being created, but maybe yours is.
The log file doesn't exist in my case also. python2-ansible-runner version is also 1.3.4
With Best Regards.
Steven.
On Thu, Dec 26, 2019 at 2:18 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Thanks,
The I already have 1.3.4 version I am working on an engine that runs under Fedora-30. The host I am trying to add is also Fedora-30.
On Wed, 25 Dec 2019 at 19:02, Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Eyal,
try running: ansible-runner --version
If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4
You will also need to install a new host, el8 or equivalent.
With Best Regards.
Steven.
On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...
-- Regards, Eyal Shenitzky
-- Regards, Eyal Shenitzky

OK, my engine runs on rhel 7.6 and the Hosts on Rhel 8.1, maybe you can try installing el8 on your Host (centos 8 or Rhel 8.1), clean install. I installed the Hosts as follows: yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm *yum install **-y **ovirt-host* yum update These are my ansible versions if that helps: ansible.noarch 2.8.2-1.el7 @production-rhel-x86_64-workstation-epel-7.6 ansible-runner.noarch 1.3.4-2.el7 installed ansible-runner-service-dev.noarch 1.0.1-2.el7 @centos-ovirt44-testing python2-ansible-runner.noarch 1.3.4-2.el7 installed ansible-doc.noarch 2.8.2-1.el7 production-rhel-x86_64-workstation-epel-7.6 ansible-inventory-grapher.noarch 2.4.4-1.el7 production-rhel-x86_64-workstation-epel-7.6 ansible-lint.noarch 3.5.1-1.el7 production-rhel-x86_64-workstation-epel-7.6 ansible-openstack-modules.noarch 0-20140902git79d751a.el7 ansible-review.noarch 0.13.4-1.el7 production-rhel-x86_64-workstation-epel-7.6 ansible-runner-service.noarch 1.0.1-3.el7 centos-ovirt44-testing ansible1.9.noarch 1.9.6-2.el7 production-rhel-x86_64-workstation-epel-7.6 I hope this helps. With Best Regards. Steven. On Thu, Dec 26, 2019 at 3:41 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Thu, 26 Dec 2019 at 15:09, Steven Rosenberg <srosenbe@redhat.com> wrote:
OK, so make sure that python2-ansible-runner is also 1.3.4. There wass an issue with upgrading the dependencies and I had to install this package manually.
I did have different errors in my journal however, your error is:
cb_event_handler event_data={'uuid': '46ace4a9-b93c-4488-90ed-895c2b077a79', 'stdout': u"ERROR! Unexpected Except>
Did you check the contents of the file:
home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log
In my scenario the log was not being created, but maybe yours is.
The log file doesn't exist in my case also. python2-ansible-runner version is also 1.3.4
With Best Regards.
Steven.
On Thu, Dec 26, 2019 at 2:18 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Thanks,
The I already have 1.3.4 version I am working on an engine that runs under Fedora-30. The host I am trying to add is also Fedora-30.
On Wed, 25 Dec 2019 at 19:02, Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Eyal,
try running: ansible-runner --version
If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4
You will also need to install a new host, el8 or equivalent.
With Best Regards.
Steven.
On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
> Hi, > > I am failing to add a new host to my env with the following message: > > 2019-12-25 10:57:17,587+02 ERROR > [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] > (EE-ManagedThreadFactory-engine-Thread-63) > [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), > Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: > null. Please check logs for more details: > /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log. > > The host is Fedora-30 > Ansible version is - 2.9.1 > Ansible runner version - 1.3.4 > > /etc/ansible-runner-service/config.yaml: > > --- > version: 1 > > target_user: root > > playbooks_root_dir: > '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project' > > ssh_private_key: > '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' > port: 50001 > target_user: root > > > There are no logs at all at the specified location in the error > message. > Did someone encounter that issue? >
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
> Thanks, > > -- > Regards, > Eyal Shenitzky > _______________________________________________ > Devel mailing list -- devel@ovirt.org > To unsubscribe send an email to devel-leave@ovirt.org > Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X... >
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...
-- Regards, Eyal Shenitzky
-- Regards, Eyal Shenitzky

Hi Eyal, It seems I am hitting similar issue with this runner service. Were you successful with the setup after all? If so, can you share some details maybe? Thanks! Fedor ----- Original Message ----- From: "Eyal Shenitzky" <eshenitz@redhat.com> To: "Steven Rosenberg" <srosenbe@redhat.com> Cc: "Liran Rotenberg" <lrotenbe@redhat.com>, "devel" <devel@ovirt.org> Sent: Thursday, December 26, 2019 2:40:45 PM Subject: [ovirt-devel] Re: Failed to add host using ansible runner On Thu, 26 Dec 2019 at 15:09, Steven Rosenberg < srosenbe@redhat.com > wrote: OK, so make sure that python2-ansible-runner is also 1.3.4. There wass an issue with upgrading the dependencies and I had to install this package manually. I did have different errors in my journal however, your error is: cb_event_handler event_data={'uuid': '46ace4a9-b93c-4488-90ed- 895c2b077a79', 'stdout': u"ERROR! Unexpected Except > Did you check the contents of the file: home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log In my scenario the log was not being created, but maybe yours is. The log file doesn't exist in my case also. python2-ansible-runner version is also 1.3.4 With Best Regards. Steven. On Thu, Dec 26, 2019 at 2:18 PM Eyal Shenitzky < eshenitz@redhat.com > wrote: Thanks, The I already have 1.3.4 version I am working on an engine that runs under Fedora-30. The host I am trying to add is also Fedora-30. On Wed, 25 Dec 2019 at 19:02, Steven Rosenberg < srosenbe@redhat.com > wrote: Dear Eyal, try running: ansible-runner --version If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4 You will also need to install a new host, el8 or equivalent. With Best Regards. Steven. On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky < eshenitz@redhat.com > wrote: On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg < lrotenbe@redhat.com > wrote: On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky < eshenitz@redhat.com > wrote: Hi, I am failing to add a new host to my env with the following message: 2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log. The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4 /etc/ansible-runner-service/config.yaml: --- version: 1 target_user: root playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root There are no logs at all at the specified location in the error message. Did someone encounter that issue? Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again. Thanks for the replay. I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys. I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. " Failed to execute Ansible host-deploy role: null " seems to be the cause for the trouble but there are no logs that I can look at. Thanks, -- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X... -- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S... -- Regards, Eyal Shenitzky -- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/DVFHSA66OSJC37...

Hi Fedor, Please see Martin's comments here: https://bugzilla.redhat.com/show_bug.cgi?id=1786928 If you're still having these issues can you please attach logs? Thanks, Dana On Tue, Jan 7, 2020 at 4:10 PM Fedor Gavrilov <fgavrilo@redhat.com> wrote:
Hi Eyal,
It seems I am hitting similar issue with this runner service. Were you successful with the setup after all? If so, can you share some details maybe?
Thanks! Fedor
----- Original Message ----- From: "Eyal Shenitzky" <eshenitz@redhat.com> To: "Steven Rosenberg" <srosenbe@redhat.com> Cc: "Liran Rotenberg" <lrotenbe@redhat.com>, "devel" <devel@ovirt.org> Sent: Thursday, December 26, 2019 2:40:45 PM Subject: [ovirt-devel] Re: Failed to add host using ansible runner
On Thu, 26 Dec 2019 at 15:09, Steven Rosenberg < srosenbe@redhat.com > wrote:
OK, so make sure that python2-ansible-runner is also 1.3.4. There wass an issue with upgrading the dependencies and I had to install this package manually.
I did have different errors in my journal however, your error is:
cb_event_handler event_data={'uuid': '46ace4a9-b93c-4488-90ed- 895c2b077a79', 'stdout': u"ERROR! Unexpected Except >
Did you check the contents of the file:
home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log
In my scenario the log was not being created, but maybe yours is.
The log file doesn't exist in my case also. python2-ansible-runner version is also 1.3.4
With Best Regards.
Steven.
On Thu, Dec 26, 2019 at 2:18 PM Eyal Shenitzky < eshenitz@redhat.com > wrote:
Thanks,
The I already have 1.3.4 version I am working on an engine that runs under Fedora-30. The host I am trying to add is also Fedora-30.
On Wed, 25 Dec 2019 at 19:02, Steven Rosenberg < srosenbe@redhat.com > wrote:
Dear Eyal,
try running: ansible-runner --version
If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4
You will also need to install a new host, el8 or equivalent.
With Best Regards.
Steven.
On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky < eshenitz@redhat.com > wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg < lrotenbe@redhat.com > wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky < eshenitz@redhat.com > wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. " Failed to execute Ansible host-deploy role: null " seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...
-- Regards, Eyal Shenitzky
-- Regards, Eyal Shenitzky
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/DVFHSA66OSJC37... _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/5UVIS4VPVGVKQ4...

Hello, I was able to figure get it working on my environment on my own after all. Thanks nevertheless :) Fedor ----- Original Message ----- From: "Dana Elfassy" <delfassy@redhat.com> To: "Fedor Gavrilov" <fgavrilo@redhat.com> Cc: "Eyal Shenitzky" <eshenitz@redhat.com>, "Liran Rotenberg" <lrotenbe@redhat.com>, "devel" <devel@ovirt.org> Sent: Thursday, January 9, 2020 3:12:40 PM Subject: Re: [ovirt-devel] Re: Failed to add host using ansible runner Hi Fedor, Please see Martin's comments here: https://bugzilla.redhat.com/show_bug.cgi?id=1786928 If you're still having these issues can you please attach logs? Thanks, Dana On Tue, Jan 7, 2020 at 4:10 PM Fedor Gavrilov <fgavrilo@redhat.com> wrote:
Hi Eyal,
It seems I am hitting similar issue with this runner service. Were you successful with the setup after all? If so, can you share some details maybe?
Thanks! Fedor
----- Original Message ----- From: "Eyal Shenitzky" <eshenitz@redhat.com> To: "Steven Rosenberg" <srosenbe@redhat.com> Cc: "Liran Rotenberg" <lrotenbe@redhat.com>, "devel" <devel@ovirt.org> Sent: Thursday, December 26, 2019 2:40:45 PM Subject: [ovirt-devel] Re: Failed to add host using ansible runner
On Thu, 26 Dec 2019 at 15:09, Steven Rosenberg < srosenbe@redhat.com > wrote:
OK, so make sure that python2-ansible-runner is also 1.3.4. There wass an issue with upgrading the dependencies and I had to install this package manually.
I did have different errors in my journal however, your error is:
cb_event_handler event_data={'uuid': '46ace4a9-b93c-4488-90ed- 895c2b077a79', 'stdout': u"ERROR! Unexpected Except >
Did you check the contents of the file:
home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log
In my scenario the log was not being created, but maybe yours is.
The log file doesn't exist in my case also. python2-ansible-runner version is also 1.3.4
With Best Regards.
Steven.
On Thu, Dec 26, 2019 at 2:18 PM Eyal Shenitzky < eshenitz@redhat.com > wrote:
Thanks,
The I already have 1.3.4 version I am working on an engine that runs under Fedora-30. The host I am trying to add is also Fedora-30.
On Wed, 25 Dec 2019 at 19:02, Steven Rosenberg < srosenbe@redhat.com > wrote:
Dear Eyal,
try running: ansible-runner --version
If you don't get 1.3.4 you will have to install python2-ansible-runner version 1.3.4
You will also need to install a new host, el8 or equivalent.
With Best Regards.
Steven.
On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky < eshenitz@redhat.com > wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg < lrotenbe@redhat.com > wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky < eshenitz@redhat.com > wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. " Failed to execute Ansible host-deploy role: null " seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...
-- Regards, Eyal Shenitzky
-- Regards, Eyal Shenitzky
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/DVFHSA66OSJC37... _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/5UVIS4VPVGVKQ4...

Hi Eyal, Do you have any logs in journalctl -u ansible-runner-service? On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...

Here is the errors that are available in journalctl: Dec 25 15:14:52 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Playbook run request for ovirt-host-deploy.yml, from 127.0.0.1, parameters: {u'ovirt_pki_dir': u'/home/engine/ovi> Dec 25 15:14:52 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Clearing up old env directory Dec 25 15:14:52 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Run the playbook with a private key override of /home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 25 15:14:52 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Creating env/cmdline file: --private-key /home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 25 15:14:52 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Playbook 8970ecca-2718-11ea-b4b1-90b11c724199 started in 0.0s Dec 25 15:14:52 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Playbook ovirt-host-deploy.yml, UUID=8970ecca-2718-11ea-b4b1-90b11c724199 initiated : status=starting Dec 25 15:14:53 dhcp-1-80.tlv.redhat.com gunicorn[27902]: cb_event_handler event_data={'uuid': '46ace4a9-b93c-4488-90ed-895c2b077a79', 'stdout': u"ERROR! Unexpected Except> Dec 25 15:14:53 dhcp-1-80.tlv.redhat.com gunicorn[27902]: cb_event_handler event_data={'uuid': '752d0e43-62e5-4378-b779-bc86c3fafae4', 'stdout': u'to see the full tracebac> Dec 25 15:14:53 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Playbook ovirt-host-deploy.yml, UUID=8970ecca-2718-11ea-b4b1-90b11c724199 ended, status=failed Dec 25 15:14:53 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Playbook ovirt-host-deploy.yml Stats: None Dec 25 15:14:55 dhcp-1-80.tlv.redhat.com gunicorn[27902]: Request received, content-type :None On Thu, 26 Dec 2019 at 12:25, Dana Elfassy <delfassy@redhat.com> wrote:
Hi Eyal, Do you have any logs in journalctl -u ansible-runner-service?
On Wed, Dec 25, 2019 at 12:43 PM Eyal Shenitzky <eshenitz@redhat.com> wrote:
On Wed, 25 Dec 2019 at 11:37, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Wed, Dec 25, 2019 at 11:08 AM Eyal Shenitzky <eshenitz@redhat.com> wrote:
Hi,
I am failing to add a new host to my env with the following message:
2019-12-25 10:57:17,587+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-63) [41ec72c1-88e2-402b-8bb9-f38c678d0bf0] EVENT_ID: VDS_INSTALL_FAILED(505), Host 10.35.0.158 installation failed. Failed to execute Ansible host-deploy role: null. Please check logs for more details: /home/engine/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191225105714-10.35.0.158-41ec72c1-88e2-402b-8bb9-f38c678d0bf0.log.
The host is Fedora-30 Ansible version is - 2.9.1 Ansible runner version - 1.3.4
/etc/ansible-runner-service/config.yaml:
--- version: 1
target_user: root
playbooks_root_dir: '/home/engine/ovirt-engine/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '/home/engine/ovirt-engine/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
There are no logs at all at the specified location in the error message. Did someone encounter that issue?
Yes, I did. Did the host was already on this env and you changed the host itself? In any case it for me it failed to execute "ssh-copy-id" therefore the engine can't run the ansible on the destination host. Try doing it manually (if the host already was in on the engine the problem can be "Invalid fingerprint"). You can try doing to manually with ovirt-engine key or if you have another host you can copy it to the host destination at ~/.ssh/authorized_keys Just append the key "ssh-rsa... ovirt-engine" and try again.
Thanks for the replay.
I already had "ssh-rsa... ovirt-engine" in ~/.ssh/authorized_keys.
I think that it somehow I maybe misconfigured the ansible runner, I run the engine using 'engine' user and not as root. "Failed to execute Ansible host-deploy role: null" seems to be the cause for the trouble but there are no logs that I can look at.
Thanks,
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KA7EPILRITPL4X...
-- Regards, Eyal Shenitzky _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/CEJFIXISXA5T7S...
-- Regards, Eyal Shenitzky
participants (6)
-
Dana Elfassy
-
Eyal Shenitzky
-
Fedor Gavrilov
-
Liran Rotenberg
-
Prajith Kesava Prasad
-
Steven Rosenberg