ovn-bgp-agent image support

This adds support for the ovn-bgp-agent container image.
ovn-bgp-agent can be found at https://opendev.org/x/ovn-bgp-agent.

Change-Id: Ic656117becd9a059b56a4753a5c579c2ee703cc5
This commit is contained in:
Luis Tomas Bolivar 2022-01-25 17:51:55 +01:00
parent f51dbe6b2b
commit a65535edc7
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,8 @@
tcib_actions:
- run: bash /usr/local/bin/uid_gid_manage neutron
- run: dnf install -y {{ tcib_packages['common'] | join(' ') }} && dnf clean all && rm -rf /var/cache/dnf
- run: ln -s /usr/share/openstack-tripleo-common/healthcheck/ovn-bgp-agent /openstack/healthcheck && chmod a+rx /openstack/healthcheck
tcib_packages:
common:
- ovn-bgp-agent
tcib_user: neutron

View File

@ -53,6 +53,8 @@ container_images:
image_source: tripleo image_source: tripleo
- imagename: quay.io/tripleomaster/openstack-frr:current-tripleo - imagename: quay.io/tripleomaster/openstack-frr:current-tripleo
image_source: tripleo image_source: tripleo
- imagename: quay.io/tripleomaster/openstack-ovn-bgp-agent:current-tripleo
image_source: tripleo
- imagename: quay.io/tripleomaster/openstack-glance-api:current-tripleo - imagename: quay.io/tripleomaster/openstack-glance-api:current-tripleo
image_source: tripleo image_source: tripleo
- imagename: quay.io/tripleomaster/openstack-gnocchi-api:current-tripleo - imagename: quay.io/tripleomaster/openstack-gnocchi-api:current-tripleo

View File

@ -240,6 +240,13 @@ container_images_template:
services: services:
- OS::TripleO::Services::Frr - OS::TripleO::Services::Frr
- imagename: "{{namespace}}/{{name_prefix}}ovn-bgp-agent{{name_suffix}}:{{tag}}"
image_source: tripleo
params:
- ContainerOvnBgpAgentImage
services:
- OS::TripleO::Services::Frr
- imagename: "{{namespace}}/{{name_prefix}}glance-api{{name_suffix}}:{{tag}}" - imagename: "{{namespace}}/{{name_prefix}}glance-api{{name_suffix}}:{{tag}}"
image_source: tripleo image_source: tripleo
params: params:

12
healthcheck/ovn-bgp-agent Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='ovn-bgp-agent'
if ps -e | grep $process; then
exit 0
else
echo "There is no $process process running in the container"
exit 1
fi