Skip to content

Commit db3a651

Browse files
committed
ovn: Add sb_relay_group_id to environment
In order to make logs readable via fluentd, we need to precreate them in Kolla's extend_start.sh - and since we run dynamic number of relays - we need to pass the relay group id to know which file should be precreated. Change-Id: I8670e807facee8096b102fd5648cd41b76ca888c Signed-off-by: Michal Nasiadka <[email protected]> (cherry picked from commit f47316b)
1 parent 28d6158 commit db3a651

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ansible/roles/ovn-db/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ ovn_db_services:
2525
container_name: ovn_sb_db_relay
2626
group: ovn-sb-db-relay
2727
enabled: "{{ enable_ovn_sb_db_relay | bool }}"
28+
environment:
29+
RELAY_ID: "{{ ovn_sb_db_relay_group_id | default('1') }}"
2830
image: "{{ ovn_sb_db_relay_image_full }}"
2931
iterate: true
3032
iterate_var: "{{ ovn_sb_db_relay_count | int }}"

ansible/roles/ovn-db/handlers/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
kolla_container:
3434
action: "recreate_or_restart_container"
3535
common_options: "{{ docker_common_options }}"
36+
environment: "{{ service.environment }}"
3637
name: "{{ service.container_name }}_{{ item }}"
3738
image: "{{ service.image }}"
3839
volumes: "{{ service.volumes | reject('equalto', '') | list }}"

0 commit comments

Comments
 (0)