Bug 1261699

Summary: Met "ls: cannot access /opt/openshift/plugins: No such file or directory" in jenkins pod logs
Product: OKD Reporter: XiuJuan Wang <xiuwang>
Component: ImageAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: DeShuai Ma <dma>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, bparees, mmccomas
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-23 21:15:40 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:

Description XiuJuan Wang 2015-09-10 02:11:14 UTC
Description of problem:
Met "ls: cannot access /opt/openshift/plugins: No such file or directory" in jenkins pod logs

https://github.com/openshift/jenkins

/opt/openshift/plugins has been deleted,but there are files still checking this dir.
cat $jenkins/1/contrib/jenkins/run-jenkins
-------------------<skip>---------------------
  if [ "$(ls -A /opt/openshift/plugins)" ]; then
    mkdir -p ${JENKINS_HOME}/plugins
    echo "Copying $(ls /opt/openshift/plugins | wc -l) Jenkins plugins to ${JENKINS_HOME} ..."
    cp -r /opt/openshift/plugins/* ${JENKINS_HOME}/plugins/
    rm -rf /opt/openshift/plugins
  fi

Version-Release number of selected component (if applicable):
jenkins-1-centos7 (0e822fdb76ec)
jenkins-1-rhel7(beb6ba03b094)

How reproducible:
always

Steps to Reproduce:
1.Create a jenkins server
2.Check pod logs
3.

Actual results:
Met "ls: cannot access /opt/openshift/plugins: No such file or directory" in jenkins pod logs

Expected results:
should no this error 

Additional info:

Comment 1 Michal Fojtik 2015-09-10 07:35:03 UTC
Oh I need to redirect that error to /dev/null, PR on the way.

Comment 2 Michal Fojtik 2015-09-10 07:45:44 UTC
https://github.com/openshift/jenkins/pull/31

Comment 3 XiuJuan Wang 2015-09-14 03:03:43 UTC
Verified with devenv-fedora_2334
No error in jenkins log.

$docker logs ca0dc6e8fc3b 
Copying Jenkins configuration to /var/lib/jenkins ...
Creating initial Jenkins 'admin' user
Detected password change, updating Jenkins configuration