Bug 961227

Summary: Missing JENKINS_PASSWORD and JENKINS_USERNAME environment variables under jenkins/env directory for jenkins-1.4 application after v2 migration
Product: OKD Reporter: Wei Sun <wsun>
Component: ContainersAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: dmcphers
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: 2013-06-11 03:55:34 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 Wei Sun 2013-05-09 07:51:57 UTC
Description of problem:

When migrating v1 jenkins-1.4 app to v2 format,under jenkins/env directory,JENKINS_PASSWORD and JENKINS_USERNAME environment variables  are missing.

Version-Release number of selected component (if applicable):
Upgraded from devenv_345 to devenv_3200

How reproducible:
Always

Steps to Reproduce:
1. Launch a devenv-stage_345 ami
2. Create app with jenkins-1.4 cartridge
3. scp -r ~/devenv-local and /etc/yum.repos.d/local.repo from devenv_3200 instance to same location on devenv-stage_345 instance
4. yum -y update --enablerepo devenv-local (This will upgrade devenv-stage_345 to devenv_3200)
5. oo-cart-version -c v2
6. rhc-v2-migrate --version 2.0.28
7.  ssh into app
  
Actual results:
[jks-wsunv2migrate.dev.rhcloud.com 674303641106873455738880]\> tree jenkins/env/
jenkins/env/
|-- OPENSHIFT_JENKINS_DIR
|-- OPENSHIFT_JENKINS_IDENT
`-- OPENSHIFT_JENKINS_LOG_DIR

0 directories, 3 files


Expected results:
[jk-wsunv23202.dev.rhcloud.com 518b4fe65903c022c8000001]\> tree jenkins/env/
jenkins/env/
|-- JENKINS_PASSWORD
|-- JENKINS_USERNAME
|-- OPENSHIFT_JENKINS_DIR
|-- OPENSHIFT_JENKINS_IDENT
`-- OPENSHIFT_JENKINS_LOG_DIR

Additional info:

Comment 1 Dan McPherson 2013-05-13 16:09:31 UTC
I went the direction of removing JENKINS_PASSWORD and JENKINS_USERNAME from  jenkins/env/

https://github.com/openshift/origin-server/pull/2438

Comment 3 Wei Sun 2013-05-14 05:59:15 UTC
According to #comment1,verified on devenv_3223.
Result:

1.New jenkins app on devenv_3223
[jks-wsun3223zz.dev.rhcloud.com 5191d0ee4ec8ea0fc0000003]\> tree jenkins/env/
jenkins/env/
|-- OPENSHIFT_JENKINS_DIR
|-- OPENSHIFT_JENKINS_IDENT
`-- OPENSHIFT_JENKINS_LOG_DIR

0 directories, 3 files

2.jenkins app from v1 to v2
[jks-wsunmi3221.dev.rhcloud.com 9f146b3ebc4311e29d9022000a880b50]\> tree jenkins/env/
jenkins/env/
|-- OPENSHIFT_JENKINS_DIR
|-- OPENSHIFT_JENKINS_IDENT
`-- OPENSHIFT_JENKINS_LOG_DIR

0 directories, 3 files