diff --git a/roles/overcloud_service_status/tasks/os_service.yml b/roles/overcloud_service_status/tasks/os_service.yml index 341ee143b..f7a4108b6 100644 --- a/roles/overcloud_service_status/tasks/os_service.yml +++ b/roles/overcloud_service_status/tasks/os_service.yml @@ -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: |