Work around Ansible vcpu fact bug on ppc64le
This changes how aodh_wsgi_processes is set to work around a bug in Ansible where ansible_processor_vcpus is reported as 0 on ppc64le today due to issues with /proc/cpuinfo format differences. An upstream fix has been proposed at [1]. [1] - ansible/ansible#16533 Change-Id: Ie47367f3808cb2c259eb62e6896f63e637cdda06
This commit is contained in:
parent
a6fcaa93f5
commit
52df852da0
|
@ -68,7 +68,7 @@ aodh_apache_log_level: info
|
|||
aodh_apache_servertokens: "Prod"
|
||||
aodh_apache_serversignature: "Off"
|
||||
aodh_wsgi_threads: 10
|
||||
aodh_wsgi_processes: "{{ ansible_processor_vcpus | default (1) * 2 }}"
|
||||
aodh_wsgi_processes: "{{ (ansible_processor_vcpus | int > 0) | ternary (ansible_processor_vcpus, 1) * 2 }}"
|
||||
|
||||
#Aodh services info
|
||||
aodh_role_name: admin
|
||||
|
|
Loading…
Reference in New Issue