Skip to content

Commit

Permalink
Add some basic colleciton for octavia service details
Browse files Browse the repository at this point in the history
Patch adds some basic data collection of octavia resources.
  • Loading branch information
beagles committed Mar 15, 2024
1 parent 6e98ba0 commit c7aa395
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions collection-scripts/gather_services_status
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ get_status() {
"ceilometer")
get_ceilometer_status
;;
"octavia")
get_octavia_status
;;
*) ;;
esac
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c7aa395

Please sign in to comment.