Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jonsattelberger opened this issue Jan 18, 2024 · 5 comments
Open

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

jonsattelberger opened this issue Jan 18, 2024 · 5 comments
Labels

Comments

@jonsattelberger
Copy link

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.

  • oVirt Engine: 4.5.6-0 (git12af746179.el8)
  • Host OS Variant: Red Hat Enterprise Linux 8

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
Copy link
Member

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
Copy link

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

@michalskrivanek
Copy link
Member

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

@jsattelb
Copy link

@michalskrivanek

I should have searched better. This appears to be a duplicate of #783.

@humnab
Copy link

humnab commented Feb 22, 2024

Duplicate of #900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants