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

[BUG] :distribution:docker:buildDockerImage failures downloading from http://vault.centos.org #2154

Closed
andrross opened this issue Feb 17, 2022 · 11 comments
Assignees

Comments

@andrross
Copy link
Member

andrross commented Feb 17, 2022

Gradle task :distribution:docker:buildDockerImage fails occasionally with a timeout from http://vault.centos.org

| Errors during downloading metadata for repository 'baseos':
|   - Curl error (28): Timeout was reached for http://vault.centos.org/centos/8/BaseOS/x86_64/os/repodata/repomd.xml [Connection timed out after 30001 milliseconds]
|   - Curl error (28): Timeout was reached for http://vault.centos.org/centos/8/BaseOS/x86_64/os/repodata/repomd.xml [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
|   - Curl error (28): Timeout was reached for https://vault.centos.org/centos/8/BaseOS/x86_64/os/repodata/repomd.xml [Operation timed out after 30000 milliseconds with 0 out of 0 bytes received]
| Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Example: #2147 (comment)

@andrross andrross added bug Something isn't working untriaged labels Feb 17, 2022
@reta
Copy link
Collaborator

reta commented Feb 17, 2022

@andrross I think the best we can do is switch to another distribution (question - which one? amazonlinux:2? ubuntu? debian?), @dblock do you have thoughts? thanks!

@andrross
Copy link
Member Author

My questions: Is that CentOS endpoint really that flakey? Are we getting throttled or something? Is something else misconfigured on our side?

@reta
Copy link
Collaborator

reta commented Feb 18, 2022

CentOS is dead, for better or worst, taking into account we use vault for ~1 week only and it was down already - it looks flaky at this moment. The problem was affecting everyone (not only us) - all my local builds were failing, same for others.

@reta
Copy link
Collaborator

reta commented Feb 28, 2022

@andrross down again: #2244 (comment)

@CEHENKLE
Copy link
Member

CEHENKLE commented Mar 1, 2022

Hmmm...if we're using amazonlinux for our distribution, it makes sense to me change it to that. @bbarani any concerns if we make that switch? (also curious if engineering effectiveness would make the switch or the core team, but he who is less important that what)

@peterzhuamazon
Copy link
Member

In my experience centos is that flaky on endpoint.
Previously I just manually force it to use official mirror instead of other vault.

We cannot change to another distro at this point due to dependencies from knn.

@owaiskazi19
Copy link
Member

owaiskazi19 commented Mar 2, 2022

Can we use vault.epel.cloud for more reliability here as a mirror? Switching to a new distribution is a better option though.

@bbarani
Copy link
Member

bbarani commented Mar 2, 2022

In my experience centos is that flaky on endpoint. Previously I just manually force it to use official mirror instead of other vault.

We cannot change to another distro at this point due to dependencies from knn.

More info on plugin dependencies with CENTOS: opensearch-project/opensearch-build#635

FYI.. KNN dependency might not be an issue starting 2.0 as they are not going to be built in the distribution (rather built as standalone plugin) opensearch-project/opensearch-build#1670

@gaiksaya
Copy link
Member

gaiksaya commented Mar 2, 2022

In my experience centos is that flaky on endpoint. Previously I just manually force it to use official mirror instead of other vault.

We cannot change to another distro at this point due to dependencies from knn.

If this is related only to OpenSearch tests (example gradle check) is switching distribution still an issue? (Not the distribution just the min)

@reta
Copy link
Collaborator

reta commented Mar 2, 2022

If this is related only to OpenSearch tests (example gradle check) is switching distribution still an issue? (Not the distribution just the min)

@gaiksaya it is related to OpenSearch Docker distribution (and consequently, tests).

@owaiskazi19
Copy link
Member

Closing this issue for now as the mirror url has been changed. Let's reopen if we face anymore downtime issue and have a plan to change the distribution.

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

No branches or pull requests

7 participants