<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">
      <pre class="console-output"><span class="timestamp"><b>This one seems to hit CENGN about once a week.  Trying to create the docker build container and the yum command that installs most of the packages craps out as seen below.  Rerun the command again and it works. Anyone else seeing this? 

Perhaps we need more retires and a longer timeout in our yum.conf?

Or add some sort of retry to the yum command within the dockerfile?

Scott

-------------------------------< snip >---------------------------------


00:00:00.222</b> </span>Step 4/34 : ENV container=docker
<span class="timestamp"><b>00:00:00.223</b> </span> ---> Using cache
<span class="timestamp"><b>00:00:00.223</b> </span> ---> a68ae1f270ff
<span class="timestamp"><b>00:00:00.223</b> </span>Step 5/34 : RUN groupadd -g 751 cgts &&     echo "mock:x:751:root" >> /etc/group &&     echo "mockbuild:x:9001:" >> /etc/group &&     yum install -y epel-release &&         yum install -y anaconda         anaconda-help         anaconda-runtime         autogen         automake         bc         bind         bind-utils         cpanminus         createrepo         deltarpm         expat-devel         gcc         gettext         git         libtool         libxml2         libxml2-devel         libxslt-devel         libffi-devel         lighttpd         lighttpd-fastcgi         lighttpd-mod_geoip         libvirt-devel         net-tools         mkisofs         mock         mongodb         mongodb-server         mariadb-devel         openldap-devel         openssl-devel         pax         perl-CPAN         python-deltarpm         python-devel         python-pep8         python-pip         python-psutil         python-subunit         python-pip         python-testrepository         python-tox         postgresql         postgresql-devel         qemu-kvm         quilt         rpm-build         rpm-sign         rpm-python         sqlite-devel         squashfs-tools         sudo         systemd         syslinux         udisks2         vim-enhanced         wget         yumdownloader
<span class="timestamp"><b>00:00:00.253</b> </span> ---> Running in 036b906c69e2
<span class="timestamp"><b>00:00:00.702</b> </span>Loaded plugins: fastestmirror, ovl
<span class="timestamp"><b>00:00:02.569</b> </span>Determining fastest mirrors
<span class="timestamp"><b>00:00:02.777</b> </span> * base: mirror.layeronline.com
<span class="timestamp"><b>00:00:02.778</b> </span> * extras: mirror.layeronline.com
<span class="timestamp"><b>00:00:02.778</b> </span> * updates: mirror.layeronline.com
<span class="timestamp"><b>00:00:04.341</b> </span>Resolving Dependencies
<span class="timestamp"><b>00:00:04.341</b> </span>--> Running transaction check
<span class="timestamp"><b>00:00:04.341</b> </span>---> Package epel-release.noarch 0:7-11 will be installed
<span class="timestamp"><b>00:00:04.434</b> </span>--> Finished Dependency Resolution
<span class="timestamp"><b>00:00:04.438</b> </span>
<span class="timestamp"><b>00:00:04.438</b> </span>Dependencies Resolved
<span class="timestamp"><b>00:00:04.439</b> </span>
<span class="timestamp"><b>00:00:04.439</b> </span>================================================================================
<span class="timestamp"><b>00:00:04.439</b> </span> Package                Arch             Version         Repository        Size
<span class="timestamp"><b>00:00:04.439</b> </span>================================================================================
<span class="timestamp"><b>00:00:04.439</b> </span>Installing:
<span class="timestamp"><b>00:00:04.439</b> </span> epel-release           noarch           7-11            extras            15 k
<span class="timestamp"><b>00:00:04.439</b> </span>
<span class="timestamp"><b>00:00:04.439</b> </span>Transaction Summary
<span class="timestamp"><b>00:00:04.439</b> </span>================================================================================
<span class="timestamp"><b>00:00:04.439</b> </span>Install  1 Package
<span class="timestamp"><b>00:00:04.439</b> </span>
<span class="timestamp"><b>00:00:04.439</b> </span>Total download size: 15 k
<span class="timestamp"><b>00:00:04.439</b> </span>Installed size: 24 k
<span class="timestamp"><b>00:00:04.439</b> </span>Downloading packages:
<span class="timestamp"><b>00:00:04.560</b> </span>warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-11.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
<span class="timestamp"><b>00:00:04.560</b> </span>Public key for epel-release-7-11.noarch.rpm is not installed
<span class="timestamp"><b>00:00:04.571</b> </span>Retrieving key from <a>file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7</a>
<span class="timestamp"><b>00:00:04.581</b> </span>Importing GPG key 0xF4A80EB5:
<span class="timestamp"><b>00:00:04.581</b> </span> Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <a class="moz-txt-link-rfc2396E" href="mailto:security@centos.org"><security@centos.org></a>"
<span class="timestamp"><b>00:00:04.581</b> </span> Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
<span class="timestamp"><b>00:00:04.581</b> </span> Package    : centos-release-7-4.1708.el7.centos.x86_64 (@CentOS)
<span class="timestamp"><b>00:00:04.581</b> </span> From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
<span class="timestamp"><b>00:00:04.581</b> </span>Running transaction check
<span class="timestamp"><b>00:00:04.592</b> </span>Running transaction test
<span class="timestamp"><b>00:00:04.595</b> </span>Transaction test succeeded
<span class="timestamp"><b>00:00:04.596</b> </span>Running transaction
<span class="timestamp"><b>00:00:04.622</b> </span>  Installing : epel-release-7-11.noarch                                     1/1 
<span class="timestamp"><b>00:00:04.630</b> </span>  Verifying  : epel-release-7-11.noarch                                     1/1 
<span class="timestamp"><b>00:00:04.665</b> </span>
<span class="timestamp"><b>00:00:04.665</b> </span>Installed:
<span class="timestamp"><b>00:00:04.665</b> </span>  epel-release.noarch 0:7-11                                                    
<span class="timestamp"><b>00:00:04.665</b> </span>
<span class="timestamp"><b>00:00:04.666</b> </span>Complete!
<span class="timestamp"><b>00:00:04.840</b> </span>Loaded plugins: fastestmirror, ovl
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span> One of the configured repositories failed (Unknown),
<span class="timestamp"><b>00:00:05.180</b> </span> and yum doesn't have enough cached data to continue. At this point the only
<span class="timestamp"><b>00:00:05.180</b> </span> safe thing yum can do is fail. There are a few ways to work "fix" this:
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>     1. Contact the upstream for the repository and get them to fix the problem.
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>     2. Reconfigure the baseurl/etc. for the repository, to point to a working
<span class="timestamp"><b>00:00:05.180</b> </span>        upstream. This is most often useful if you are using a newer
<span class="timestamp"><b>00:00:05.180</b> </span>        distribution release than is supported by the repository (and the
<span class="timestamp"><b>00:00:05.180</b> </span>        packages for the previous distribution release still work).
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>     3. Run the command with the repository temporarily disabled
<span class="timestamp"><b>00:00:05.180</b> </span>            yum --disablerepo=<repoid> ...
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>     4. Disable the repository permanently, so yum won't use it by default. Yum
<span class="timestamp"><b>00:00:05.180</b> </span>        will then just ignore the repository until you permanently enable it
<span class="timestamp"><b>00:00:05.180</b> </span>        again or use --enablerepo for temporary usage:
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>            yum-config-manager --disable <repoid>
<span class="timestamp"><b>00:00:05.180</b> </span>        or
<span class="timestamp"><b>00:00:05.180</b> </span>            subscription-manager repos --disable=<repoid>
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>     5. Configure the failing repository to be skipped, if it is unavailable.
<span class="timestamp"><b>00:00:05.180</b> </span>        Note that yum will try to contact the repo. when it runs most commands,
<span class="timestamp"><b>00:00:05.180</b> </span>        so will have to try and fail each time (and thus. yum will be be much
<span class="timestamp"><b>00:00:05.180</b> </span>        slower). If it is a very temporary problem though, this is often a nice
<span class="timestamp"><b>00:00:05.180</b> </span>        compromise:
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
<span class="timestamp"><b>00:00:05.180</b> </span>
<span class="timestamp"><b>00:00:05.180</b> </span>Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
<span class="timestamp"><b>00:00:05.180</b> </span>The command '/bin/sh -c groupadd -g 751 cgts &&     echo "mock:x:751:root" >> /etc/group &&     echo "mockbuild:x:9001:" >> /etc/group &&     yum install -y epel-release &&         yum install -y anaconda         anaconda-help         anaconda-runtime         autogen         automake         bc         bind         bind-utils         cpanminus         createrepo         deltarpm         expat-devel         gcc         gettext         git         libtool         libxml2         libxml2-devel         libxslt-devel         libffi-devel         lighttpd         lighttpd-fastcgi         lighttpd-mod_geoip         libvirt-devel         net-tools         mkisofs         mock         mongodb         mongodb-server         mariadb-devel         openldap-devel         openssl-devel         pax         perl-CPAN         python-deltarpm         python-devel         python-pep8         python-pip         python-psutil         python-subunit         python-pip         python-testrepository         python-tox         postgresql         postgresql-devel         qemu-kvm         quilt         rpm-build         rpm-sign         rpm-python         sqlite-devel         squashfs-tools         sudo         systemd         syslinux         udisks2         vim-enhanced         wget         yumdownloader' returned a non-zero code: 1
<span class="timestamp"><b>00:00:05.497</b> </span>Build step 'Execute shell' marked build as failure</pre>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 2019-01-31 1:04 p.m.,
      <a class="moz-txt-link-abbreviated" href="mailto:build.starlingx@gmail.com">build.starlingx@gmail.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1776010935.341.1548957884625.JavaMail.javamailuser@localhost">
      <pre class="moz-quote-pre" wrap="">Project: STX_BUILD_container_setup
