Hello,
Although coreos-cloudinit is deprecated, it is installed by default if I deploy the system as Amazon Instance.
# coreos-install -d /dev/sda -C stable -o ami
Cloudinit then is unable to fetch metadata
The messages in log:
Checking availability of "ec2-metadata-service"
Checking availability of "ec2-metadata-service"
Checking availability of "ec2-metadata-service"
Checking availability of "ec2-metadata-service"
...
No datasources available in time
I tried to run it manually
and
# coreos-cloudinit --oem=ec2-compat
The result is the same.
Cloudinit sends these requests:
GET /2009-04-04/ HTTP/1.1
Host: 169.254.169.254
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip
And our metadata server, which is declared as "Amazon-compatible", responds:
HTTP/1.1 404 Not Found
Date: Tue, 15 Aug 2017 08:11:02 GMT
Server: metap2
Connection: close
Content-Length: 32
Content-Type: text/html
404 - File Not Found: Not found
So, the question is, why the request is "GET /2009-04-04/" and not "GET /2009-04-04/metadata" ?
The later request returns valid response.
Thank you,