[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
Hello Gianluca, thanks for opening the bug. I have also reported my test scenario below. (One thing more in my case, the standalone Manager needs to be installed on EL8 and not like documents says on EL7. With EL7 load is gives an error that Engine for EL7 is not avaiable. Document needs to be updated.) --- The same error occurs when trying to add a node to a standalone Engine Manager. Steps to Reproduce: 1. install a standalone Engine Manager on EL8 step by step with this documentation https://www.ovirt.org/documentation/installing_ovirt_as_a_standalone_manager_with_local_databases/#Installing_the_Red_Hat_Virtualization_Manager_SM_localDB_deploy 2. install a node using ovirt-node-ng-installer-4.4.1-2020071311.el8.iso 3. try to add the node inside the Engine Manager Log output: 2020-07-21 10:14:17 CEST - included: /usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/packages.yml for ovirtnode1.example.net 2020-07-21 10:14:17 CEST - included: /usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/vdsmid.yml for ovirtnode1.example.net 2020-07-21 10:14:17 CEST - included: /usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/pki.yml for ovirtnode1.example.net 2020-07-21 10:14:17 CEST - included: /usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/restart_services.yml for ovirtnode1.example.net 2020-07-21 10:14:17 CEST - TASK [ovirt-host-deploy-vdsm : Install ovirt-host package] * 2020-07-21 10:14:17 CEST - 2020-07-21 10:14:17 CEST - fatal: [ovirtnode1.example.net]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: /usr/bin/python2: No such file or directory\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127} 2020-07-21 10:14:17 CEST - { "status" : "OK", "msg" : "", "data" : { "uuid" : "bfb59a41-6672-4115-ba93-176b3d11", "counter" : 61, "stdout" : "fatal: [ovirtnode1.example.net]: FAILED! => {\"changed\": false, \"module_stderr\": \"/bin/sh: /usr/bin/python2: No such file or directory\\n\", \"module_stdout\": \"\", \"msg\": \"The module failed to execute correctly, you probably need to set the interpreter.\\nSee stdout/stderr for the exact error\", \"rc\": 127}", "start_line" : 54, "end_line" : 55, "runner_ident" : "230c108e-cb2a-11ea-97da-00155d120809", "event" : "runner_on_failed", "pid" : 28965, "created" : "2020-07-21T08:14:16.528490", "parent_uuid" : "00155d12-0809-c845-9450-01a1", "event_data" : { "playbook" : "ovirt-host-deploy.yml", "playbook_uuid" : "3a66c11c-02f9-492a-937d-21f1386e492d", "play" : "all", "play_uuid" : "00155d12-0809-c845-9450-0006", "play_pattern" : "all", "task" : "Install ovirt-host package", "task_uuid" : "00155d12-0809-c845-9450-01a1", "task_action" : "yum", "task_args" : "", "task_path" : "/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/packages.yml:2", "role" : "ovirt-host-deploy-vdsm", "host" : "ovirtnode1.example.net", "remote_addr" : "ovirtnode1.example.net", "res" : { "module_stdout" : "", "module_stderr" : "/bin/sh: /usr/bin/python2: No such file or directory\n", "msg" : "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc" : 127, "_ansible_no_log" : false, "changed" : false }, "start" : "2020-07-21T08:14:15.365609", "end" : "2020-07-21T08:14:16.528185", "duration" : 1.162576, "ignore_errors" : null, "event_loop" : null,a "uuid" : "bfb59a41-6672-4115-ba93-176b3d11" } } ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/RE5MFKA7BFMVM2DYMXVKF6QULOUNGCZI/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
On Fri, Jul 17, 2020 at 8:20 PM Edward Berger wrote: > cockpit hosted-engine deploy fails after defining VM name with static > address with similar python2 error. > > Yes I already reported both here and in the bugzilla, but to fix that it would be necessary to trick with the engine VM (aka the appliance disk) itself, so I think it is better to fix the whole root cause when found. Gianluca ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/NWG2SXODLFOB3JVNV66FYREYQNZYB2JU/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
cockpit hosted-engine deploy fails after defining VM name with static address with similar python2 error. [image: engine-deploy-fail.JPG] On Fri, Jul 17, 2020 at 6:44 AM Gobinda Das wrote: > Hi Gianluca, > Thanks for opening the bug. > Adding @Prajith Kesava Prasad to look into it. > > > On Fri, Jul 17, 2020 at 4:02 PM Gianluca Cecchi > wrote: > >> On Fri, Jul 17, 2020 at 12:13 PM Martin Perina >> wrote: >> >>> I've reverified that install new host, check for upgrades, upgrade host >>> and enroll certificates work fine even with ansible 2.9.10 on standalone >>> engine installation. So there is some issue inside HCI installer, which >>> doesn't handle python interpreter correctly. >>> >>> Gianluca, could you please create a bug for that? >>> >>> >> Opened here: >> https://bugzilla.redhat.com/show_bug.cgi?id=1858234 >> >> I have attached the whole content of /var/log/ovirt-hosted-engine-setup/ >> tree of the host. >> Let me know if anything else to attach and feel free to change subject >> and/or component >> >> Gianluca >> > > > -- > > > Thanks, > Gobinda > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZFMOSNKCRE4PRBU6VUQGTSO4SAVGD5IT/ > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VBROMV6JPXDMGCSHWVWTGDBJYG72NPDL/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
Hi Gianluca, Thanks for opening the bug. Adding @Prajith Kesava Prasad to look into it. On Fri, Jul 17, 2020 at 4:02 PM Gianluca Cecchi wrote: > On Fri, Jul 17, 2020 at 12:13 PM Martin Perina wrote: > >> I've reverified that install new host, check for upgrades, upgrade host >> and enroll certificates work fine even with ansible 2.9.10 on standalone >> engine installation. So there is some issue inside HCI installer, which >> doesn't handle python interpreter correctly. >> >> Gianluca, could you please create a bug for that? >> >> > Opened here: > https://bugzilla.redhat.com/show_bug.cgi?id=1858234 > > I have attached the whole content of /var/log/ovirt-hosted-engine-setup/ > tree of the host. > Let me know if anything else to attach and feel free to change subject > and/or component > > Gianluca > -- Thanks, Gobinda ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZFMOSNKCRE4PRBU6VUQGTSO4SAVGD5IT/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
On Fri, Jul 17, 2020 at 12:13 PM Martin Perina wrote: > I've reverified that install new host, check for upgrades, upgrade host > and enroll certificates work fine even with ansible 2.9.10 on standalone > engine installation. So there is some issue inside HCI installer, which > doesn't handle python interpreter correctly. > > Gianluca, could you please create a bug for that? > > Opened here: https://bugzilla.redhat.com/show_bug.cgi?id=1858234 I have attached the whole content of /var/log/ovirt-hosted-engine-setup/ tree of the host. Let me know if anything else to attach and feel free to change subject and/or component Gianluca ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/SSGAE7WSH6E6KIJHYJWTMNQNGRJTGKWP/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
I've reverified that install new host, check for upgrades, upgrade host and enroll certificates work fine even with ansible 2.9.10 on standalone engine installation. So there is some issue inside HCI installer, which doesn't handle python interpreter correctly. Gianluca, could you please create a bug for that? Thanks, Martin On Fri, Jul 17, 2020 at 11:36 AM Gianluca Cecchi wrote: > > > On Fri, Jul 17, 2020 at 11:25 AM Gianluca Cecchi < > gianluca.cec...@gmail.com> wrote: > >> On Fri, Jul 17, 2020 at 11:04 AM Gianluca Cecchi < >> gianluca.cec...@gmail.com> wrote: >> >>> On Fri, Jul 17, 2020 at 10:58 AM Gianluca Cecchi < >>> gianluca.cec...@gmail.com> wrote: >>> On Fri, Jul 17, 2020 at 10:54 AM Martin Perina wrote: > Hi Gianluca, > > that's very strange error, because I'm 100% sure we are using yum > module with Python3 in several other roles including adding host to engine > or upgrading host and so far I haven't heard any issue with ansible 2.9.10 > and yum module. > > Gobinda, wouldn't enforcing python interpreter version help there? > > > https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml#L28 > > Regards, > Martin > > I have a very clean install from 4.1.1.1 node ng iso anf I'm the third to notice that with this release. The engine deployment is going on. Not finished yet, but to have ti go I had to modify, with the same strategy ("use: dnf" with package module and use "package" instead of "yum" and also specifying "use: dnf") in these files under /usr/share/ansible/roles: ovirt.engine-setup/tasks/engine_setup.yml ovirt.engine-setup/tasks/install_packages.yml ovirt.hosted_engine_setup/tasks/install_packages.yml ovirt.hosted_engine_setup/tasks/create_target_vm/03_hosted_engine_final_tasks.yml ovirt.hosted_engine_setup/tasks/install_appliance.yml Gianluca >>> >>> The installation from the iso was with all default values. >>> The only "non standard" thing, if we want it to call this way is that >>> before running the wizard, on the host I pre-installed the appliance >>> package, to shorten the deploy phase hereafter. >>> And to do it I executed, because of habit: >>> yum install ovirt-engine-appliance >>> >>> instead of "dnf install...", but I think this doesn't influence ansible >>> autodetect when using "package" module or the error about python2 when >>> using "yum" module... >>> >>> Gianluca >>> >> >> The engine deployment failed in the phase where it tries to add the host >> and waits for the host to be up and if I go into the logs in >> >> /var/log/ovirt-hosted-engine-setup/engine-logs-2020-07-17T08:30:48Z/ovirt-engine/host-deploy/ >> >> the file >> ovirt-host-deploy-ansible-20200717104103-novirt2.example.net-3a710f0c.log >> contains >> >> 020-07-17 10:41:17 CEST - fatal: [novirt2.example.net]: FAILED! => >> {"changed": false, "module_stderr": "/bin/sh: /usr/bin >> /python2: No such file or directory\n", "module_stdout": "", "msg": "The >> module failed to execute correctly, you probably >> need to set the interpreter.\nSee stdout/stderr for the exact error", >> "rc": 127} >> 2020-07-17 10:41:17 CEST - { >> "status" : "OK", >> "msg" : "", >> "data" : { >> "uuid" : "00f4c6a8-8423-4a2a-bfd5-f38c34f56ecf", >> "counter" : 53, >> "stdout" : "fatal: [novirt2.example.net]: FAILED! => {\"changed\": >> false, \"module_stderr\": \"/bin/sh: /usr/bin/pytho >> n2: No such file or directory\\n\", \"module_stdout\": \"\", \"msg\": >> \"The module failed to execute correctly, you probab >> ly need to set the interpreter.\\nSee stdout/stderr for the exact >> error\", \"rc\": 127}", >> >> So I think I have to find and solve why it searches python2 >> I compared on an existing 4.4.0 environment I have (hci single node >> installed from 4.4.0 node ng iso) and no python2 apparently there, only >> ansible that is at ansible-2.9.9-1.el8.noarch instead of >> ansible-2.9.10-1.el8.noarch of 4.4.1.1 >> >> Possibly any wrong default about python? >> >> Alternatives seems the same between 4.4.0 and 4.4.1.1 >> >> 4.4.0 >> [g.cecchi@ovirt01 ~]$ alternatives --list >> cifs-idmap-plugin auto /usr/lib64/cifs-utils/cifs_idmap_sss.so >> ifup auto /etc/sysconfig/network-scripts/ifup >> ld auto /usr/bin/ld.bfd >> libnssckbi.so.x86_64 auto /usr/lib64/pkcs11/p11-kit-trust.so >> libwbclient.so.0.15-64 auto >> /usr/lib64/samba/wbclient/libwbclient.so.0.15 >> mkisofs auto /usr/bin/genisoimage >> mta auto /usr/sbin/sendmail.postfix >> nmap auto /usr/bin/ncat >> python auto /usr/libexec/no-python >> python3 auto /usr/bin/python3.6 >> [g.cecchi@ovirt01 ~]$ >> >> 4.4.1.1 >> [root@novirt2 host-deploy]# alternatives --list >>
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
Hm... but then setting that variable to python3 should work, but based on the list reports - it doesn't work. Best Regards, Strahil Nikolov На 17 юли 2020 г. 12:35:52 GMT+03:00, Gianluca Cecchi написа: >On Fri, Jul 17, 2020 at 11:25 AM Gianluca Cecchi > >wrote: > >> On Fri, Jul 17, 2020 at 11:04 AM Gianluca Cecchi < >> gianluca.cec...@gmail.com> wrote: >> >>> On Fri, Jul 17, 2020 at 10:58 AM Gianluca Cecchi < >>> gianluca.cec...@gmail.com> wrote: >>> On Fri, Jul 17, 2020 at 10:54 AM Martin Perina wrote: > Hi Gianluca, > > that's very strange error, because I'm 100% sure we are using yum > module with Python3 in several other roles including adding host >to engine > or upgrading host and so far I haven't heard any issue with >ansible 2.9.10 > and yum module. > > Gobinda, wouldn't enforcing python interpreter version help there? > > > >https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml#L28 > > Regards, > Martin > > I have a very clean install from 4.1.1.1 node ng iso anf I'm the >third to notice that with this release. The engine deployment is going on. Not finished yet, but to have ti >go I had to modify, with the same strategy ("use: dnf" with package >module and use "package" instead of "yum" and also specifying "use: dnf") in >these files under /usr/share/ansible/roles: ovirt.engine-setup/tasks/engine_setup.yml ovirt.engine-setup/tasks/install_packages.yml ovirt.hosted_engine_setup/tasks/install_packages.yml >ovirt.hosted_engine_setup/tasks/create_target_vm/03_hosted_engine_final_tasks.yml ovirt.hosted_engine_setup/tasks/install_appliance.yml Gianluca >>> >>> The installation from the iso was with all default values. >>> The only "non standard" thing, if we want it to call this way is >that >>> before running the wizard, on the host I pre-installed the appliance >>> package, to shorten the deploy phase hereafter. >>> And to do it I executed, because of habit: >>> yum install ovirt-engine-appliance >>> >>> instead of "dnf install...", but I think this doesn't influence >ansible >>> autodetect when using "package" module or the error about python2 >when >>> using "yum" module... >>> >>> Gianluca >>> >> >> The engine deployment failed in the phase where it tries to add the >host >> and waits for the host to be up and if I go into the logs in >> >> >/var/log/ovirt-hosted-engine-setup/engine-logs-2020-07-17T08:30:48Z/ovirt-engine/host-deploy/ >> >> the file >> >ovirt-host-deploy-ansible-20200717104103-novirt2.example.net-3a710f0c.log >> contains >> >> 020-07-17 10:41:17 CEST - fatal: [novirt2.example.net]: FAILED! => >> {"changed": false, "module_stderr": "/bin/sh: /usr/bin >> /python2: No such file or directory\n", "module_stdout": "", "msg": >"The >> module failed to execute correctly, you probably >> need to set the interpreter.\nSee stdout/stderr for the exact error", >> "rc": 127} >> 2020-07-17 10:41:17 CEST - { >> "status" : "OK", >> "msg" : "", >> "data" : { >> "uuid" : "00f4c6a8-8423-4a2a-bfd5-f38c34f56ecf", >> "counter" : 53, >> "stdout" : "fatal: [novirt2.example.net]: FAILED! => >{\"changed\": >> false, \"module_stderr\": \"/bin/sh: /usr/bin/pytho >> n2: No such file or directory\\n\", \"module_stdout\": \"\", \"msg\": >> \"The module failed to execute correctly, you probab >> ly need to set the interpreter.\\nSee stdout/stderr for the exact >error\", >> \"rc\": 127}", >> >> So I think I have to find and solve why it searches python2 >> I compared on an existing 4.4.0 environment I have (hci single node >> installed from 4.4.0 node ng iso) and no python2 apparently there, >only >> ansible that is at ansible-2.9.9-1.el8.noarch instead of >> ansible-2.9.10-1.el8.noarch of 4.4.1.1 >> >> Possibly any wrong default about python? >> >> Alternatives seems the same between 4.4.0 and 4.4.1.1 >> >> 4.4.0 >> [g.cecchi@ovirt01 ~]$ alternatives --list >> cifs-idmap-plugin auto /usr/lib64/cifs-utils/cifs_idmap_sss.so >> ifup auto /etc/sysconfig/network-scripts/ifup >> ld auto /usr/bin/ld.bfd >> libnssckbi.so.x86_64 auto /usr/lib64/pkcs11/p11-kit-trust.so >> libwbclient.so.0.15-64 auto >/usr/lib64/samba/wbclient/libwbclient.so.0.15 >> mkisofs auto /usr/bin/genisoimage >> mta auto /usr/sbin/sendmail.postfix >> nmap auto /usr/bin/ncat >> python auto /usr/libexec/no-python >> python3 auto /usr/bin/python3.6 >> [g.cecchi@ovirt01 ~]$ >> >> 4.4.1.1 >> [root@novirt2 host-deploy]# alternatives --list >> cifs-idmap-plugin auto /usr/lib64/cifs-utils/cifs_idmap_sss.so >> ifup auto /etc/sysconfig/network-scripts/ifup >> ld auto /usr/bin/ld.bfd >>
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
On Fri, Jul 17, 2020 at 11:25 AM Gianluca Cecchi wrote: > On Fri, Jul 17, 2020 at 11:04 AM Gianluca Cecchi < > gianluca.cec...@gmail.com> wrote: > >> On Fri, Jul 17, 2020 at 10:58 AM Gianluca Cecchi < >> gianluca.cec...@gmail.com> wrote: >> >>> On Fri, Jul 17, 2020 at 10:54 AM Martin Perina >>> wrote: >>> Hi Gianluca, that's very strange error, because I'm 100% sure we are using yum module with Python3 in several other roles including adding host to engine or upgrading host and so far I haven't heard any issue with ansible 2.9.10 and yum module. Gobinda, wouldn't enforcing python interpreter version help there? https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml#L28 Regards, Martin >>> I have a very clean install from 4.1.1.1 node ng iso anf I'm the third >>> to notice that with this release. >>> The engine deployment is going on. Not finished yet, but to have ti go I >>> had to modify, with the same strategy ("use: dnf" with package module and >>> use "package" instead of "yum" and also specifying "use: dnf") in these >>> files under /usr/share/ansible/roles: >>> >>> ovirt.engine-setup/tasks/engine_setup.yml >>> ovirt.engine-setup/tasks/install_packages.yml >>> ovirt.hosted_engine_setup/tasks/install_packages.yml >>> >>> ovirt.hosted_engine_setup/tasks/create_target_vm/03_hosted_engine_final_tasks.yml >>> ovirt.hosted_engine_setup/tasks/install_appliance.yml >>> >>> Gianluca >>> >> >> The installation from the iso was with all default values. >> The only "non standard" thing, if we want it to call this way is that >> before running the wizard, on the host I pre-installed the appliance >> package, to shorten the deploy phase hereafter. >> And to do it I executed, because of habit: >> yum install ovirt-engine-appliance >> >> instead of "dnf install...", but I think this doesn't influence ansible >> autodetect when using "package" module or the error about python2 when >> using "yum" module... >> >> Gianluca >> > > The engine deployment failed in the phase where it tries to add the host > and waits for the host to be up and if I go into the logs in > > /var/log/ovirt-hosted-engine-setup/engine-logs-2020-07-17T08:30:48Z/ovirt-engine/host-deploy/ > > the file > ovirt-host-deploy-ansible-20200717104103-novirt2.example.net-3a710f0c.log > contains > > 020-07-17 10:41:17 CEST - fatal: [novirt2.example.net]: FAILED! => > {"changed": false, "module_stderr": "/bin/sh: /usr/bin > /python2: No such file or directory\n", "module_stdout": "", "msg": "The > module failed to execute correctly, you probably > need to set the interpreter.\nSee stdout/stderr for the exact error", > "rc": 127} > 2020-07-17 10:41:17 CEST - { > "status" : "OK", > "msg" : "", > "data" : { > "uuid" : "00f4c6a8-8423-4a2a-bfd5-f38c34f56ecf", > "counter" : 53, > "stdout" : "fatal: [novirt2.example.net]: FAILED! => {\"changed\": > false, \"module_stderr\": \"/bin/sh: /usr/bin/pytho > n2: No such file or directory\\n\", \"module_stdout\": \"\", \"msg\": > \"The module failed to execute correctly, you probab > ly need to set the interpreter.\\nSee stdout/stderr for the exact error\", > \"rc\": 127}", > > So I think I have to find and solve why it searches python2 > I compared on an existing 4.4.0 environment I have (hci single node > installed from 4.4.0 node ng iso) and no python2 apparently there, only > ansible that is at ansible-2.9.9-1.el8.noarch instead of > ansible-2.9.10-1.el8.noarch of 4.4.1.1 > > Possibly any wrong default about python? > > Alternatives seems the same between 4.4.0 and 4.4.1.1 > > 4.4.0 > [g.cecchi@ovirt01 ~]$ alternatives --list > cifs-idmap-plugin auto /usr/lib64/cifs-utils/cifs_idmap_sss.so > ifup auto /etc/sysconfig/network-scripts/ifup > ld auto /usr/bin/ld.bfd > libnssckbi.so.x86_64 auto /usr/lib64/pkcs11/p11-kit-trust.so > libwbclient.so.0.15-64 auto /usr/lib64/samba/wbclient/libwbclient.so.0.15 > mkisofs auto /usr/bin/genisoimage > mta auto /usr/sbin/sendmail.postfix > nmap auto /usr/bin/ncat > python auto /usr/libexec/no-python > python3 auto /usr/bin/python3.6 > [g.cecchi@ovirt01 ~]$ > > 4.4.1.1 > [root@novirt2 host-deploy]# alternatives --list > cifs-idmap-plugin auto /usr/lib64/cifs-utils/cifs_idmap_sss.so > ifup auto /etc/sysconfig/network-scripts/ifup > ld auto /usr/bin/ld.bfd > libnssckbi.so.x86_64 auto /usr/lib64/pkcs11/p11-kit-trust.so > libwbclient.so.0.15-64 auto /usr/lib64/samba/wbclient/libwbclient.so.0.15 > mkisofs auto /usr/bin/genisoimage > mta auto /usr/sbin/sendmail.postfix > nmap auto /usr/bin/ncat > python auto /usr/libexec/no-python >
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
On Fri, Jul 17, 2020 at 11:04 AM Gianluca Cecchi wrote: > On Fri, Jul 17, 2020 at 10:58 AM Gianluca Cecchi < > gianluca.cec...@gmail.com> wrote: > >> On Fri, Jul 17, 2020 at 10:54 AM Martin Perina >> wrote: >> >>> Hi Gianluca, >>> >>> that's very strange error, because I'm 100% sure we are using yum module >>> with Python3 in several other roles including adding host to engine or >>> upgrading host and so far I haven't heard any issue with ansible 2.9.10 and >>> yum module. >>> >>> Gobinda, wouldn't enforcing python interpreter version help there? >>> >>> >>> https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml#L28 >>> >>> Regards, >>> Martin >>> >>> >> I have a very clean install from 4.1.1.1 node ng iso anf I'm the third to >> notice that with this release. >> The engine deployment is going on. Not finished yet, but to have ti go I >> had to modify, with the same strategy ("use: dnf" with package module and >> use "package" instead of "yum" and also specifying "use: dnf") in these >> files under /usr/share/ansible/roles: >> >> ovirt.engine-setup/tasks/engine_setup.yml >> ovirt.engine-setup/tasks/install_packages.yml >> ovirt.hosted_engine_setup/tasks/install_packages.yml >> >> ovirt.hosted_engine_setup/tasks/create_target_vm/03_hosted_engine_final_tasks.yml >> ovirt.hosted_engine_setup/tasks/install_appliance.yml >> >> Gianluca >> > > The installation from the iso was with all default values. > The only "non standard" thing, if we want it to call this way is that > before running the wizard, on the host I pre-installed the appliance > package, to shorten the deploy phase hereafter. > And to do it I executed, because of habit: > yum install ovirt-engine-appliance > > instead of "dnf install...", but I think this doesn't influence ansible > autodetect when using "package" module or the error about python2 when > using "yum" module... > > Gianluca > The engine deployment failed in the phase where it tries to add the host and waits for the host to be up and if I go into the logs in /var/log/ovirt-hosted-engine-setup/engine-logs-2020-07-17T08:30:48Z/ovirt-engine/host-deploy/ the file ovirt-host-deploy-ansible-20200717104103-novirt2.example.net-3a710f0c.log contains 020-07-17 10:41:17 CEST - fatal: [novirt2.example.net]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: /usr/bin /python2: No such file or directory\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127} 2020-07-17 10:41:17 CEST - { "status" : "OK", "msg" : "", "data" : { "uuid" : "00f4c6a8-8423-4a2a-bfd5-f38c34f56ecf", "counter" : 53, "stdout" : "fatal: [novirt2.example.net]: FAILED! => {\"changed\": false, \"module_stderr\": \"/bin/sh: /usr/bin/pytho n2: No such file or directory\\n\", \"module_stdout\": \"\", \"msg\": \"The module failed to execute correctly, you probab ly need to set the interpreter.\\nSee stdout/stderr for the exact error\", \"rc\": 127}", So I think I have to find and solve why it searches python2 I compared on an existing 4.4.0 environment I have (hci single node installed from 4.4.0 node ng iso) and no python2 apparently there, only ansible that is at ansible-2.9.9-1.el8.noarch instead of ansible-2.9.10-1.el8.noarch of 4.4.1.1 Possibly any wrong default about python? Alternatives seems the same between 4.4.0 and 4.4.1.1 4.4.0 [g.cecchi@ovirt01 ~]$ alternatives --list cifs-idmap-plugin auto /usr/lib64/cifs-utils/cifs_idmap_sss.so ifup auto /etc/sysconfig/network-scripts/ifup ld auto /usr/bin/ld.bfd libnssckbi.so.x86_64 auto /usr/lib64/pkcs11/p11-kit-trust.so libwbclient.so.0.15-64 auto /usr/lib64/samba/wbclient/libwbclient.so.0.15 mkisofs auto /usr/bin/genisoimage mta auto /usr/sbin/sendmail.postfix nmap auto /usr/bin/ncat python auto /usr/libexec/no-python python3 auto /usr/bin/python3.6 [g.cecchi@ovirt01 ~]$ 4.4.1.1 [root@novirt2 host-deploy]# alternatives --list cifs-idmap-plugin auto /usr/lib64/cifs-utils/cifs_idmap_sss.so ifup auto /etc/sysconfig/network-scripts/ifup ld auto /usr/bin/ld.bfd libnssckbi.so.x86_64 auto /usr/lib64/pkcs11/p11-kit-trust.so libwbclient.so.0.15-64 auto /usr/lib64/samba/wbclient/libwbclient.so.0.15 mkisofs auto /usr/bin/genisoimage mta auto /usr/sbin/sendmail.postfix nmap auto /usr/bin/ncat python auto /usr/libexec/no-python python3 auto /usr/bin/python3.6 [root@novirt2 host-deploy]# Not sure where to search if not somehow a bug of ansible 2.9.10 Can I try to clean install a 4.4.1.1 host and downgrade ansible before deploy, eg running rpm -Uvh --oldpackage
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
On Fri, Jul 17, 2020 at 10:58 AM Gianluca Cecchi wrote: > On Fri, Jul 17, 2020 at 10:54 AM Martin Perina wrote: > >> Hi Gianluca, >> >> that's very strange error, because I'm 100% sure we are using yum module >> with Python3 in several other roles including adding host to engine or >> upgrading host and so far I haven't heard any issue with ansible 2.9.10 and >> yum module. >> >> Gobinda, wouldn't enforcing python interpreter version help there? >> >> >> https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml#L28 >> >> Regards, >> Martin >> >> > I have a very clean install from 4.1.1.1 node ng iso anf I'm the third to > notice that with this release. > The engine deployment is going on. Not finished yet, but to have ti go I > had to modify, with the same strategy ("use: dnf" with package module and > use "package" instead of "yum" and also specifying "use: dnf") in these > files under /usr/share/ansible/roles: > > ovirt.engine-setup/tasks/engine_setup.yml > ovirt.engine-setup/tasks/install_packages.yml > ovirt.hosted_engine_setup/tasks/install_packages.yml > > ovirt.hosted_engine_setup/tasks/create_target_vm/03_hosted_engine_final_tasks.yml > ovirt.hosted_engine_setup/tasks/install_appliance.yml > > Gianluca > The installation from the iso was with all default values. The only "non standard" thing, if we want it to call this way is that before running the wizard, on the host I pre-installed the appliance package, to shorten the deploy phase hereafter. And to do it I executed, because of habit: yum install ovirt-engine-appliance instead of "dnf install...", but I think this doesn't influence ansible autodetect when using "package" module or the error about python2 when using "yum" module... Gianluca ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/4BAS6NSORZ2MUEW5XBQSA66PXAIS3NYB/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
On Fri, Jul 17, 2020 at 10:54 AM Martin Perina wrote: > Hi Gianluca, > > that's very strange error, because I'm 100% sure we are using yum module > with Python3 in several other roles including adding host to engine or > upgrading host and so far I haven't heard any issue with ansible 2.9.10 and > yum module. > > Gobinda, wouldn't enforcing python interpreter version help there? > > > https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml#L28 > > Regards, > Martin > > I have a very clean install from 4.1.1.1 node ng iso anf I'm the third to notice that with this release. The engine deployment is going on. Not finished yet, but to have ti go I had to modify, with the same strategy ("use: dnf" with package module and use "package" instead of "yum" and also specifying "use: dnf") in these files under /usr/share/ansible/roles: ovirt.engine-setup/tasks/engine_setup.yml ovirt.engine-setup/tasks/install_packages.yml ovirt.hosted_engine_setup/tasks/install_packages.yml ovirt.hosted_engine_setup/tasks/create_target_vm/03_hosted_engine_final_tasks.yml ovirt.hosted_engine_setup/tasks/install_appliance.yml Gianluca ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/GHMVEM3RPJEGYQBVGBM4WI5MNGN6GXKW/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
Hi Gianluca, that's very strange error, because I'm 100% sure we are using yum module with Python3 in several other roles including adding host to engine or upgrading host and so far I haven't heard any issue with ansible 2.9.10 and yum module. Gobinda, wouldn't enforcing python interpreter version help there? https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/main.yml#L28 Regards, Martin On Fri, Jul 17, 2020 at 10:22 AM Gianluca Cecchi wrote: > Same problem for the next stage > > [ INFO ] TASK [ovirt.hosted_engine_setup : Install oVirt Hosted Engine > packages] > [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 10, "changed": > false, "msg": "The Python 2 yum module is needed for this module. If you > require Python 3 support use the `dnf` Ansible module instead."} > > I think this is a major problem for new installations. > How can I get back python2 to see if it works without having to go through > all yaml files? > > Gianluca > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/users@ovirt.org/message/QJ54NVDAGWXXPCT7AHEJIQYQR5IZ5IZU/ > -- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o. ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/EY6SIF3FFRQ6PVMRNH3TJJUZAXABCKCD/
[ovirt-users] Re: ovirt 4.4.1.1 hci and problems with ansible 2.9.10 and/or missing python2
Same problem for the next stage [ INFO ] TASK [ovirt.hosted_engine_setup : Install oVirt Hosted Engine packages] [ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 10, "changed": false, "msg": "The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead."} I think this is a major problem for new installations. How can I get back python2 to see if it works without having to go through all yaml files? Gianluca ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/QJ54NVDAGWXXPCT7AHEJIQYQR5IZ5IZU/