Bug 985842 - RHEVM-JAVA-SDK: Host.getRebootAfterInstallation() returns False (null was expected)
Summary: RHEVM-JAVA-SDK: Host.getRebootAfterInstallation() returns False (null was exp...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk-java
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3.0
Assignee: Juan Hernández
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On: 1001026
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-18 11:17 UTC by Ilia Meerovich
Modified: 2016-07-05 00:07 UTC (History)
8 users (show)

Fixed In Version: is14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 22:18:03 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 18969 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.