2015-08-02 12:26:30 -07:00
|
|
|
---
|
|
|
|
project_name: "heat"
|
|
|
|
|
2017-01-17 17:48:50 +08:00
|
|
|
heat_services:
|
|
|
|
heat-api:
|
|
|
|
container_name: heat_api
|
|
|
|
group: heat-api
|
|
|
|
enabled: true
|
|
|
|
image: "{{ heat_api_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ heat_api_default_volumes + heat_api_extra_volumes }}"
|
2018-07-13 19:17:53 +05:30
|
|
|
dimensions: "{{ heat_api_dimensions }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
haproxy:
|
|
|
|
heat_api:
|
|
|
|
enabled: "{{ enable_heat }}"
|
|
|
|
mode: "http"
|
|
|
|
external: false
|
|
|
|
port: "{{ heat_api_port }}"
|
2018-12-27 15:37:49 -05:00
|
|
|
listen_port: "{{ heat_api_listen_port }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
heat_api_external:
|
|
|
|
enabled: "{{ enable_heat }}"
|
|
|
|
mode: "http"
|
|
|
|
external: true
|
|
|
|
port: "{{ heat_api_port }}"
|
2018-12-27 15:37:49 -05:00
|
|
|
listen_port: "{{ heat_api_listen_port }}"
|
2017-01-17 17:48:50 +08:00
|
|
|
heat-api-cfn:
|
|
|
|
container_name: heat_api_cfn
|
|
|
|
group: heat-api-cfn
|
|
|
|
enabled: true
|
|
|
|
image: "{{ heat_api_cfn_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ heat_api_cfn_default_volumes + heat_api_cfn_extra_volumes }}"
|
2018-07-13 19:17:53 +05:30
|
|
|
dimensions: "{{ heat_api_cfn_dimensions }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
haproxy:
|
|
|
|
heat_api_cfn:
|
|
|
|
enabled: "{{ enable_heat }}"
|
|
|
|
mode: "http"
|
|
|
|
external: false
|
|
|
|
port: "{{ heat_api_cfn_port }}"
|
2018-12-27 15:37:49 -05:00
|
|
|
listen_port: "{{ heat_api_cfn_listen_port }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
heat_api_cfn_external:
|
|
|
|
enabled: "{{ enable_heat }}"
|
|
|
|
mode: "http"
|
|
|
|
external: true
|
|
|
|
port: "{{ heat_api_cfn_port }}"
|
2018-12-27 15:37:49 -05:00
|
|
|
listen_port: "{{ heat_api_cfn_listen_port }}"
|
2017-01-17 17:48:50 +08:00
|
|
|
heat-engine:
|
|
|
|
container_name: heat_engine
|
|
|
|
group: heat-engine
|
|
|
|
enabled: true
|
|
|
|
image: "{{ heat_engine_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ heat_engine_default_volumes + heat_engine_extra_volumes }}"
|
2018-07-13 19:17:53 +05:30
|
|
|
dimensions: "{{ heat_engine_dimensions }}"
|
2017-01-17 17:48:50 +08:00
|
|
|
|
2015-08-02 12:26:30 -07:00
|
|
|
####################
|
|
|
|
# Database
|
|
|
|
####################
|
|
|
|
heat_database_name: "heat"
|
2018-01-14 20:16:43 +02:00
|
|
|
heat_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}heat{% endif %}"
|
2019-09-11 20:47:00 +02:00
|
|
|
heat_database_address: "{{ database_address | put_address_in_context('url') }}:{{ database_port }}"
|
2015-08-02 12:26:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Docker
|
|
|
|
####################
|
2017-05-22 17:30:57 +07:00
|
|
|
heat_install_type: "{{ kolla_install_type }}"
|
2020-01-09 17:03:28 +00:00
|
|
|
heat_tag: "{{ openstack_tag }}"
|
2017-05-22 17:30:57 +07:00
|
|
|
|
|
|
|
heat_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ heat_install_type }}-heat-api"
|
|
|
|
heat_api_tag: "{{ heat_tag }}"
|
2015-08-02 12:26:30 -07:00
|
|
|
heat_api_image_full: "{{ heat_api_image }}:{{ heat_api_tag }}"
|
|
|
|
|
2017-05-22 17:30:57 +07:00
|
|
|
heat_api_cfn_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ heat_install_type }}-heat-api-cfn"
|
|
|
|
heat_api_cfn_tag: "{{ heat_tag }}"
|
2015-08-02 12:26:30 -07:00
|
|
|
heat_api_cfn_image_full: "{{ heat_api_cfn_image }}:{{ heat_api_cfn_tag }}"
|
|
|
|
|
2017-05-22 17:30:57 +07:00
|
|
|
heat_engine_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ heat_install_type }}-heat-engine"
|
|
|
|
heat_engine_tag: "{{ heat_tag }}"
|
2015-08-02 12:26:30 -07:00
|
|
|
heat_engine_image_full: "{{ heat_engine_image }}:{{ heat_engine_tag }}"
|
|
|
|
|
2018-07-13 19:17:53 +05:30
|
|
|
heat_api_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
heat_api_cfn_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
heat_engine_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
|
2019-04-09 16:55:20 +08:00
|
|
|
heat_api_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/heat-api/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-01-30 14:00:34 +00:00
|
|
|
- "{{ kolla_dev_repos_directory ~ '/heat/heat:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/heat' if heat_dev_mode | bool else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
heat_api_cfn_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/heat-api-cfn/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-01-30 14:00:34 +00:00
|
|
|
- "{{ kolla_dev_repos_directory ~ '/heat/heat:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/heat' if heat_dev_mode | bool else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
heat_engine_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/heat-engine/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2020-01-30 14:00:34 +00:00
|
|
|
- "{{ kolla_dev_repos_directory ~ '/heat/heat:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/heat' if heat_dev_mode | bool else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
|
|
|
|
heat_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
heat_api_extra_volumes: "{{ heat_extra_volumes }}"
|
|
|
|
heat_api_cfn_extra_volumes: "{{ heat_extra_volumes }}"
|
|
|
|
heat_engine_extra_volumes: "{{ heat_extra_volumes }}"
|
2017-04-07 12:53:24 +01:00
|
|
|
|
2015-08-02 12:26:30 -07:00
|
|
|
####################
|
2016-02-04 19:11:05 +05:30
|
|
|
# OpenStack
|
2015-08-02 12:26:30 -07:00
|
|
|
####################
|
2019-09-11 20:47:00 +02:00
|
|
|
heat_admin_endpoint: "{{ admin_protocol }}://{{ heat_internal_fqdn | put_address_in_context('url') }}:{{ heat_api_port }}/v1/%(tenant_id)s"
|
|
|
|
heat_internal_endpoint: "{{ internal_protocol }}://{{ heat_internal_fqdn | put_address_in_context('url') }}:{{ heat_api_port }}/v1/%(tenant_id)s"
|
|
|
|
heat_public_endpoint: "{{ public_protocol }}://{{ heat_external_fqdn | put_address_in_context('url') }}:{{ heat_api_port }}/v1/%(tenant_id)s"
|
|
|
|
heat_cfn_admin_endpoint: "{{ admin_protocol }}://{{ heat_cfn_internal_fqdn | put_address_in_context('url') }}:{{ heat_api_cfn_port }}/v1"
|
|
|
|
heat_cfn_internal_endpoint: "{{ internal_protocol }}://{{ heat_cfn_internal_fqdn | put_address_in_context('url') }}:{{ heat_api_cfn_port }}/v1"
|
|
|
|
heat_cfn_public_endpoint: "{{ public_protocol }}://{{ heat_cfn_external_fqdn | put_address_in_context('url') }}:{{ heat_api_cfn_port }}/v1"
|
2015-08-02 12:26:30 -07:00
|
|
|
|
|
|
|
heat_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
|
|
|
|
heat_keystone_user: "heat"
|
2016-08-04 16:35:23 +02:00
|
|
|
heat_stack_user_role: "heat_stack_user"
|
|
|
|
heat_stack_owner_role: "heat_stack_owner"
|
2015-08-02 12:26:30 -07:00
|
|
|
|
2016-12-30 15:57:07 +08:00
|
|
|
openstack_heat_auth: "{{ openstack_auth }}"
|
2017-04-07 12:53:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Kolla
|
|
|
|
####################
|
|
|
|
heat_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
|
|
heat_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
|
|
heat_dev_mode: "{{ kolla_dev_mode }}"
|
2018-07-20 10:00:37 +08:00
|
|
|
heat_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
|
|
|
|
####################
|
|
|
|
heat_notification_topics:
|
|
|
|
- name: notifications
|
|
|
|
enabled: "{{ enable_ceilometer | bool }}"
|
|
|
|
|
|
|
|
heat_enabled_notification_topics: "{{ heat_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
|
2018-07-31 19:24:02 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Keystone
|
|
|
|
####################
|
|
|
|
heat_ks_services:
|
|
|
|
- name: "heat"
|
|
|
|
type: "orchestration"
|
|
|
|
description: "Orchestration"
|
|
|
|
endpoints:
|
|
|
|
- {'interface': 'admin', 'url': '{{ heat_admin_endpoint }}'}
|
|
|
|
- {'interface': 'internal', 'url': '{{ heat_internal_endpoint }}'}
|
|
|
|
- {'interface': 'public', 'url': '{{ heat_public_endpoint }}'}
|
|
|
|
- name: "heat-cfn"
|
|
|
|
type: "cloudformation"
|
|
|
|
description: "Orchestration"
|
|
|
|
endpoints:
|
|
|
|
- {'interface': 'admin', 'url': '{{ heat_cfn_admin_endpoint }}'}
|
|
|
|
- {'interface': 'internal', 'url': '{{ heat_cfn_internal_endpoint }}'}
|
|
|
|
- {'interface': 'public', 'url': '{{ heat_cfn_public_endpoint }}'}
|
|
|
|
|
|
|
|
heat_ks_users:
|
|
|
|
- project: "service"
|
|
|
|
user: "{{ heat_keystone_user }}"
|
|
|
|
password: "{{ heat_keystone_password }}"
|
|
|
|
role: "admin"
|
2019-09-20 15:20:19 +01:00
|
|
|
|
|
|
|
heat_ks_roles:
|
|
|
|
- "{{ heat_stack_owner_role }}"
|
|
|
|
- "{{ heat_stack_user_role }}"
|
|
|
|
|
|
|
|
heat_ks_user_roles:
|
|
|
|
- project: "{{ openstack_auth.project_name }}"
|
|
|
|
user: "{{ openstack_auth.username }}"
|
|
|
|
role: "{{ heat_stack_owner_role }}"
|