Validation to verify the undercloud CPU reqs

Change-Id: I0b676a3ab9dc7c34783467fc229c4a2476341e43
changes/96/351196/2
Tomas Sedovic 6 years ago
parent fbd5bb6e4d
commit bdbd55a324
  1. 2
      README.rst
  2. 17
      validations/undercloud-cpu.yaml

@ -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
~~~~~~~~~~~~~~

@ -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 }}"
Loading…
Cancel
Save