Bug 1019792

Summary: Unable to launch Jenkins slave if cloud domain contains a dash
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: ContainersAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.0.0CC: libra-onpremise-devel
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-12-16 09:11:25 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 Johnny Liu 2013-10-16 12:21:12 UTC
Description of problem:
 

Now domain name is "ose-1014.com.cn", when Jenkins goes to launch the slave and download slave.jar, the URL gets messed up. Here is jenkins server log:
<--snip-->
Oct 16, 2013 8:10:52 AM hudson.plugins.openshift.OpenShiftComputerLauncher launch
INFO: Exec mkdir -p $OPENSHIFT_DATA_DIR/jenkins && cd $OPENSHIFT_DATA_DIR/jenkins && rm -f slave.jar && wget -q --no-check-certificate https://jenkins-jialiu.ose/jnlpJars/slave.jar
Oct 16, 2013 8:10:52 AM hudson.slaves.NodeProvisioner update
<--snip-->

Jenkins should download the slave jar fiel from https://jenkins-jialiu.ose-1014.com.cn/jnlpJars/slave.jar

BZ#984608 is reproduced again in ose-2.0.

Version-Release number of selected component (if applicable):
2.0/2013-10-15.2

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Brenton Leanhardt 2013-10-30 20:12:29 UTC
The problem was due to an incompatible version of the openshift-java-client.  For openshift enterprise the user-agent for requests using the broker token auth must be "OpenShift".  Instead it was getting set the jvm.

Comment 4 Johnny Liu 2013-10-31 03:28:46 UTC
Verified this bug with jenkins-plugin-openshift-0.6.23-1.el6op.x86_64 in 2.0/2013-10-30.1 puddle, and PASS.