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

Cherry-pick #19182 to 7.8: [yum] Clear cached data and add retry loop #19184

Merged
merged 1 commit into from
Jun 14, 2020

Conversation

mgreau
Copy link
Contributor

@mgreau mgreau commented Jun 13, 2020

Backports the following commits to 7.8:

This commit makes the yum commands more robust by:

- clearing the cache after the install command is finished
- adding a retry loop so that the installation is retried in case of transient network issues

Without this fix, the Unified Release Process can't complete any Stack/Solution snapshots or staging builds because of the following error:

```
"[Errno -1] repomd.xml does not match metalink for epel"
```

This is related to this [Slack discussion for building the 7.8.0 BC7](https://elastic.slack.com/archives/C0JFN9HJL/p1592055371477200) and related to this  https://serverfault.com/questions/1021273/yum-install-jq-is-failing-intermittently-on-centos7

This is inspired by what the Elasticsearch team is doing for building the Elasticsearch Docker image
- https://github.com/elastic/dockerfiles/blob/a5749cb11d8b38491c40efa476c576ab60a3a9f8/elasticsearch/Dockerfile#L16
@mgreau mgreau self-assigned this Jun 13, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 13, 2020
@botelastic
Copy link

botelastic bot commented Jun 13, 2020

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #19184 opened]

  • Start Time: 2020-06-13T21:14:36.769+0000

  • Duration: 74 min 5 sec

Test stats 🧪

Test Results
Failed 0
Passed 6644
Skipped 1069
Total 7713

Steps errors

Expand to view the steps failures

  • Name: Report to Codecov
    • Description: curl -sSLo codecov https://codecov.io/bash for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat do FILE="${i}/build/coverage/full.cov" if [ -f "${FILE}" ]; then bash codecov -f "${FILE}" fi done

    • Duration: 2 min 22 sec

    • Start Time: 2020-06-13T21:38:31.877+0000

    • log

@mgreau mgreau merged commit f79387d into 7.8 Jun 14, 2020
@mgreau mgreau deleted the backport/7.8/pr-19182 branch June 14, 2020 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants