diff --git a/README.rst b/README.rst index fa5f93cda..cdc20779a 100644 --- a/README.rst +++ b/README.rst @@ -38,6 +38,7 @@ Validations that are run on a fresh machine *before* the undercloud is installed. - `undercloud-ram.yaml`: Verify the undercloud fits the RAM requirements +- `undercloud-cpu.yaml`: Verify undercloud fits the CPU core requirements Pre Introspection ~~~~~~~~~~~~~~~~~ @@ -46,6 +47,7 @@ Validations that are run when the undercloud is ready to perform hardware introspection. - `undercloud-ram.yaml`: Verify the undercloud fits the RAM requirements +- `undercloud-cpu.yaml`: Verify undercloud fits the CPU core requirements Pre Deployment ~~~~~~~~~~~~~~ diff --git a/validations/undercloud-cpu.yaml b/validations/undercloud-cpu.yaml new file mode 100644 index 000000000..cda16cefd --- /dev/null +++ b/validations/undercloud-cpu.yaml @@ -0,0 +1,17 @@ +--- +- hosts: undercloud + vars: + metadata: + name: Verify undercloud fits the CPU core requirements + description: > + Make sure that the undercloud has enough CPU cores. + + https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html/Director_Installation_and_Usage/sect-Undercloud_Requirements.html + groups: + - prep + - pre-introspection + min_undercloud_cpu_count: 8 + tasks: + - name: Verify the number of CPU cores + fail: msg="There are {{ ansible_processor_vcpus }} cores in the system, but there should be at least {{ min_undercloud_cpu_count }}" + failed_when: "{{ ansible_processor_vcpus|int }} < {{ min_undercloud_cpu_count|int }}"