Skip to content

Commit

Permalink
Add some basic collection for designate service details
Browse files Browse the repository at this point in the history
This patch adds some basic data collection of designate resources.
  • Loading branch information
omersch381 committed Dec 5, 2024
1 parent cd3d272 commit 02569f4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions collection-scripts/gather_services_status
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ get_status() {
"glance")
get_glance_status
;;
"designate")
get_designate_status
;;
*) ;;
esac
}
Expand Down Expand Up @@ -190,6 +193,27 @@ get_glance_status() {
run_bg ${BASH_ALIASES[os]} image task list '>' "$GLANCE_PATH"/task_list
}

# Designate service gathering - dns resources,
get_designate_status() {
local DESIGNATE_PATH="$BASE_COLLECTION_PATH/ctlplane/designate"
mkdir -p "$DESIGNATE_PATH"
resources="recordset tsigkey tld zone "

for r in $resources; do
run_bg ${BASH_ALIASES[os]} $r list '>' "$DESIGNATE_PATH"/"${r}_list"
done;

run_bg ${BASH_ALIASES[os]} dns quota list '>' "$DESIGNATE_PATH"/dns_quota_list
run_bg ${BASH_ALIASES[os]} dns service list '>' "$DESIGNATE_PATH"/dns_service_list
run_bg ${BASH_ALIASES[os]} ptr record list '>' "$DESIGNATE_PATH"/ptr_record_list
run_bg ${BASH_ALIASES[os]} zone blacklist list '>' "$DESIGNATE_PATH"/zone_blacklist_list
run_bg ${BASH_ALIASES[os]} zone export list '>' "$DESIGNATE_PATH"/zone_export_list
run_bg ${BASH_ALIASES[os]} zone import list '>' "$DESIGNATE_PATH"/zone_import_list
run_bg ${BASH_ALIASES[os]} zone share list '>' "$DESIGNATE_PATH"/zone_share_list
run_bg ${BASH_ALIASES[os]} transfer accept list '>' "$DESIGNATE_PATH"/transfer_accept_list
run_bg ${BASH_ALIASES[os]} transfer request list '>' "$DESIGNATE_PATH"/transfer_request_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 02569f4

Please sign in to comment.