Bug 1399819 - To be added into RHUI docker container doesn't need a RH content certificate
Summary: To be added into RHUI docker container doesn't need a RH content certificate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.0.0
Assignee: bizhang
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-29 19:48 UTC by Irina Gulina
Modified: 2017-03-01 22:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-01 22:14:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0367 0 normal SHIPPED_LIVE Red Hat Update Infrastructure 3.0 Release 2017-03-02 03:05:22 UTC

Description Irina Gulina 2016-11-29 19:48:36 UTC
Description of problem:
'ad - add a new Red Hat docker container' wants a Red Hat content certificate.

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

How reproducible:
always

Steps to Reproduce:
1. have no Red Hat content certificates loaded in /etc/pki/rhui/redhat
2. 'ad - add a new Red Hat docker container'
3. 

Actual results:
rhui (repo) => ad
No Red Hat content certificates have been loaded. Upload
a content certificate to provide entitled products for import.


Expected results:
Docker container can be added without RH content certificate. 

Additional info:

In /usr/lib/python2.7/site-packages/rhui/tools/screens/repo.py lines #193-198 should be removed

193         # If there are no certificates loaded, there's nothing to do here.
194         if not self.cert_manager.has_certificates():
195             self.prompt.write('No Red Hat content certificates have been loaded. Upload')
196             self.prompt.write('a content certificate to provide entitled products for import.')
197             self.shell.end()
198             return

When fixing this BZ also please update a comment to the function 'add_docker', swap lines 184-185 with 186-187. Upstream_name goes before Repo_ID. 

  183          The workflow is as follows:
  184           - ask the user for the repo id
  185           - check the id is valid
  186           - ask the user for the container upstream name
  187           - check registry.access.redhat.com to see if container upstream name  is valid
  188           - ask the user for the display name
  189           - create the repo
  190         '''

Comment 3 Irina Gulina 2016-12-07 13:13:52 UTC
iso 20161206

>> ls -la /etc/pki/rhui/redhat/
total 0
drwxr-xr-x. 2 root root     6 Dec  7 08:07 .
drwxr-xr-x. 7 root apache 243 Dec  7 02:29 ..

>> rhui (repo) => ad

Name of the container in the registry: 
rhcertification/redhat-certification

Unique ID for the container (alphanumerics, _, and - only) [rhcertification_redhat-certification]:


Display name for the container [rhcertification_redhat-certification]:
RH Certification Repo

The following container will be added:
  Container Id:              rhcertification_redhat-certification
  Display Name:              RH Certification Repo
  Upstream Container Name:   rhcertification/redhat-certification
Proceed? (y/n) y

Successfully added container RH Certification Repo

------------------------------------------------------------------------------
rhui (repo) => ad

Name of the container in the registry: 
rhel6.6

Unique ID for the container (alphanumerics, _, and - only) [rhel6_6]:


Display name for the container [rhel6_6]:
RHEL6.6 Docker

The following container will be added:
  Container Id:              rhel6_6
  Display Name:              RHEL6.6 Docker
  Upstream Container Name:   rhel6.6
Proceed? (y/n) y

Successfully added container RHEL6.6 Docker

------------------------------------------------------------------------------
rhui (repo) => l

Red Hat Repositories
  OSTree
     RHEL RHUI Atomic 7 Ostree Repo (Version 7.3)
  Docker
     RH Certification Repo
     RHEL6.6 Docker
  Yum
     Red Hat Satellite Tools 6 Beta (for RHEL 5 Server from RHUI) (Source RPMs) (i386)
     Red Hat Satellite Tools 6 Beta (for RHEL 5 Server from RHUI) (Source RPMs) (x86_64)
     Red Hat Satellite Tools 6.1 (for RHEL 7 Server from RHUI) (Source RPMs) (x86_64)
     Red Hat Satellite Tools 6.2 (for RHEL 7 Server from RHUI) (Source RPMs) (x86_64)
     Red Hat Enterprise Linux High Availability (for RHEL 6 Server) (RPMs) from RHUI (6Server-i386)
     Red Hat Enterprise Linux High Availability (for RHEL 6 Server) (RPMs) from RHUI (6Server-x86_64)
     Red Hat Enterprise Linux Resilient Storage (for RHEL 7 Server) (Debug RPMs) from RHUI (7Server-x86_64)
     Red Hat Update Infrastructure 2 (RPMs) (6Server-x86_64)


A comment to 'add_docker' was updated too. Thanks.

Comment 4 errata-xmlrpc 2017-03-01 22:14:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0367


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