Hide Forgot
Description of problem: When trying to up a test cluster with oc cluster up and store the config and/or data, it creates a few folders as the root user, so they cannot be deleted by the regular user that created the cluster Version-Release number of selected component (if applicable): v3.3.0.32 How reproducible: Steps to Reproduce: 1. Download oc 2. mkdir -p ~/tmp/{config,data} 3. oc cluster up --host-data-dir=$HOME/tmp/data/ --host-config-dir=$HOME/tmp/config --image=registry.access.redhat.com/openshift3/ose -- Checking OpenShift client ... OK -- Checking Docker client ... OK -- Checking Docker version ... OK -- Checking for existing OpenShift container ... OK -- Checking for registry.access.redhat.com/openshift3/ose:v3.3.0.32 image ... OK -- Checking Docker daemon configuration ... OK -- Checking for available ports ... WARNING: Binding DNS on port 8053 instead of 53, which may be not be resolvable from all clients. -- Checking type of volume mount ... Using nsenter mounter for OpenShift volumes -- Creating host directories ... OK -- Finding server IP ... Using 192.168.1.113 as the server IP -- Starting OpenShift container ... Creating initial OpenShift configuration Starting OpenShift using container 'origin' Waiting for API server to start listening OpenShift server started -- Installing registry ... OK -- Installing router ... OK -- Importing image streams ... OK -- Importing templates ... OK -- Login to server ... OK -- Creating initial project "myproject" ... OK -- Server Information ... OpenShift server started. The server is accessible via web console at: https://192.168.1.113:8443 You are logged in as: User: developer Password: developer To login as administrator: oc login -u system:admin Actual results: $ ls -l ~/tmp/config/ total 8 drwxr-xr-x. 2 root root 4096 Oct 4 09:01 master drwxr-xr-x. 2 root root 4096 Oct 4 09:01 node-192.168.1.113 $ ls -l ~/tmp/config/master/ total 312 -rw-r--r--. 1 root root 1119 Oct 4 09:01 admin.crt -rw-------. 1 root root 1679 Oct 4 09:01 admin.key -rw-------. 1 root root 5654 Oct 4 09:01 admin.kubeconfig -rw-r--r--. 1 root root 1070 Oct 4 09:01 ca-bundle.crt -rw-r--r--. 1 root root 1070 Oct 4 09:01 ca.crt -rw-------. 1 root root 1675 Oct 4 09:01 ca.key -rw-r--r--. 1 root root 2 Oct 4 09:01 ca.serial.txt -rw-r--r--. 1 root root 2619 Oct 4 09:01 etcd.server.crt -rw-------. 1 root root 1679 Oct 4 09:01 etcd.server.key -rw-rw-r--. 1 root root 6042 Oct 4 09:01 master-config.yaml -rw-r--r--. 1 root root 1078 Oct 4 09:01 master.etcd-client.crt -rw-------. 1 root root 1679 Oct 4 09:01 master.etcd-client.key -rw-r--r--. 1 root root 1135 Oct 4 09:01 master.kubelet-client.crt -rw-------. 1 root root 1679 Oct 4 09:01 master.kubelet-client.key -rw-r--r--. 1 root root 1086 Oct 4 09:01 master.proxy-client.crt -rw-------. 1 root root 1679 Oct 4 09:01 master.proxy-client.key -rw-r--r--. 1 root root 2619 Oct 4 09:01 master.server.crt -rw-------. 1 root root 1679 Oct 4 09:01 master.server.key -rw-r--r--. 1 root root 1123 Oct 4 09:01 openshift-master.crt -rw-------. 1 root root 1675 Oct 4 09:01 openshift-master.key -rw-------. 1 root root 5702 Oct 4 09:01 openshift-master.kubeconfig -rw-r--r--. 1 root root 1131 Oct 4 09:01 openshift-registry.crt -rw-------. 1 root root 1679 Oct 4 09:01 openshift-registry.key -rw-------. 1 root root 5722 Oct 4 09:01 openshift-registry.kubeconfig -rw-r--r--. 1 root root 1123 Oct 4 09:01 openshift-router.crt -rw-------. 1 root root 1675 Oct 4 09:01 openshift-router.key -rw-------. 1 root root 5702 Oct 4 09:01 openshift-router.kubeconfig -rw-r--r--. 1 root root 168650 Oct 4 09:01 policy.json -rw-------. 1 root root 1679 Oct 4 09:01 serviceaccounts.private.key -rw-------. 1 root root 459 Oct 4 09:01 serviceaccounts.public.key -rw-r--r--. 1 root root 1115 Oct 4 09:01 service-signer.crt -rw-------. 1 root root 1679 Oct 4 09:01 service-signer.key Expected results: The folders created belong to the user Additional info:
See comment in 1381456
OCP 3.6-3.10 is no longer on full support [1]. Marking un-triaged bugs CLOSED DEFERRED. If you have a customer case with a support exception or have reproduced on 3.11+, please reopen and include those details. When reopening, please set the Version to the appropriate version where reproduced. [1]: https://access.redhat.com/support/policy/updates/openshift