5432c20b65
+ Check for Keystone Process count on Controllers + Removed thread count check as it would inadvertently prevent correct checking of Keystone Process count + .gitignore files that should not be introduced into repo + Add .yml extension to checks group_vars Change-Id: Iad7475a3d0839edf800d1ce4fdbd17a9b7b9a5f4
64 lines
2.4 KiB
YAML
64 lines
2.4 KiB
YAML
---
|
|
#
|
|
# Keystone tasks for performance checks
|
|
#
|
|
|
|
- name: Check Keystone cron job
|
|
shell: crontab -l -u keystone | grep -v "#"
|
|
register: keystone_cron_result
|
|
changed_when: false
|
|
failed_when: "'token_flush' not in '{{ keystone_cron_result.stdout }}'"
|
|
ignore_errors: True
|
|
|
|
- name: Check Keystone Token Provider
|
|
command: crudini --get /etc/keystone/keystone.conf token provider
|
|
register: keystone_token_provider
|
|
changed_when: false
|
|
ignore_errors: True
|
|
|
|
- debug: msg="Keystone Token Provider:{{ keystone_token_provider.stdout }}"
|
|
|
|
- name: Determine if Keystone is deployed in eventlet
|
|
shell: ps afx | grep "[Kk]eystone-all" -c
|
|
register: keystone_in_eventlet
|
|
changed_when: false
|
|
ignore_errors: True
|
|
|
|
- name: Set keystone_deployment variable to httpd
|
|
set_fact: keystone_deployment='httpd'
|
|
when: keystone_in_eventlet.stdout|int == 0
|
|
|
|
- name: Set keystone_deployment variable to eventlet
|
|
set_fact: keystone_deployment='eventlet'
|
|
when: keystone_in_eventlet.stdout|int > 0
|
|
|
|
- debug: msg="Keystone deployed in:{{ keystone_deployment }}"
|
|
|
|
- name: Keystone HTTP admin processes (Undercloud)
|
|
shell: egrep -o "processes=[0-9]+" /etc/httpd/conf.d/*keystone*admin.conf | egrep -o "[0-9]+"
|
|
register: bz1330980
|
|
failed_when: bz1330980.stdout|int < keystone_processes
|
|
when: (keystone_in_eventlet.stdout|int == 0) and (inventory_hostname in groups.undercloud)
|
|
ignore_errors: True
|
|
|
|
- name: Keystone HTTP main processes (Undercloud)
|
|
shell: egrep -o "processes=[0-9]+" /etc/httpd/conf.d/*keystone*main.conf | egrep -o "[0-9]+"
|
|
register: bz1330980
|
|
failed_when: bz1330980.stdout|int < keystone_processes
|
|
when: (keystone_in_eventlet.stdout|int == 0) and (inventory_hostname in groups.undercloud)
|
|
ignore_errors: True
|
|
|
|
- name: Keystone HTTP admin processes (Controller)
|
|
shell: egrep -o "processes=[0-9]+" /etc/httpd/conf.d/*keystone*admin.conf | egrep -o "[0-9]+"
|
|
register: bz1347305
|
|
failed_when: bz1347305.stdout|int < keystone_processes
|
|
when: (keystone_in_eventlet.stdout|int == 0) and (inventory_hostname in groups.controller)
|
|
ignore_errors: True
|
|
|
|
- name: Keystone HTTP main processes (Controller)
|
|
shell: egrep -o "processes=[0-9]+" /etc/httpd/conf.d/*keystone*main.conf | egrep -o "[0-9]+"
|
|
register: bz1347305
|
|
failed_when: bz1347305.stdout|int < keystone_processes
|
|
when: (keystone_in_eventlet.stdout|int == 0) and (inventory_hostname in groups.controller)
|
|
ignore_errors: True
|