Bug 1268761
Summary: | [RFE] Request to provide openshift/base-rhel7 image from registry.access.redhat.com | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Kenjiro Nakayama <knakayam> |
Component: | RFE | Assignee: | Ben Parees <bparees> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Wenjing Zheng <wzheng> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 3.1.0 | CC: | aos-bugs, bleanhar, bparees, erich, hhorak, jokerman, knakayam, michael.voegele, mmccomas, mmcgrath, wili, wzheng |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-19 12:39:30 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
Kenjiro Nakayama
2015-10-05 07:51:56 UTC
Scott I assume you're already building base-rhel7 on OSBS so do you see any problem with publishing it to registry.access.redhat.com? I can't think of any myself, as long as we add it to the list of things we already re-publish. @knakayam Can you clarify please? I think this is already offered with: redhat.com registry.access.redhat.com/rhscl/s2i-base-rhel7 Base image delivers all the essential libr... 0 Can QE confirm that this images is tested with OpenShift, I don't see it listed on https://access.redhat.com/articles/2176281 1. I tried to use the image to build ruby-22-rhel7 image and it failed with below error (I have registered local machine to subscribe-manager): Step 6 : RUN yum-config-manager --enable rhel-server-rhscl-7-rpms && yum-config-manager --enable rhel-7-server-optional-rpms && INSTALL_PKGS="rh-ruby22 rh-ruby22-ruby-devel rh-ruby22-rubygem-rake v8314 rh-ruby22-rubygem-bundler nodejs010" && yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && yum clean all -y ---> Running in 0cb4c3ba4e09 Loaded plugins: ovl, product-id Loaded plugins: ovl, product-id Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager No package rh-ruby22 available. No package rh-ruby22-ruby-devel available. No package rh-ruby22-rubygem-rake available. No package v8314 available. No package rh-ruby22-rubygem-bundler available. No package nodejs010 available. Error: Nothing to do The command '/bin/sh -c yum-config-manager --enable rhel-server-rhscl-7-rpms && yum-config-manager --enable rhel-7-server-optional-rpms && INSTALL_PKGS="rh-ruby22 rh-ruby22-ruby-devel rh-ruby22-rubygem-rake v8314 rh-ruby22-rubygem-bundler nodejs010" && yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && yum clean all -y' returned a non-zero code: 1 make: *** [build] Error 1 2. But if I clone https://github.com/openshift/s2i-base locally and build base image based on this repo then try to build ruby-22-rhel7 image, it succeeds. Honza, what's the delta between our base-rhel7 image: https://github.com/openshift/s2i-base/blob/master/Dockerfile.rhel7 and the SCL rhscl/s2i-base-rhel7 image? In this case, I am using the invalid "rhel7.2" image pulled from docker.io when building base image myself, so try again with registry.access.redhat.com/rhel7.2, also failed to build base-image with below errors: failure: repodata/repomd.xml from rhel-sap-hana-for-rhel-7-server-eus-rpms: [Errno 256] No more mirrors to try. https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/sap-hana/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found The command '/bin/sh -c yum-config-manager --enable rhel-7-server-optional-rpms && INSTALL_PKGS="autoconf automake bsdtar findutils gcc-c++ gd-devel gdb gettext git libcurl-devel libxml2-devel libxslt-devel lsof make mariadb-devel mariadb-libs openssl-devel patch postgresql-devel procps-ng scl-utils sqlite-devel tar unzip wget which yum-utils zlib-devel" && mkdir -p ${HOME}/.pki/nssdb && chown -R 1001:0 ${HOME}/.pki && yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && yum clean all -y && useradd -u 1001 -r -g 0 -d ${HOME} -s /sbin/nologin -c "Default Application User" default && chown -R 1001:0 /opt/app-root' returned a non-zero code: 1 make: *** [build] Error 1 Wenjing: so how did you successfully build the base-rhel7 (not the rhscl one) image? The only way i'd expect you to be able to build it is using the rhel7.2 image that's part of the AMI. Unfortunately, I cannot even build base-rhel7 image with my old way now (tried both with docker.io/rhel7.2 and registry.access.redhat.com/rhel7.2) that actually matches what i would expect. the only rhel7.2 image that will work as the base is the one that's part of the AMIs we produce. Closing as registry.access.redhat.com/rhscl/s2i-base-rhel7 is available and seems to suit the requested purpose. |