Bug 1278758

Summary: docker container doesn't inherit release version from host.
Product: Red Hat Satellite Reporter: Christophe Augello <caugello>
Component: Container ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.3CC: bcourt, bkearney, dherrman, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-26 14:18:58 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 Christophe Augello 2015-11-06 11:08:33 UTC
Description of problem:

docker container doesn't inherit release version from host.

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


How reproducible:
Always

Steps to Reproduce:
1. create a CV with all repos need for docker (base 7.1 + extras + optional + docker images from rhel registry)
2. register a content host with release set to 7.1
3. assign cv to content-host + install docker
4. deploy a rhel container from registry
docker run -i -t satellite:5000/red_hat-engineering-ccv-rhel7-docker_image1-rhel /bin/bash
5. inside the container:
yum repolist 


Actual results:

The container will use 7Server as release.

Expected results:

The container repos inherit the release from host.

Additional info:

Docker host:
~~~
Repo-id      : rhel-7-server-rpms/x86_64
Repo-baseurl : https://satellite/pulp/repos/Red_Hat/Library/RHEL71/content/dist/rhel/server/7/7.1/x86_64/os
~~~

Container:
~~~
[rhel-7-server-rpms]
baseurl = https://satellite/pulp/repos/Red_Hat/Library/RHEL71/content/dist/rhel/server/7/$releasever/$basearch/os
~~~

Comment 1 Christophe Augello 2015-11-06 11:12:40 UTC
Yum command will return 404 as CV has 7.1 channel:
~~~
[root@34ee5363e594 /]# yum repolist
Loaded plugins: product-id, subscription-manager
https://satellite/pulp/repos/Red_Hat/Library/RHEL71/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://satellite/pulp/repos/Red_Hat/Library/RHEL71/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
repo id                                 repo name                                       status
rhel-7-server-rpms/7Server/x86_64       Red Hat Enterprise Linux 7 Server (RPMs)        0
repolist: 0
~~~

When release is set during command:
~~~
[root@34ee5363e594 /]# yum --releasever=7.1 repolist
Loaded plugins: product-id, subscription-manager
rhel-7-server-rpms                                                                                                                                                     | 2.1 kB  00:00:00     
(1/3): rhel-7-server-rpms/7.1/x86_64/group                                                                                                                             | 505 kB  00:00:00     
(2/3): rhel-7-server-rpms/7.1/x86_64/updateinfo                                                                                                                        | 1.3 MB  00:00:00     
(3/3): rhel-7-server-rpms/7.1/x86_64/primary                                                                                                                           | 7.3 MB  00:00:00     
rhel-7-server-rpms                                                                                                                                                                  7598/7598
repo id                                                                                repo name                                                                                        status
!rhel-7-server-rpms/7.1/x86_64                                                         Red Hat Enterprise Linux 7 Server (RPMs)                                                         7598
repolist: 7598
~~~

Comment 5 Bryan Kearney 2016-07-26 19:10:24 UTC
Moving 6.2 bugs out to sat-backlog.