Bug 2127836

Summary: Create template dialog is not closed when clicking in OK and the template is not created
Product: Red Hat Enterprise Virtualization Manager Reporter: Juan Orti <jortialc>
Component: ovirt-engineAssignee: Shmuel Melamud <smelamud>
Status: CLOSED ERRATA QA Contact: Barbora Dolezalova <bdolezal>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5.2CC: gdeolive, ljelinko, lleistne, michal.skrivanek, mjankula, mperina, mzamazal
Target Milestone: ovirt-4.5.3Keywords: TestOnly
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 12:17:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juan Orti 2022-09-19 08:21:02 UTC
Description of problem:
In a new RHV setup that only has the Blank template, it is not possible to create a new template.

The make template dialog does not close when clicking in OK and no error is displayed in the UI.

Version-Release number of selected component (if applicable):
ovirt-engine-4.5.2.5-0.1.el8ev.noarch

How reproducible:
Always. Happens in the customer environment and I've reproduced it in other two different environments.

Steps to Reproduce:
1. Install a new RHV environment with latest version ovirt-engine-4.5.2.5-0.1.el8ev.noarch

2. No template other than the Blank template should exist.

3. Create a VM and select "Make template".

4. Give the template a name and click OK.

Actual results:
Nothing happens. The make template dialog doesn't close and the template is not created.

There's nothing logged in engine.log nor in ui.log. The web browser console also doesn't log any error.

Expected results:
Template created as expected.

Additional info:
I was able to workaround the issue by inserting a fake template directly in the database as described in here:

https://bugzilla.redhat.com/show_bug.cgi?id=2100812#c7

then, in the make template dialog check and uncheck the box "Create as a Template Sub-Version".

After you have created some templates, the issue doesn't happen any more.

Comment 1 Shmuel Melamud 2022-09-20 01:49:49 UTC
Hi Juan,

I didn't succeed to reproduce the issue. Neither on 4.5.2, nor on the latest master.

Are there other details that may affect the result? Cluster compatibility version, the VM parameters? Can you please attach the logs, even if you see nothing important in them?

Shmuel

Comment 2 Michal Skrivanek 2022-09-20 07:36:20 UTC
I did reproduce couple times on various setups. But I believe Lucia did some changes recently in this area that might have fixed it. I can't confirm though as I never figured out the right preconditions.

Comment 4 Shmuel Melamud 2022-09-21 01:31:08 UTC
(In reply to Michal Skrivanek from comment #2)
> I did reproduce couple times on various setups. But I believe Lucia did some
> changes recently in this area that might have fixed it. I can't confirm
> though as I never figured out the right preconditions.

Yes, Lucia says that's exactly the bug she has fixed recently. So it's worth to try to reproduce it with a recent build.

Comment 11 Barbora Dolezalova 2022-11-03 17:57:10 UTC
I followed the reproduction steps and expected template was created.

Verified in ovirt-engine-4.5.3.2-1.el8ev.noarch

Comment 15 errata-xmlrpc 2022-11-16 12:17:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.3] bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8502