Skip to content

Commit

Permalink
Merge pull request #43 from beagles/octavia
Browse files Browse the repository at this point in the history
Add some basic collection for octavia service details
  • Loading branch information
openshift-merge-bot[bot] authored Mar 19, 2024
2 parents 6e98ba0 + c7aa395 commit a0f6eab
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 a0f6eab

Please sign in to comment.