Bug 1585662

Summary: NPE in admin portal when trying to migrate a disk to another SD
Product: [oVirt] ovirt-engine Reporter: Arsene Gschwind <arsene.gschwind>
Component: Frontend.WebAdminAssignee: bugs <bugs>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.3.5CC: arsene.gschwind, bugs, gshereme, tnisan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-19 11:08:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arsene Gschwind 2018-06-04 11:22:50 UTC
Description of problem:

When trying to migrate a disk to another SD the web UI throws the following error: Cannot read property 'G' of null

Here a log extract of ui.log:

2018-06-03 10:57:17,486+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-52) [] Permutation name: AEA766696E550914FBFDA5936BC98453
2018-06-03 10:57:17,486+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-52) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'G' of null
        at org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel.$lambda$1(DisksAllocationModel.java:107)
        at org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel$lambda$1$Type.onSuccess(DisksAllocationModel.java:107)
        at org.ovirt.engine.ui.frontend.Frontend$1.$onSuccess(Frontend.java:227) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.Frontend$1.onSuccess(Frontend.java:227) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$1.$onSuccess(OperationProcessor.java:133) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$1.onSuccess(OperationProcessor.java:133) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.$onSuccess(GWTRPCCommunicationProvider.java:270) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.onSuccess(GWTRPCCommunicationProvider.java:270) [frontend.jar:]
        at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:198) [gwt-servlet.jar:]
        at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:233) [gwt-servlet.jar:]
        at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409) [gwt-servlet.jar:]
        at Unknown.eval(webadmin-0.js)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:236) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:275) [gwt-servlet.jar:]
        at Unknown.eval(webadmin-0.js)


Version-Release number of selected component (if applicable):


How reproducible:

Just try to live migrate a vm disk

Steps to Reproduce:
1.
2.
3.

Actual results:
Cannot read property 'G' of null

Expected results:
Disk migration should start


Additional info:

Comment 1 Tal Nisan 2018-06-05 08:38:21 UTC
Hi Arsene,
I could not reproduce, does it happen for other disks in other VMs or just this specific one?

Comment 2 Arsene Gschwind 2018-06-05 14:31:12 UTC
(In reply to Tal Nisan from comment #1)
> Hi Arsene,
> I could not reproduce, does it happen for other disks in other VMs or just
> this specific one?

HI Tal,
This doesn't happen on all disks since I could migrate some of them, but now i have several disks I'm not able to migrate due to this error.

Comment 3 Tal Nisan 2018-06-11 14:47:10 UTC
(In reply to Arsene Gschwind from comment #2)
> (In reply to Tal Nisan from comment #1)
> > Hi Arsene,
> > I could not reproduce, does it happen for other disks in other VMs or just
> > this specific one?
> 
> HI Tal,
> This doesn't happen on all disks since I could migrate some of them, but now
> i have several disks I'm not able to migrate due to this error.

I've tried to dig in the code to see what may cause this, seems like some disks might be missing, can you check the specific disks and see if all the images exist in the storage?

Comment 4 Arsene Gschwind 2018-06-11 16:43:38 UTC
(In reply to Tal Nisan from comment #3)
> (In reply to Arsene Gschwind from comment #2)
> > (In reply to Tal Nisan from comment #1)
> > > Hi Arsene,
> > > I could not reproduce, does it happen for other disks in other VMs or just
> > > this specific one?
> > 
> > HI Tal,
> > This doesn't happen on all disks since I could migrate some of them, but now
> > i have several disks I'm not able to migrate due to this error.
> 
> I've tried to dig in the code to see what may cause this, seems like some
> disks might be missing, can you check the specific disks and see if all the
> images exist in the storage?

The image definitively exists since the VM are running and I'm able to see the disk on the storage.
In the meantime I could migrate some disks using ovirt-shell but using the web ui still gives the same error.

Comment 5 Tal Nisan 2018-06-19 11:08:39 UTC
Tried to reproduce in many different ways but unfortunately couldn't, since you've found a workaround and we don't have any clear information on what causes those specific disks to fail I'm closing this bug as insufficient data, please reopen if you have new information regarding