Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"failed to load region from IMDS" back in 0.19 despite AWS_EC2_METADATA_DISABLED=true #2819

Closed
astrojuanlu opened this issue Aug 23, 2024 · 1 comment · Fixed by #2817
Closed
Labels
bug Something isn't working

Comments

@astrojuanlu
Copy link
Contributor

Environment

Delta-rs version:0.19.1

Binding: Python

Environment:

  • Cloud provider:
  • OS: macOS Sonoma 14.6.1
  • Other:

Bug

What happened:

minio_storage_options = {
    "AWS_ENDPOINT_URL": "http://127.0.0.1:9010",
    "AWS_ACCESS_KEY_ID": "minioadmin",
    "AWS_SECRET_ACCESS_KEY": "minioadmin",
    "AWS_ALLOW_HTTP": "true",
    "AWS_EC2_METADATA_DISABLED": "true",
    "AWS_S3_ALLOW_UNSAFE_RENAME": "true",
}

df.write_delta("s3://data/bronze_eps", storage_options=minio_storage_options)

yields

[2024-08-23T08:03:23Z WARN  aws_config::imds::region] failed to load region from IMDS err=failed to load IMDS session token: dispatch failure: timeout: error trying to connect: HTTP connect timeout occurred after 1s: HTTP connect timeout occurred after 1s: timed out (FailedToLoadToken(FailedToLoadToken { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Timeout, source: hyper::Error(Connect, HttpTimeoutError { kind: "HTTP connect", duration: 1s }), connection: Unknown } }) }))
[2024-08-23T08:03:24Z WARN  aws_config::imds::region] failed to load region from IMDS err=failed to load IMDS session token: dispatch failure: timeout: error trying to connect: HTTP connect timeout occurred after 1s: HTTP connect timeout occurred after 1s: timed out (FailedToLoadToken(FailedToLoadToken { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Timeout, source: hyper::Error(Connect, HttpTimeoutError { kind: "HTTP connect", duration: 1s }), connection: Unknown } }) }))

What you expected to happen:

As #2377 described, AWS_EC2_METADATA_DISABLED=true used to address this (although I read it became the default at some point?) but it's not the case anymore.

I tested with deltalake==0.18.2 and the same storage_options and the warnings don't appear.

How to reproduce it: (See above)

More details:

@astrojuanlu astrojuanlu added the bug Something isn't working label Aug 23, 2024
@ion-elgreco
Copy link
Collaborator

@astrojuanlu fix is already up ;) #2817

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants