State and status check for cinder services was relaxed
Resolves: rhbz#2234945 Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I423b11d3cf21cc53e231536323b6aad032791ed7
This commit is contained in:
parent
eb00c0fc9d
commit
44fdc64724
@ -51,8 +51,10 @@
|
||||
|
||||
- name: Verifying all services are up
|
||||
assert:
|
||||
that:
|
||||
- (service.state == "up" and service.status == "enabled") or service.status == "disabled"
|
||||
that: >
|
||||
(service.state == "up" and service.status == "enabled")
|
||||
or service.status == "disabled"
|
||||
or (service.status == "enabled" and service.state == "down" and service.binary is match("cinder-.*"))
|
||||
fail_msg: "{{ service.binary }} on {{ service.host }} is problematic (service state is {{ service.state }} while it's {{ service.status }})"
|
||||
loop: "{{ os_services.json.services }}"
|
||||
loop_control:
|
||||
@ -60,6 +62,16 @@
|
||||
register: down_services_output
|
||||
ignore_errors: true
|
||||
|
||||
- debug:
|
||||
msg: "{{ service.binary }} on {{ service.host }} is down while it's enabled. But it isn't cause for concern."
|
||||
loop: "{{ os_services.json.services }}"
|
||||
loop_control:
|
||||
loop_var: service
|
||||
when:
|
||||
- service.binary is match("cinder-.*")
|
||||
- service.status == "enabled"
|
||||
- service.state == "down"
|
||||
|
||||
- name: Asserted failure
|
||||
fail:
|
||||
msg: |
|
||||
|
Loading…
Reference in New Issue
Block a user