Skip to content

Commit 16a6ad1

Browse files
authored
[ARM] set not supported virtual disk controller types on ARM ESXi host (#702)
Signed-off-by: dw035535 <[email protected]>
1 parent aacc23e commit 16a6ad1

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

linux/vhba_hot_add_remove/vhba_device_hot_add_remove.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
---
44
- name: "Test case block"
55
block:
6+
- name: "Skip test case"
7+
include_tasks: ../../common/skip_test_case.yml
8+
vars:
9+
skip_msg: >-
10+
Skip test case '{{ ansible_play_name }}' because '{{ new_disk_ctrl_type }}'
11+
controller type is not supported on ARM ESXi host.
12+
skip_reason: "Not Supported"
13+
when:
14+
- esxi_cpu_vendor == 'arm'
15+
- new_disk_ctrl_type in ["lsilogic", "lsilogicsas"]
16+
617
- name: "Test setup"
718
include_tasks: ../setup/test_setup.yml
819
vars:

windows/deploy_vm/deploy_vm_from_iso.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
# Initialize VM virtual hardware config variables
88
- name: "Initialize variables for new VM settings"
99
ansible.builtin.set_fact:
10-
boot_disk_controller: "{{ boot_disk_controller | lower if (boot_disk_controller is defined and boot_disk_controller) else 'lsilogicsas' }}"
10+
boot_disk_controller: >-
11+
{%- if boot_disk_controller is defined and boot_disk_controller -%}{{ boot_disk_controller | lower }}
12+
{%- elif esxi_cpu_vendor == 'arm' -%}nvme
13+
{%- else -%}lsilogicsas
14+
{%- endif -%}
1115
secureboot_enabled: "{{ secureboot_enabled is defined and secureboot_enabled | lower == 'true' }}"
1216
network_adapter_type: "{{ network_adapter_type | lower if (network_adapter_type is defined and network_adapter_type) else 'e1000e' }}"
1317
firmware: "{{ firmware | lower if (firmware is defined and firmware) else 'efi' }}"

windows/vhba_hot_add_remove/lsilogicsas_vhba_device_ops.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
tasks:
1212
- name: "Test case block"
1313
block:
14+
- name: "Skip test case"
15+
include_tasks: ../../common/skip_test_case.yml
16+
vars:
17+
skip_msg: >-
18+
Skip test case '{{ ansible_play_name }}' because LSILogicSAS controller type
19+
is not supported on ARM ESXi host.
20+
skip_reason: "Not Supported"
21+
when: esxi_cpu_vendor == 'arm'
22+
1423
- name: "Test setup"
1524
include_tasks: ../setup/test_setup.yml
1625
vars:

0 commit comments

Comments
 (0)