088c4a1301
The tripleo-ansible-inventory script uses the role names in order to
group the different hosts.
Since we can use custom roles, the fixed "Controller" and others aren't
relevant in such cases.
Ansible allows to use parameter for the "hosts" value in playbooks,
allowing us to call the validations using this command:
openstack tripleo validator run --validation haproxy \
--extra-vars '{"controller_rolename": "MyCustomController"}'
(or use the --extra-vars-file in order to avoid in-line JSON)
This patch also correct a non-existent group call, Database. The closest
we have is the "mysql" group in the inventory - let's reflect it in
order to avoid useless warning(s).
Change-Id: I3bec039283fe5df56771d84fff5bd5940fd149d8
(cherry picked from commit ec0465e481
)
30 lines
1.3 KiB
YAML
30 lines
1.3 KiB
YAML
---
|
|
- hosts: "{{ controller_rolename | default('Controller') }}"
|
|
vars:
|
|
metadata:
|
|
name: Nova Event Callback Configuration Check
|
|
description: >
|
|
This validations verifies that the Nova Event Callback feature is
|
|
configured which is generally enabled by default.
|
|
It checks the following files on the Overcloud Controller(s):
|
|
- /etc/nova/nova.conf:
|
|
[DEFAULT]/vif_plugging_is_fatal = True
|
|
[DEFAULT]/vif_plugging_timeout >= 300
|
|
- /etc/neutron/neutron.conf:
|
|
[nova]/auth_url = 'http://nova_admin_auth_ip:5000'
|
|
[nova]/tenant_name = 'service'
|
|
[DEFAULT]/notify_nova_on_port_data_changes = True
|
|
[DEFAULT]/notify_nova_on_port_status_changes = True
|
|
groups:
|
|
- post-deployment
|
|
nova_config_file: /var/lib/config-data/puppet-generated/nova/etc/nova/nova.conf
|
|
neutron_config_file: /var/lib/config-data/puppet-generated/neutron/etc/neutron/neutron.conf
|
|
vif_plugging_fatal_check: "vif_plugging_is_fatal"
|
|
vif_plugging_timeout_check: "vif_plugging_timeout"
|
|
vif_plugging_timeout_value_min: 300
|
|
notify_nova_on_port_data_check: "notify_nova_on_port_data_changes"
|
|
notify_nova_on_port_status_check: "notify_nova_on_port_status_changes"
|
|
tenant_name_check: "tenant_name"
|
|
roles:
|
|
- nova_event_callback
|