Skip to content

Commit

Permalink
Gather glance task information
Browse files Browse the repository at this point in the history
This patch set's up the glance directory for service info gathering.
It also adds the task list which tells us about the status of
import operations.

Future work:
In future, it would be useful to add stores info which tells us
about configured backends and their properties but it is not
currently available in openstackclient.
  • Loading branch information
rajathere committed Aug 11, 2024
1 parent f7744c2 commit bc43dcd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions collection-scripts/gather_services_status
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ get_status() {
"octavia")
get_octavia_status
;;
"glance")
get_glance_status
;;
*) ;;
esac
}
Expand Down Expand Up @@ -180,6 +183,13 @@ get_octavia_status() {
run_bg ${BASH_ALIASES[os]} loadbalancer provider list '>' "$OCTAVIA_PATH"/provider_list
}

# Glance service gathering - task
get_glance_status() {
local GLANCE_PATH="$BASE_COLLECTION_PATH/ctlplane/glance"
mkdir -p "$GLANCE_PATH"
run_bg ${BASH_ALIASES[os]} image task list '>' "$GLANCE_PATH"/task_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 bc43dcd

Please sign in to comment.