Bug 1142945

Summary: [ovirt] [vdsm-jsonrpm] vdsm-json RPC doesn't provide advice about cluster compatibility level
Product: [Retired] oVirt Reporter: Simone Tiraboschi <stirabos>
Component: vdsm-jsonrpc-javaAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED CURRENTRELEASE QA Contact: Antonin Pagac <apagac>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: bazulay, bugs, ecohen, gklein, iheim, oourfali, smizrahi, stirabos
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.5.0_rc3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:28:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
nw_1
none
nw_2 none

Description Simone Tiraboschi 2014-09-17 15:58:27 UTC
Description of problem:
I'm using two host: one for the engine, the other as an hypervisor.
Both with latest fedora 19 updates.
I installed the ovirt engine, release 3.5 RC2, on the first host and from the web admin UI I was trying to add the second host without adding 3.5 repo on that.



Version-Release number of selected component (if applicable):
3.5 RC2

How reproducible:
100%

Steps to Reproduce:
1. two fedora 19 hosts, install the engine on one of them
2. Downgrade cluster level to 3.3
3. without adding any additional rpms repository on the second host try to add it via the web admin gui using jsonrpc

Actual results:
If I tray with jsonrpc the host goes into unassigned state without any details, with xmlrpc instead it shows:
'Host f19t12.localdomain is compatible with versions (3.0,3.1,3.2,3.3) and cannot join Cluster Default which is set to version 3.5.'

Expected results:
I got a detailed error message regarding cluster level as xmlrpc does.

Additional info:

Comment 1 Piotr Kliczewski 2014-09-18 14:27:05 UTC
Can you please give more information what you mean in #3 in steps to reproduce?
I do not understand what version you tried to add.

Comment 2 Piotr Kliczewski 2014-09-18 14:50:01 UTC
Please provide engine.log as well.

Comment 3 Simone Tiraboschi 2014-09-18 15:23:36 UTC
Please try with two fedora 19 hosts:

1. on the first one add oVirt 3.5 RC2 yum repository and install the engine as usual; it should create a Default datacenter with a default cluster with 3.5 compatibility level.

2. on the second host don't add oVirt 3.5 RC2 yum repository and just rely on packages from fedora 19 updates repository.

3. try to add the second host to the cluster both using jsonrpc or xmlrpc.

Here my results:

nw_1: fresh f19, no ovirt 3.5 repo, jsonrpc, failed with 'Host f19t14.localdomain installation failed. Network error during communication with the host.'
nw_2: fresh f19, no ovirt 3.5 repo, xmlrpc, failed with 'Host f19t14.localdomain is compatible with versions (3.0,3.1,3.2,3.3) and cannot join Cluster Default which is set to version 3.5.

xmlrpc correctly detects the cluster compatibility level, jsonrpc fails.

I'm attaching my logs.

Comment 4 Simone Tiraboschi 2014-09-18 15:24:02 UTC
Created attachment 938938 [details]
nw_1

Comment 5 Simone Tiraboschi 2014-09-18 15:24:32 UTC
Created attachment 938939 [details]
nw_2

Comment 6 Sandro Bonazzola 2014-10-17 12:28:56 UTC
oVirt 3.5 has been released and should include the fix for this issue.