Bug 1542068 - openjdk18-openshift image has inaccessible repo enabled.
Summary: openjdk18-openshift image has inaccessible repo enabled.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.6.1
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 3.9.0
Assignee: Rob Cernich
QA Contact: Marek Schmidt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-05 13:45 UTC by Brendan Mchugh
Modified: 2021-03-11 17:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-08 11:58:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLOUD-2208 0 Critical Verified [EAP7] Version 1.6-9 container image contains /etc/yum.repos.d/jboss-rhel-ose.repo file 2018-06-08 12:19:27 UTC

Description Brendan Mchugh 2018-02-05 13:45:01 UTC
Description of problem:
registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-6 contains /etc/yum.repos.d/jboss-rhel-ose.repo file which causes errors during builds using this image as a base image.

The issue seems to be that the repo is using the following baseurl:
baseurl=http://pulp.dist.prod.ext.phx2.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ose/3.6/os/

Version-Release number of selected component (if applicable):
openjdk18-openshift:1.2-6

How reproducible:
Always

Steps to Reproduce:
1. docker run --rm -it -u 0 registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-6 /bin/bash
2. ls -la /etc/yum.repos.d/
3. cat /etc/yum.repos.d/jboss-rhel-ose.repo


Actual results:
[root@37b24d049ab3 ~]# ls -la /etc/yum.repos.d/
total 16
drwxr-xr-x.  2 root root   52 Nov  7 15:27 .
drwxr-xr-x. 55 root root 4096 Feb  5 13:11 ..
-rw-r--r--.  1 root root  233 Oct  9 10:47 jboss-rhel-ose.repo
-rw-r--r--.  1 root root  358 Sep 28 17:39 redhat.repo

[root@37b24d049ab3 ~]# cat /etc/yum.repos.d/jboss-rhel-ose.repo 
[jboss-rhel-ose]
name=Red Hat RHEL7 OSE 3.6 repo
baseurl=http://pulp.dist.prod.ext.phx2.redhat.com/content/dist/rhel/server/7/7Server/x86_64/ose/3.6/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


Expected results:
The file /etc/yum.repos.d/jboss-rhel-ose.repo should not be there.

Additional info:

Comment 2 Brendan Mchugh 2018-02-06 10:28:31 UTC
It looks like this might already be covered by the updated image released yesterday (openjdk18-openshift:1.2-7) which no longer includes the file "/etc/yum.repos.d/jboss-rhel-ose.repo".

# time docker run --rm -it -u 0 registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-7 /bin/bash
Unable to find image 'registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2-7' locally
Trying to pull repository registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift ... 
1.2-7: Pulling from registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift
9cadd93b16ff: Already exists 
4aa565ad8b7a: Already exists 
343ba5353b91: Pull complete 
ed5233aa6fdd: Pull complete 
015798517008: Pull complete 
Digest: sha256:79265156869e437daf0b7906ac5daad85a45d4186ecfab77aab7fef58b96caed
[root@ba0a4c7fc79f ~]# ls -la /etc/yum.repos.d/
total 12
drwxr-xr-x.  2 root root   25 Jan 16 16:08 .
drwxr-xr-x. 55 root root 4096 Feb  6 09:34 ..
-rw-r--r--.  1 root root  358 Nov 21 16:44 redhat.repo

Comment 3 Rob Cernich 2018-02-06 16:18:29 UTC
This was an issue with the build tool not removing the custom repos from the image during the build.  This has been fixed in subsequent releases (builds).

Comment 4 Wenjing Zheng 2018-03-06 06:41:30 UTC
@maschmid, could you please help to verify this bug? thanks!

Comment 5 Tomas Schlosser 2018-03-08 06:50:22 UTC
Latest image in registry (i.e. 1.2-7) already fixes the issue. Marking this issue verified.


Note You need to log in before you can comment on or make changes to this bug.