New dependency for development environment

Hello, we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc): 1) sudo dnf update ovirt-release-master 2) sudo dnf install -y ansible-runner-service-dev 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: --- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine. 4) Restart and enable ansible-runner-service: # systemctl restart ansible-runner-service # systemctl enable ansible-runner-service That's it, your dev-env should start using the ansible-runner-service for host-deployment etc. Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported! Thanks, Ondra

Patches are merged. On 27/11/2019 08:36, Ondra Machacek wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra

Ondra, Any idea what I am doing wrong? I get the following error in ansible log: 2019-12-02 12:09:40,271 - runner_service.controllers.hosts - DEBUG - Request received, content-type :None 2019-12-02 12:09:40,271 - runner_service.controllers.hosts - INFO - 127.0.0.1 - GET /api/v1/hosts/192.168.122.82 2019-12-02 12:09:40,282 - runner_service.controllers.playbooks - DEBUG - Request received, content-type :application/json; charset=UTF-8 2019-12-02 12:09:40,283 - runner_service.controllers.playbooks - INFO - 127.0.0.1 - POST /api/v1/playbooks/ovirt-host-deploy.yml 2019-12-02 12:09:40,286 - runner_service.controllers.playbooks - DEBUG - Checking host limit against the inventory 2019-12-02 12:09:40,286 - runner_service.controllers.playbooks - DEBUG - hosts in the limit list match the inventory 2019-12-02 12:09:40,286 - runner_service.controllers.playbooks - INFO - Playbook run request for ovirt-host-deploy.yml, from 127.0.0.1, parameters: {u'ovirt_pki_dir': u'/home/eraviv/ov/dep/ovirt-engine-master-c/etc/pki/ovirt-engine', u'host_deploy_firewall_type': u'FIREWALLD', u'host_deploy_kdump_message_interval': u'5', u'ovirt_engine_usr': u'/home/eraviv/ov/dep/ovirt-engine-master-c/share/ovirt-engine', u'ovirt_ca_key': u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6OA1d9RHhKYzU2L57AfoNsqGcrEZN4koHpxBC+ap+SgpcwCkbhcuH8Vl/uwDVk9yMCzHc8w4XumyyNGKTXH/+1dDiJsDpxEkOXJI4yxfzi3PlBJyjvu9CJExyhT1yRPQGNeQRZEnsv8rSB26laCQHot4x7SzuqNJHt7J7t1CPP2lpLzZeZIKbuhUm3gi/qG9g6+BS0y36/lMESa3p2nQZvOc1jbia71DCaZE91901Q4ek5fathf+RLr0M2n6miezFyViHCMYMztXKDnil4006dH/MipeT6owY8amK72tRoMOkRMX4ytuQ/oje6prrMIjl7xlIWP3BMrvJFOLeGdrz', u'host_deploy_iptables_rules': u'\n# oVirt default firewall configuration. Automatically generated by vdsm bootstrap script.\n*filter\n:INPUT ACCEPT [0:0]\n:FORWARD ACCEPT [0:0]\n:OUTPUT ACCEPT [0:0]\n-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT\n-A INPUT -p icmp -j ACCEPT\n-A INPUT -i lo -j ACCEPT\n# vdsm\n-A INPUT -p tcp --dport 22 -j ACCEPT\n# ovirt-imageio-daemon\n-A INPUT -p tcp --dport 54322 -j ACCEPT\n# rpc.statd\n-A INPUT -p tcp --dport 111 -j ACCEPT\n-A INPUT -p udp --dport 111 -j ACCEPT\n# SSH\n-A INPUT -p tcp --dport 54321 -j ACCEPT\n# snmp\n-A INPUT -p udp --dport 161 -j ACCEPT\n# Cockpit\n-A INPUT -p tcp --dport 9090 -j ACCEPT\n\n\n# libvirt tls\n-A INPUT -p tcp --dport 16514 -j ACCEPT\n\n# serial consoles\n-A INPUT -p tcp -m multiport --dports 2223 -j ACCEPT\n\n# guest consoles\n-A INPUT -p tcp -m multiport --dports 5900:6923 -j ACCEPT\n\n# migration\n-A INPUT -p tcp -m multiport --dports 49152:49216 -j ACCEPT\n\n# OVN host tunnels\n-A INPUT -p udp --dport 6081 -j ACCEPT\n-A OUTPUT -p udp --dport 6081 -j ACCEPT\n\n\n# Reject any other input traffic\n-A INPUT -j REJECT --reject-with icmp-host-prohibited\n-A FORWARD -m physdev ! --physdev-is-bridged -j REJECT --reject-with icmp-host-prohibited\nCOMMIT\n', u'host_deploy_kernel_cmdline_new': u'null', u'host_deploy_kdump_integration': u'false', u'ovirt_vds_hostname': u'192.168.122.82', u'host_deploy_cluster_version': u'4.4', u'host_deploy_gluster_enabled': u'false', u'host_deploy_kernel_cmdline_old': u'null', u'host_deploy_vnc_tls': u'false', u'host_deploy_vdsm_port': u'54321', u'host_deploy_ovn_central': u'null', u'host_deploy_kdump_destination_address': u'localhost.localdomain', u'ovirt_organizationname': u'oVirt', u'ovirt_signcerttimeoutinseconds': u'30', u'host_deploy_kdump_destination_port': u'7410', u'ansible_port': u'22', u'ovirt_vdscertificatevalidityinyears': u'5', u'host_deploy_cluster_name': u'Default', u'host_deploy_cluster_switch_type': u'legacy', u'host_deploy_virt_enabled': u'true', u'host_deploy_post_tasks': u'/home/eraviv/ov/dep/ovirt-engine-master-c/etc/ovirt-engine/ansible/ovirt-host-deploy-post-tasks.yml', u'host_deploy_ovn_tunneling_interface': u'192.168.122.82', u'host_deploy_override_firewall': u'true'} 2019-12-02 12:09:40,288 - runner_service.services.playbook - DEBUG - Clearing up old env directory 2019-12-02 12:09:40,289 - runner_service.services.playbook - DEBUG - Run the playbook with a private key override of /home/eraviv/ov/dep/ovirt-engine-master-c/etc/pki/ovirt-engine/keys/engine_id_rsa 2019-12-02 12:09:40,289 - runner_service.services.playbook - DEBUG - Creating env/cmdline file: --private-key /home/eraviv/ov/dep/ovirt-engine-master-c/etc/pki/ovirt-engine/keys/engine_id_rsa 2019-12-02 12:09:40,290 - flask.app - ERROR - Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/lib/python2.7/site-packages/flask_restful/__init__.py", line 477, in wrapper resp = resource(*args, **kwargs) File "/usr/lib/python2.7/site-packages/flask/views.py", line 88, in view return self.dispatch_request(*args, **kwargs) File "/usr/lib/python2.7/site-packages/flask_restful/__init__.py", line 587, in dispatch_request resp = meth(*args, **kwargs) File "/usr/lib/python2.7/site-packages/runner_service/controllers/utils.py", line 29, in wrapper On Wed, Nov 27, 2019 at 12:46 PM Ondra Machacek <omachace@redhat.com> wrote:
Patches are merged.
On 27/11/2019 08:36, Ondra Machacek wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra

On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29. I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl=http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1 which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...

On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl=http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.

Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs. On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl=http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
-- Thanks, Kaustav Majumder

Have you installed and setup ansible-runner-service-dev as mentioned in Ondra's email and in README.adoc: https://github.com/oVirt/ovirt-engine/blob/master/README.adoc#ansible-runner... On Mon, Dec 16, 2019 at 1:45 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl=http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.

On Mon, Dec 16, 2019 at 6:22 PM Martin Perina <mperina@redhat.com> wrote:
Have you installed and setup ansible-runner-service-dev as mentioned in Ondra's email and in README.adoc:
Yes have followed these steps. I am running a dnf update again just to make sure.
https://github.com/oVirt/ovirt-engine/blob/master/README.adoc#ansible-runner...
On Mon, Dec 16, 2019 at 1:45 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.
-- Thanks, Kaustav Majumder

Have run dnf update and tried adding the host again. Issue persists. On Mon, Dec 16, 2019 at 6:38 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 6:22 PM Martin Perina <mperina@redhat.com> wrote:
Have you installed and setup ansible-runner-service-dev as mentioned in Ondra's email and in README.adoc:
Yes have followed these steps. I am running a dnf update again just to make sure.
https://github.com/oVirt/ovirt-engine/blob/master/README.adoc#ansible-runner...
On Mon, Dec 16, 2019 at 1:45 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.
--
Thanks,
Kaustav Majumder
-- Thanks, Kaustav Majumder

Hi Kaustav, Have you tried to run the following on your host before being deployed from engine? # dnf install http://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm # dnf update On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl=http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder

On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl=http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder

No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ``` On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder
-- Thanks, Kaustav Majumder

from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash? ls */*var/log/ovirt-engine/host-deploy/ On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
Hello,
we are going to merge a series of patches to master branch, which integrates ansible-runner with oVirt engine. When the patches will be merged you will need to install new package called ansible-runner- service-dev, and follow instructions so your dev-env will keep working smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
"dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
--- playbooks_root_dir: '$PREFIX/share/ovirt-engine/ansible-runner-service-project' ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' port: 50001 target_user: root
Where `$PREFIX` is the prefix of your development environment prefix, which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service # systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are natively supported!
Thanks, Ondra _______________________________________________ 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/AFKGTV4WDNONLN...
_______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder

On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote:
> Hello, > > we are going to merge a series of patches to master branch, which > integrates ansible-runner with oVirt engine. When the patches will be > merged you will need to install new package called ansible-runner- > service-dev, and follow instructions so your dev-env will keep > working > smoothly(all relevant info will be also in README.adoc): > > 1) sudo dnf update ovirt-release-master > > 2) sudo dnf install -y ansible-runner-service-dev > > "dnf install -y ansible-runner-service-dev" did not work for me on fedora 29.
You need to have at least FC30, because ansible-runner on FC29 is too old
I created manually the file /etc/yum.repos.d/centos.repo: [centos-ovirt44-testing] name=CentOS-7 - oVirt 4.4 baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ gpgcheck=0 enabled=1
which made the ansible-runner-service-dev available.
> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: > > --- > playbooks_root_dir: > '$PREFIX/share/ovirt-engine/ansible-runner-service-project' > ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' > port: 50001 > target_user: root > > Where `$PREFIX` is the prefix of your development environment > prefix, > which you've specified during the compilation of the engine. > > 4) Restart and enable ansible-runner-service: > > # systemctl restart ansible-runner-service > # systemctl enable ansible-runner-service > > That's it, your dev-env should start using the > ansible-runner-service > for host-deployment etc. > > Please note that only Fedora 30/31 and Centos7 was packaged, and are > natively supported! > > Thanks, > Ondra > _______________________________________________ > 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/AFKGTV4WDNONLN... > _______________________________________________ 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/RMNEQG7KNFWSQX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
-- Thanks, Kaustav Majumder

what do you see for your host on engine.log ? any SSH timeout issue? On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote:
> > > On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> > wrote: > >> Hello, >> >> we are going to merge a series of patches to master branch, which >> integrates ansible-runner with oVirt engine. When the patches will >> be >> merged you will need to install new package called ansible-runner- >> service-dev, and follow instructions so your dev-env will keep >> working >> smoothly(all relevant info will be also in README.adoc): >> >> 1) sudo dnf update ovirt-release-master >> >> 2) sudo dnf install -y ansible-runner-service-dev >> >> > "dnf install -y ansible-runner-service-dev" did not work for me on > fedora 29. >
You need to have at least FC30, because ansible-runner on FC29 is too old
> I created manually the file /etc/yum.repos.d/centos.repo: > [centos-ovirt44-testing] > name=CentOS-7 - oVirt 4.4 > baseurl= > http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ > gpgcheck=0 > enabled=1 > > which made the ansible-runner-service-dev available. > > >> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >> >> --- >> playbooks_root_dir: >> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >> ssh_private_key: >> '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >> port: 50001 >> target_user: root >> >> Where `$PREFIX` is the prefix of your development environment >> prefix, >> which you've specified during the compilation of the engine. >> >> 4) Restart and enable ansible-runner-service: >> >> # systemctl restart ansible-runner-service >> # systemctl enable ansible-runner-service >> >> That's it, your dev-env should start using the >> ansible-runner-service >> for host-deployment etc. >> >> Please note that only Fedora 30/31 and Centos7 was packaged, and are >> natively supported! >> >> Thanks, >> Ondra >> _______________________________________________ >> 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/AFKGTV4WDNONLN... >> > _______________________________________________ > 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/RMNEQG7KNFWSQX... >
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. _______________________________________________ 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/5TMTVOWQLF7GQS...
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder

No errors nothing, Only Install vds command started and after that the default schedulers logs https://pastebin.com/SJ3JBBnP On Mon, Dec 16, 2019 at 7:56 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
> > > On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> > wrote: > >> >> >> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> >> wrote: >> >>> Hello, >>> >>> we are going to merge a series of patches to master branch, which >>> integrates ansible-runner with oVirt engine. When the patches will >>> be >>> merged you will need to install new package called ansible-runner- >>> service-dev, and follow instructions so your dev-env will keep >>> working >>> smoothly(all relevant info will be also in README.adoc): >>> >>> 1) sudo dnf update ovirt-release-master >>> >>> 2) sudo dnf install -y ansible-runner-service-dev >>> >>> >> "dnf install -y ansible-runner-service-dev" did not work for me on >> fedora 29. >> > > You need to have at least FC30, because ansible-runner on FC29 is > too old > >> I created manually the file /etc/yum.repos.d/centos.repo: >> [centos-ovirt44-testing] >> name=CentOS-7 - oVirt 4.4 >> baseurl= >> http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >> gpgcheck=0 >> enabled=1 >> >> which made the ansible-runner-service-dev available. >> >> >>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>> >>> --- >>> playbooks_root_dir: >>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>> ssh_private_key: >>> '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>> port: 50001 >>> target_user: root >>> >>> Where `$PREFIX` is the prefix of your development environment >>> prefix, >>> which you've specified during the compilation of the engine. >>> >>> 4) Restart and enable ansible-runner-service: >>> >>> # systemctl restart ansible-runner-service >>> # systemctl enable ansible-runner-service >>> >>> That's it, your dev-env should start using the >>> ansible-runner-service >>> for host-deployment etc. >>> >>> Please note that only Fedora 30/31 and Centos7 was packaged, and >>> are >>> natively supported! >>> >>> Thanks, >>> Ondra >>> _______________________________________________ >>> 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/AFKGTV4WDNONLN... >>> >> _______________________________________________ >> 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/RMNEQG7KNFWSQX... >> > > > -- > Martin Perina > Manager, Software Engineering > Red Hat Czech s.r.o. > _______________________________________________ > 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/5TMTVOWQLF7GQS... >
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
-- Thanks, Kaustav Majumder

Dear Amit, There are a few scenarios, but on adding a new Host freshly installed, the errors are as follows: 2019-12-15 16:41:55,347+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1. 2019-12-15 16:41:55,622+02 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log. 2019-12-15 16:41:55,623+02 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log 2019-12-15 16:41:55,630+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b 2019-12-15 16:41:55,640+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b 2019-12-15 16:41:55,669+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log. 2019-12-15 16:41:55,683+02 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}' The host-deploy directory is empty however and the gunicorn journal fails as follows: Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last): The traceback is quite long. I can provide more information accordingly. With Best Regards. Steven. On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi, i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs.
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote:
> > > On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> > wrote: > >> >> >> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> >> wrote: >> >>> Hello, >>> >>> we are going to merge a series of patches to master branch, which >>> integrates ansible-runner with oVirt engine. When the patches will >>> be >>> merged you will need to install new package called ansible-runner- >>> service-dev, and follow instructions so your dev-env will keep >>> working >>> smoothly(all relevant info will be also in README.adoc): >>> >>> 1) sudo dnf update ovirt-release-master >>> >>> 2) sudo dnf install -y ansible-runner-service-dev >>> >>> >> "dnf install -y ansible-runner-service-dev" did not work for me on >> fedora 29. >> > > You need to have at least FC30, because ansible-runner on FC29 is > too old > >> I created manually the file /etc/yum.repos.d/centos.repo: >> [centos-ovirt44-testing] >> name=CentOS-7 - oVirt 4.4 >> baseurl= >> http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >> gpgcheck=0 >> enabled=1 >> >> which made the ansible-runner-service-dev available. >> >> >>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>> >>> --- >>> playbooks_root_dir: >>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>> ssh_private_key: >>> '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>> port: 50001 >>> target_user: root >>> >>> Where `$PREFIX` is the prefix of your development environment >>> prefix, >>> which you've specified during the compilation of the engine. >>> >>> 4) Restart and enable ansible-runner-service: >>> >>> # systemctl restart ansible-runner-service >>> # systemctl enable ansible-runner-service >>> >>> That's it, your dev-env should start using the >>> ansible-runner-service >>> for host-deployment etc. >>> >>> Please note that only Fedora 30/31 and Centos7 was packaged, and >>> are >>> natively supported! >>> >>> Thanks, >>> Ondra >>> _______________________________________________ >>> 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/AFKGTV4WDNONLN... >>> >> _______________________________________________ >> 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/RMNEQG7KNFWSQX... >> > > > -- > Martin Perina > Manager, Software Engineering > Red Hat Czech s.r.o. > _______________________________________________ > 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/5TMTVOWQLF7GQS... >
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder

Dear Kaustav Majumder, We resolved the issue I had and the symptoms sound similar to what you are experiencing. 1. One needs to have the ansible versions installs from these packages [1] which includes ansible-runner 1.3.4 2. If you do ansible-runner --version and you get version 1.0.1 you need to install python2-ansible-runner from the link to get version 1.3.4 (this was the issue I had). 3. One still needs to start from a clean engine and a newly installed Host using master [2], an older deployment did not work [1] https://cbs.centos.org/repos/virt7-ovirt-44-testing/x86_64/os/Packages/ [2] yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm With Best Regards. Steven Rosenberg. On Mon, Dec 16, 2019 at 4:32 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Amit,
There are a few scenarios, but on adding a new Host freshly installed, the errors are as follows:
2019-12-15 16:41:55,347+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1.
2019-12-15 16:41:55,622+02 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log.
2019-12-15 16:41:55,623+02 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log
2019-12-15 16:41:55,630+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b
2019-12-15 16:41:55,640+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b
2019-12-15 16:41:55,669+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log.
2019-12-15 16:41:55,683+02 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}'
The host-deploy directory is empty however and the gunicorn journal fails as follows:
Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last):
The traceback is quite long.
I can provide more information accordingly.
With Best Regards.
Steven.
On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
> Hi, > i have tried setting up my devel env on an updated fedora 30. Engine > is running well but when I am trying to add a new host to the engine > (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this > expected behaviour? Also I can't find any host deploy or ansible logs. >
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> > wrote: > >> >> >> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> >> wrote: >> >>> >>> >>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek < >>> omachace@redhat.com> wrote: >>> >>>> Hello, >>>> >>>> we are going to merge a series of patches to master branch, which >>>> integrates ansible-runner with oVirt engine. When the patches >>>> will be >>>> merged you will need to install new package called ansible-runner- >>>> service-dev, and follow instructions so your dev-env will keep >>>> working >>>> smoothly(all relevant info will be also in README.adoc): >>>> >>>> 1) sudo dnf update ovirt-release-master >>>> >>>> 2) sudo dnf install -y ansible-runner-service-dev >>>> >>>> >>> "dnf install -y ansible-runner-service-dev" did not work for me on >>> fedora 29. >>> >> >> You need to have at least FC30, because ansible-runner on FC29 is >> too old >> >>> I created manually the file /etc/yum.repos.d/centos.repo: >>> [centos-ovirt44-testing] >>> name=CentOS-7 - oVirt 4.4 >>> baseurl= >>> http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>> gpgcheck=0 >>> enabled=1 >>> >>> which made the ansible-runner-service-dev available. >>> >>> >>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>>> >>>> --- >>>> playbooks_root_dir: >>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>> ssh_private_key: >>>> '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>> port: 50001 >>>> target_user: root >>>> >>>> Where `$PREFIX` is the prefix of your development environment >>>> prefix, >>>> which you've specified during the compilation of the engine. >>>> >>>> 4) Restart and enable ansible-runner-service: >>>> >>>> # systemctl restart ansible-runner-service >>>> # systemctl enable ansible-runner-service >>>> >>>> That's it, your dev-env should start using the >>>> ansible-runner-service >>>> for host-deployment etc. >>>> >>>> Please note that only Fedora 30/31 and Centos7 was packaged, and >>>> are >>>> natively supported! >>>> >>>> Thanks, >>>> Ondra >>>> _______________________________________________ >>>> 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/AFKGTV4WDNONLN... >>>> >>> _______________________________________________ >>> 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/RMNEQG7KNFWSQX... >>> >> >> >> -- >> Martin Perina >> Manager, Software Engineering >> Red Hat Czech s.r.o. >> _______________________________________________ >> 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/5TMTVOWQLF7GQS... >> > > > -- > > Thanks, > > Kaustav Majumder >
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder

Thanks Steven. Let me check. On Tue, Dec 17, 2019 at 7:18 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Kaustav Majumder,
We resolved the issue I had and the symptoms sound similar to what you are experiencing.
1. One needs to have the ansible versions installs from these packages [1] which includes ansible-runner 1.3.4 2. If you do ansible-runner --version and you get version 1.0.1 you need to install python2-ansible-runner from the link to get version 1.3.4 (this was the issue I had). 3. One still needs to start from a clean engine and a newly installed Host using master [2], an older deployment did not work
[1] https://cbs.centos.org/repos/virt7-ovirt-44-testing/x86_64/os/Packages/ [2] yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
With Best Regards.
Steven Rosenberg.
On Mon, Dec 16, 2019 at 4:32 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Amit,
There are a few scenarios, but on adding a new Host freshly installed, the errors are as follows:
2019-12-15 16:41:55,347+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1.
2019-12-15 16:41:55,622+02 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log.
2019-12-15 16:41:55,623+02 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log
2019-12-15 16:41:55,630+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b
2019-12-15 16:41:55,640+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b
2019-12-15 16:41:55,669+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log.
2019-12-15 16:41:55,683+02 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}'
The host-deploy directory is empty however and the gunicorn journal fails as follows:
Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last):
The traceback is quite long.
I can provide more information accordingly.
With Best Regards.
Steven.
On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
> > > On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder < > kmajumde@redhat.com> wrote: > >> Hi, >> i have tried setting up my devel env on an updated fedora 30. >> Engine is running well but when I am trying to add a new host to the engine >> (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this >> expected behaviour? Also I can't find any host deploy or ansible logs. >> > > Aren't any new logs under engine machine path at > /var/log/ovirt-engine/host-deploy/ ? > > >> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> >> wrote: >> >>> >>> >>> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> >>> wrote: >>> >>>> >>>> >>>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek < >>>> omachace@redhat.com> wrote: >>>> >>>>> Hello, >>>>> >>>>> we are going to merge a series of patches to master branch, which >>>>> integrates ansible-runner with oVirt engine. When the patches >>>>> will be >>>>> merged you will need to install new package called >>>>> ansible-runner- >>>>> service-dev, and follow instructions so your dev-env will keep >>>>> working >>>>> smoothly(all relevant info will be also in README.adoc): >>>>> >>>>> 1) sudo dnf update ovirt-release-master >>>>> >>>>> 2) sudo dnf install -y ansible-runner-service-dev >>>>> >>>>> >>>> "dnf install -y ansible-runner-service-dev" did not work for me >>>> on fedora 29. >>>> >>> >>> You need to have at least FC30, because ansible-runner on FC29 is >>> too old >>> >>>> I created manually the file /etc/yum.repos.d/centos.repo: >>>> [centos-ovirt44-testing] >>>> name=CentOS-7 - oVirt 4.4 >>>> baseurl= >>>> http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>>> gpgcheck=0 >>>> enabled=1 >>>> >>>> which made the ansible-runner-service-dev available. >>>> >>>> >>>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as >>>>> follows: >>>>> >>>>> --- >>>>> playbooks_root_dir: >>>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>>> ssh_private_key: >>>>> '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>>> port: 50001 >>>>> target_user: root >>>>> >>>>> Where `$PREFIX` is the prefix of your development environment >>>>> prefix, >>>>> which you've specified during the compilation of the engine. >>>>> >>>>> 4) Restart and enable ansible-runner-service: >>>>> >>>>> # systemctl restart ansible-runner-service >>>>> # systemctl enable ansible-runner-service >>>>> >>>>> That's it, your dev-env should start using the >>>>> ansible-runner-service >>>>> for host-deployment etc. >>>>> >>>>> Please note that only Fedora 30/31 and Centos7 was packaged, and >>>>> are >>>>> natively supported! >>>>> >>>>> Thanks, >>>>> Ondra >>>>> _______________________________________________ >>>>> 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/AFKGTV4WDNONLN... >>>>> >>>> _______________________________________________ >>>> 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/RMNEQG7KNFWSQX... >>>> >>> >>> >>> -- >>> Martin Perina >>> Manager, Software Engineering >>> Red Hat Czech s.r.o. >>> _______________________________________________ >>> 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/5TMTVOWQLF7GQS... >>> >> >> >> -- >> >> Thanks, >> >> Kaustav Majumder >> >
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
-- Thanks, Kaustav Majumder

Hi Steven, Thanks that worked. But now I am facing an ansible issue while adding a new host to engine. The host is centos 7 and failing at *TASK [ovirt-host-deploy-vdsm : Install latest ovirt-host package] **************2019-12-19 13:40:53 IST - fatal: [10.70.35.237]: FAILED! => {"changed": false, "msg": "No package matching 'ovirt-host' found available, installed or updated", "rc": 126, "results": ["No package matching 'ovirt-host' found available, installed or updated"]}* Log snippet: https://pastebin.com/rtu5QXZ8 I have installed yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm on the host as well. Any suggestions? On Tue, Dec 17, 2019 at 7:21 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Thanks Steven. Let me check.
On Tue, Dec 17, 2019 at 7:18 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Kaustav Majumder,
We resolved the issue I had and the symptoms sound similar to what you are experiencing.
1. One needs to have the ansible versions installs from these packages [1] which includes ansible-runner 1.3.4 2. If you do ansible-runner --version and you get version 1.0.1 you need to install python2-ansible-runner from the link to get version 1.3.4 (this was the issue I had). 3. One still needs to start from a clean engine and a newly installed Host using master [2], an older deployment did not work
[1] https://cbs.centos.org/repos/virt7-ovirt-44-testing/x86_64/os/Packages/ [2] yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
With Best Regards.
Steven Rosenberg.
On Mon, Dec 16, 2019 at 4:32 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Amit,
There are a few scenarios, but on adding a new Host freshly installed, the errors are as follows:
2019-12-15 16:41:55,347+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1.
2019-12-15 16:41:55,622+02 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log.
2019-12-15 16:41:55,623+02 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log
2019-12-15 16:41:55,630+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b
2019-12-15 16:41:55,640+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b
2019-12-15 16:41:55,669+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log.
2019-12-15 16:41:55,683+02 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}'
The host-deploy directory is empty however and the gunicorn journal fails as follows:
Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last):
The traceback is quite long.
I can provide more information accordingly.
With Best Regards.
Steven.
On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
> No logs whatsoever. > ``` > ls var/log/ovirt-engine/host-deploy/ > ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ > ``` > > > On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> > wrote: > >> >> >> On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder < >> kmajumde@redhat.com> wrote: >> >>> Hi, >>> i have tried setting up my devel env on an updated fedora 30. >>> Engine is running well but when I am trying to add a new host to the engine >>> (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this >>> expected behaviour? Also I can't find any host deploy or ansible logs. >>> >> >> Aren't any new logs under engine machine path at >> /var/log/ovirt-engine/host-deploy/ ? >> >> >>> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> >>> wrote: >>> >>>> >>>> >>>> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler < >>>> dholler@redhat.com> wrote: >>>> >>>>> >>>>> >>>>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek < >>>>> omachace@redhat.com> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> we are going to merge a series of patches to master branch, >>>>>> which >>>>>> integrates ansible-runner with oVirt engine. When the patches >>>>>> will be >>>>>> merged you will need to install new package called >>>>>> ansible-runner- >>>>>> service-dev, and follow instructions so your dev-env will keep >>>>>> working >>>>>> smoothly(all relevant info will be also in README.adoc): >>>>>> >>>>>> 1) sudo dnf update ovirt-release-master >>>>>> >>>>>> 2) sudo dnf install -y ansible-runner-service-dev >>>>>> >>>>>> >>>>> "dnf install -y ansible-runner-service-dev" did not work for me >>>>> on fedora 29. >>>>> >>>> >>>> You need to have at least FC30, because ansible-runner on FC29 is >>>> too old >>>> >>>>> I created manually the file /etc/yum.repos.d/centos.repo: >>>>> [centos-ovirt44-testing] >>>>> name=CentOS-7 - oVirt 4.4 >>>>> baseurl= >>>>> http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>>>> gpgcheck=0 >>>>> enabled=1 >>>>> >>>>> which made the ansible-runner-service-dev available. >>>>> >>>>> >>>>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as >>>>>> follows: >>>>>> >>>>>> --- >>>>>> playbooks_root_dir: >>>>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>>>> ssh_private_key: >>>>>> '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>>>> port: 50001 >>>>>> target_user: root >>>>>> >>>>>> Where `$PREFIX` is the prefix of your development environment >>>>>> prefix, >>>>>> which you've specified during the compilation of the engine. >>>>>> >>>>>> 4) Restart and enable ansible-runner-service: >>>>>> >>>>>> # systemctl restart ansible-runner-service >>>>>> # systemctl enable ansible-runner-service >>>>>> >>>>>> That's it, your dev-env should start using the >>>>>> ansible-runner-service >>>>>> for host-deployment etc. >>>>>> >>>>>> Please note that only Fedora 30/31 and Centos7 was packaged, >>>>>> and are >>>>>> natively supported! >>>>>> >>>>>> Thanks, >>>>>> Ondra >>>>>> _______________________________________________ >>>>>> 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/AFKGTV4WDNONLN... >>>>>> >>>>> _______________________________________________ >>>>> 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/RMNEQG7KNFWSQX... >>>>> >>>> >>>> >>>> -- >>>> Martin Perina >>>> Manager, Software Engineering >>>> Red Hat Czech s.r.o. >>>> _______________________________________________ >>>> 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/5TMTVOWQLF7GQS... >>>> >>> >>> >>> -- >>> >>> Thanks, >>> >>> Kaustav Majumder >>> >> > > -- > > Thanks, > > Kaustav Majumder >
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
-- Thanks, Kaustav Majumder

ovirt-host isn't built for el7, use centos/rhel 8 On Thu, Dec 19, 2019 at 10:16 AM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi Steven, Thanks that worked. But now I am facing an ansible issue while adding a new host to engine. The host is centos 7 and failing at
TASK [ovirt-host-deploy-vdsm : Install latest ovirt-host package] ************** 2019-12-19 13:40:53 IST - fatal: [10.70.35.237]: FAILED! => {"changed": false, "msg": "No package matching 'ovirt-host' found available, installed or updated", "rc": 126, "results": ["No package matching 'ovirt-host' found available, installed or updated"]}
Log snippet: https://pastebin.com/rtu5QXZ8
I have installed yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm on the host as well. Any suggestions?
On Tue, Dec 17, 2019 at 7:21 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Thanks Steven. Let me check.
On Tue, Dec 17, 2019 at 7:18 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Kaustav Majumder,
We resolved the issue I had and the symptoms sound similar to what you are experiencing.
1. One needs to have the ansible versions installs from these packages [1] which includes ansible-runner 1.3.4 2. If you do ansible-runner --version and you get version 1.0.1 you need to install python2-ansible-runner from the link to get version 1.3.4 (this was the issue I had). 3. One still needs to start from a clean engine and a newly installed Host using master [2], an older deployment did not work
[1] https://cbs.centos.org/repos/virt7-ovirt-44-testing/x86_64/os/Packages/ [2] yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
With Best Regards.
Steven Rosenberg.
On Mon, Dec 16, 2019 at 4:32 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Amit,
There are a few scenarios, but on adding a new Host freshly installed, the errors are as follows:
2019-12-15 16:41:55,347+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1.
2019-12-15 16:41:55,622+02 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log.
2019-12-15 16:41:55,623+02 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log
2019-12-15 16:41:55,630+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b
2019-12-15 16:41:55,640+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b
2019-12-15 16:41:55,669+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log.
2019-12-15 16:41:55,683+02 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}'
The host-deploy directory is empty however and the gunicorn journal fails as follows:
Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last):
The traceback is quite long.
I can provide more information accordingly.
With Best Regards.
Steven.
On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote: > > from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log > > trying to ls var in relative path to your working directory > is it possible you have omitted the leading backslash? > > ls /var/log/ovirt-engine/host-deploy/ > > > On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote: >> >> No logs whatsoever. >> ``` >> ls var/log/ovirt-engine/host-deploy/ >> ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ >> ``` >> >> >> On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote: >>> >>> >>> >>> On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote: >>>> >>>> Hi, >>>> i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs. >>> >>> >>> Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ? >>> >>>> >>>> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> wrote: >>>>> >>>>> >>>>> >>>>> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> wrote: >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek <omachace@redhat.com> wrote: >>>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> we are going to merge a series of patches to master branch, which >>>>>>> integrates ansible-runner with oVirt engine. When the patches will be >>>>>>> merged you will need to install new package called ansible-runner- >>>>>>> service-dev, and follow instructions so your dev-env will keep working >>>>>>> smoothly(all relevant info will be also in README.adoc): >>>>>>> >>>>>>> 1) sudo dnf update ovirt-release-master >>>>>>> >>>>>>> 2) sudo dnf install -y ansible-runner-service-dev >>>>>>> >>>>>> >>>>>> "dnf install -y ansible-runner-service-dev" did not work for me on fedora 29. >>>>> >>>>> >>>>> You need to have at least FC30, because ansible-runner on FC29 is too old >>>>>> >>>>>> I created manually the file /etc/yum.repos.d/centos.repo: >>>>>> [centos-ovirt44-testing] >>>>>> name=CentOS-7 - oVirt 4.4 >>>>>> baseurl=http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>>>>> gpgcheck=0 >>>>>> enabled=1 >>>>>> >>>>>> which made the ansible-runner-service-dev available. >>>>>> >>>>>>> >>>>>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>>>>>> >>>>>>> --- >>>>>>> playbooks_root_dir: >>>>>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>>>>> ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>>>>> port: 50001 >>>>>>> target_user: root >>>>>>> >>>>>>> Where `$PREFIX` is the prefix of your development environment prefix, >>>>>>> which you've specified during the compilation of the engine. >>>>>>> >>>>>>> 4) Restart and enable ansible-runner-service: >>>>>>> >>>>>>> # systemctl restart ansible-runner-service >>>>>>> # systemctl enable ansible-runner-service >>>>>>> >>>>>>> That's it, your dev-env should start using the ansible-runner-service >>>>>>> for host-deployment etc. >>>>>>> >>>>>>> Please note that only Fedora 30/31 and Centos7 was packaged, and are >>>>>>> natively supported! >>>>>>> >>>>>>> Thanks, >>>>>>> Ondra >>>>>>> _______________________________________________ >>>>>>> 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/AFKGTV4WDNONLN... >>>>>> >>>>>> _______________________________________________ >>>>>> 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/RMNEQG7KNFWSQX... >>>>> >>>>> >>>>> >>>>> -- >>>>> Martin Perina >>>>> Manager, Software Engineering >>>>> Red Hat Czech s.r.o. >>>>> _______________________________________________ >>>>> 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/5TMTVOWQLF7GQS... >>>> >>>> >>>> >>>> -- >>>> >>>> Thanks, >>>> >>>> Kaustav Majumder >> >> >> >> -- >> >> Thanks, >> >> Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder

On Thu, Dec 19, 2019 at 9:23 AM Benny Zlotnik <bzlotnik@redhat.com> wrote:
ovirt-host isn't built for el7, use centos/rhel 8
Yes, if you want to use 4.4 hosts, then they need to be on EL8. If you want to use EL7 hosts, then you need to use 4.3 repos, which means that you need to stick with 4.2/4.3 cluster levels
On Thu, Dec 19, 2019 at 10:16 AM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi Steven, Thanks that worked. But now I am facing an ansible issue while adding a
new host to engine. The host is centos 7 and failing at
TASK [ovirt-host-deploy-vdsm : Install latest ovirt-host package]
2019-12-19 13:40:53 IST - fatal: [10.70.35.237]: FAILED! => {"changed": false, "msg": "No package matching 'ovirt-host' found available, installed or updated", "rc": 126, "results": ["No package matching 'ovirt-host' found available, installed or updated"]}
Log snippet: https://pastebin.com/rtu5QXZ8
I have installed yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm on the host as well. Any suggestions?
On Tue, Dec 17, 2019 at 7:21 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Thanks Steven. Let me check.
On Tue, Dec 17, 2019 at 7:18 PM Steven Rosenberg <srosenbe@redhat.com>
wrote:
Dear Kaustav Majumder,
We resolved the issue I had and the symptoms sound similar to what you
are experiencing.
1. One needs to have the ansible versions installs from these packages
[1] which includes ansible-runner 1.3.4
2. If you do ansible-runner --version and you get version 1.0.1 you need to install python2-ansible-runner from the link to get version 1.3.4 (this was the issue I had). 3. One still needs to start from a clean engine and a newly installed Host using master [2], an older deployment did not work
[1] https://cbs.centos.org/repos/virt7-ovirt-44-testing/x86_64/os/Packages/ [2] yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
With Best Regards.
Steven Rosenberg.
On Mon, Dec 16, 2019 at 4:32 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Amit,
There are a few scenarios, but on adding a new Host freshly
installed, the errors are as follows:
2019-12-15 16:41:55,347+02 INFO
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1.
2019-12-15 16:41:55,622+02 ERROR
[org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log.
2019-12-15 16:41:55,623+02 ERROR
[org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log
2019-12-15 16:41:55,630+02 INFO
[org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b
2019-12-15 16:41:55,640+02 INFO
[org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b
2019-12-15 16:41:55,669+02 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log.
2019-12-15 16:41:55,683+02 INFO
[org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}'
The host-deploy directory is empty however and the gunicorn journal
fails as follows:
Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline
file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last):
The traceback is quite long.
I can provide more information accordingly.
With Best Regards.
Steven.
On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <
kmajumde@redhat.com> wrote:
> > > > On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote: >> >> from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options > > This is my $PREFIX . > ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ > ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log >> >> trying to ls var in relative path to your working directory >> is it possible you have omitted the leading backslash? >> >> ls /var/log/ovirt-engine/host-deploy/ >> >> >> On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >>> >>> No logs whatsoever. >>> ``` >>> ls var/log/ovirt-engine/host-deploy/ >>> ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ >>> ``` >>> >>> >>> On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote: >>>> >>>> >>>> >>>> On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >>>>> >>>>> Hi, >>>>> i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs. >>>> >>>> >>>> Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ? >>>> >>>>> >>>>> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina < mperina@redhat.com> wrote: >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler < dholler@redhat.com> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek < omachace@redhat.com> wrote: >>>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> we are going to merge a series of patches to master branch, which >>>>>>>> integrates ansible-runner with oVirt engine. When the
************** patches will be
>>>>>>>> merged you will need to install new package called ansible-runner- >>>>>>>> service-dev, and follow instructions so your dev-env will keep working >>>>>>>> smoothly(all relevant info will be also in README.adoc): >>>>>>>> >>>>>>>> 1) sudo dnf update ovirt-release-master >>>>>>>> >>>>>>>> 2) sudo dnf install -y ansible-runner-service-dev >>>>>>>> >>>>>>> >>>>>>> "dnf install -y ansible-runner-service-dev" did not work for me on fedora 29. >>>>>> >>>>>> >>>>>> You need to have at least FC30, because ansible-runner on FC29 is too old >>>>>>> >>>>>>> I created manually the file /etc/yum.repos.d/centos.repo: >>>>>>> [centos-ovirt44-testing] >>>>>>> name=CentOS-7 - oVirt 4.4 >>>>>>> baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>>>>>> gpgcheck=0 >>>>>>> enabled=1 >>>>>>> >>>>>>> which made the ansible-runner-service-dev available. >>>>>>> >>>>>>>> >>>>>>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>>>>>>> >>>>>>>> --- >>>>>>>> playbooks_root_dir: >>>>>>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>>>>>> ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>>>>>> port: 50001 >>>>>>>> target_user: root >>>>>>>> >>>>>>>> Where `$PREFIX` is the prefix of your development environment prefix, >>>>>>>> which you've specified during the compilation of the engine. >>>>>>>> >>>>>>>> 4) Restart and enable ansible-runner-service: >>>>>>>> >>>>>>>> # systemctl restart ansible-runner-service >>>>>>>> # systemctl enable ansible-runner-service >>>>>>>> >>>>>>>> That's it, your dev-env should start using the ansible-runner-service >>>>>>>> for host-deployment etc. >>>>>>>> >>>>>>>> Please note that only Fedora 30/31 and Centos7 was packaged, and are >>>>>>>> natively supported! >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Ondra >>>>>>>> _______________________________________________ >>>>>>>> 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/AFKGTV4WDNONLN... >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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/RMNEQG7KNFWSQX... >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Martin Perina >>>>>> Manager, Software Engineering >>>>>> Red Hat Czech s.r.o. >>>>>> _______________________________________________ >>>>>> 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/5TMTVOWQLF7GQS... >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Thanks, >>>>> >>>>> Kaustav Majumder >>> >>> >>> >>> -- >>> >>> Thanks, >>> >>> Kaustav Majumder > > > > -- > > Thanks, > > Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.

To confirm, I installed Rhel 8.1 on the Hosts in a 4.4 Cluster and that worked for me. With Best Regards. Steven. On Thu, Dec 19, 2019 at 10:40 AM Martin Perina <mperina@redhat.com> wrote:
On Thu, Dec 19, 2019 at 9:23 AM Benny Zlotnik <bzlotnik@redhat.com> wrote:
ovirt-host isn't built for el7, use centos/rhel 8
Yes, if you want to use 4.4 hosts, then they need to be on EL8. If you want to use EL7 hosts, then you need to use 4.3 repos, which means that you need to stick with 4.2/4.3 cluster levels
On Thu, Dec 19, 2019 at 10:16 AM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi Steven, Thanks that worked. But now I am facing an ansible issue while adding a
new host to engine. The host is centos 7 and failing at
TASK [ovirt-host-deploy-vdsm : Install latest ovirt-host package]
2019-12-19 13:40:53 IST - fatal: [10.70.35.237]: FAILED! => {"changed": false, "msg": "No package matching 'ovirt-host' found available, installed or updated", "rc": 126, "results": ["No package matching 'ovirt-host' found available, installed or updated"]}
Log snippet: https://pastebin.com/rtu5QXZ8
I have installed yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm on the host as well. Any suggestions?
On Tue, Dec 17, 2019 at 7:21 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Thanks Steven. Let me check.
On Tue, Dec 17, 2019 at 7:18 PM Steven Rosenberg <srosenbe@redhat.com>
wrote:
Dear Kaustav Majumder,
We resolved the issue I had and the symptoms sound similar to what
you are experiencing.
1. One needs to have the ansible versions installs from these
2. If you do ansible-runner --version and you get version 1.0.1 you need to install python2-ansible-runner from the link to get version 1.3.4 (this was the issue I had). 3. One still needs to start from a clean engine and a newly installed Host using master [2], an older deployment did not work
[1] https://cbs.centos.org/repos/virt7-ovirt-44-testing/x86_64/os/Packages/ [2] yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
With Best Regards.
Steven Rosenberg.
On Mon, Dec 16, 2019 at 4:32 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Amit,
There are a few scenarios, but on adding a new Host freshly
installed, the errors are as follows:
2019-12-15 16:41:55,347+02 INFO
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1.
2019-12-15 16:41:55,622+02 ERROR
[org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log.
2019-12-15 16:41:55,623+02 ERROR
[org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log
2019-12-15 16:41:55,630+02 INFO
[org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b
2019-12-15 16:41:55,640+02 INFO
[org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b
2019-12-15 16:41:55,669+02 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log.
2019-12-15 16:41:55,683+02 INFO
[org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}'
The host-deploy directory is empty however and the gunicorn journal
fails as follows:
Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating
env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last):
The traceback is quite long.
I can provide more information accordingly.
With Best Regards.
Steven.
On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com>
wrote:
> > what do you see for your host on engine.log ? any SSH timeout issue? > > On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >> >> >> >> On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote: >>> >>> from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options >> >> This is my $PREFIX . >> ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ >> ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log >>> >>> trying to ls var in relative path to your working directory >>> is it possible you have omitted the leading backslash? >>> >>> ls /var/log/ovirt-engine/host-deploy/ >>> >>> >>> On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >>>> >>>> No logs whatsoever. >>>> ``` >>>> ls var/log/ovirt-engine/host-deploy/ >>>> ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ >>>> ``` >>>> >>>> >>>> On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote: >>>>> >>>>> >>>>> >>>>> On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >>>>>> >>>>>> Hi, >>>>>> i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs. >>>>> >>>>> >>>>> Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ? >>>>> >>>>>> >>>>>> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina < mperina@redhat.com> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler < dholler@redhat.com> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek < omachace@redhat.com> wrote: >>>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> we are going to merge a series of patches to master branch, which >>>>>>>>> integrates ansible-runner with oVirt engine. When the
>>>>>>>>> merged you will need to install new package called ansible-runner- >>>>>>>>> service-dev, and follow instructions so your dev-env will keep working >>>>>>>>> smoothly(all relevant info will be also in README.adoc): >>>>>>>>> >>>>>>>>> 1) sudo dnf update ovirt-release-master >>>>>>>>> >>>>>>>>> 2) sudo dnf install -y ansible-runner-service-dev >>>>>>>>> >>>>>>>> >>>>>>>> "dnf install -y ansible-runner-service-dev" did not work for me on fedora 29. >>>>>>> >>>>>>> >>>>>>> You need to have at least FC30, because ansible-runner on FC29 is too old >>>>>>>> >>>>>>>> I created manually the file /etc/yum.repos.d/centos.repo: >>>>>>>> [centos-ovirt44-testing] >>>>>>>> name=CentOS-7 - oVirt 4.4 >>>>>>>> baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>>>>>>> gpgcheck=0 >>>>>>>> enabled=1 >>>>>>>> >>>>>>>> which made the ansible-runner-service-dev available. >>>>>>>> >>>>>>>>> >>>>>>>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>>>>>>>> >>>>>>>>> --- >>>>>>>>> playbooks_root_dir: >>>>>>>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>>>>>>> ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>>>>>>> port: 50001 >>>>>>>>> target_user: root >>>>>>>>> >>>>>>>>> Where `$PREFIX` is the prefix of your development environment prefix, >>>>>>>>> which you've specified during the compilation of the engine. >>>>>>>>> >>>>>>>>> 4) Restart and enable ansible-runner-service: >>>>>>>>> >>>>>>>>> # systemctl restart ansible-runner-service >>>>>>>>> # systemctl enable ansible-runner-service >>>>>>>>> >>>>>>>>> That's it, your dev-env should start using the ansible-runner-service >>>>>>>>> for host-deployment etc. >>>>>>>>> >>>>>>>>> Please note that only Fedora 30/31 and Centos7 was
************** packages [1] which includes ansible-runner 1.3.4 patches will be packaged, and are
>>>>>>>>> natively supported! >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Ondra >>>>>>>>> _______________________________________________ >>>>>>>>> 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/AFKGTV4WDNONLN... >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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/RMNEQG7KNFWSQX... >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Martin Perina >>>>>>> Manager, Software Engineering >>>>>>> Red Hat Czech s.r.o. >>>>>>> _______________________________________________ >>>>>>> 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/5TMTVOWQLF7GQS... >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Kaustav Majumder >>>> >>>> >>>> >>>> -- >>>> >>>> Thanks, >>>> >>>> Kaustav Majumder >> >> >> >> -- >> >> Thanks, >> >> Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.

Confirmed working on Centos 8 hosts. On Thu, Dec 19, 2019 at 8:28 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
To confirm, I installed Rhel 8.1 on the Hosts in a 4.4 Cluster and that worked for me.
With Best Regards.
Steven.
On Thu, Dec 19, 2019 at 10:40 AM Martin Perina <mperina@redhat.com> wrote:
On Thu, Dec 19, 2019 at 9:23 AM Benny Zlotnik <bzlotnik@redhat.com> wrote:
ovirt-host isn't built for el7, use centos/rhel 8
Yes, if you want to use 4.4 hosts, then they need to be on EL8. If you want to use EL7 hosts, then you need to use 4.3 repos, which means that you need to stick with 4.2/4.3 cluster levels
On Thu, Dec 19, 2019 at 10:16 AM Kaustav Majumder <kmajumde@redhat.com> wrote:
Hi Steven, Thanks that worked. But now I am facing an ansible issue while adding
a new host to engine. The host is centos 7 and failing at
TASK [ovirt-host-deploy-vdsm : Install latest ovirt-host package]
2019-12-19 13:40:53 IST - fatal: [10.70.35.237]: FAILED! => {"changed": false, "msg": "No package matching 'ovirt-host' found available, installed or updated", "rc": 126, "results": ["No package matching 'ovirt-host' found available, installed or updated"]}
Log snippet: https://pastebin.com/rtu5QXZ8
I have installed yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm on the host as well. Any suggestions?
On Tue, Dec 17, 2019 at 7:21 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
Thanks Steven. Let me check.
On Tue, Dec 17, 2019 at 7:18 PM Steven Rosenberg <srosenbe@redhat.com>
wrote:
Dear Kaustav Majumder,
We resolved the issue I had and the symptoms sound similar to what
you are experiencing.
1. One needs to have the ansible versions installs from these
2. If you do ansible-runner --version and you get version 1.0.1 you need to install python2-ansible-runner from the link to get version 1.3.4 (this was the issue I had). 3. One still needs to start from a clean engine and a newly installed Host using master [2], an older deployment did not work
[1] https://cbs.centos.org/repos/virt7-ovirt-44-testing/x86_64/os/Packages/ [2] yum install -y https://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
With Best Regards.
Steven Rosenberg.
On Mon, Dec 16, 2019 at 4:32 PM Steven Rosenberg < srosenbe@redhat.com> wrote: > > Dear Amit, > > There are a few scenarios, but on adding a new Host freshly installed, the errors are as follows: > > 2019-12-15 16:41:55,347+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1. > > 2019-12-15 16:41:55,622+02 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log. > > 2019-12-15 16:41:55,623+02 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log > > 2019-12-15 16:41:55,630+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b > > 2019-12-15 16:41:55,640+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b > > 2019-12-15 16:41:55,669+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log. > > 2019-12-15 16:41:55,683+02 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}' > > The host-deploy directory is empty however and the gunicorn journal fails as follows: > > > Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last): > > > The traceback is quite long. > > > I can provide more information accordingly. > > > With Best Regards. > > > Steven. > > > > > > On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote: >> >> what do you see for your host on engine.log ? any SSH timeout issue? >> >> On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >>> >>> >>> >>> On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote: >>>> >>>> from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options >>> >>> This is my $PREFIX . >>> ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ >>> ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log >>>> >>>> trying to ls var in relative path to your working directory >>>> is it possible you have omitted the leading backslash? >>>> >>>> ls /var/log/ovirt-engine/host-deploy/ >>>> >>>> >>>> On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >>>>> >>>>> No logs whatsoever. >>>>> ``` >>>>> ls var/log/ovirt-engine/host-deploy/ >>>>> ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ >>>>> ``` >>>>> >>>>> >>>>> On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote: >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder < kmajumde@redhat.com> wrote: >>>>>>> >>>>>>> Hi, >>>>>>> i have tried setting up my devel env on an updated fedora 30. Engine is running well but when I am trying to add a new host to the engine (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this expected behaviour? Also I can't find any host deploy or ansible logs. >>>>>> >>>>>> >>>>>> Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ? >>>>>> >>>>>>> >>>>>>> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina < mperina@redhat.com> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler < dholler@redhat.com> wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek < omachace@redhat.com> wrote: >>>>>>>>>> >>>>>>>>>> Hello, >>>>>>>>>> >>>>>>>>>> we are going to merge a series of patches to master branch, which >>>>>>>>>> integrates ansible-runner with oVirt engine. When the
>>>>>>>>>> merged you will need to install new package called ansible-runner- >>>>>>>>>> service-dev, and follow instructions so your dev-env will keep working >>>>>>>>>> smoothly(all relevant info will be also in README.adoc): >>>>>>>>>> >>>>>>>>>> 1) sudo dnf update ovirt-release-master >>>>>>>>>> >>>>>>>>>> 2) sudo dnf install -y ansible-runner-service-dev >>>>>>>>>> >>>>>>>>> >>>>>>>>> "dnf install -y ansible-runner-service-dev" did not work for me on fedora 29. >>>>>>>> >>>>>>>> >>>>>>>> You need to have at least FC30, because ansible-runner on FC29 is too old >>>>>>>>> >>>>>>>>> I created manually the file /etc/yum.repos.d/centos.repo: >>>>>>>>> [centos-ovirt44-testing] >>>>>>>>> name=CentOS-7 - oVirt 4.4 >>>>>>>>> baseurl= http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>>>>>>>> gpgcheck=0 >>>>>>>>> enabled=1 >>>>>>>>> >>>>>>>>> which made the ansible-runner-service-dev available. >>>>>>>>> >>>>>>>>>> >>>>>>>>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>>>>>>>>> >>>>>>>>>> --- >>>>>>>>>> playbooks_root_dir: >>>>>>>>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>>>>>>>> ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>>>>>>>> port: 50001 >>>>>>>>>> target_user: root >>>>>>>>>> >>>>>>>>>> Where `$PREFIX` is the prefix of your development environment prefix, >>>>>>>>>> which you've specified during the compilation of the engine. >>>>>>>>>> >>>>>>>>>> 4) Restart and enable ansible-runner-service: >>>>>>>>>> >>>>>>>>>> # systemctl restart ansible-runner-service >>>>>>>>>> # systemctl enable ansible-runner-service >>>>>>>>>> >>>>>>>>>> That's it, your dev-env should start using the ansible-runner-service >>>>>>>>>> for host-deployment etc. >>>>>>>>>> >>>>>>>>>> Please note that only Fedora 30/31 and Centos7 was
************** packages [1] which includes ansible-runner 1.3.4 patches will be packaged, and are
>>>>>>>>>> natively supported! >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> Ondra >>>>>>>>>> _______________________________________________ >>>>>>>>>> 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/AFKGTV4WDNONLN... >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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/RMNEQG7KNFWSQX... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Martin Perina >>>>>>>> Manager, Software Engineering >>>>>>>> Red Hat Czech s.r.o. >>>>>>>> _______________________________________________ >>>>>>>> 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/5TMTVOWQLF7GQS... >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Kaustav Majumder >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Thanks, >>>>> >>>>> Kaustav Majumder >>> >>> >>> >>> -- >>> >>> Thanks, >>> >>> Kaustav Majumder
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.
-- Thanks, Kaustav Majumder

Hey steven im facing the same issue, _____ 2020-01-09 17:22:26,901+05 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] Opening ssh-copy-id session on host 10.70.42.92 2020-01-09 17:22:27,086+05 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] Executing ssh-copy-id command on host 10.70.42.92 2020-01-09 17:22:27,300+05 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host prajith. 2020-01-09 17:22:27,321+05 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] Exception: Internal server error, please check Ansible runner error log. 2020-01-09 17:22:27,322+05 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] Host installation failed for host '71155740-8f27-473c-8435-2bc9e25938f1', 'prajith': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/prajip/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20200109172227-10.70.42.92-66f0615c.log 2020-01-09 17:22:27,326+05 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] START, SetVdsStatusVDSCommand(HostName = prajith, SetVdsStatusVDSCommandParameters:{hostId='71155740-8f27-473c-8435-2bc9e25938f1', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 158fa975 2020-01-09 17:22:27,334+05 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] FINISH, SetVdsStatusVDSCommand, return: , log id: 158fa975 2020-01-09 17:22:27,345+05 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] EVENT_ID: VDS_INSTALL_FAILED(505), Host prajith installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/prajip/ovirt-engine/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20200109172227-10.70.42.92-66f0615c.log. 2020-01-09 17:22:27,355+05 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-16) [66f0615c] Lock freed to object 'EngineLock:{exclusiveLocks='[71155740-8f27-473c-8435-2bc9e25938f1=VDS]', sharedLocks=''}' ________ *My ansible runner version:-* [prajip@localhost ovirt-engine]$ ansible-runner --version 1.3.4 *Since im unable to find any logs after i get failure in the engine tailf a status ansible-runner gives me the following traceback* ● ansible-runner-service.service - Ansible Runner Service Loaded: loaded (/usr/lib/systemd/system/ansible-runner-service.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2020-01-09 17:20:47 IST; 10min ago Main PID: 19681 (gunicorn-3) Tasks: 3 (limit: 4915) Memory: 67.6M CGroup: /system.slice/ansible-runner-service.service ├─19681 /usr/bin/python3 /usr/bin/gunicorn-3 -b localhost:50001 -w 2 runner_service.wsgi:application ├─19690 /usr/bin/python3 /usr/bin/gunicorn-3 -b localhost:50001 -w 2 runner_service.wsgi:application └─19692 /usr/bin/python3 /usr/bin/gunicorn-3 -b localhost:50001 -w 2 runner_service.wsgi:application Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: return f(*args, **kwargs) Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: File "/usr/lib/python3.7/site-packages/runner_service/controllers/hosts.py", line 85, in get Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: response = get_host_membership(host_name) Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: File "/usr/lib/python3.7/site-packages/runner_service/services/hosts.py", line 98, in get_host_membership Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: inventory = AnsibleInventory() Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: File "/usr/lib/python3.7/site-packages/runner_service/inventory.py", line 120, in __init__ Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: self.load() Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: File "/usr/lib/python3.7/site-packages/runner_service/inventory.py", line 148, in load Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: self.fd.close() Jan 09 17:22:27 localhost.localdomain gunicorn-3[19681]: AttributeError: 'NoneType' object has no attribute 'close' _________________________________________ *Regards,* *Prajith K Prasad.* On Mon, Dec 16, 2019 at 8:03 PM Steven Rosenberg <srosenbe@redhat.com> wrote:
Dear Amit,
There are a few scenarios, but on adding a new Host freshly installed, the errors are as follows:
2019-12-15 16:41:55,347+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_ANSIBLE_INSTALL_STARTED(560), Ansible host-deploy playbook execution has started on host Host1.
2019-12-15 16:41:55,622+02 ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Exception: Internal server error, please check Ansible runner error log.
2019-12-15 16:41:55,623+02 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Host installation failed for host '0e2b5314-4313-4f40-9dca-d716403aa51a', 'Host1': Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log
2019-12-15 16:41:55,630+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] START, SetVdsStatusVDSCommand(HostName = Host1, SetVdsStatusVDSCommandParameters:{hostId='0e2b5314-4313-4f40-9dca-d716403aa51a', status='InstallFailed', nonOperationalReason='NONE', stopSpmFailureLogged='false', maintenanceReason='null'}), log id: 64eb8f0b
2019-12-15 16:41:55,640+02 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] FINISH, SetVdsStatusVDSCommand, return: , log id: 64eb8f0b
2019-12-15 16:41:55,669+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] EVENT_ID: VDS_INSTALL_FAILED(505), Host Host1 installation failed. Failed to execute Ansible host-deploy role: Internal server error, please check Ansible runner error log.. Please check logs for more details: /home/srosenbe/ovirt_engine_master/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20191215164155-10.35.0.35-67eb9528.log.
2019-12-15 16:41:55,683+02 INFO [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (EE-ManagedThreadFactory-engine-Thread-1) [67eb9528] Lock freed to object 'EngineLock:{exclusiveLocks='[0e2b5314-4313-4f40-9dca-d716403aa51a=VDS]', sharedLocks=''}'
The host-deploy directory is empty however and the gunicorn journal fails as follows:
Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Creating env/cmdline file: --private-key /home/srosenbe/ovirt_engine_master/etc/pki/ovirt-engine/keys/engine_id_rsa Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Exception on /api/v1/playbooks/ovirt-host-deploy.yml [POST] Dec 15 16:41:55 srosenbe.tlv.csb gunicorn[3206]: Traceback (most recent call last):
The traceback is quite long.
I can provide more information accordingly.
With Best Regards.
Steven.
On Mon, Dec 16, 2019 at 4:26 PM Amit Bawer <abawer@redhat.com> wrote:
what do you see for your host on engine.log ? any SSH timeout issue?
On Mon, Dec 16, 2019 at 4:18 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
On Mon, Dec 16, 2019 at 7:45 PM Amit Bawer <abawer@redhat.com> wrote:
from snippet is seems you are under ~/work/ovirt-engine-builds/11-12-global-options
This is my $PREFIX . ⌂120% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ls var/log/ovirt-engine/ ansible boot.log cinderlib dump engine.log host-deploy notifier ova server.log setup ui.log
trying to ls var in relative path to your working directory is it possible you have omitted the leading backslash?
ls */*var/log/ovirt-engine/host-deploy/
On Mon, Dec 16, 2019 at 4:11 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
No logs whatsoever. ``` ls var/log/ovirt-engine/host-deploy/ ⌂142% [kmajumde:~/work/ovirt-engine-builds/11-12-global-options] $ ```
On Mon, Dec 16, 2019 at 7:39 PM Amit Bawer <abawer@redhat.com> wrote:
On Mon, Dec 16, 2019 at 2:46 PM Kaustav Majumder <kmajumde@redhat.com> wrote:
> Hi, > i have tried setting up my devel env on an updated fedora 30. Engine > is running well but when I am trying to add a new host to the engine > (Centos 7.7) it is taking 2+ hrs and has still not added the host. Is this > expected behaviour? Also I can't find any host deploy or ansible logs. >
Aren't any new logs under engine machine path at /var/log/ovirt-engine/host-deploy/ ?
> On Thu, Dec 12, 2019 at 2:11 AM Martin Perina <mperina@redhat.com> > wrote: > >> >> >> On Wed, Dec 11, 2019 at 4:29 PM Dominik Holler <dholler@redhat.com> >> wrote: >> >>> >>> >>> On Wed, Nov 27, 2019 at 8:37 AM Ondra Machacek < >>> omachace@redhat.com> wrote: >>> >>>> Hello, >>>> >>>> we are going to merge a series of patches to master branch, which >>>> integrates ansible-runner with oVirt engine. When the patches >>>> will be >>>> merged you will need to install new package called ansible-runner- >>>> service-dev, and follow instructions so your dev-env will keep >>>> working >>>> smoothly(all relevant info will be also in README.adoc): >>>> >>>> 1) sudo dnf update ovirt-release-master >>>> >>>> 2) sudo dnf install -y ansible-runner-service-dev >>>> >>>> >>> "dnf install -y ansible-runner-service-dev" did not work for me on >>> fedora 29. >>> >> >> You need to have at least FC30, because ansible-runner on FC29 is >> too old >> >>> I created manually the file /etc/yum.repos.d/centos.repo: >>> [centos-ovirt44-testing] >>> name=CentOS-7 - oVirt 4.4 >>> baseurl= >>> http://cbs.centos.org/repos/virt7-ovirt-44-testing/$basearch/os/ >>> gpgcheck=0 >>> enabled=1 >>> >>> which made the ansible-runner-service-dev available. >>> >>> >>>> 3) Edit `/etc/ansible-runner-service/config.yaml` file as follows: >>>> >>>> --- >>>> playbooks_root_dir: >>>> '$PREFIX/share/ovirt-engine/ansible-runner-service-project' >>>> ssh_private_key: >>>> '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa' >>>> port: 50001 >>>> target_user: root >>>> >>>> Where `$PREFIX` is the prefix of your development environment >>>> prefix, >>>> which you've specified during the compilation of the engine. >>>> >>>> 4) Restart and enable ansible-runner-service: >>>> >>>> # systemctl restart ansible-runner-service >>>> # systemctl enable ansible-runner-service >>>> >>>> That's it, your dev-env should start using the >>>> ansible-runner-service >>>> for host-deployment etc. >>>> >>>> Please note that only Fedora 30/31 and Centos7 was packaged, and >>>> are >>>> natively supported! >>>> >>>> Thanks, >>>> Ondra >>>> _______________________________________________ >>>> 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/AFKGTV4WDNONLN... >>>> >>> _______________________________________________ >>> 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/RMNEQG7KNFWSQX... >>> >> >> >> -- >> Martin Perina >> Manager, Software Engineering >> Red Hat Czech s.r.o. >> _______________________________________________ >> 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/5TMTVOWQLF7GQS... >> > > > -- > > Thanks, > > Kaustav Majumder >
--
Thanks,
Kaustav Majumder
--
Thanks,
Kaustav Majumder
_______________________________________________ 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/CGGJJGZOTOFWUD...
participants (9)
-
Amit Bawer
-
Benny Zlotnik
-
Dominik Holler
-
Eitan Raviv
-
Kaustav Majumder
-
Martin Perina
-
Ondra Machacek
-
Prajith Kesava Prasad
-
Steven Rosenberg