Bug 1393575 - Securing registry documentation
Summary: Securing registry documentation
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 3.3.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Vikram Goyal
QA Contact: Vikram Goyal
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-09 21:54 UTC by Veer Muchandi
Modified: 2018-04-24 15:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-24 15:47:50 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Veer Muchandi 2016-11-09 21:54:13 UTC
Description of problem:


you can cert unknown error when you "oc tag" an image with secured registry


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


How reproducible:
always

Steps to Reproduce:
1.Secure the registry as described in the docs
2.Try to "oc tag" an image


Actual results:
$ oc describe is myapp
Name:           myapp
Namespace:      development
Created:        About an hour ago
Labels:         application=myapp
            name=myapp
            template=eap64-basic-s2i
            xpaas=1.3.2
Annotations:        openshift.io/generated-by=OpenShiftNewApp
            openshift.io/image.dockerRepositoryCheck=2016-11-09T19:26:21Z
Docker Pull Spec:   172.30.85.130:5000/development/myapp
Unique Images:      2
Tags:           2
 
latest
  pushed image
 
  * 172.30.85.130:5000/development/myapp@sha256:1803c8e9f3bba7827332255ebfb7d27900b1c7d7ce5e745ed92144281e949804
      7 minutes ago
    172.30.85.130:5000/development/myapp@sha256:8e1ddd99d3a407e1cb7f34422bd88d86d46266216765c926a1e2fafe25ffe9e1
      18 minutes ago
 
promote-qa
  tagged from 172.30.85.130:5000/development/myapp@sha256:1803c8e9f3bba7827332255ebfb7d27900b1c7d7ce5e745ed92144281e949804
 
  ! error: Import failed (InternalError): Internal error occurred: Get https://172.30.85.130:5000/v2/: x509: certificate signed by unknown authority
      22 seconds ago

Expected results:

without the above error


Additional info:
This happens because “oc tag” command does not use /etc/docker/certs.d/<<registryip>:5000/ca.crt

if you secure the registry, “oc tag” will not work by default  
you will have to do the following
 
cat /etc/origin/master/ca.crt >> /etc/pki/tls/certs/ca-bundle.crt 
systemctl restart atomic-openshift-master docker

on the master host

Please refer this trello 
 https://trello.com/c/LpAlyjkn/831-importing-from-secure-registries

Either fix this in OCP or fix add the above to the documentation.
 



Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information:

Comment 1 Gaurav Nelson 2018-04-24 15:47:50 UTC
The related Trello card was updated to https://trello.com/c/fFU482Al/1341-5-use-subscriptions-to-import-images-from-registryaccessredhatcom and closed. Please see comments there.


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