Bug 1249150
Summary: | oc exec -p docker-registry-1-da73t find /registry does not work with latest registry container | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ryan Howe <rhowe> |
Component: | Documentation | Assignee: | brice <bfallonf> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Vikram Goyal <vigoyal> |
Severity: | medium | Docs Contact: | Vikram Goyal <vigoyal> |
Priority: | high | ||
Version: | 3.0.0 | CC: | cvantuin, jokerman, libra-onpremise-devel, mmccomas, rhowe |
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: | 2015-11-20 00:48:06 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1254014 |
Description
Ryan Howe
2015-07-31 16:10:59 UTC
PR submitted: https://github.com/openshift/openshift-docs/pull/960 Ryan, my test machine is currently out of commission, so I couldn't get test out this command myself, so i may be wrong, but it looks like this is simply opening up a bash shell into the pod. Is there an missing command to be run after this one to list the registry contents? Following the instructions results in the following: [root@master ~]# oc exec -p docker-registry-1-2r24y -i -t -- bash -il W0914 09:44:51.565795 54908 cmd.go:149] -p POD is DEPRECATED and will be removed in a future version. Use exec POD instead. Error from server: Pod "Unknown" is forbidden: Cannot exec into a privileged container Steps to lead up to this: $ echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"registry"}}' | oc create -n default -f - $ oc edit scc privileged ADDED system:serviceaccount:default:registry $ oadm registry --service-account=registry --config=/etc/openshift/master/admin.kubeconfig --credentials=/etc/openshift/master/openshift-registry.kubeconfig --images='registry.access.redhat.com/openshift3/ose-${component}:${version}' --mount-host=/mnt/registry --selector="zone=west" $ oc get all $ oc get pods --watch $ oc exec -p docker-registry-1-2r24y -i -t -- bash -il This explains the what has changed. The oc exec will not work on privileged containers https://bugzilla.redhat.com/show_bug.cgi?id=1255120 I've replaced the command in the section, but also added in an Important box after the example explaining the restrictions of privileged container. Ryan, if there's anything else for this BZ, please let me know. Thanks! *** Bug 1254014 has been marked as a duplicate of this bug. *** |