From c7aa39527b505a23907e17dc9208b5d67b9b0ab3 Mon Sep 17 00:00:00 2001 From: Brent Eagles Date: Thu, 29 Feb 2024 19:41:53 +0000 Subject: [PATCH] Add some basic colleciton for octavia service details Patch adds some basic data collection of octavia resources. --- collection-scripts/gather_services_status | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/collection-scripts/gather_services_status b/collection-scripts/gather_services_status index ba9f94a..e4052b6 100755 --- a/collection-scripts/gather_services_status +++ b/collection-scripts/gather_services_status @@ -46,6 +46,9 @@ get_status() { "ceilometer") get_ceilometer_status ;; + "octavia") + get_octavia_status + ;; *) ;; esac } @@ -162,6 +165,20 @@ get_ceilometer_status() { fi } +# Octavia service gathering - loadbalancers, +get_octavia_status() { + local OCTAVIA_PATH="$BASE_COLLECTION_PATH/ctlplane/octavia" + mkdir -p "$OCTAVIA_PATH" + resources="amphora availabilityzone availabilityzoneprofile flavor flavorprofile healthmonitor l7policy " + resources="$resources listener pool provider quota" + + for r in $resources; do + run_bg ${BASH_ALIASES[os]} loadbalancer $r list '>' "$OCTAVIA_PATH"/"${r}_list" + done; + + run_bg ${BASH_ALIASES[os]} loadbalancer provider list '>' "$OCTAVIA_PATH"/provider_list +} + # first we gather generic status of the openstack ctlplane # then we process the existing services (if an associated # function has been defined)