-
Notifications
You must be signed in to change notification settings - Fork 60
Could not determine the number of attached_volumes after 5 attempts. Last response was: #71
Comments
Looks like this is a change in AWS Linux 2023. A token is required first, which is what get_metadata() does. However the curl command still returns nothing,
If I run this in a shell
I see this does work. |
It looks like the offending line is
This evaluates to True hence the token is never fetched. The instance is set to "IMDSv2 Required" from the console. |
Looks like PR #55 added this support. -i needs to be specified when running this to using IMDSv2. This setting is not propogated to ebs-autoscale.json nor is IMDSV2 referenced anywhere else. |
This same issue will happen if ebs-autoscale is a system service and the instance is rebooted. |
Referencing #63 as related |
As a follow up, there is a secondary problem. In create-ebs-volume, create_and_attach_volume(), the call to get_metadata instance-id returns empty. I think it's failing for the same reason. There needs to be better error handling here. |
PR #72 I submitted fixes this. |
Launched an AWS Linux 2023 instance and installed this from master branch using
per PR #54
I see this in /var/log/ebs-autoscale.log
I only noticed this when my /scratch mount filled up.
It looks like ebs-autoscale called initialize() In /usr/local/amazon-ebs-autoscale/shared/utils.sh, which in turn calls get_metadata("placement/availability-zone").
The line in get_metadata,
with a valid token_wrapper,
returns nothing.
Interestingly enough, even doing
returns nothing.
The text was updated successfully, but these errors were encountered: