2016-07-08 19:12:50 +02:00
|
|
|
---
|
|
|
|
project_name: "senlin"
|
|
|
|
|
2017-01-20 23:36:43 +08:00
|
|
|
senlin_services:
|
|
|
|
senlin-api:
|
|
|
|
container_name: senlin_api
|
|
|
|
group: senlin-api
|
|
|
|
enabled: true
|
|
|
|
image: "{{ senlin_api_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ senlin_api_default_volumes + senlin_api_extra_volumes }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
dimensions: "{{ senlin_api_dimensions }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
haproxy:
|
|
|
|
senlin_api:
|
|
|
|
enabled: "{{ enable_senlin }}"
|
|
|
|
mode: "http"
|
|
|
|
external: false
|
|
|
|
port: "{{ senlin_api_port }}"
|
2018-12-27 14:18:28 -05:00
|
|
|
listen_port: "{{ senlin_api_listen_port }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
senlin_api_external:
|
|
|
|
enabled: "{{ enable_senlin }}"
|
|
|
|
mode: "http"
|
|
|
|
external: true
|
|
|
|
port: "{{ senlin_api_port }}"
|
2018-12-27 14:18:28 -05:00
|
|
|
listen_port: "{{ senlin_api_listen_port }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin-conductor:
|
|
|
|
container_name: senlin_conductor
|
|
|
|
group: senlin-conductor
|
|
|
|
enabled: true
|
|
|
|
image: "{{ senlin_conductor_image_full }}"
|
|
|
|
volumes: "{{ senlin_conductor_default_volumes + senlin_conductor_extra_volumes }}"
|
|
|
|
dimensions: "{{ senlin_conductor_dimensions }}"
|
2017-01-20 23:36:43 +08:00
|
|
|
senlin-engine:
|
|
|
|
container_name: senlin_engine
|
|
|
|
group: senlin-engine
|
|
|
|
enabled: true
|
|
|
|
image: "{{ senlin_engine_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ senlin_engine_default_volumes + senlin_engine_extra_volumes }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
dimensions: "{{ senlin_engine_dimensions }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin-health-manager:
|
|
|
|
container_name: senlin_health_manager
|
|
|
|
group: senlin-health-manager
|
|
|
|
enabled: true
|
|
|
|
image: "{{ senlin_health_manager_image_full }}"
|
|
|
|
volumes: "{{ senlin_health_manager_default_volumes + senlin_health_manager_extra_volumes }}"
|
|
|
|
dimensions: "{{ senlin_health_manager_dimensions }}"
|
2017-01-20 23:36:43 +08:00
|
|
|
|
2016-07-08 19:12:50 +02:00
|
|
|
####################
|
|
|
|
# Database
|
|
|
|
####################
|
|
|
|
senlin_database_name: "senlin"
|
2018-01-14 20:16:43 +02:00
|
|
|
senlin_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}senlin{% endif %}"
|
2019-09-11 20:47:00 +02:00
|
|
|
senlin_database_address: "{{ database_address | put_address_in_context('url') }}:{{ database_port }}"
|
2016-07-08 19:12:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Docker
|
|
|
|
####################
|
2017-06-03 16:17:18 +07:00
|
|
|
senlin_install_type: "{{ kolla_install_type }}"
|
|
|
|
senlin_tag: "{{ openstack_release }}"
|
|
|
|
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_conductor_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ senlin_install_type }}-senlin-conductor"
|
|
|
|
senlin_conductor_tag: "{{ senlin_tag }}"
|
|
|
|
senlin_conductor_image_full: "{{ senlin_conductor_image }}:{{ senlin_conductor_tag }}"
|
|
|
|
|
2017-06-03 16:17:18 +07:00
|
|
|
senlin_engine_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ senlin_install_type }}-senlin-engine"
|
|
|
|
senlin_engine_tag: "{{ senlin_tag }}"
|
2016-07-08 19:12:50 +02:00
|
|
|
senlin_engine_image_full: "{{ senlin_engine_image }}:{{ senlin_engine_tag }}"
|
|
|
|
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_health_manager_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ senlin_install_type }}-senlin-health-manager"
|
|
|
|
senlin_health_manager_tag: "{{ senlin_tag }}"
|
|
|
|
senlin_health_manager_image_full: "{{ senlin_health_manager_image }}:{{ senlin_health_manager_tag }}"
|
|
|
|
|
2017-06-03 16:17:18 +07:00
|
|
|
senlin_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ senlin_install_type }}-senlin-api"
|
|
|
|
senlin_api_tag: "{{ senlin_tag }}"
|
2016-07-08 19:12:50 +02:00
|
|
|
senlin_api_image_full: "{{ senlin_api_image }}:{{ senlin_api_tag }}"
|
|
|
|
|
2018-07-18 15:42:15 +05:30
|
|
|
senlin_api_dimensions: "{{ default_container_dimensions }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_conductor_dimensions: "{{ default_container_dimensions }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
senlin_engine_dimensions: "{{ default_container_dimensions }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_health_manager_dimensions: "{{ default_container_dimensions }}"
|
2018-07-18 15:42:15 +05:30
|
|
|
|
2019-04-09 16:55:20 +08:00
|
|
|
senlin_api_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/senlin-api/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
- "{{ kolla_dev_repos_directory ~ '/senlin/senlin:/var/lib/kolla/venv/lib/python2.7/site-packages/senlin' if senlin_dev_mode | bool else '' }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_conductor_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/senlin-conductor/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
- "{{ kolla_dev_repos_directory ~ '/senlin/senlin:/var/lib/kolla/venv/lib/python2.7/site-packages/senlin' if senlin_dev_mode | bool else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
senlin_engine_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/senlin-engine/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
- "{{ kolla_dev_repos_directory ~ '/senlin/senlin:/var/lib/kolla/venv/lib/python2.7/site-packages/senlin' if senlin_dev_mode | bool else '' }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_health_manager_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/senlin-health-manager/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
- "{{ kolla_dev_repos_directory ~ '/senlin/senlin:/var/lib/kolla/venv/lib/python2.7/site-packages/senlin' if senlin_dev_mode | bool else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
|
|
|
|
senlin_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
senlin_api_extra_volumes: "{{ senlin_extra_volumes }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_conductor_extra_volumes: "{{ senlin_extra_volumes }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
senlin_engine_extra_volumes: "{{ senlin_extra_volumes }}"
|
2019-11-04 22:13:01 -08:00
|
|
|
senlin_health_manager_extra_volumes: "{{ senlin_extra_volumes }}"
|
2016-07-08 19:12:50 +02:00
|
|
|
|
|
|
|
####################
|
|
|
|
# OpenStack
|
|
|
|
####################
|
2019-09-11 20:47:00 +02:00
|
|
|
senlin_admin_endpoint: "{{ admin_protocol }}://{{ senlin_internal_fqdn | put_address_in_context('url') }}:{{ senlin_api_port }}"
|
|
|
|
senlin_internal_endpoint: "{{ internal_protocol }}://{{ senlin_internal_fqdn | put_address_in_context('url') }}:{{ senlin_api_port }}"
|
|
|
|
senlin_public_endpoint: "{{ public_protocol }}://{{ senlin_external_fqdn | put_address_in_context('url') }}:{{ senlin_api_port }}"
|
2016-07-08 19:12:50 +02:00
|
|
|
|
|
|
|
senlin_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
|
|
|
|
senlin_keystone_user: "senlin"
|
|
|
|
|
2016-12-30 15:57:07 +08:00
|
|
|
openstack_senlin_auth: "{{ openstack_auth }}"
|
2018-01-18 17:17:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Kolla
|
|
|
|
####################
|
|
|
|
senlin_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
|
|
senlin_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
|
|
senlin_dev_mode: "{{ kolla_dev_mode }}"
|
2018-07-20 10:00:37 +08:00
|
|
|
senlin_source_version: "{{ kolla_source_version }}"
|
Standardize the configuration of "oslo_messaging" section
After all of the discussions we had on
"https://review.opendev.org/#/c/670626/2", I studied all projects that
have an "oslo_messaging" section. Afterwards, I applied the same method
that is already used in "oslo_messaging" section in Nova, Cinder, and
others. This guarantees that we have a consistent method to
enable/disable notifications across projects based on components (e.g.
Ceilometer) being enabled or disabled. Here follows the list of
components, and the respective changes I did.
* Aodh:
The section is declared, but it is not used. Therefore, it will
be removed in an upcomming PR.
* Congress:
The section is declared, but it is not used. Therefore, it will
be removed in an upcomming PR.
* Cinder:
It was already properly configured.
* Octavia:
The section is declared, but it is not used. Therefore, it will
be removed in an upcomming PR.
* Heat:
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Ceilometer:
Ceilometer publishes some messages in the rabbitMQ. However, the
default driver is "messagingv2", and not ''(empty) as defined in Oslo;
these configurations are defined in ceilometer/publisher/messaging.py.
Therefore, we do not need to do anything for the
"oslo_messaging_notifications" section in Ceilometer
* Tacker:
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Neutron:
It was already properly configured.
* Nova
It was already properly configured. However, we found another issue
with its configuration. Kolla-ansible does not configure nova
notifications as it should. If 'searchlight' is not installed (enabled)
the 'notification_format' should be 'unversioned'. The default is
'both'; so nova will send a notification to the queue
versioned_notifications; but that queue has no consumer when
'searchlight' is disabled. In our case, the queue got 511k messages.
The huge amount of "stuck" messages made the Rabbitmq cluster
unstable.
https://bugzilla.redhat.com/show_bug.cgi?id=1478274
https://bugs.launchpad.net/ceilometer/+bug/1665449
* Nova_hyperv:
I added the same configurations as in Nova project.
* Vitrage
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Searchlight
I created a mechanism similar to what we have in AODH, Cinder, Nova,
and others.
* Ironic
I created a mechanism similar to what we have in AODH, Cinder, Nova,
and others.
* Glance
It was already properly configured.
* Trove
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Blazar
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Sahara
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Watcher
I created a mechanism similar to what we have in AODH, Cinder, Nova,
and others.
* Barbican
I created a mechanism similar to what we have in Cinder, Nova,
and others. I also added a configuration to 'keystone_notifications'
section. Barbican needs its own queue to capture events from Keystone.
Otherwise, it has an impact on Ceilometer and other systems that are
connected to the "notifications" default queue.
* Keystone
Keystone is the system that triggered this work with the discussions
that followed on https://review.opendev.org/#/c/670626/2. After a long
discussion, we agreed to apply the same approach that we have in Nova,
Cinder and other systems in Keystone. That is what we did. Moreover, we
introduce a new topic "barbican_notifications" when barbican is
enabled. We also removed the "variable" enable_cadf_notifications, as
it is obsolete, and the default in Keystone is CADF.
* Mistral:
It was hardcoded "noop" as the driver. However, that does not seem a
good practice. Instead, I applied the same standard of using the driver
and pushing to "notifications" queue if Ceilometer is enabled.
* Cyborg:
I created a mechanism similar to what we have in AODH, Cinder, Nova,
and others.
* Murano
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Senlin
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Manila
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Zun
The section is declared, but it is not used. Therefore, it will
be removed in an upcomming PR.
* Designate
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
* Magnum
It was already using a similar scheme; I just modified it a little bit
to be the same as we have in all other components
Closes-Bug: #1838985
Change-Id: I88bdb004814f37c81c9a9c4e5e491fac69f6f202
Signed-off-by: Rafael Weingärtner <rafael@apache.org>
2019-07-26 09:25:25 -03:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Notifications
|
|
|
|
####################
|
|
|
|
senlin_notification_topics:
|
|
|
|
- name: notifications
|
|
|
|
enabled: "{{ enable_ceilometer | bool }}"
|
|
|
|
|
|
|
|
senlin_enabled_notification_topics: "{{ senlin_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
|
2018-07-31 19:24:02 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Keystone
|
|
|
|
####################
|
|
|
|
senlin_ks_services:
|
|
|
|
- name: "senlin"
|
|
|
|
type: "clustering"
|
|
|
|
description: "Senlin Clustering Service"
|
|
|
|
endpoints:
|
|
|
|
- {'interface': 'admin', 'url': '{{ senlin_admin_endpoint }}'}
|
|
|
|
- {'interface': 'internal', 'url': '{{ senlin_internal_endpoint }}'}
|
|
|
|
- {'interface': 'public', 'url': '{{ senlin_public_endpoint }}'}
|
|
|
|
|
|
|
|
senlin_ks_users:
|
|
|
|
- project: "service"
|
|
|
|
user: "{{ senlin_keystone_user }}"
|
|
|
|
password: "{{ senlin_keystone_password }}"
|
|
|
|
role: "admin"
|