Skip to content

Commit d1ab889

Browse files
committed
add app quiesce support
Signed-off-by: dw035535 <diane.wang@broadcom.com>
1 parent c1aac3c commit d1ab889

File tree

1 file changed

+29
-20
lines changed

1 file changed

+29
-20
lines changed

windows/check_quiesce_snapshot/check_quiescing_type.yml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,30 +62,39 @@
6262
list_files: true
6363
register: vm_vss_manifests_files
6464

65-
# Windows Server VM with NVMe boot disk controller (except Windows Server 2022
66-
# with latest Windows updates installed) does not suppport application consistent
67-
# quiesce snapshot due to the known Windows issues.
68-
# Please keep track of the 3rd party issue status and vSphere support status.
69-
- name: "Handle Windows Server guest OS situation"
70-
when: guest_os_product_type == 'server'
65+
# Windows Server VM with NVMe boot disk controller does not suppport application
66+
# consistent quiesce snapshot due to the known Windows issues.
67+
# Except below 2 situations:
68+
# Windows Server 2022 with build number newer than 20348.2582,
69+
# Windows Server 2025 with build number newer than 26100.7171.
70+
- name: "Handle Windows Server VM with NVMe disk controller situation"
71+
when:
72+
- guest_os_product_type == 'server'
73+
- win_boot_disk_ctrl_type == 'nvme'
7174
block:
72-
- name: "Handle Windows Server 2022 situation"
73-
when: guest_os_product_version | int == 2022
74-
block:
75-
- name: "Get Windows Server 2022 build number"
76-
include_tasks: ../utils/win_get_os_version.yml
77-
- name: "Set Windows Server 2022 exception"
78-
ansible.builtin.set_fact:
79-
winsrv_2022_app_quiesce: true
80-
when: win_os_version_build is version('10.0.20348.2582', '>=')
75+
- name: "For Windows Server 2022"
76+
ansible.builtin.set_fact:
77+
app_quiesce_supported: true
78+
when:
79+
- guest_os_product_version | int == 2022
80+
- win_os_version_build is version('10.0.20348.2582', '>=')
8181

82-
- name: "Set fact of support application consistent quiescing situation"
82+
- name: "For Windows Server 2025"
8383
ansible.builtin.set_fact:
84-
winsrv_app_quiesce_support: true
84+
app_quiesce_supported: true
8585
when:
86-
- guestinfo_guest_full_name | regex_search('Windows Server ([0-9]{4})')
87-
- guestinfo_guest_full_name | regex_search('Windows Server ([0-9]{4})') == guest_os_ansible_distribution | regex_search('Windows Server ([0-9]{4})')
88-
- win_boot_disk_ctrl_type in ['lsilogicsas', 'paravirtual'] or (win_boot_disk_ctrl_type == 'nvme' and winsrv_2022_app_quiesce is defined and winsrv_2022_app_quiesce)
86+
- esxi_version is version('9.0.0', '>')
87+
- vm_hardware_version_num | int >= 21
88+
- guest_os_product_version | int == 2025
89+
- win_os_version_build is version('10.0.26100.7171', '>=')
90+
91+
- name: "Set fact of support application consistent quiescing situation"
92+
ansible.builtin.set_fact:
93+
winsrv_app_quiesce_support: true
94+
when:
95+
- guestinfo_guest_full_name | regex_search('Windows Server ([0-9]{4})')
96+
- guestinfo_guest_full_name | regex_search('Windows Server ([0-9]{4})') == guest_os_ansible_distribution | regex_search('Windows Server ([0-9]{4})')
97+
- win_boot_disk_ctrl_type in ['lsilogicsas', 'paravirtual'] or (win_boot_disk_ctrl_type == 'nvme' and app_quiesce_supported | default(false))
8998

9099
- name: "Check filesystem consistent quiescing taken"
91100
ansible.builtin.assert:

0 commit comments

Comments
 (0)