Bug 1402290

Summary: Unable to deploy Apache karaf image from Docker onto openshift origin
Product: OpenShift Container Platform Reporter: SHOAIB RAZA KHAN <shoaibjdev>
Component: SecurityAssignee: Michal Fojtik <mfojtik>
Status: CLOSED WONTFIX QA Contact: Xiaoli Tian <xtian>
Severity: unspecified Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, eparis, jialiu, jokerman, lmeyer, mmccomas, shoaibjdev, sponnaga, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-05 15:22:01 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:

Description SHOAIB RAZA KHAN 2016-12-07 07:59:05 UTC
Description of problem:
When trying to pull an image from docker and deploy on Openshift origin, its throwing error as below
error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory



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


How reproducible:



Steps to Reproduce:
1. Once the openshift origin cluster is up create a project
2. Add to project
3. Goto deploy image
4. Choose Image name option and enter fabric8/karaf-4 as image name
5. Click the search button next to image name textbox
6. Once image is found and result is fetched go ahead and create 


Actual results:
Status: Error, ran for one second
Pods Logs shows "error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory"

Expected results:
Karaf should be up and running in the pod

Additional info:

Comment 1 SHOAIB RAZA KHAN 2016-12-07 11:54:00 UTC
Hi, do note that none of the images from docker seems to work with the latest release of open shift. You could give it a try, simple tomcat8 image also if you try to pull and deploy or doesn't matter whatever you want to deploy following documents for OpenShift Origin it fails with same error. 
Kindly advise any alternate version which is stable and allows deployment of docker images.

Comment 2 Michal Fojtik 2016-12-08 19:58:40 UTC
(In reply to SHOAIB RAZA KHAN from comment #1)
> Hi, do note that none of the images from docker seems to work with the
> latest release of open shift. You could give it a try, simple tomcat8 image
> also if you try to pull and deploy or doesn't matter whatever you want to
> deploy following documents for OpenShift Origin it fails with same error. 
> Kindly advise any alternate version which is stable and allows deployment of
> docker images.

Can you provide more information about how you deploy openshift? Are you using `oc cluster up`? What version of Docker you use? Can you check the master logs if there is something suspicious?

Comment 3 SHOAIB RAZA KHAN 2016-12-08 21:00:55 UTC
Here you go,

Have downloaded OpenShift Origin latest release (openshift-origin-server-v1.4.0-rc1.tar.gz) from https://github.com/openshift/origin/releases

Extracted the archive and executed below command to start the OpenShift cluster on my local setup

[root@shoaibjdev]# sudo ./openshift start


For the docker version:


[root@shoaibjdev]# docker version
Client:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   6b644ec
 Built:        
 OS/Arch:      linux/amd64

Comment 4 Sudha Ponnaganti 2019-04-05 15:22:01 UTC
Too old issue - closing