ec2metadata script tries to get public-keys only once

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

Bug Description

During VM boot phase, ec2metadata script is trying to get various meta-data from 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 "" gw ""
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
warning: no ec2 metadata for public-keys
failed to get
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