Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
baptistecolle committed Dec 2, 2024
1 parent b4f6d59 commit 019a7d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/debug-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
METADATA_IP=$(getent hosts metadata.google.internal | awk '{ print $1 }')
echo "Metadata server IP address: ${METADATA_IP}"
echo "curl -s http://metadata.google.internal/computeMetadata/v1/instance/image -H Metadata-Flavor: Google"
# Try to access the metadata server
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google")
RESPONSE=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/image" -H "Metadata-Flavor: Google")
echo "Status code: $STATUS_CODE"
echo "Metadata response: $RESPONSE"
echo "curl -s http://metadata.google.internal/computeMetadata/v1/instance/attributes/tpu-env -H Metadata-Flavor: Google"
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" "http://metadata.google.internal/computeMetadata/v1/instance/attributes/tpu-env" -H "Metadata-Flavor: Google")
RESPONSE=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/attributes/tpu-env" -H "Metadata-Flavor: Google")
echo "Status code: $STATUS_CODE"
echo "Metadata response: $RESPONSE"

0 comments on commit 019a7d4

Please sign in to comment.