Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid confusing cloudstack user data servers #1856

Closed
wants to merge 1 commit into from
Closed

Avoid confusing cloudstack user data servers #1856

wants to merge 1 commit into from

Conversation

pyr
Copy link

@pyr pyr commented Nov 14, 2013

Cloudstack does not cope well with trailing slashes. If other userdata servers can handle a lack of trailing slash, this would be useful and unbreak amongst others cloud-init for Ubuntu 13.10 at least.

I don't have means to test if EC2 handles trailing slashes well, maybe you guys can ?

Cloudstack does not cope well with trailing slashes. If other userdata servers can handle a lack of trailing slash, this would be useful and unbreak amongst others cloud-init for Ubuntu 13.10 at least.
@ghost ghost assigned danielgtaylor Nov 15, 2013
@danielgtaylor
Copy link
Member

I've just tested from a fresh EC2 instance:

$ curl http://169.254.169.254/latest/meta-data/
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
kernel-id
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups

$ curl http://169.254.169.254/latest/meta-data
< no output >

Unfortunately it looks like the trailing slash is a requirement for EC2, so I can't merge this in. I'm open to alternative suggestions for how to handle the other use cases like CloudStack.

@hiroki-soum hiroki-soum mentioned this pull request Dec 9, 2013
danielgtaylor added a commit that referenced this pull request Dec 11, 2013
Make trailing slashes for EC2 metadata URLs explicit & remove them from userdata requests. Fixes #1900, #1897, #1856.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants