Bug 975255 - Jenkins: Builds won't start after Jenkins admin password is changed.
Summary: Jenkins: Builds won't start after Jenkins admin password is changed.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 975539
TreeView+ depends on / blocked
 
Reported: 2013-06-17 23:23 UTC by Nam Duong
Modified: 2015-05-14 23:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 975539 (view as bug list)
Environment:
Last Closed: 2013-06-24 14:56:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nam Duong 2013-06-17 23:23:21 UTC
Description of problem:
See https://www.openshift.com/forums/openshift/jenkins-build-error-401-when-password-changed-using-jenkins-webapp  

When you change the admin password, builds no longer kick off as an error is thrown:  
java.io.IOException: Server returned HTTP response code: 401 for URL: http://127.5.130.1:8080/job/phptest-build/config.xml  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)

When you change the admin password back to $JENKINS_PASSWORD, builds start to work again.

Comment 1 Meng Bo 2013-06-18 06:18:57 UTC
Checked on devenv_3375, reproduced this issue.

For this problem, jenkins server will trigger the jenkins build with admin user now, which was and should be system_builder.

SSH login to the jenkins server will get the following ENV:
JENKINS_PASSWORD=r5jrAUV4_xU-
JENKINS_USERNAME=admin

After change the admin password, the ENV JENKINS_PASSWORD will not be changed accordingly.

When trigger jenkins build, will get the following info from jenkins log:

Jun 18, 2013 2:02:25 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig
INFO: Retrieving config XML from http://127.0.251.1:8080/job/php1-build/config.xml
Jun 18, 2013 2:02:25 AM hudson.plugins.openshift.OpenShiftCloud createConnection
INFO: Using credentials admin:r5jrAUV4_xU-
Jun 18, 2013 2:02:26 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig
WARNING: Reload GET:
Jun 18, 2013 2:02:26 AM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Caught java.io.IOException: Server returned HTTP response code: 401 for URL: http://127.0.251.1:8080/job/php1-build/config.xml. Will retry 1 more times before canceling build.


We should use the system_builder which password cannot be changed to trigger jenkins build.

Comment 2 Dan McPherson 2013-06-18 17:08:47 UTC
https://github.com/openshift/origin-server/pull/2882

This will fix existing apps and get rid of the issue for new apps.

Comment 4 Meng Bo 2013-06-19 12:27:17 UTC
Checked on INT(devenv_3382), issue fixed.

Jun 19, 2013 8:25:24 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig
INFO: Reloading configuration for jbossas1s-build...
Jun 19, 2013 8:25:24 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig
INFO: Retrieving config XML from http://127.8.254.1:8080/job/jbossas1s-build/config.xml
Jun 19, 2013 8:25:24 AM hudson.plugins.openshift.OpenShiftCloud createConnection
INFO: Using credentials system_builder:GLFxKx6PXvua


Jenkins will use system_builder to trigger build.

Move bug to verified.


Note You need to log in before you can comment on or make changes to this bug.