Bug 1481691

Summary: Exception when disabling HA in edit VM
Product: [oVirt] ovirt-engine Reporter: Elad <ebenahar>
Component: Backend.CoreAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Liran Rotenberg <lrotenbe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: ahadas, amureini, bugs, michal.skrivanek, tnisan
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
ahadas: devel_ack+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-12 10:12:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1492471, 1507214    
Bug Blocks:    
Attachments:
Description Flags
engine and server logs and a screenshot none

Description Elad 2017-08-15 13:10:35 UTC
Created attachment 1313681 [details]
engine and server logs and a screenshot

Description of problem:
Exception in Webadmin upon high availability disabling:

Error while executing action: A Request to the Server failed: Attempt to deserialize an object of type class java.lang.Integer when an object of type class java.lang.String is expected

server.log:


2017-08-15 15:53:46,740+03 ERROR [io.undertow.servlet] (default task-27) GenericApiServlet: An IncompatibleRemoteServiceException was thrown while processing this call.: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Attempt to deserialize an object of type class java.lang.Integer when an object of type class java.lang.String is expected
        at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:323) [gwt-servlet.jar:]
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:296) [gwt-servlet.jar:]
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373) [gwt-servlet.jar:]
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) [gwt-servlet.jar:]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
        at org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.service(GenericApiGWTServiceImpl.java:78) [frontend.jar:]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]



Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20170814200319.git3da5f35.el7.centos.noarch
ovirt-engine-webadmin-portal-4.2.0-0.0.master.20170814200319.git3da5f35.el7.centos.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a VM with high availability on the storage (VM lease)
2. In Webadmin: Edit the VM and disable HA. Press OK


Actual results:
VM HA property update fails with the mentioned exception in Webadmin and in server.log

Expected results:
Should succeed

Additional info:
engine and server logs and a screenshot

Comment 1 Elad 2017-08-15 13:17:03 UTC
Occurs only when the VM is running

Comment 2 Michal Skrivanek 2017-08-16 04:49:29 UTC
is it supposed to do hot plug/unplug of the lease in 4.2?

Comment 3 Tal Nisan 2017-08-16 13:22:29 UTC
Arik, this might be a result of your latest DOM-XML changes as we discussed (having old data from before the change), can you please have a look?

Comment 4 Arik 2017-08-21 16:36:35 UTC
Please verify hot plugging a VM lease as well when verifying the fix for this bug.

Comment 5 Arik 2017-08-23 15:34:48 UTC
*** Bug 1484432 has been marked as a duplicate of this bug. ***

Comment 6 Liran Rotenberg 2018-02-04 09:48:31 UTC
Verified on:
ovirt-engine-4.2.1.5-0.1.el7.noarch

Steps of verification:
1. Create a VM.
2. Hot plug high availability with VM lease.
3. Check the lease created on the storage and on host using:
# sanlock client status
4. Edit the VM and disable HA. Press OK.
5. Re-do step 3 but check for the lease removal.

Results:
The HA lease created and removed as expected.

Additional info:
I checked VM down with lease and hot-unplug lease and VM up with hot-plug and hot-unplug.

Comment 7 Sandro Bonazzola 2018-02-12 10:12:46 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.