Project

General

Profile

Actions

Bug #37834

open

Automatic firmware selection for VMware is not working on the `compute_attributes` form

Added by Nofar Alfassi 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When selecting the `Automatic` firmware type on the `compute_attributes` form, it is incorrectly changed to `BIOS`, which is the default firmware type when no specific firmware is selected.

This issue occurs because the `compute_attributes` form shares the `_base.erb` template with the host form, where `Automatic` firmware is valid and converted to a specific firmware type based on the selected `PXE Loader`. However, in the `compute_attributes` form we don't pass the `PXE Loader`, and when the firmware type is passed to the VM object, `Automatic` is not a valid value.

Steps to reproduce:
1. Have a compute resource of type VMware created.
2. Create a compute profile of any type.
3. Choose `Automatic` firmware and save the form.
4. Click on the new compute profile you created and see that the firmware is set to `BIOS` instead of `Automatic`.

Actions #1

Updated by Nofar Alfassi 4 months ago

Note:
This issue is currently affecting only VMware compute resources. However, once the Firmware option is added to other compute resources, they will likely experience the same problem - see #10321 comment.

Actions

Also available in: Atom PDF