Bug 1481691 - Exception when disabling HA in edit VM
Summary: Exception when disabling HA in edit VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.2.0
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.0
: ---
Assignee: Arik
QA Contact: Liran Rotenberg
URL:
Whiteboard:
: 1484432 (view as bug list)
Depends On: 1492471 1507214
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-15 13:10 UTC by Elad
Modified: 2018-02-12 10:12 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-02-12 10:12:46 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2+
ahadas: devel_ack+


Attachments (Terms of Use)
engine and server logs and a screenshot (483.30 KB, application/x-gzip)
2017-08-15 13:10 UTC, Elad
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 80872 0 master MERGED core: store offset of vm lease as a string 2017-08-24 06:27:37 UTC
oVirt gerrit 80873 0 master MERGED vm: lease: fix Lease constructor call 2017-08-22 15:16:18 UTC

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.


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