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

[yum] Clear cached data and add retry loop #19182

Merged
merged 1 commit into from
Jun 13, 2020
Merged

Conversation

mgreau
Copy link
Member

@mgreau mgreau commented Jun 13, 2020

What does this PR do?

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

This is inspired by what the Elasticsearch team is doing for building the Elasticsearch Docker image

Why is it important?

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 https://serverfault.com/questions/1021273/yum-install-jq-is-failing-intermittently-on-centos7

@andrewkroh I don't know how to test it.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

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 added the bug label Jun 13, 2020
@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.

Copy link
Contributor

@mikemadden42 mikemadden42 left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Collaborator

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #19182 opened]

  • Start Time: 2020-06-13T15:58:09.049+0000

  • Duration: 82 min 0 sec

Test stats 🧪

Test Results
Failed 10
Passed 9427
Skipped 1574
Total 11011

Test errors

Expand to view the tests failures

  • Name: Build and Test / Filebeat Mac OS X / test_file_disappear – test_crawler.Test

    • Age: 1
    • Duration: 2.323
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_file_disappear_appear – test_crawler.Test

    • Age: 1
    • Duration: 2.863
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_symlink_rotated – test_harvester.Test

    • Age: 1
    • Duration: 2.262
    • Error Details: expected to see 2 entries, got '[{'source': '/private/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/filebeat/build/system-tests/run/test_harvester.Test.test_symlink_rotated/log/symlink.log', 'offset': 13, 'timestamp': '2020-06-13T09:45:03.960653-07:00', 'ttl': -1, 'type': 'log', 'meta': None, 'FileStateOS': {'inode': 847836884, 'device': 16777217}}]'
  • Name: Build and Test / Filebeat Mac OS X / test_clean_removed_with_clean_inactive – test_registrar.Test

    • Age: 1
    • Duration: 1.895
    • Error Details:
      -------------------- >> begin captured stdout << ---------------------
      registry size: 2
      registry size after remove: 2

--------------------- >> end captured stdout << ----------------------

  • Name: Build and Test / Filebeat Mac OS X / test_rotating_file_with_restart – test_registrar.Test

    • Age: 1
    • Duration: 6.549
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_6_3_0 – test_registrar_upgrade.Test

    • Age: 1
    • Duration: 1.828
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_6_3_1 – test_registrar_upgrade.Test

    • Age: 1
    • Duration: 2.203
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_faulty_6_3_1 – test_registrar_upgrade.Test

    • Age: 1
    • Duration: 1.731
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_latest – test_registrar_upgrade.Test

    • Age: 1
    • Duration: 2.168
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_single_file_to_folder_hierarchy – test_registrar_upgrade.Test

    • Age: 1
    • Duration: 2.096
    • Error Details:

Steps errors

Expand to view the steps failures

  • Name: Mage build unitTest

    • Description: mage build unitTest

    • Duration: 25 min 36 sec

    • Start Time: 2020-06-13T16:26:35.526+0000

    • log

  • Name: Recursively delete the current directory from the workspace

    • Description: script returned exit code 1

    • Duration: 2 min 34 sec

    • Start Time: 2020-06-13T16:52:24.744+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-06-13T17:19:32.016Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-06-13T17:19:32.016Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-06-13T17:19:32.016Z] + FILE=journalbeat/build/coverage/full.cov
