validate-tempest: better workers default

tempest_workers used `ansible_processor_count` which is in fact the
number of physical CPUs - rarely more than two nowadays - when it should
in fact use number of CPU cores/threads which is `ansible_processor_vcpus`.

Change-Id: I7aa0dd29df5130e15bf6c1cf97774744e2f46921
This commit is contained in:
François Charlier 2017-11-08 17:25:44 +01:00
parent 75ae474e85
commit 58887d0645
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ Role Variables
to empty if you don't want to run with blacklist_file option.
Default value is an empty list
* `skip_file_src`: path to skip tests file, set it empty if running without skip list: `skip_file_src=''`
* `tempest_workers`: int - how many parallel workers to run (default is number of cores)
* `tempest_workers`: int - how many parallel workers to run (default is half the number of cores/threads)
* `tempest_until_failure`: false/true - default is false, repeat the run again and again until failure occurs
* `tempest_exit_on_failure`: true/false - whether to exit from role with tempest exit code (default: true)
* `tempestmail_config`: config.yaml - name of config file for tempestmail script

View File

@ -3,7 +3,7 @@
- name: Set the number of workers in tempest
set_fact:
tempest_workers: "{{ ansible_processor_count|int // 2 }}"
tempest_workers: "{{ ansible_processor_vcpus|int // 2 }}"
when: tempest_workers is not defined
- name: Create overcloud tempest setup script