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
Occurs only when the VM is running
is it supposed to do hot plug/unplug of the lease in 4.2?
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?
Please verify hot plugging a VM lease as well when verifying the fix for this bug.
*** Bug 1484432 has been marked as a duplicate of this bug. ***
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.
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.