[2020-06-13T17:19:32.016Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-06-13T17:19:34.488Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats
[2020-06-13T17:19:34.823Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-06-13T17:19:34.847Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Lint
[2020-06-13T17:19:34.997Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-06-13T17:19:35.145Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Winlogbeat-oss
[2020-06-13T17:19:35.292Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-06-13T17:19:35.442Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-06-13T17:19:35.592Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-06-13T17:19:35.744Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-06-13T17:19:35.890Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Dockerlogbeat
[2020-06-13T17:19:36.040Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-06-13T17:19:36.190Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Journalbeat-oss
[2020-06-13T17:19:36.341Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-06-13T17:19:36.491Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-06-13T17:19:36.643Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-06-13T17:19:36.790Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-06-13T17:19:36.943Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-06-13T17:19:37.095Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-06-13T17:19:37.248Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Heartbeat-oss
[2020-06-13T17:19:37.401Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-06-13T17:19:37.557Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-06-13T17:19:37.713Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Libbeat-x-pack
[2020-06-13T17:19:37.867Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-06-13T17:19:38.022Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-06-13T17:19:38.178Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-06-13T17:19:38.334Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-06-13T17:19:38.491Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-06-13T17:19:38.647Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-06-13T17:19:38.802Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Packetbeat-oss
[2020-06-13T17:19:38.955Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Filebeat-Windows
[2020-06-13T17:19:39.105Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-06-13T17:19:39.260Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-06-13T17:19:39.413Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-Windows
[2020-06-13T17:19:39.565Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-06-13T17:19:39.717Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Filebeat-x-pack
[2020-06-13T17:19:39.869Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-06-13T17:19:40.023Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-06-13T17:19:40.174Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Functionbeat-Windows
[2020-06-13T17:19:40.323Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-06-13T17:19:40.476Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Filebeat-oss
[2020-06-13T17:19:40.627Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Heartbeat-Windows
[2020-06-13T17:19:40.776Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-06-13T17:19:40.926Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Libbeat-oss
[2020-06-13T17:19:41.078Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-06-13T17:19:41.228Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-06-13T17:19:41.379Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-06-13T17:19:41.528Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-06-13T17:19:41.676Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-06-13T17:19:42.112Z] + cat
[2020-06-13T17:19:42.112Z] + /usr/local/bin/runbld ./runbld-script
[2020-06-13T17:19:42.112Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-06-13T17:19:48.732Z] runbld>>> runbld started
[2020-06-13T17:19:48.732Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-06-13T17:19:50.650Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-19182' in order of occurrence in the config (last value wins).
[2020-06-13T17:19:52.034Z] runbld>>> Debug logging enabled.
[2020-06-13T17:19:52.034Z] runbld>>> Storing result
[2020-06-13T17:19:52.297Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-06-13T17:19:52.297Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200613171951-29802953
[2020-06-13T17:19:52.297Z] runbld>>> Adding system facts.
[2020-06-13T17:19:53.244Z] runbld>>> Adding vcs info for the latest commit:  5267ac666c7e74d9e02ae9ecc7256fcf50a91bad
[2020-06-13T17:19:53.508Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-06-13T17:19:53.509Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-06-13T17:19:53.781Z] Processing JUnit reports with runbld...
[2020-06-13T17:19:53.781Z] + echo 'Processing JUnit reports with runbld...'
[2020-06-13T17:19:54.056Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-06-13T17:19:54.056Z] runbld>>> DURATION: 15ms
[2020-06-13T17:19:54.056Z] runbld>>> STDOUT: 40 bytes
[2020-06-13T17:19:54.056Z] runbld>>> STDERR: 49 bytes
[2020-06-13T17:19:54.056Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-06-13T17:19:54.056Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats
[2020-06-13T17:19:55.443Z] runbld>>> Storing build metadata: 
[2020-06-13T17:19:55.443Z] runbld>>> Adding test report.
[2020-06-13T17:19:55.443Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats
[2020-06-13T17:19:56.833Z] runbld>>> Found 115 test output files
[2020-06-13T17:19:57.406Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-06-13T17:19:57.407Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-06-13T17:19:57.407Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-06-13T17:19:57.407Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-06-13T17:19:57.407Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-06-13T17:19:57.407Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-06-13T17:19:58.354Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-06-13T17:19:58.354Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-06-13T17:19:58.616Z] runbld>>> Test output logs contained: Errors: 0 Failures: 10 Tests: 10861 Skipped: 1335
[2020-06-13T17:19:58.877Z] runbld>>> Storing result
[2020-06-13T17:19:58.877Z] runbld>>> FAILURES: 10
[2020-06-13T17:20:01.421Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-06-13T17:20:01.421Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200613171951-29802953
[2020-06-13T17:20:01.421Z] runbld>>> Email notification disabled by environment variable.
[2020-06-13T17:20:01.422Z] runbld>>> Slack notification disabled by environment variable.
[2020-06-13T17:20:07.484Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19182
[2020-06-13T17:20:07.776Z] [INFO] getVaultSecret: Getting secrets
[2020-06-13T17:20:07.856Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-06-13T17:20:08.953Z] + chmod 755 generate-build-data.sh
[2020-06-13T17:20:08.953Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19182/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19182/runs/1 FAILURE 4919625
[2020-06-13T17:20:08.953Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19182/runs/1/steps/?limit=10000 -o steps-info.json
[2020-06-13T17:20:11.436Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19182/runs/1/tests/?status=FAILED -o tests-errors.json

@mgreau
Copy link
Member Author

mgreau commented Jun 13, 2020

@mikemadden42 Thanks for the review, let me know if I can merge it even if some tests are failing

@mikemadden42
Copy link
Contributor

@mgreau I'll go ahead & merge it. I do not believe any of our tests would exercise this change.

@mikemadden42 mikemadden42 merged commit 8745e17 into master Jun 13, 2020
@mgreau
Copy link
Member Author

mgreau commented Jun 13, 2020

Thank you! Let me know if I need to do the backport(PR?) for having it in 7.8

mgreau added a commit that referenced this pull request Jun 13, 2020
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
Copy link
Member Author

mgreau commented Jun 13, 2020

@mikemadden42 I opened #19184

@mgreau mgreau deleted the yum-clean-metadata branch June 13, 2020 21:14
mgreau added a commit that referenced this pull request Jun 14, 2020
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
v1v added a commit to v1v/beats that referenced this pull request Jun 15, 2020
…ngs-archive

* upstream/master:
  Fix minor spelling error in Jenkinsfile (elastic#19153)
  [CI] fail if not possible to install python3 (elastic#19164)
  [Elastic Agent] Improved mage demo experience (elastic#18445)
  [yum] Clear cached data and add retry loop (elastic#19182)
  fix lint job by updating NOTICE (elastic#19161)
  Fix tags for coredns/envoyproxy (elastic#19134)
  Disable host.* fields by default for CrowdStrike module (elastic#19132)
  Allow host.* fields to be disabled in Zeek module (elastic#19113)
  Rename to management.Manager, add UpdateStatus to Manager interface. (elastic#19114)
  Edit Elastic Agent docs (elastic#19146)
  [JJBB] create job definition for the golang-crossbuild project (elastic#19162)
  Fix incorrect usage of hints builder when exposed port is a substring of the hint (elastic#19052)
  Add basic cloudfoundry integration tests (elastic#19018)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants