Bug 1228641

Summary: [RFE] Switch from XML-RPC to JSON-RPC API for HE setup
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Sandro Bonazzola <sbonazzo>
Component: RFEsAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: high    
Version: 2.0.0CC: bugs, gklein, istein, lsurette, mavital, nsoffer, oourfali, pkliczew, rbalakri, sbonazzo, srevivo, stirabos, ykaul, ylavi
Target Milestone: ovirt-4.0.0-betaKeywords: CodeChange, FutureFeature, Triaged
Target Release: 2.0.0Flags: rule-engine: ovirt-4.0.0+
alukiano: testing_plan_complete-
ylavi: planning_ack+
sbonazzo: devel_ack+
istein: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
URL: http://lists.ovirt.org/pipermail/devel/2015-October/011472.html
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
With this release, XML-RPC is being deprecated and replaced with JSON-RPC for the API.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:47:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandro Bonazzola 2015-06-05 11:48:56 UTC
In 4.0 XML-RPC won't be available and vdscli XML-RPC calls are incompatible with JSON-RPC vdscli calls.

(see Nir's comment to https://gerrit.ovirt.org/#/c/41965/ )

Comment 1 Sandro Bonazzola 2015-10-07 14:31:56 UTC
Blocked on missing jsonrpc client API in VDSM.
Please ping me when the cli will be ready.

Comment 2 Piotr Kliczewski 2015-10-07 14:52:45 UTC
We are planning to have jsonrpcvdscli in 3.6 so hopefully we can give you documentation and the client code. Will let you know once the patches are merged.

Comment 3 Sandro Bonazzola 2015-10-07 15:56:15 UTC
(In reply to Piotr Kliczewski from comment #2)
> We are planning to have jsonrpcvdscli in 3.6 so hopefully we can give you
> documentation and the client code. Will let you know once the patches are
> merged.

I don't think that a library / protocol switching is something that should be allowed in 3.6 at this stage.

Comment 4 Red Hat Bugzilla Rules Engine 2015-10-19 10:56:01 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 5 Yaniv Kaul 2015-11-16 16:05:47 UTC
(In reply to Sandro Bonazzola from comment #1)
> Blocked on missing jsonrpc client API in VDSM.
> Please ping me when the cli will be ready.

Should probably have a bug on it, which this bug will depend on.

Comment 6 Yaniv Lavi 2016-01-27 08:45:37 UTC
Please open a bug on infra, if there isn't one and block this RFE, so we will know when to start working on this one.

Comment 7 Sandro Bonazzola 2016-02-05 07:52:30 UTC
Looking at http://lists.ovirt.org/pipermail/devel/2015-October/011479.html

the referenced patch: https://gerrit.ovirt.org/45789 has been merged on master for 4.0, so this shouldn't be blocked anymore.

Piotr, can you provide documentation on how to move from vdscli to jsonrpcvdscli?

Comment 8 Piotr Kliczewski 2016-02-05 07:56:06 UTC
Sure, will provide wiki page with it.

Comment 9 Yaniv Lavi 2016-02-07 12:15:43 UTC
Restoring needinfo until info is provided.

Comment 10 Piotr Kliczewski 2016-02-09 14:39:13 UTC
Please see [1] wiki page which describe how to migrate from one module to the other. Please not that there is small bug fixed by [2].


[1] http://www.ovirt.org/Migration_from_vdscli_to_jsonrpcvdscli
[2] https://gerrit.ovirt.org/#/c/48609

Comment 12 Mike McCune 2016-03-28 23:32:32 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 13 Sandro Bonazzola 2016-05-02 09:54:23 UTC
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.

Comment 15 Artyom 2016-06-23 10:36:03 UTC
Verified on ovirt-hosted-engine-setup-2.0.0.2-1.el7ev.noarch

Deployment via appliance:
1) Deploy on NFS(include deployment of the additional host)
2) Deploy on ISCSI(include deployment of the additional host)
3) Deploy on glusterfs(include deployment of the additional host)

Deployment via PXE:
1) Deploy on NFS(include deployment of the additional host)

Comment 16 Sandro Bonazzola 2016-07-05 07:47:18 UTC
oVirt 4.0.0 has been released, closing current release.