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

Do not ignore error when Instance Metadata service doesn't exist #1682

Merged
merged 2 commits into from
Aug 4, 2022

Conversation

wlan0
Copy link
Contributor

@wlan0 wlan0 commented Jul 30, 2022

When running local tests using minio-go, where IMDS doesn't exist, ignoring this error leads to test failures.

@wlan0
Copy link
Contributor Author

wlan0 commented Jul 30, 2022

Here is the description of the error: kopia/kopia#2213 (comment)

Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vadmeste
Copy link
Member

vadmeste commented Aug 1, 2022

@wlan0 tests are failing, most likley tests are wrong, I don't believe your PR is causing any real regression

@wlan0
Copy link
Contributor Author

wlan0 commented Aug 3, 2022

@vadmeste I've fixed the tests

@wlan0
Copy link
Contributor Author

wlan0 commented Aug 4, 2022

https://github.com/minio/minio-go/pull/1682/files#diff-ff6260224bd798cd39fd6253c421cc34a9075249e82bc8b1c2fa82b720dc195fL92

This server isn't really useful because there is a required step before this server is called, which uses IMDSv2. This server will always return 400 Bad Request for all IMDSv2 requests.

I'm going to update the PR to remove the initTestServer as a separate commit. I can revert if a different solution is desired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants