diff options
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/calibration/tasks')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml index dc789a7ec4..02a9ef3d00 100644 --- a/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml @@ -1,9 +1,6 @@ --- # file: roles/calibration/tasks/main.yaml -- name: Print Ansible facts - debug: var=ansible_facts - - name: Calibration - Install Distribution - Release - Machine Prerequisites package: name: "{{ packages | flatten(levels=1) }}" @@ -12,6 +9,40 @@ tags: - install-dependencies +- name: Calibration - Check CPU Power States + shell: "lscpu" + register: current_lscpu + changed_when: false + failed_when: | + 'CPU min MHz' in current_lscpu.stdout and + 'Intel(R) Xeon(R)' in current_lscpu.stdout + tags: + - check-cpu-frequency + +- name: Calibration - Check Kernel Version of "{{ kernel_version }}" + shell: "uname -r" + register: current_kernel_version + changed_when: false + failed_when: | + kernel_version not in current_kernel_version.stdout + tags: + - check-kernel-version + +- name: Calibration - Check Kernel Parameters + shell: "cat /proc/cmdline" + register: current_kernel_parameters + changed_when: false + failed_when: | + 'isolcpus' not in current_kernel_parameters.stdout or + 'nohz_full' not in current_kernel_parameters.stdout or + 'rcu_nocbs' not in current_kernel_parameters.stdout or + 'processor.max_cstate=1' not in current_kernel_parameters.stdout or + 'nmi_watchdog=0' not in current_kernel_parameters.stdout or + 'intel_iommu=on' not in current_kernel_parameters.stdout or + 'nosoftlockup' not in current_kernel_parameters.stdout + tags: + - check-cmdline + - name: Calibration - Get Spectre Meltdown Checker get_url: url: "https://meltdown.ovh" @@ -24,7 +55,7 @@ shell: "/opt/spectre-meltdown-checker.sh --no-color || true" async: 60 poll: 0 - ignore_errors: yes + ignore_errors: true register: spectre_meltdown_async tags: - check-spectre-meltdown @@ -35,17 +66,6 @@ - check-machine-specific - check-jitter-tool -- name: Calibration - Get BIOS info - shell: "dmidecode -t bios" - ignore_errors: yes - register: dmidecode_bios - tags: - - check-bios - -- debug: var=dmidecode_bios.stdout_lines - tags: - - check-bios - - name: Check sync status async_status: jid: "{{ spectre_meltdown_async.ansible_job_id }}" |