tripleo-validations/roles/overcloud_service_status/tasks/main.yml
David Vallee Delisle 4fc80c6bd5 Introducing the overcloud-service-status role
This role will hit the overcloud API for nova and cinder, retrieve the
services and will trig a failure if one of these services are either
down or deprecated. The original intent was to validate that
nova-consoleauth was deleted after an update to RHOSP16.

Related: https://bugzilla.redhat.com/1921115
Change-Id: I057349fdac90a093c67aeb0b2f0a825c4c915e0b
2021-02-16 01:35:38 +00:00

49 lines
1.5 KiB
YAML

---
# Copyright 2021 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
- name: Geting a system scoped Keystone token
no_log: "{{ not overcloud_service_status_debug | bool }}"
uri:
url: "{{ overcloud_keystone_url | urlsplit('scheme') }}://{{ overcloud_keystone_url | urlsplit('netloc') }}/v3/auth/tokens"
method: POST
body_format: json
body:
auth:
identity:
methods:
- password
password:
user:
password: "{{ overcloud_admin_password }}"
name: admin
domain:
id: default
scope:
project:
name: admin
domain:
name: Default
return_content: true
status_code: 201
register: auth_token
when: overcloud_keystone_url|default('')
- name: Checking openstack services
include_tasks: tasks/os_service.yml
loop: "{{ overcloud_service_api }}"
loop_control:
loop_var: os_service