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 <omach...@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 > > >
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-le...@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/IFAB4JFQFZIRI7ITOH5ADGOT2CVPH6WD/