Build #: 118
Status: Failure
Timestamp: 20190131T180434Z

Check logs at:
<a class="moz-txt-link-freetext" href="http://mirror.starlingx.cengn.ca/mirror/starlingx/feature/stein/centos/20190131T175743Z/logs">http://mirror.starlingx.cengn.ca/mirror/starlingx/feature/stein/centos/20190131T175743Z/logs</a>
--------------------------------------------------------------------------------
Parameters

PROJECT: f-stein
MY_WORKSPACE: /localdisk/loadbuild/jenkins/f-stein/20190131T175743Z
DOCKER_BUILD_ID: jenkins-f-stein-20190131T175743Z-builder
PUBLISH_LOGS_URL: <a class="moz-txt-link-freetext" href="http://mirror.starlingx.cengn.ca/mirror/starlingx/feature/stein/centos/20190131T175743Z/logs">http://mirror.starlingx.cengn.ca/mirror/starlingx/feature/stein/centos/20190131T175743Z/logs</a>
DOCKER_BUILD_TAG: f-stein-20190131T175743Z-builder-image
PUBLISH_LOGS_BASE: /export/mirror/starlingx/feature/stein/centos/20190131T175743Z/logs
MY_REPO_ROOT: /localdisk/designer/jenkins/f-stein</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Starlingx-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Starlingx-discuss@lists.starlingx.io">Starlingx-discuss@lists.starlingx.io</a>
<a class="moz-txt-link-freetext" href="http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss">http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>