2018-12-02 21:17:07 +08:00
|
|
|
---
|
|
|
|
cyborg_services:
|
|
|
|
cyborg-api:
|
|
|
|
container_name: cyborg_api
|
|
|
|
group: cyborg-api
|
|
|
|
enabled: true
|
|
|
|
image: "{{ cyborg_api_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ cyborg_api_default_volumes + cyborg_api_extra_volumes }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
dimensions: "{{ cyborg_api_dimensions }}"
|
2021-03-03 00:00:16 +08:00
|
|
|
healthcheck: "{{ cyborg_api_healthcheck }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
cyborg-agent:
|
|
|
|
container_name: cyborg_agent
|
|
|
|
group: cyborg-agent
|
|
|
|
enabled: true
|
2020-04-20 10:36:59 +08:00
|
|
|
privileged: true
|
2018-12-02 21:17:07 +08:00
|
|
|
image: "{{ cyborg_agent_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ cyborg_agent_default_volumes + cyborg_agent_extra_volumes }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
dimensions: "{{ cyborg_agent_dimensions }}"
|
2021-03-03 00:00:16 +08:00
|
|
|
healthcheck: "{{ cyborg_agent_healthcheck }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
cyborg-conductor:
|
|
|
|
container_name: cyborg_conductor
|
|
|
|
group: cyborg-conductor
|
|
|
|
enabled: true
|
|
|
|
image: "{{ cyborg_conductor_image_full }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
volumes: "{{ cyborg_conductor_default_volumes + cyborg_conductor_extra_volumes }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
dimensions: "{{ cyborg_conductor_dimensions }}"
|
2021-03-03 00:00:16 +08:00
|
|
|
healthcheck: "{{ cyborg_conductor_healthcheck }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
|
2022-11-15 13:46:53 +00:00
|
|
|
####################
|
|
|
|
# Config Validate
|
|
|
|
####################
|
|
|
|
cyborg_config_validation:
|
|
|
|
- generator: "/cyborg/tools/config/cyborg-config-generator.conf"
|
|
|
|
config: "/etc/cyborg/cyborg.conf"
|
|
|
|
|
2018-12-02 21:17:07 +08:00
|
|
|
####################
|
|
|
|
# Database
|
|
|
|
####################
|
|
|
|
cyborg_database_name: "cyborg"
|
|
|
|
cyborg_database_user: "{% if use_preconfigured_databases | bool and use_common_mariadb_user | bool %}{{ database_user }}{% else %}cyborg{% endif %}"
|
2019-09-11 20:47:00 +02:00
|
|
|
cyborg_database_address: "{{ database_address | put_address_in_context('url') }}:{{ database_port }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
|
2021-01-10 19:51:55 +00:00
|
|
|
####################
|
|
|
|
# Database sharding
|
|
|
|
####################
|
|
|
|
cyborg_database_shard_root_user: "{% if enable_proxysql | bool %}root_shard_{{ cyborg_database_shard_id }}{% else %}{{ database_user }}{% endif %}"
|
|
|
|
cyborg_database_shard_id: "{{ mariadb_default_database_shard_id | int }}"
|
|
|
|
cyborg_database_shard:
|
|
|
|
users:
|
|
|
|
- user: "{{ cyborg_database_user }}"
|
|
|
|
password: "{{ cyborg_database_password }}"
|
|
|
|
rules:
|
|
|
|
- schema: "{{ cyborg_database_name }}"
|
|
|
|
shard_id: "{{ cyborg_database_shard_id }}"
|
|
|
|
|
|
|
|
|
2018-12-02 21:17:07 +08:00
|
|
|
####################
|
|
|
|
# Docker
|
|
|
|
####################
|
2020-01-09 17:03:28 +00:00
|
|
|
cyborg_tag: "{{ openstack_tag }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
|
2022-05-20 15:15:40 +02:00
|
|
|
cyborg_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/cyborg-api"
|
2018-12-02 21:17:07 +08:00
|
|
|
cyborg_api_tag: "{{ cyborg_tag }}"
|
|
|
|
cyborg_api_image_full: "{{ cyborg_api_image }}:{{ cyborg_api_tag }}"
|
|
|
|
|
2022-05-20 15:15:40 +02:00
|
|
|
cyborg_agent_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/cyborg-agent"
|
2018-12-02 21:17:07 +08:00
|
|
|
cyborg_agent_tag: "{{ cyborg_tag }}"
|
|
|
|
cyborg_agent_image_full: "{{ cyborg_agent_image }}:{{ cyborg_agent_tag }}"
|
|
|
|
|
2022-05-20 15:15:40 +02:00
|
|
|
cyborg_conductor_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/cyborg-conductor"
|
2018-12-02 21:17:07 +08:00
|
|
|
cyborg_conductor_tag: "{{ cyborg_tag }}"
|
|
|
|
cyborg_conductor_image_full: "{{ cyborg_conductor_image }}:{{ cyborg_conductor_tag }}"
|
|
|
|
|
|
|
|
cyborg_api_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
cyborg_agent_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
cyborg_conductor_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
|
2021-03-03 00:00:16 +08:00
|
|
|
cyborg_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
|
|
cyborg_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
|
|
cyborg_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
|
|
cyborg_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
2022-09-21 09:09:32 +00:00
|
|
|
cyborg_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ cyborg_api_port }}"]
|
2021-03-03 00:00:16 +08:00
|
|
|
cyborg_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
|
|
cyborg_api_healthcheck:
|
|
|
|
interval: "{{ cyborg_api_healthcheck_interval }}"
|
|
|
|
retries: "{{ cyborg_api_healthcheck_retries }}"
|
|
|
|
start_period: "{{ cyborg_api_healthcheck_start_period }}"
|
|
|
|
test: "{% if cyborg_api_enable_healthchecks | bool %}{{ cyborg_api_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
|
|
timeout: "{{ cyborg_api_healthcheck_timeout }}"
|
|
|
|
|
|
|
|
cyborg_agent_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
|
|
cyborg_agent_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
|
|
cyborg_agent_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
|
|
cyborg_agent_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
|
|
cyborg_agent_healthcheck_test: ["CMD-SHELL", "healthcheck_port cyborg-agent {{ om_rpc_port }}"]
|
|
|
|
cyborg_agent_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
|
|
cyborg_agent_healthcheck:
|
|
|
|
interval: "{{ cyborg_agent_healthcheck_interval }}"
|
|
|
|
retries: "{{ cyborg_agent_healthcheck_retries }}"
|
|
|
|
start_period: "{{ cyborg_agent_healthcheck_start_period }}"
|
|
|
|
test: "{% if cyborg_agent_enable_healthchecks | bool %}{{ cyborg_agent_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
|
|
timeout: "{{ cyborg_agent_healthcheck_timeout }}"
|
|
|
|
|
|
|
|
cyborg_conductor_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
|
|
cyborg_conductor_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
|
|
cyborg_conductor_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
|
|
cyborg_conductor_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
|
|
cyborg_conductor_healthcheck_test: ["CMD-SHELL", "healthcheck_port cyborg-conductor {{ om_rpc_port }}"]
|
|
|
|
cyborg_conductor_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
|
|
cyborg_conductor_healthcheck:
|
|
|
|
interval: "{{ cyborg_conductor_healthcheck_interval }}"
|
|
|
|
retries: "{{ cyborg_conductor_healthcheck_retries }}"
|
|
|
|
start_period: "{{ cyborg_conductor_healthcheck_start_period }}"
|
|
|
|
test: "{% if cyborg_conductor_enable_healthchecks | bool %}{{ cyborg_conductor_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
|
|
timeout: "{{ cyborg_conductor_healthcheck_timeout }}"
|
|
|
|
|
2019-04-09 16:55:20 +08:00
|
|
|
cyborg_api_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/cyborg-api/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2021-05-13 12:21:11 +01:00
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "cyborg:/var/lib/cyborg/"
|
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
|
|
|
|
cyborg_agent_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/cyborg-agent/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2021-05-13 12:21:11 +01:00
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
|
|
|
|
cyborg_conductor_default_volumes:
|
|
|
|
- "{{ node_config_directory }}/cyborg-conductor/:{{ container_config_directory }}/:ro"
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
2021-05-13 12:21:11 +01:00
|
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
2019-04-09 16:55:20 +08:00
|
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
|
|
|
|
cyborg_extra_volumes: "{{ default_extra_volumes }}"
|
|
|
|
cyborg_api_extra_volumes: "{{ cyborg_extra_volumes }}"
|
|
|
|
cyborg_agent_extra_volumes: "{{ cyborg_extra_volumes }}"
|
|
|
|
cyborg_conductor_extra_volumes: "{{ cyborg_extra_volumes }}"
|
|
|
|
|
2018-12-02 21:17:07 +08:00
|
|
|
####################
|
|
|
|
# OpenStack
|
|
|
|
####################
|
2019-09-11 20:47:00 +02:00
|
|
|
cyborg_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ cyborg_api_port }}"
|
|
|
|
cyborg_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ cyborg_api_port }}"
|
2018-12-02 21:17:07 +08:00
|
|
|
|
|
|
|
cyborg_logging_debug: "{{ openstack_logging_debug }}"
|
|
|
|
|
|
|
|
cyborg_keystone_user: "cyborg"
|
|
|
|
|
|
|
|
openstack_cyborg_auth: "{{ openstack_auth }}"
|
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
|
|
|
|
####################
|
|
|
|
cyborg_notification_topics:
|
|
|
|
- name: notifications
|
|
|
|
enabled: "{{ enable_ceilometer | bool }}"
|
|
|
|
|
|
|
|
cyborg_enabled_notification_topics: "{{ cyborg_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
|
2018-07-31 19:24:02 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Keystone
|
|
|
|
####################
|
|
|
|
cyborg_ks_services:
|
|
|
|
- name: "cyborg"
|
|
|
|
type: "cyborg"
|
|
|
|
description: "OpenStack Cyborg Service"
|
|
|
|
endpoints:
|
|
|
|
- {'interface': 'internal', 'url': '{{ cyborg_internal_endpoint }}'}
|
|
|
|
- {'interface': 'public', 'url': '{{ cyborg_public_endpoint }}'}
|
|
|
|
|
|
|
|
cyborg_ks_users:
|
|
|
|
- project: "service"
|
|
|
|
user: "{{ cyborg_keystone_user }}"
|
|
|
|
password: "{{ cyborg_keystone_password }}"
|
|
|
|
role: "admin"
|