Skip to content

Commit 77a431d

Browse files
authored
Check Windows VM VBS enablement status only on 64bit VM (#313)
* refine memory hotadd size list for 32bit Windows Signed-off-by: dianew <[email protected]>
1 parent f2987c9 commit 77a431d

File tree

6 files changed

+103
-33
lines changed

6 files changed

+103
-33
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This project supports below scenarios for end-to-end guest OS validation testing
6565

6666
| Guest OS types/versions | Automatic install from ISO image | Deploy from ova template | Existing VM and installed guest OS |
6767
| :---------------------------------------------- | :------------------------------: | :----------------------: | :--------------------------------: |
68-
| Red Hat Enterprise Linux 7.x, 8.x | :heavy_check_mark: | | :heavy_check_mark: |
68+
| Red Hat Enterprise Linux 7.x, 8.x, 9.0 | :heavy_check_mark: | | :heavy_check_mark: |
6969
| CentOS 7.x, 8.x | :heavy_check_mark: | | :heavy_check_mark: |
7070
| Oracle Linux 7.x, 8.x | :heavy_check_mark: | | :heavy_check_mark: |
7171
| Rocky Linux 8.x | :heavy_check_mark: | | :heavy_check_mark: |
@@ -89,10 +89,10 @@ This project supports below scenarios for end-to-end guest OS validation testing
8989
Note: This supported guest OS list is used for this project only. For guest OS support status on ESXi, please refer to [VMware Compatibility Guide](https://www.vmware.com/resources/compatibility/search.php?deviceCategory=software&testConfig=16).
9090

9191
### Docker images
92-
* Latest (Release v1.3):
92+
* Latest (Release v2.0):
9393
* projects.registry.vmware.com/gos_cert/ansible-vsphere-gos-validation:latest
94-
* Release v1.3:
95-
* projects.registry.vmware.com/gos_cert/ansible-vsphere-gos-validation:v1.3
94+
* Release v2.0:
95+
* projects.registry.vmware.com/gos_cert/ansible-vsphere-gos-validation:v2.0
9696

9797
Launch testing using Docker image
9898
1. Execute below commands in your machine

changelogs/changelog.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
ancestor: null
22
releases:
3+
2.0:
4+
changes:
5+
major_changes:
6+
- Refine test case result types defination and add 3 new types "Not Supported", "Not Applicable" and "Blocked".
7+
- Add a new parameter 'esxi_shell' in vars/test.yml and default is '/bin/sh' for adding ESXi host to inventory.
8+
- Add a new parameter 'virtual_tpm' in vars/test.yml for creating new VM with a virtual TPM device.
9+
- Move network_testbed_setup tasks to the test case playbook when it's required.
10+
- Change to use SATA controller by default for VM CDROM devices.
11+
minor_changes:
12+
- Add support Debian 10.x and 11.x guest OS auto install.
13+
- Add new common tasks to get ESXi supported VM hardware versions, guest IDs and guest config options.
14+
- If the OVT installed is not from Photon OS's repository, skip to run perl GOSC testing on it.
15+
- Add OS fullname for AlmaLinux and Rocky Linux in check_os_fullname test case.
16+
- Add a workaround for supporting create new VM with IDE boot disk controller.
17+
- Change to use common task 'esxi_upload_datastore_file.yml' to avoid using delegate to ESXi host.
18+
- Add 'gosc_support_matrix.yml' file to filter supported vCenter version or VMware tools version for guest OS.
19+
- Change to use connection plugin psrp as the default connection method for Windows VM.
20+
- Change to exit testing when ovt_verify_install test case failed for Linux testing.
21+
- Add checking image approved keyword in vmware.log after VM deploy when secure boot is enabled.
22+
- Check WinBSOD keyword in vmware.log for Windows when guest OS is unreachable.
23+
- Add collect VM vmware.log when test case failed.
24+
- Add check reported guestID in guest info in Linux and Windows test case check_os_fullname.
25+
- Add gather vmw_pvrdma and ptp_vmw driver info in Linux test case check_inbox_driver.
26+
- Remove xorriso package from requirement.txt and add it to README.
27+
- Remove ignored failed loop task from failed_tasks.log.
28+
- Add ignore_unreachable to true in Windows task which is delegate to guest OS.
29+
bugfixes:
30+
- Fix VM IP address change causing test case memory_hot_add_basic failure issue.
31+
- Fix CentOS online repository URL changing issue.
32+
- Fix serial port not removed issue after Ubuntu ova deployment.
33+
- Fix template openwrt_19.07.2_x86.ova deployment issue on vSphere 6.5.
34+
- Fix check_os_fullname test case failure for Windows 11 VM and add ignore known issue.
35+
- Fix failure caused by Flatcar distribution name change.
36+
- Fix failed to install sg3-utils package in Debian issue.
37+
- Ignore known issue for Windows Server 2022 in test case check_quiesce_snapshot.
38+
- Fix mounting VMware tools iso failure issue for existing Windows VM with SATA CDROM.
39+
- Fix remove PackageKit package from SLED issue.
40+
- Fix snapshot is not quiesced snapshot issue for Windows in test case check_quiesce_snapshot.
41+
- Fix to use source IP address to ping target in Windows guest.
42+
- Fix Windows issue of ping target is unreachable but the ping result is success.
43+
- Fix testing exit when VM unreachable in specific task issue for Ubuntu.
44+
new_testcases:
45+
- windows/check_inbox_driver/check_inbox_driver.yml
46+
docker_image:
47+
path: projects.registry.vmware.com/gos_cert/ansible-vsphere-gos-validation:v2.0
48+
Ansible: ansible-core 2.13.0
49+
Python: 3.10.0
50+
Ansible collections:
51+
- ansible.netcommon: 3.0.0
52+
- ansible.posix: 1.4.0
53+
- ansible.utils: 2.6.1
54+
- ansible.windows: 1.10.0
55+
- community.crypto: 2.3.1
56+
- community.general: 5.0.0
57+
- community.vmware: 2.4.0
58+
- community.windows: 1.10.0
59+
release_date: '2022-05-27'
360
1.3:
461
changes:
562
bugfixes:

common/vm_get_vbs_status.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
property_list: ['config.flags.vbsEnabled']
88
- name: Set fact of VM VBS enablement status
99
set_fact:
10-
vm_vbs_enanled: "{{ vm_config.config.flags.vbsEnabled if vm_config.config.flags.vbsEnabled else False }}"
10+
vm_vbs_enabled: "{{ vm_config.config.flags.vbsEnabled if vm_config.config.flags.vbsEnabled else False }}"
1111
- debug:
12-
msg: "VM VBS is enabled: {{ vm_vbs_enanled }}"
12+
msg: "VM VBS is enabled: {{ vm_vbs_enabled }}"

windows/cpu_hot_add_basic/cpu_hot_add_basic.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@
1616
tasks:
1717
- block:
1818
- include_tasks: ../setup/test_setup.yml
19-
20-
# Refer to KB article https://kb.vmware.com/s/article/52584
21-
- include_tasks: ../../common/vm_get_vbs_status.yml
22-
- include_tasks: ../../common/skip_test_case.yml
23-
vars:
24-
skip_msg: "Skip test case due to CPU hotadd not supported for VM with VBS enabled."
25-
skip_reason: "Not Supported"
26-
when:
27-
- vm_vbs_enanled is defined and vm_vbs_enanled | bool
19+
20+
- block:
21+
# Refer to KB article https://kb.vmware.com/s/article/52584
22+
- include_tasks: ../../common/vm_get_vbs_status.yml
23+
- include_tasks: ../../common/skip_test_case.yml
24+
vars:
25+
skip_msg: "Skip test case due to CPU hotadd not supported for VM with VBS enabled."
26+
skip_reason: "Not Supported"
27+
when: vm_vbs_enabled is defined and vm_vbs_enabled | bool
28+
when: guest_os_ansible_architecture == "64-bit"
2829

2930
- name: Set fact of the initial CPU number and cores per socket
3031
set_fact:

windows/memory_hot_add_basic/memory_hot_add_basic.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
tasks:
1515
- block:
1616
- include_tasks: ../setup/test_setup.yml
17-
18-
# Refer to KB article https://kb.vmware.com/s/article/52584
19-
- include_tasks: ../../common/vm_get_vbs_status.yml
20-
- include_tasks: ../../common/skip_test_case.yml
21-
vars:
22-
skip_msg: "Skip test case due to memory hotadd not supported for VM with VBS enabled."
23-
skip_reason: "Not Supported"
24-
when:
25-
- vm_vbs_enanled is defined and vm_vbs_enanled | bool
26-
17+
18+
- block:
19+
# Refer to KB article https://kb.vmware.com/s/article/52584
20+
- include_tasks: ../../common/vm_get_vbs_status.yml
21+
- include_tasks: ../../common/skip_test_case.yml
22+
vars:
23+
skip_msg: "Skip test case due to memory hotadd not supported for VM with VBS enabled."
24+
skip_reason: "Not Supported"
25+
when: vm_vbs_enabled is defined and vm_vbs_enabled | bool
26+
when: guest_os_ansible_architecture == "64-bit"
27+
2728
- name: "Set fact of initial memory size 2048MB for 32bit client"
2829
set_fact:
2930
vm_initial_mem_mb: 2048
@@ -34,7 +35,15 @@
3435
set_fact:
3536
vm_initial_mem_mb: 4096
3637
when: guest_os_ansible_architecture == "64-bit"
38+
39+
# Memory limit for 32bit Windows is 4GB:
40+
# https://docs.microsoft.com/en-us/windows/win32/memory/memory-limits-for-windows-releases
41+
- name: Set fact of memory hotadd list for 32bit Windows
42+
set_fact:
43+
memory_hotadd_size_list: [1024, 1024]
44+
when: guest_os_ansible_architecture == "32-bit"
3745
- include_tasks: ../../linux/memory_hot_add_basic/generate_mem_hot_add_list.yml
46+
when: guest_os_ansible_architecture == "64-bit"
3847

3948
- include_tasks: ../../common/skip_test_case.yml
4049
vars:

windows/wintools_complete_install_verify/wintools_complete_install_verify.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@
2525
when: vmtools_esxi_bundled is undefined
2626

2727
# If VBS is enabled, will not install under development tools due to secureboot is enabled
28-
- include_tasks: ../../common/vm_get_vbs_status.yml
29-
- include_tasks: ../../common/skip_test_case.yml
30-
vars:
31-
skip_msg: "Skip test case due to under development VMware tools can not test on VM with VBS enabled."
32-
skip_reason: "Not Applicable"
33-
when:
34-
- vm_vbs_enanled is defined and vm_vbs_enanled | bool
35-
- is_development_tools is defined and is_development_tools | bool
28+
- block:
29+
- include_tasks: ../../common/vm_get_vbs_status.yml
30+
- include_tasks: ../../common/skip_test_case.yml
31+
vars:
32+
skip_msg: "Skip test case due to under development VMware tools can not test on VM with VBS enabled."
33+
skip_reason: "Not Applicable"
34+
when:
35+
- vm_vbs_enabled is defined and vm_vbs_enabled | bool
36+
- is_development_tools is defined and is_development_tools | bool
37+
when: guest_os_ansible_architecture == "64-bit"
38+
3639
- include_tasks: ../../common/skip_test_case.yml
3740
vars:
3841
skip_msg: "Test case '{{ ansible_play_name }}' is blocked because VMware tools is installed, update VMware tools is set to: {{ update_vmtools }}"

0 commit comments

Comments
 (0)