
On 03/07/2016 10:37 AM, Rafael Martins wrote:
----- Original Message -----
From: "Juan Hernández" <jhernand@redhat.com> To: "Sandro Bonazzola" <sbonazzo@redhat.com>, "Yedidyah Bar David" <didi@redhat.com> Cc: "devel" <devel@ovirt.org> Sent: Monday, March 7, 2016 10:21:25 AM Subject: Re: [ovirt-devel] master ovirt-engine requires ovirt-engine-sdk-python >= 4.0.0.0
On 03/07/2016 09:19 AM, Sandro Bonazzola wrote:
On Sun, Mar 6, 2016 at 4:31 PM, Yedidyah Bar David <didi@redhat.com <mailto:didi@redhat.com>> wrote:
Hi all,
I am trying, on a rhel7 vm:
yum install -y http://resources.ovirt.org/pub/yum-repo/ovirt-release-master.rpm
yum install ovirt-engine
Fails with:
--> Finished Dependency Resolution Error: Package: ovirt-iso-uploader-4.0.0-0.0.master.20160208072812.gita433ce3.el7.centos.noarch (ovirt-master-snapshot) Requires: ovirt-engine-sdk-python >= 4.0.0.0
Starting Friday night, jenkins suffered major issues resulting in publisher not working at all. I re-triggered the publishers this morning but looks that
ovirt-engine-sdk-python >= 0:4.0.0.0 can't be satisfied by python-ovirt-engine-sdk4-4.0.0-0.0.20160303gita6aee01.el7.centos.x86_64.rpm due to name change.
We need to fix the spec files requiring the new package.
Fixing the spec files isn't enough, as the new "python-ovirt-engine-sdk4" package isn't backwards compatible with the previous "ovirt-engine-sdk-python" package.
You have three alternatives:
1. Work with version 3.6 of the SDK. At the moment this is what I recommend.
2. Work with the new "python-ovirt-engine-sdk4" package. This is what we should eventually do, but it requires important changes to the code. If you want to go this way, please let me know and I'll help you do the migration.
3. Work with some of the "ovirt-engine-sdk-python-4.0.0" RPM files that were produced in the transition from the old SDK to the new one. I don't recommend this.
Hi Juan,
do you have a summary of API changes in the version 4 of the SDK, compared with version 3? I tried find it in git, but it seems that you deleted all the code of version 3 in one commit, and added all the code of version 4 in other, making it hard to try to see the changes.
Thanks
Rafael
The new SDK is completely different from the old one, that is why I deleted everything and added the new one. A diff won't help you find the differences. The main difference is that in the new SDK types and services are separate things. In the previous version of the SDK methods like "start" used to be part of the "VM" class. This doesn't reflect the actual design of the API, as you may get a VM from places where "start" doesn't make sense, for example, a VM to be imported from an export storage domain. This caused many issues in the previous SDK. In the new SDK types are just containers for data. Operations, like "start" are part of services. I suggest you look at the examples: https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples
Available: ovirt-engine-sdk-python-3.6.0.3-1.el7.centos.noarch (centos-ovirt36) ovirt-engine-sdk-python = 3.6.0.3-1.el7.centos Available: ovirt-engine-sdk-python-3.6.2.1-1.el7.noarch (centos-ovirt36) ovirt-engine-sdk-python = 3.6.2.1-1.el7 Installing: ovirt-engine-sdk-python-3.6.3.0-1.el7.noarch (centos-ovirt36) ovirt-engine-sdk-python = 3.6.3.0-1.el7 Error: Package: ovirt-image-uploader-4.0.0-0.0.master.20160211135948.git43cc942.el7.centos.noarch (ovirt-master-snapshot) Requires: ovirt-engine-sdk-python >= 4.0.0.0 Available: ovirt-engine-sdk-python-3.6.0.3-1.el7.centos.noarch (centos-ovirt36) ovirt-engine-sdk-python = 3.6.0.3-1.el7.centos Available: ovirt-engine-sdk-python-3.6.2.1-1.el7.noarch (centos-ovirt36) ovirt-engine-sdk-python = 3.6.2.1-1.el7 Installing: ovirt-engine-sdk-python-3.6.3.0-1.el7.noarch (centos-ovirt36) ovirt-engine-sdk-python = 3.6.3.0-1.el7
Tried also:
yum install http://jenkins.ovirt.org/job/ovirt-engine-sdk_master_build-artifacts-el7-x86...
which works, but does not satisfy the above dep. Should it? Any other place to find 4.0 python sdk?
Thanks, -- Didi
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com <http://redhat.com>
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.