2015-08-28 10:49:29 +01:00
|
|
|
---
|
|
|
|
project_name: "murano"
|
|
|
|
|
2018-04-09 22:37:01 +08:00
|
|
|
murano_services:
|
|
|
|
murano-api:
|
|
|
|
container_name: murano_api
|
|
|
|
group: murano-api
|
|
|
|
enabled: true
|
|
|
|
image: "{{ murano_api_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ murano_api_default_volumes + murano_api_extra_volumes }}"
|
2018-07-17 20:04:53 +05:30
|
|
|
dimensions: "{{ murano_api_dimensions }}"
|
2018-06-19 00:43:35 -05:00
|
|
|
haproxy:
|
|
|
|
murano_api:
|
|
|
|
enabled: "{{ enable_murano }}"
|
|
|
|
mode: "http"
|
|
|
|
external: false
|
|
|
|
port: "{{ murano_api_port }}"
|
|
|
|
murano_api_external:
|
|
|
|
enabled: "{{ enable_murano }}"
|
|
|
|
mode: "http"
|
|
|
|
external: true
|
|
|
|
port: "{{ murano_api_port }}"
|
2018-04-09 22:37:01 +08:00
|
|
|
murano-engine:
|
|
|
|
container_name: murano_engine
|
|
|
|
group: murano-engine
|
|
|
|
enabled: true
|
|
|
|
image: "{{ murano_engine_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ murano_engine_default_volumes + murano_engine_extra_volumes }}"
|
2018-07-17 20:04:53 +05:30
|
|
|
dimensions: "{{ murano_engine_dimensions }}"
|
2018-04-09 22:37:01 +08:00
|
|
|
|
|
|
|
|
2015-08-28 10:49:29 +01:00
|
|
|
####################
|
|
|
|
# Database
|
|
|
|
####################
|
|
|
|
murano_database_name: "murano"
|
2018-01-14 20:16:43 +02:00
|
|
|
murano_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}murano{% endif %}"
|
2019-09-11 20:47:00 +02:00
|
|
|
murano_database_address: "{{ database_address | put_address_in_context('url') }}:{{ database_port }}"
|
2015-08-28 10:49:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Docker
|
|
|
|
####################
|
2017-06-03 15:01:04 +07:00
|
|
|
murano_install_type: "{{ kolla_install_type }}"
|
|
|
|
murano_tag: "{{ openstack_release }}"
|
|
|
|
|
|
|
|
murano_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ murano_install_type }}-murano-api"
|
|
|
|
murano_api_tag: "{{ murano_tag }}"
|
2015-08-28 10:49:29 +01:00
|
|
|
murano_api_image_full: "{{ murano_api_image }}:{{ murano_api_tag }}"
|
|
|
|
|
2018-04-09 22:37:01 +08:00
|
|
|
murano_engine_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ murano_install_type }}-murano-engine"
|
|
|
|
murano_engine_tag: "{{ murano_tag }}"
|
|
|
|
murano_engine_image_full: "{{ murano_engine_image }}:{{ murano_engine_tag }}"
|
|
|
|
|
2018-07-17 20:04:53 +05:30
|
|
|
murano_api_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
murano_engine_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
|
2019-04-09 16:55:20 +08:00
|
|
|
murano_api_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/murano-api/:{{ container_config_directory }}/:ro"
|
|
|
|
- "{{ kolla_dev_repos_directory ~ '/murano/murano:/var/lib/kolla/venv/lib/python2.7/site-packages/murano' if murano_dev_mode | bool else '' }}"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
murano_engine_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/murano-engine/:{{ container_config_directory }}/:ro"
|
|
|
|
- "{{ kolla_dev_repos_directory ~ '/murano/murano:/var/lib/kolla/venv/lib/python2.7/site-packages/murano' if murano_dev_mode | bool else '' }}"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
|
|
|
|
murano_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
murano_api_extra_volumes: "{{ murano_extra_volumes }}"
|
|
|
|
murano_engine_extra_volumes: "{{ murano_extra_volumes }}"
|
2015-08-28 10:49:29 +01:00
|
|
|
|
|
|
|
####################
|
2016-02-04 19:11:05 +05:30
|
|
|
# OpenStack
|
2015-08-28 10:49:29 +01:00
|
|
|
####################
|
2019-09-11 20:47:00 +02:00
|
|
|
murano_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ murano_api_port }}"
|
|
|
|
murano_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ murano_api_port }}"
|
|
|
|
murano_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ murano_api_port }}"
|
2015-08-28 10:49:29 +01:00
|
|
|
|
|
|
|
murano_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
|
2016-12-30 15:57:07 +08:00
|
|
|
openstack_murano_auth: "{{ openstack_auth }}"
|
2017-05-24 13:35:47 +01:00
|
|
|
|
2018-06-19 18:31:05 +03:00
|
|
|
murano_agent_timeout: 3600
|
2017-05-24 13:35:47 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Kolla
|
|
|
|
####################
|
|
|
|
murano_git_repository: "{{ kolla_dev_repos_git }}/{{ project_name }}"
|
|
|
|
murano_dev_repos_pull: "{{ kolla_dev_repos_pull }}"
|
|
|
|
murano_dev_mode: "{{ kolla_dev_mode }}"
|
2018-07-20 10:00:37 +08:00
|
|
|
murano_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
|
|
|
|
####################
|
|
|
|
murano_notification_topics:
|
|
|
|
- name: notifications
|
|
|
|
enabled: "{{ enable_ceilometer | bool }}"
|
|
|
|
|
|
|
|
murano_enabled_notification_topics: "{{ murano_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
|
2018-07-31 19:24:02 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Keystone
|
|
|
|
####################
|
|
|
|
murano_ks_services:
|
|
|
|
- name: "murano"
|
|
|
|
type: "application-catalog"
|
|
|
|
description: "Openstack Application Catalogue"
|
|
|
|
endpoints:
|
|
|
|
- {'interface': 'admin', 'url': '{{ murano_admin_endpoint }}'}
|
|
|
|
- {'interface': 'internal', 'url': '{{ murano_internal_endpoint }}'}
|
|
|
|
- {'interface': 'public', 'url': '{{ murano_public_endpoint }}'}
|
|
|
|
|
|
|
|
murano_ks_users:
|
|
|
|
- project: "service"
|
|
|
|
user: "{{ murano_keystone_user }}"
|
|
|
|
password: "{{ murano_keystone_password }}"
|
|
|
|
role: "admin"
|