nova_event_callback¶
About the role¶
An Ansible role to check if the Nova auth_url
in Neutron is
configured correctly on the Overcloud Controller(s).
Requirements¶
None.
Dependencies¶
None.
Example Playbook¶
- hosts: Controller
vars:
neutron_config_file: /path/to/neutron.conf
roles:
- nova_event_callback
License¶
Apache
Full Description¶
Role Documentation¶
Welcome to the “nova_event_callback” role documentation.
Role Defaults¶
This section highlights all of the defaults and variables set within the “nova_event_callback” role.
# Absolute path of the neutron configuration file
neutron_config_file: /var/lib/config-data/puppet-generated/neutron/etc/neutron/neutron.conf
Role Variables: main.yml¶
metadata:
name: Nova Event Callback Configuration Check
description: >
This validations verifies that the Nova auth_url in neutron,
which is generally enabled by default, is configured correctly
It checks the following files on the Overcloud Controller(s):
- /etc/neutron/neutron.conf:
[nova]/auth_url = 'http://nova_admin_auth_ip:5000'
groups:
- post-deployment
Molecule Scenarios¶
Molecule is being used to test the “nova_event_callback” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.
- Driver: podman
Scenario: default¶
Molecule Platform(s)¶
- name: centos
hostname: centos
image: centos/centos:stream8
registry:
url: quay.io
dockerfile: ../../../../.config/molecule/Dockerfile
pkg_extras: python*-setuptools python*-pyyaml
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
ulimits:
- host
Molecule Inventory¶
hosts:
all:
hosts:
centos:
ansible_python_interpreter: /usr/bin/python3
Example default playbook¶
- name: Converge
hosts: all
gather_facts: false
tasks:
- name: Warn developers about the lack of molecule testing
fail:
msg: >-
This role needs molecule tests!