Skip to content

Fix misleading EC2 instance-id metadata debug URL - #135

Open
jaehanbyun wants to merge 1 commit into
cirros-dev:mainfrom
jaehanbyun:jaehanbyun/review-pasted-context
Open

Fix misleading EC2 instance-id metadata debug URL#135
jaehanbyun wants to merge 1 commit into
cirros-dev:mainfrom
jaehanbyun:jaehanbyun/review-pasted-context

Conversation

@jaehanbyun

Copy link
Copy Markdown

Summary

Update the EC2 datasource debug message to show the actual metadata endpoint used for instance-id.

The datasource currently logs:

$MDURL/instance-id

but ec2metadata --instance-id resolves the request to:

$MDURL/meta-data/instance-id

This can mislead users debugging CirrOS boot logs because copying the logged URL returns 404, while the actual metadata endpoint works.

Testing

sh -n src/lib/cirros/ds/ec2
git diff --check

Fixes #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EC2 datasource logs misleading instance-id metadata URL

1 participant