Skip to content

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

Merged
mgreau merged 1 commit into7.8from
backport/7.8/pr-19182
Jun 14, 2020
Merged

Cherry-pick #19182 to 7.8: [yum] Clear cached data and add retry loop#19184
mgreau merged 1 commit into7.8from
backport/7.8/pr-19182

Conversation

@mgreau
Copy link
Copy Markdown
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
Copy Markdown

botelastic bot commented Jun 13, 2020

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

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 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