How to update ovirt-sdk

We integrate jenkins to launch vms dynamically to run smoketest from our builds but now we receive the following problem: "msg": "ovirtsdk4 version 4.3.0 or higher is required for this module" I had installed following packages in CentOs7 ovirt-engine-sdk-java.noarch 3.6.10.0-1.el7 epel ovirt-engine-sdk-java-javadoc.noarch 3.6.10.0-1.el7 epel ovirt-engine-sdk-python.noarch 3.6.9.1-1.el7 epel I tired to use yum upgrade but did not report more recent version from ovirt-sdk. How can I upgrade/install ovirt-sdk to version 4.3?

BTW... Already followed instruction as described in https://pypi.org/project/ovirt-engine-sdk-python/4.2.4/ https://www.ovirt.org/develop/release-management/features/infra/python-sdk.h... but the problem persists.

You are looking at very old repos. One normally does something like.. yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm yum install python-ovirt-engine-sdk4 On Tue, Apr 20, 2021 at 11:46 AM Miguel Garcia <miguel.garcia@toshibagcs.com> wrote:
BTW... Already followed instruction as described in https://pypi.org/project/ovirt-engine-sdk-python/4.2.4/
https://www.ovirt.org/develop/release-management/features/infra/python-sdk.h...
but the problem persists. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/HYYNFS3PHTXOMZ...

The problem persists after ran the commands above TASK [ovirt : Obtain SSO token with using username/password credentials] ******* task path: /var/jenkins_home/workspace/create_vm/boss-playbooks/roles/ovirt/tasks/auth_in.yml:4 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1618937711.15-5895-215992654272995 `" && echo ansible-tmp-1618937711.15-5895-215992654272995="` echo /root/.ansible/tmp/ansible-tmp-1618937711.15-5895-215992654272995 `" ) && sleep 0' Using module file /usr/lib/python2.7/dist-packages/ansible/modules/cloud/ovirt/ovirt_auth.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-5808KccikM/tmpC82TNg TO /root/.ansible/tmp/ansible-tmp-1618937711.15-5895-215992654272995/AnsiballZ_ovirt_auth.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1618937711.15-5895-215992654272995/ /root/.ansible/tmp/ansible-tmp-1618937711.15-5895-215992654272995/AnsiballZ_ovirt_auth.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1618937711.15-5895-215992654272995/AnsiballZ_ovirt_auth.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1618937711.15-5895-215992654272995/ > /dev/null 2>&1 && sleep 0' The full traceback is: WARNING: The below traceback may *not* be related to the actual failure. File "/tmp/ansible_ovirt_auth_payload_LhThZC/ansible_ovirt_auth_payload.zip/ansible/modules/cloud/ovirt/ovirt_auth.py", line 204, in <module> File "build/bdist.linux-x86_64/egg/ovirtsdk4/__init__.py", line 22, in <module> fatal: [localhost]: FAILED! => { "changed": false, "invocation": { "module_args": { "ca_file": "ca.pem", "compress": true, "headers": null, "hostname": null, "insecure": null, "kerberos": false, "ovirt_auth": null, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "timeout": 0, "token": null, "url": "https://tgcsinfra.ralntdom.gdltgcs.com/ovirt-engine/api", "username": "dev_stream_bld@RALNTDOM" } }, "msg": "ovirtsdk4 version 4.3.0 or higher is required for this module" } PLAY RECAP ********************************************************************* localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Hi, According to the packages below you are using Python SDK v3, which has been deprecated in oVirt 4.0. You need to install Python SDK v4 using below: dnf install python3-ovirt-engine-sdk4 Regards, Martin On Tue, Apr 20, 2021 at 5:27 PM Miguel Garcia <miguel.garcia@toshibagcs.com> wrote:
We integrate jenkins to launch vms dynamically to run smoketest from our builds but now we receive the following problem:
"msg": "ovirtsdk4 version 4.3.0 or higher is required for this module"
I had installed following packages in CentOs7 ovirt-engine-sdk-java.noarch 3.6.10.0-1.el7 epel ovirt-engine-sdk-java-javadoc.noarch 3.6.10.0-1.el7 epel ovirt-engine-sdk-python.noarch 3.6.9.1-1.el7 epel
I tired to use yum upgrade but did not report more recent version from ovirt-sdk.
How can I upgrade/install ovirt-sdk to version 4.3? _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/JHCE5VSXQI7KTC...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.

The command you describe above seems to be for CentOS8 while the system we use is CentOS7. Is python3-ovirt-engie-sdk4 is supported for centos7?

On Wed, Apr 21, 2021 at 6:51 PM Miguel Garcia <miguel.garcia@toshibagcs.com> wrote:
The command you describe above seems to be for CentOS8 while the system we use is CentOS7.
On CentOS 7 you need to use 'yum' instead of 'dnf', but the rest is the same.
Is python3-ovirt-engie-sdk4 is supported for centos7? _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/JVBW4SYMBMJZMX...
-- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.

Already tried with yum but such package is not listed in ovirt43 repo but it does in ovirt44 andfor that repo only works for el arch.

it's called differently in 7, I am guessing https://resources.ovirt.org/pub/ovirt-4.3/rpm/el7Server/x86_64/python-ovirt-... is what you're looking for On 4/22/21 4:25 PM, Miguel Garcia wrote:
Already tried with yum but such package is not listed in ovirt43 repo but it does in ovirt44 andfor that repo only works for el arch. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/MYUOS6TEWPN75B...
participants (4)
-
Edward Berger
-
Klaas Demter
-
Martin Perina
-
Miguel Garcia