Bug 1297490

Summary: NPE is thrown in host setup networks dialog when trying configuring a host of higher version than the engine one
Product: [oVirt] ovirt-engine Reporter: Yevgeny Zaspitsky <yzaspits>
Component: Frontend.WebAdminAssignee: Yevgeny Zaspitsky <yzaspits>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Burman <mburman>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.2CC: alkaplan, awels, bugs, danken, gklein, mburman, mmucha, myakove, sbonazzo, ylavi
Target Milestone: ovirt-3.6.3Flags: rule-engine: ovirt-3.6.z+
rule-engine: exception+
ylavi: planning_ack+
danken: devel_ack+
myakove: testing_ack+
Target Release: 3.6.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:08:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yevgeny Zaspitsky 2016-01-11 16:06:04 UTC
Description of problem:
NPE is thrown when trying configuring networks on a host with VDSM version higher than the engine one. That happens because the code tries to a config value for the host version, which is not exists in the engine DB (as that is considered as a future one relative to the engine), instead of checking cluster support level (which could not be unknown/new to the engine).

Version-Release number of selected component (if applicable):
engine 3.6
vdsm - master (4.0)

How reproducible:
100%

Steps to Reproduce:
1. Install a v4.0 host to engine 3.6
2. try to open setup networks dialog for the newly installed host
3.

Actual results:
The gear spins endlessly an NPE appears in the browser console log.

Expected results:
An exception should not be thrown and the dialog should appear flawlessly.

Additional info:
The NPE happens in org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperationFactory:138 when trying cast the null value returned by AsyncDataProvider.isNetworkExclusivenessPermissiveValidation.

Comment 1 Yevgeny Zaspitsky 2016-02-01 18:50:10 UTC
*** Bug 1303600 has been marked as a duplicate of this bug. ***

Comment 2 Michael Burman 2016-02-15 09:28:01 UTC
Verified on - 3.6.3.1-0.1.el6 with vdsm-4.17.999-593.git2452685.el7.centos.noarch(nightly 4.0)

Comment 3 Yevgeny Zaspitsky 2016-02-18 11:18:46 UTC
*** Bug 1305892 has been marked as a duplicate of this bug. ***