Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,5 @@ for fip in $(jq -r '.[].ID' "${ARTIFACT_DIR_JSON}/openstack_fip_list.json"); do
openstack floating ip show "$fip" >> "${ARTIFACT_DIR}/openstack_fips.log"
done

# load balancers

openstack loadbalancer list -f json \
| jq --arg CLUSTER_NAME "$CLUSTER_NAME" 'map(select(.name | test($CLUSTER_NAME)))' \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it have been map(select(.Name | test($CLUSTER_NAME))) with uppercase Name? For when we restore the additional log gathering.

Let's drop the change for now since it's causing the CI to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I think name is correct. This works locally for me.

❯ openstack loadbalancer list -f json | jq --arg CLUSTER_NAME "phbbp-hchsv" 'map(select(.name | test($CLUSTER_NAME)))'
[
  {
    "id": "1dc263eb-0505-4a2b-af2c-c5a1d4dae968",
    "name": "kube_service_autoscaling-phbbp-hchsv_openshift-ingress_router-default",
    "project_id": "0693e2bb538c42b79a49fe6d2e61b0fc",
    "vip_address": "10.0.0.167",
    "provisioning_status": "ERROR",
    "operating_status": "OFFLINE",
    "provider": "amphora"
  }
]

> "${ARTIFACT_DIR_JSON}/openstack_loadbalancer_list.json"

for lb in $(jq -r '.[].ID' "${ARTIFACT_DIR_JSON}/openstack_loadbalancer_list.json"); do
openstack loadbalancer show "$lb" -f json
done | jq --slurp '.' > "${ARTIFACT_DIR_JSON}/openstack_loadbalancer_show.json"

touch "${ARTIFACT_DIR}/openstack_loadbalancers.log"
for lb in $(jq -r '.[].ID' "${ARTIFACT_DIR_JSON}/openstack_loadbalancer_list.json"); do
echo -e "\n$ openstack loadbalancer show $lb" >> "${ARTIFACT_DIR}/openstack_loadbalancers.log"
openstack loadbalancer show "$lb" >> "${ARTIFACT_DIR}/openstack_loadbalancers.log"
done


collect_bootstrap_logs