Bug 1319444 - [RHEVM-JAVA-SDK] Failed to update OS type
Summary: [RHEVM-JAVA-SDK] Failed to update OS type
Keywords:
Status: CLOSED DUPLICATE of bug 1319481
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk-java
Version: 3.6.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Juan Hernández
QA Contact: Israel Pinto
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-20 07:28 UTC by Israel Pinto
Modified: 2016-03-21 07:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-21 07:51:43 UTC
oVirt Team: Virt
Target Upstream Version:


Attachments (Terms of Use)
engine_log (3.88 KB, text/plain)
2016-03-20 13:35 UTC, Israel Pinto
no flags Details

Description Israel Pinto 2016-03-20 07:28:36 UTC
Description of problem:
Update VM OS type from RHEL to Win7 failed since time zone is "Etc/GMT".
Log output:
code  : 400
reason: Bad Request
detail: Cannot edit VM. Invalid time zone for given OS type.
     at org.ovirt.engine.sdk.web.HttpProxy.execute(Unknown Source)
     at org.ovirt.engine.sdk.web.HttpProxyBroker.update(Unknown Source)
     at org.ovirt.engine.sdk.decorators.VM.update(Unknown Source)
     at testJavaSdk.Test_reg_vm.main(Test_reg_vm.java:34)

Try also different time zone, And got validation error. 
Log output:
code: 400
reason: Bad Request
detail: Cannot edit VM. Invalid time zone for given OS type.
	at org.ovirt.engine.sdk.web.HttpProxy.execute(Unknown Source)
	at org.ovirt.engine.sdk.web.HttpProxyBroker.update(Unknown Source)
	at org.ovirt.engine.sdk.decorators.VM.update(Unknown Source)

Comment 1 Yaniv Kaul 2016-03-20 10:50:45 UTC
-Logs?
-Version?
- I assume all Ok using the UI?

Comment 2 Israel Pinto 2016-03-20 13:35:02 UTC
Versions:
RHEVM: 3.6.3.4-0.1.el6
Host: 
OS Version:RHEL - 7.2 - 10.0.el7ev
Kernel Version:3.10.0 - 327.10.1.el7.x86_64
KVM Version:2.3.0 - 31.el7_2.8
LIBVIRT Version:libvirt-1.2.17-13.el7_2.4
VDSM Version:vdsm-4.17.23.1-0.el7ev
SPICE Version:0.12.4 - 15.el7
JAVA SDK: rhevm-sdk-java-3.6.3.0-1.el6ev.noarch

Tested from UI works ok.
Tested with REST API got Operation Failed will open new BZ for REST

Comment 3 Israel Pinto 2016-03-20 13:35:54 UTC
Created attachment 1138301 [details]
engine_log

Comment 4 Yaniv Kaul 2016-03-20 14:48:25 UTC
(In reply to Israel Pinto from comment #2)
> Versions:
> RHEVM: 3.6.3.4-0.1.el6
> Host: 
> OS Version:RHEL - 7.2 - 10.0.el7ev
> Kernel Version:3.10.0 - 327.10.1.el7.x86_64
> KVM Version:2.3.0 - 31.el7_2.8
> LIBVIRT Version:libvirt-1.2.17-13.el7_2.4
> VDSM Version:vdsm-4.17.23.1-0.el7ev
> SPICE Version:0.12.4 - 15.el7
> JAVA SDK: rhevm-sdk-java-3.6.3.0-1.el6ev.noarch
> 
> Tested from UI works ok.
> Tested with REST API got Operation Failed will open new BZ for REST

If it failed via REST and via JAVA SDK, I assume it's a REST bug?

Comment 5 Tomas Jelinek 2016-03-21 07:51:43 UTC
yes, 1319481 in particular

*** This bug has been marked as a duplicate of bug 1319481 ***


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