Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some basic collection for octavia service details #43

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading