ec2metadata script tries to get public-keys only once

Bug #1834746 reported by Slawek Kaplonski on 2019-06-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CirrOS
Undecided
Unassigned

Bug Description

During VM boot phase, ec2metadata script is trying to get various meta-data from 169.254.169.254 server.
In most cases, like e.g. instance-id, it will retry 20 times in case of failure but in case of getting public-keys it fails after only one failed attempt. That cause problems e.g. in OpenStack CI jobs because due to that sometimes public key isn't configured on instance and some tests are failing.

Example of such log from booting vm:

WARN: failed: route add -net "0.0.0.0/0" gw "10.100.0.1"
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 3.20. request failed
failed 2/20: up 8.21. request failed
successful after 3/20 tries: up 11.21. iid=i-00000005
failed to get http://169.254.169.254/2009-04-04/meta-data/public-keys
warning: no ec2 metadata for public-keys
failed to get http://169.254.169.254/2009-04-04/user-data
warning: no ec2 metadata for user-data

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers