Bug 1149107
Summary: | [REGENERATE JAVA SDK] storage_manager element is not validated correctly | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Juan Hernández <juan.hernandez> | ||||
Component: | ovirt-engine-sdk-java | Assignee: | Juan Hernández <juan.hernandez> | ||||
Status: | CLOSED ERRATA | QA Contact: | Ondra Machacek <omachace> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.5.0 | CC: | aberezin, bazulay, ecohen, gklein, iheim, lsurette, omachace, pstehlik, rbalakri, Rhev-m-bugs, sherold, yeylon | ||||
Target Milestone: | --- | ||||||
Target Release: | 3.5.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | infra | ||||||
Fixed In Version: | rhevm-sdk-java-3.5.0.5-2.el6ev | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 1146457 | Environment: | |||||
Last Closed: | 2015-02-11 18:11:16 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: | 1146457 | ||||||
Bug Blocks: | 1156162 | ||||||
Attachments: |
|
Description
Juan Hernández
2014-10-03 08:50:28 UTC
Created attachment 944191 [details]
Proposed patch to fix the issue
public static void main(String[] args) throws Exception{ Api api = new Api(URL, user, password, true, false); org.ovirt.engine.sdk.decorators.Host host = api.getHosts().get(host_name); System.out.println("Old SPM priority value is: "+ host.getSpm().getPriority()); SPM spm = new SPM(); spm.setPriority(5); host.setSpm(spm); Host h = host.update(); System.out.println("New SPM priority value is: "+ h.getSpm().getPriority()); api.shutdown(); } # ./run.sh Old SPM priority value is: 10 New SPM priority value is: 5 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0184.html |