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 designate service details #78

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
25 changes: 25 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,28 @@ 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 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]} zone transfer accept list '>' "$DESIGNATE_PATH"/transfer_accept_list
run_bg ${BASH_ALIASES[os]} zone transfer request list '>' "$DESIGNATE_PATH"/transfer_request_list
run_bg ${BASH_ALIASES[os]} tsigkey list --column name --column algorithm --column scope '>' "$DESIGNATE_PATH"/tsigkey_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