EC2 metadata retuns ip of instance and ip of nova-api service node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Matthew Gilliard |
Bug Description
curl -vL http://
* About to connect() to 169.254.169.254 port 80 (#0)
* Trying 169.254.169.254... connected
* Connected to 169.254.169.254 (169.254.169.254) port 80 (#0)
> GET /latest/
> User-Agent: curl/7.19.7 (x86_64-
> Host: 169.254.169.254
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=UTF-8
< Content-Length: 12
< Date: Sun, 22 Jun 2014 15:15:52 GMT
<
* Connection #0 to host 169.254.169.254 left intact
* Closing connection #0
192.168.0.22, 10.2.0.50
192.168.0.22 - instance ip 10.2.0.50 - controller ip
Happens only for /latest/
Quick investigation shows that the issue is caused by
https:/
'local-ipv4': self.address or fixed_ip, string
self.address variable contains "192.168.0.22, 10.2.0.50" while fixed_ip contains correct "192.168.0.22" value.
The workaround is: swapping those two variables: 'local-ipv4': fixed_ip or self.address, and restart of all nova-compute services
Changed in nova: | |
assignee: | nobody → lizheming (lizheming-li) |
Changed in nova: | |
assignee: | lizheming (lizheming-li) → Matthew Gilliard (matthew-gilliard-u) |
Changed in nova: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-1 → 2015.1.0 |
local-ipv4 is instance IP. docs.aws. amazon. com/AWSEC2/ latest/ UserGuide/ AESDG-chapter- instancedata. html
http://