Bug 985842

Summary: RHEVM-JAVA-SDK: Host.getRebootAfterInstallation() returns False (null was expected)
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilia Meerovich <iliam>
Component: ovirt-engine-sdk-javaAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, bazulay, iheim, iliam, juan.hernandez, myakove, oramraz, pstehlik
Target Milestone: ---Keywords: TestBlocker
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:18:03 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:
Bug Depends On: 1001026    
Bug Blocks:    

Description Ilia Meerovich 2013-07-18 11:17:19 UTC
Build is5

Please run something like:

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.ovirt.engine.sdk.Api;
import org.ovirt.engine.sdk.exceptions.ServerException;
import org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError;

public class addVmdebug {
	private static final String URL = "https://vm-161-147.scl.lab.tlv.redhat.com:443/api";

	public static void main(String[] args) throws ClientProtocolException, ServerException,
            UnsecuredConnectionAttemptError, IOException {
        Api api = new Api(URL, "admin@internal", "123456", null, 443, null,
        		null, true, null, false);
        System.out.printf("Value of getRebootAfterInstallation() is %s",
        	api.getHosts().list().get(0).getRebootAfterInstallation());
    }
}

and see the output:
Value of getRebootAfterInstallation() is false

Comment 1 Michael Pasternak 2013-07-18 11:19:57 UTC
the bug is in Apache's BeanUtils package, will try to find workaround.

Comment 2 Michael Pasternak 2013-07-18 11:21:44 UTC
(In reply to Michael Pasternak from comment #1)
> the bug is in Apache's BeanUtils package, will try to find workaround.

btw it's true for any property that returns reference type not just 
getRebootAfterInstallation()

Comment 3 Michael Pasternak 2013-08-12 12:58:49 UTC
Illia,

What is the version of BeanUtils you have installed?

Comment 4 Ilia Meerovich 2013-08-12 13:03:06 UTC
apache-commons-beanutils-1.8.3-10.redhat_2.ep6.el6.noarch

Comment 5 Michael Pasternak 2013-08-12 13:30:35 UTC
(In reply to Ilia Meerovich from comment #4)
> apache-commons-beanutils-1.8.3-10.redhat_2.ep6.el6.noarch

i see that apache-commons-beanutils-1.8.3-12.redhat_3.2.ep6.el6 already 
available, can you please try reproducing this bug using it?

thanks.

Comment 6 Ilia Meerovich 2013-08-15 12:19:46 UTC
most resent version in rhn channel is:
apache-commons-beanutils-1.8.3-10.redhat_2.ep6.el6:0.noarch

Comment 9 Michael Pasternak 2013-08-25 07:41:06 UTC
(In reply to Ilia Meerovich from comment #6)
> most resent version in rhn channel is:
> apache-commons-beanutils-1.8.3-10.redhat_2.ep6.el6:0.noarch

i know, but we can promote 1.8.3-12 if it works for you (this why i've asked to check)

Comment 15 Ilia Meerovich 2013-09-12 07:57:20 UTC
Host.getRebootAfterInstallation() returns null in is14.

Comment 17 Itamar Heim 2014-01-21 22:18:03 UTC
Closing - RHEV 3.3 Released

Comment 18 Itamar Heim 2014-01-21 22:24:29 UTC
Closing - RHEV 3.3 Released