oVirt / ovirt-engine

The oVirt Engine virtualization manager
Other
491 stars 259 forks source link

Creating snapshots of Windows VM result in Status Code: 500 #913

Open jonsattelberger opened 5 months ago

jonsattelberger commented 5 months ago

Affected version

IMPORTANT!: oVirt prior to 4.5 reached end of life. If you have an issue on an older version please upgrade to latest stable release before opening an issue.

I receive a "Status Code: 500" popup whenever I attempt to create a snapshot for a Windows VM from the Administration Portal UI. It doesn't matter if the VM is powered on or off. Nor the OS designation set in the UI (setting Linux or Other...).

The modal usually states: "Operation Canceled" followed by "Error while executing action: A Request to the Server failed with the following Status Code: 500" or "Error while executing query: null". There are at least a dozen popups, and will continue to repeat every few seconds.

The snapshot tab in the Admin Portal UI will then have issues displaying the Active VM and the newly created snapshot entry. If you try to examine both entries, the disk, network, and installed applications might appear blank.

The web inspector will usually contain the following:

Fri Dec 22 09:43:07 GMT-500 2023 org.ovirt.engine.ui.frontend.Frontend SEVERE: Failed to execute runQuery: com.google.gwt.user.client.rpc.StatusCodeException: 500 Internal Server Error The call failed on the server; see server log for details com.google.gwt.user.client.rpc.StatusCodeException: 500 Internal Server Error The call failed on the server; see server log for details

The engine logs will have:

File: server.log

2023-12-22 09:43:04,387-05 ERROR [io.undertow.servlet] (default task-726) Exception while dispatching incoming RPC call: com.google.gwt.user.client.rpc.SerializationException: Can't find the serialization policy file. This probably means that the user has an old version of the application loaded in the browser. To solve the issue the user needs to close the browser and open it again, so that the application is reloaded.
... snip ...
Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'org.ovirt.engine.core.common.utils.SecretValue' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = ***

The same snapshot will appear fine in the VM Portal. I am able to see the network interfaces, and disks.

No issues creating a snapshot of a Linux-based VM from either UI interfaces.

A clear and concise description of what the bug is

  1. Log into Admin Portal
  2. Create a Windows VM
  3. Create a snapshot of the Windows VM

Steps to reproduce the behavior

No internal server error 500 modal / popup

michalskrivanek commented 5 months ago

these kinds of error are usually due to mismatch in versions of frontend and backend. I would suggest to doublecheck the packages, make sure repos are set up correctly. one note - we never test ovirt with RHEL 8. It is used for RHV still, but only the RHEL 8.6, not later versions. From our CI tests of oVirt on el8stream (and so likely with RHEL 8.7+ too) we know there are issues due to ansible (at least), and they may or may not be reported as conflicts in package upgrade. could it have messed up your config perhaps?

jsattelb commented 5 months ago

Is there a specific set of packages I should evaluate? I'll be more than happy to poke around.

michalskrivanek commented 5 months ago

sadly i can't assist much more than that:/ perhaps check ovirt-engine-* versions of rpms deployed, and where they come from

jsattelb commented 5 months ago

@michalskrivanek

I should have searched better. This appears to be a duplicate of https://github.com/oVirt/ovirt-engine/issues/783.

humnab commented 4 months ago

Duplicate of https://github.com/oVirt/ovirt-engine/issues/900