Skip to content

Commit c7aa395

Browse files
committed
Add some basic colleciton for octavia service details
Patch adds some basic data collection of octavia resources.
1 parent 6e98ba0 commit c7aa395

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

collection-scripts/gather_services_status

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ get_status() {
4646
"ceilometer")
4747
get_ceilometer_status
4848
;;
49+
"octavia")
50+
get_octavia_status
51+
;;
4952
*) ;;
5053
esac
5154
}
@@ -162,6 +165,20 @@ get_ceilometer_status() {
162165
fi
163166
}
164167

168+
# Octavia service gathering - loadbalancers,
169+
get_octavia_status() {
170+
local OCTAVIA_PATH="$BASE_COLLECTION_PATH/ctlplane/octavia"
171+
mkdir -p "$OCTAVIA_PATH"
172+
resources="amphora availabilityzone availabilityzoneprofile flavor flavorprofile healthmonitor l7policy "
173+
resources="$resources listener pool provider quota"
174+
175+
for r in $resources; do
176+
run_bg ${BASH_ALIASES[os]} loadbalancer $r list '>' "$OCTAVIA_PATH"/"${r}_list"
177+
done;
178+
179+
run_bg ${BASH_ALIASES[os]} loadbalancer provider list '>' "$OCTAVIA_PATH"/provider_list
180+
}
181+
165182
# first we gather generic status of the openstack ctlplane
166183
# then we process the existing services (if an associated
167184
# function has been defined)

0 commit comments

Comments
 (0)