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

webadmin: Fix creating of a new template #359

Merged
merged 1 commit into from
May 10, 2022

Conversation

ljelinkova
Copy link
Contributor

When creating a new template, the initTemplate() method is called after the list of base templates is loaded.
However, if there are no templates other than the Blank template, the list is not loaded and the initTemplate()
method is never called. As a result, the builders from VM to UnitVmModel are never called and the UnitVmModel
is not initialized properly. The attempt to create a new template fails.

image
image

This patch calls the initTemplate() method also for the cases when there are no base templates available and the Blank template is the only template present.

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, and as we call AsyncDataProvider.getInstance().getTemplateListByDataCenter, the problem is when there are no other templates at the data center it seems

@ahadas
Copy link
Member

ahadas commented May 10, 2022

/ost

@smelamud
Copy link
Member

Saw this error in my environment, this patch solves it.

When creating a new template, the initTemplate() method
is called after the list of base templates is loaded.
However, if there are no templates other than the Blank
template, the list is not loaded and the initTemplate()
method is never called. As a result, the builders from
VM to UnitVmModel are never called and the UnitVmModel
is not initialized properly. The attempt to create a new
template fails.

This patch calls the initTemplate() method also for the cases
when there are no base templates available and the Blank template
is the only template present.
@michalskrivanek michalskrivanek merged commit 1aa211a into oVirt:master May 10, 2022
@ljelinkova ljelinkova deleted the number_of_monitors branch May 17, 2022 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants