From bc43dcd44150e1b54a8a45dae209567397e1e483 Mon Sep 17 00:00:00 2001 From: rajathere Date: Mon, 12 Aug 2024 01:28:07 +0530 Subject: [PATCH] Gather glance task information 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. --- collection-scripts/gather_services_status | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/collection-scripts/gather_services_status b/collection-scripts/gather_services_status index b94e8a5..85454cf 100755 --- a/collection-scripts/gather_services_status +++ b/collection-scripts/gather_services_status @@ -50,6 +50,9 @@ get_status() { "octavia") get_octavia_status ;; + "glance") + get_glance_status + ;; *) ;; esac } @@ -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)