Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "ovn-bgp-agent image support" into stable/wallaby
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Mar 24, 2022
2 parents 1a93f69 + d344c8b commit da4a8cb
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions container-images/tcib/base/ovn-bgp-agent/ovn_bgp_agent.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions container-images/tripleo_containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ container_images:
image_source: tripleo
- imagename: quay.io/tripleowallaby/openstack-frr:current-tripleo
image_source: tripleo
- imagename: quay.io/tripleowallaby/openstack-ovn-bgp-agent:current-tripleo
image_source: tripleo
- imagename: quay.io/tripleowallaby/openstack-glance-api:current-tripleo
image_source: tripleo
- imagename: quay.io/tripleowallaby/openstack-gnocchi-api:current-tripleo
Expand Down
7 changes: 7 additions & 0 deletions container-images/tripleo_containers.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ container_images_template:
services:
- 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}}"
image_source: tripleo
params:
Expand Down
12 changes: 12 additions & 0 deletions healthcheck/ovn-bgp-agent
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da4a8cb

Please sign in to comment.