Bug 1712566

Summary: Cannot build 4.2 images - RPM version conflicts
Product: OpenShift Container Platform Reporter: Rich Megginson <rmeggins>
Component: Test InfrastructureAssignee: Steve Kuznetsov <skuznets>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: sponnaga, trankin
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-29 15:31:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rich Megginson 2019-05-21 19:49:13 UTC
Description of problem:

--> Finished Dependency Resolution
Error: Package: libstdc++-devel-4.8.5-36.el7_6.1.x86_64 (rhel-server)
           Requires: libstdc++(x86-64) = 4.8.5-36.el7_6.1
           Installed: libstdc++-4.8.5-36.el7_6.2.x86_64 (@anaconda/7.6)
               libstdc++(x86-64) = 4.8.5-36.el7_6.2
           Available: libstdc++-4.8.5-36.el7_6.1.x86_64 (rhel-server)
               libstdc++(x86-64) = 4.8.5-36.el7_6.1
Error: Package: systemd-sysv-219-62.el7_6.5.x86_64 (rhel-server)
           Requires: systemd = 219-62.el7_6.5
           Installed: systemd-219-62.el7_6.6.x86_64 (@anaconda/7.6)
               systemd = 219-62.el7_6.6
           Available: systemd-219-62.el7_6.5.x86_64 (rhel-server)
               systemd = 219-62.el7_6.5
Error: Package: systemd-devel-219-62.el7_6.5.x86_64 (rhel-server)
           Requires: systemd = 219-62.el7_6.5
           Installed: systemd-219-62.el7_6.6.x86_64 (@anaconda/7.6)
               systemd = 219-62.el7_6.6
           Available: systemd-219-62.el7_6.5.x86_64 (rhel-server)
               systemd = 219-62.el7_6.5
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

https://github.com/openshift/origin-aggregated-logging/pull/1643 - the ci/prow/images job.

Looks like the problem is that whatever repos anaconda uses to build the base image is newer than the actual yum repos used at image build time.

I'm using 

FROM registry.svc.ci.openshift.org/ocp/4.2:base as builder

Here are the yum repos used by the api.ci builder:

+ yum repolist -v
Loading "ovl" plugin
Loading "product-id" plugin
Loading "search-disabled-repos" plugin
Loading "subscription-manager" plugin
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not receiving updates. You can use subscription-manager on the host to register and assign subscriptions.
Config time: 0.868
rpmdb time: 0.000
ovl: Copying up (0) files from OverlayFS lower layer
Yum version: 3.4.3
Setting up Package Sacks
pkgsack time: 0.018
Repo-id      : rhel-fast-datapath
Repo-name    : rhel-fast-datapath
Repo-revision: 1555344443
Repo-updated : Mon Apr 15 16:07:23 2019
Repo-pkgs    : 92
Repo-size    : 116 M
Repo-baseurl : http://base-4-0.ocp.svc/rhel-fast-datapath/
Repo-expire  : 21600 second(s) (last: Tue May 21 19:01:32 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/content.repo

Repo-id      : rhel-server
Repo-name    : rhel-server
Repo-revision: 1555344508
Repo-updated : Mon Apr 15 16:09:36 2019
Repo-pkgs    : 10527
Repo-size    : 8.2 G
Repo-baseurl : http://base-4-0.ocp.svc/rhel-server/
Repo-expire  : 21600 second(s) (last: Tue May 21 19:01:32 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/content.repo

Repo-id      : rhel-server-extras
Repo-name    : rhel-server-extras
Repo-revision: 1555344870
Repo-updated : Mon Apr 15 16:14:32 2019
Repo-pkgs    : 271
Repo-size    : 468 M
Repo-baseurl : http://base-4-0.ocp.svc/rhel-server-extras/
Repo-expire  : 21600 second(s) (last: Tue May 21 19:01:32 2019)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/content.repo

etc.

The urls are http://base-4-0.ocp.svc/something

Should they be http://base-4-2.ocp.svc/something

?

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Steve Kuznetsov 2019-05-21 21:48:22 UTC
Fixed in https://github.com/openshift/release/pull/3855

Rich, can you please verify?

Comment 2 Rich Megginson 2019-05-22 14:23:31 UTC
(In reply to Steve Kuznetsov from comment #1)
> Fixed in https://github.com/openshift/release/pull/3855
> 
> Rich, can you please verify?

Still failing - I commented in the PR - maybe it takes a while for the changes to propagate throughout api.ci?  Maybe there's something I need to do to the logging rsyslog build instructions?

Comment 3 Steve Kuznetsov 2019-05-28 15:25:16 UTC
Clayton took manual action to fix this -- Rich, is it still broken?

Comment 4 Rich Megginson 2019-05-28 21:13:03 UTC
(In reply to Steve Kuznetsov from comment #3)
> Clayton took manual action to fix this -- Rich, is it still broken?

It is working now.  Thanks!