Created attachment 1276779 [details] Screenshot, from Firefox 53.0 (64bits) running on Fedora Workstation 25. Description of problem: On RHV-M version 4.1.1.8, running as a standalone server based on RHEL 7.3, the UI throws an JavaScript exception when trying to access the tab "Virtual Machine > Guest Info" of a offline instance. Version-Release number of selected component (if applicable): RHV-M version 4.1.1.8 (WebAdmin) How reproducible: Easily. Steps to Reproduce: 1. Create two virtual machine with guest-tools installed. 2. Power one off, and leave the other powered on. 3. With the machine powered on selected, access its Guest Info tab, from Virtual Machine section. This will not throw the exception. 3. Do the same with the machine powered off, the exception is thrown. Actual results: The webadmin portal shows a red box informing the exception and questing the user to reload the page. Expected results: Not sure, but we could inform the latest information acquired for the virtual-machine, or just leave the fields as 'unknown'
Created attachment 1276780 [details] /var/log/ovirt-engine/ui.log collected from affected RHVM server.
Can you please install weadmin-debuginfo, restart engine service and reproduce? This will provide a deciphered stack.
Sure! How am I suppose to install it? [root@rhvm ~]# yum install weadmin-debuginfo Loaded plugins: product-id, search-disabled-repos, subscription-manager, versionlock jb-eap-7-for-rhel-7-server-rpms | 4.0 kB 00:00:00 rhel-7-server-rhv-4-tools-rpms | 4.0 kB 00:00:00 rhel-7-server-rhv-4.1-rpms | 4.0 kB 00:00:00 rhel-7-server-rpms | 3.5 kB 00:00:00 rhel-7-server-supplementary-rpms | 3.4 kB 00:00:00 No package weadmin-debuginfo available. Error: Nothing to do [root@rhvm ~]# yum install webadmin-debuginfo Loaded plugins: product-id, search-disabled-repos, subscription-manager, versionlock No package webadmin-debuginfo available. Error: Nothing to do [root@rhvm ~]# yum search debuginfo Loaded plugins: product-id, search-disabled-repos, subscription-manager, versionlock =============================================== Matched: debuginfo ================================================ yum-utils.noarch : Utilities based around the yum package manager [root@rhvm ~]#
The exact package name is ovirt-engine-webadmin-portal-debuginfo
After install this package, from 'rhel-7-server-rhv-4.1-debug-rpms' channel, the engine URL 'https://rhvm.cloud.dvercill.lab/ovirt-engine/' returns 404. Is it expected?
(In reply to Davi Garcia from comment #6) > After install this package, from 'rhel-7-server-rhv-4.1-debug-rpms' channel, > the engine URL 'https://rhvm.cloud.dvercill.lab/ovirt-engine/' returns 404. > Is it expected? no, this is not expected. Can you please provide the server logs? /var/log/ovirt-engine/server.log
BTW I was trying to simulate this according to the steps and it did not happen to me so there is no way forward without the logs or access to an env where it actually happens. @Davi: any chance to get those?
Created attachment 1278015 [details] /var/log/ovirt-engine/ui.log after install ovirt-engine-webadmin-portal-debuginfo
Created attachment 1278016 [details] Install log for ovirt-engine-webadmin-portal-debuginfo
Sorry for the delay, but I had to rollback the install so we could use the lab again. Like I said, when I install the debug package the UI returns HTTP/404.
as I mentioned in comment 7 - could you please provide the /var/log/ovirt-engine/server.log when you are getting the 404 after installing the debuginfo? @Greg: any idea why would the webadmin disappear after installing the debuginfo package?
For some reason I cannot explain, I reinstalled the ovirt-engine-webadmin-portal-debuginfo today (I did rollback yesterday after collect the logs) and the HTTP/404 error is not happening anymore. Anyway, I'm sending all the logs (server, engine, ui) again, with ovirt-engine-webadmin-portal-debuginfo installed, for the Guest Info exception decoded.
Created attachment 1278265 [details] /var/log/ovirt-engine/engine.log after install ovirt-engine-webadmin-portal-debuginfo (Guest Info exception)
Created attachment 1278266 [details] /var/log/ovirt-engine/ui.log after install ovirt-engine-webadmin-portal-debuginfo (Guest Info exception)
Created attachment 1278267 [details] /var/log/ovirt-engine/server.log after install ovirt-engine-webadmin-portal-debuginfo (Guest Info exception)
Thanks. Better. [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) __gwt$exception: <skipped>: a.d is null at org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestInfoModel.$setGuestOsNamedVersion(VmGuestInfoModel.java:243) at org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestInfoModel.$updateProperties(VmGuestInfoModel.java:91) at org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestInfoModel.onEntityChanged(VmGuestInfoModel.java:54) at
great. Can you please also check the version of ovirt-guest-agent inside the VM?
The VM based on Microsoft Windows Server 2016 (64 bits) is using RHV Tools 4.1.5, and the VM based on RHEL 7.3 is using ovirt-guest-agent-common-1.0.13-5.el7ev.noarch, that installed qemu-guest-agent-2.5.0-3.el7.x86_64.
It happens since the ResourceManager.resetVmAttributes() resets the "guestOs" field to null but not the guestOsType. So, in VmGuestInfoModel.setGuestOsNamedVersion() this expression: guestOsType == OsType.Windows && guestOs.startsWith("Win ") throws a NPE since the guestOsType == OsType.Windows is true and the guestOs is null It is a similar issue than 1442697
Verified in ovirt version 4.1.5.2-0.1.el7. Verified by following the reproducer.