overcloud_deprecated_services:
nova:
- nova-consoleauth
overcloud_service_api:
- nova
- cinderv3
overcloud_service_status_debug: false
metadata:
description: 'An Ansible role to verify the Overcloud services states after a deployment
or an update. It checks the API /os-services and looks for deprecated services
(nova-consoleauth) or any down services.
'
groups:
- post-deployment
- post-upgrade
- post-overcloud-upgrade
- post-overcloud-converge
name: Verify overcloud services state after running a deployment or an update
driver:
name: podman
log: true
platforms:
- dockerfile: Dockerfile
environment:
http_proxy: '{{ lookup(''env'', ''http_proxy'') }}'
https_proxy: '{{ lookup(''env'', ''https_proxy'') }}'
hostname: ubi8
image: ubi8/ubi-init
name: ubi8
pkg_extras: python*-setuptools
privileged: true
registry:
url: registry.access.redhat.com
ulimits:
- host
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
provisioner:
env:
ANSIBLE_LIBRARY: ${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}
ANSIBLE_STDOUT_CALLBACK: yaml
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
overcloud_admin_password: hello
overcloud_keystone_url: http://127.0.0.1:8080
log: true
name: ansible
playbooks:
converge: ../../resources/playbooks/converge.yml
prepare: ../../resources/playbooks/prepare.yml
scenario:
test_sequence:
- destroy
- create
- prepare
- converge
- verify
- destroy
verifier:
name: testinfra
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
overcloud_admin_password: hello
overcloud_keystone_url: http://127.0.0.1:8080
- hosts: all
name: Converge
tasks:
- block:
- include_role:
name: overcloud_service_status
name: Include overcloud_service_status role
rescue:
- fail:
msg: Default test failed
when: molecule_yml.scenario.name == "default"
- set_fact:
output_var: '{{ lookup(''vars'', molecule_yml.scenario.name + ''_output'')}}'
- fail:
msg: No {{ molecule_yml.scenario.name }} found
when: '''failed'' not in output_var'
driver:
name: podman
log: true
platforms:
- dockerfile: Dockerfile
environment:
http_proxy: '{{ lookup(''env'', ''http_proxy'') }}'
https_proxy: '{{ lookup(''env'', ''https_proxy'') }}'
hostname: ubi8
image: ubi8/ubi-init
name: ubi8
pkg_extras: python*-setuptools
privileged: true
registry:
url: registry.access.redhat.com
ulimits:
- host
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
provisioner:
env:
ANSIBLE_LIBRARY: ${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}
ANSIBLE_STDOUT_CALLBACK: yaml
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
overcloud_admin_password: hello
overcloud_keystone_url: http://127.0.0.1:8080
log: true
name: ansible
playbooks:
converge: ../../resources/playbooks/converge.yml
prepare: ../../resources/playbooks/prepare.yml
scenario:
test_sequence:
- destroy
- create
- prepare
- converge
- verify
- destroy
verifier:
name: testinfra
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
overcloud_admin_password: hello
overcloud_keystone_url: http://127.0.0.1:8080
- hosts: all
name: Converge
tasks:
- block:
- include_role:
name: overcloud_service_status
name: Include overcloud_service_status role
rescue:
- fail:
msg: Default test failed
when: molecule_yml.scenario.name == "default"
- set_fact:
output_var: '{{ lookup(''vars'', molecule_yml.scenario.name + ''_output'')}}'
- fail:
msg: No {{ molecule_yml.scenario.name }} found
when: '''failed'' not in output_var'
driver:
name: podman
log: true
platforms:
- dockerfile: Dockerfile
environment:
http_proxy: '{{ lookup(''env'', ''http_proxy'') }}'
https_proxy: '{{ lookup(''env'', ''https_proxy'') }}'
hostname: ubi8
image: ubi8/ubi-init
name: ubi8
pkg_extras: python*-setuptools
privileged: true
registry:
url: registry.access.redhat.com
ulimits:
- host
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
provisioner:
env:
ANSIBLE_LIBRARY: ${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}
ANSIBLE_STDOUT_CALLBACK: yaml
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
overcloud_admin_password: hello
overcloud_keystone_url: http://127.0.0.1:8080
log: true
name: ansible
playbooks:
converge: ../../resources/playbooks/converge.yml
prepare: ../../resources/playbooks/prepare.yml
scenario:
test_sequence:
- destroy
- create
- prepare
- converge
- verify
- destroy
verifier:
name: testinfra
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
overcloud_admin_password: hello
overcloud_keystone_url: http://127.0.0.1:8080
- hosts: all
name: Converge
tasks:
- block:
- include_role:
name: overcloud_service_status
name: Include overcloud_service_status role
rescue:
- fail:
msg: Default test failed
when: molecule_yml.scenario.name == "default"
- set_fact:
output_var: '{{ lookup(''vars'', molecule_yml.scenario.name + ''_output'')}}'
- fail:
msg: No {{ molecule_yml.scenario.name }} found
when: '''failed'' not in output_var'
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.