Skip to content

Commit

Permalink
Merge pull request #38 from juliakreger/ironic-must-gather-support
Browse files Browse the repository at this point in the history
OSPRH-1435: add must-gather support for ironic
  • Loading branch information
openshift-merge-bot[bot] authored Feb 9, 2024
2 parents c882a2f + 7ae2977 commit 789acf5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions collection-scripts/gather_services_status
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ get_status() {
"placement")
get_placement_status
;;
"ironic")
get_ironic_status
;;
*) ;;
esac
}
Expand Down Expand Up @@ -115,6 +118,25 @@ get_placement_status() {
run_bg ${BASH_ALIASES[os]} trait list '>' "$PLACEMENT_PATH"/trait_list
}

# Ironic service gathering - nodes, ports, conductors if we can get them.
get_ironic_status() {
local IRONIC_PATH="$BASE_COLLECTION_PATH/ctlplane/ironic"
mkdir -p "$IRONIC_PATH"
# NOTE(TheJulia): The idea here is to try and collect information visible,
# as Ironic has filtering in place on all project scoped requests,
# as agreed by the Ironic community.
run_bg ${BASH_ALIASES[os]} baremetal node list --long '>' "$IRONIC_PATH"/node_list
run_bg ${BASH_ALIASES[os]} baremetal port list --long '>' "$IRONIC_PATH"/port_list
run_bg ${BASH_ALIASES[os]} baremetal portgroup list --long '>' "$IRONIC_PATH"/portgroup_list
run_bg ${BASH_ALIASES[os]} baremetal volume connector list --long '>' "$IRONIC_PATH"/volume_connector_list
run_bg ${BASH_ALIASES[os]} baremetal volume target list --long '>' "$IRONIC_PATH"/volume_target_list
run_bg ${BASH_ALIASES[os]} baremetal allocation list --long '>' "$IRONIC_PATH"/allocation_list
# Driver/Conductor lists are restricted endpoints by default since
# they provide insight into the overall infrastucture which would
# be inappropriate in a public cloud context and we don't inherently
# have the required elevated rights "out of the" box to gather it.
}

# 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 789acf5

Please sign in to comment.