Bug 802387 - Some default settings in stickshift-node.conf are improper to be used in devenv instance
Some default settings in stickshift-node.conf are improper to be used in deve...
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Krishna Raman
libra bugs
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-03-12 08:54 EDT by Johnny Liu
Modified: 2014-06-18 03:24 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-03-19 14:22:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Johnny Liu 2012-03-12 08:54:40 EDT
Description of problem:
Trigger jenkins build and failed.
$ git commit -a -m "xx"; git push
[master 71b5e8f] xx
 1 files changed, 1 insertions(+), 1 deletions(-)
Failed to add the host to the list of known hosts (/dev/nul).
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 272 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Executing Jenkins build.
remote: You can track your build at https://jenkins-jialiu.dev.rhcloud.com/job/phptest-build
remote: Waiting for build to schedule.........
remote: Please see the Jenkins log for more details via rhc-tail-files
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running.  Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
To ssh://c1e92db8235d4005987009bf831a4c13@phptest-jialiu.dev.rhcloud.com/~/git/phptest.git/
   0afaf33..71b5e8f  master -> master

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

How reproducible:

Steps to Reproduce:
1. Create an app with jenkins enabled.
2. Do some change, then trigger jenkins build.
Actual results:
jenkins build failed.

jenkins log message:
Mar 12, 2012 8:30:44 AM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Provisioning new node for workload = 1 and label = phptest-build
com.openshift.express.client.OpenShiftEndpointException: Could not get user info for user "" at "https://openshift.redhat.com/broker/userinfo"
	at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:529)
	at com.openshift.express.client.OpenShiftService.getUserInfo(OpenShiftService.java:126)
	at hudson.plugins.openshift.OpenShiftCloud.getUserInfo(OpenShiftCloud.java:401)
	at hudson.plugins.openshift.OpenShiftCloud.getSlaves(OpenShiftCloud.java:618)
	at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:439)
	at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:203)
	at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:54)
	at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:286)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
	at java.util.TimerThread.mainLoop(Timer.java:534)
	at java.util.TimerThread.run(Timer.java:484)
Caused by: com.openshift.express.internal.client.httpclient.InternalServerErrorException: {"debug":"padding check failed/var/www/libra/broker/lib/express/broker/auth_service.rb:109:in `private_decrypt'\n/var/www/libra/broker/lib/express/broker/auth_service.rb:109:in `check_broker_key'\n/var/www/libra/broker/lib/express/broker/auth_service.rb:50:in `login'\n/usr/lib/ruby/gems/1.8/gems/cloud-sdk-controller-0.5.10/lib/cloud-sdk-controller/app/controllers/legacy_broker_controller.rb:349:in `authenticate'\n/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:447:in `_run__688730835__process_action__927155398__callbacks'\n/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:410:in `send'","api":"1.1.2","data":"","api_c":["placeholder"],"broker_c":["namespace","rhlogin","ssh","app_uuid","debug","alter","cartridge","cart_type","action","app_name","api"],"exit_code":1,"messages":"","result":"padding check failed"}
	at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:107)
	at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:75)
	at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:518)
	... 10 more
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://openshift.redhat.com/broker/userinfo
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:70)
	... 11 more

Expected results:
jenkins build should be succesfull.

Additional info:
Go to jenkins UI - > Manage Jenkins -> "OpenShift Broker Hostname", found jenkins job is using "openshift.redhat.com"

Check /etc/libra/node.conf:
# Libra server

Looks like jenkins server does not read libra_server value from  /etc/libra/node.conf,
Comment 1 Johnny Liu 2012-03-12 08:56:52 EDT
Refer to  https://bugzilla.redhat.com/show_bug.cgi?id=802258#c1 for workaround about app creation failure.
Comment 2 Johnny Liu 2012-03-13 02:31:18 EDT
Now all setting is located in /etc/stickshift/stickshift-node.conf, the root cause of this bug is improper default settings in stickshift-node.conf.

# cat /etc/stickshift/stickshift-node.conf

BROKER_HOST setting is used by jenkins app, but for devenv environment, "localhost" is more proper here.

BTW, "CREATE_APP_SYMLINKS" should be set to "1" in devenv environment, that will be more convenient for debugging.

I know user can modify this config file manually, but tester must modify this file every time after launch a new instance.

If these two default settings are modified to be more proper for devenv environment, that will bring much convenience for QE's testing.

Because the root cause of this issue is incorrect setting in config file, low priority to "medium".
Comment 3 Johnny Liu 2012-03-14 03:13:16 EDT
Verified this bug with devenv_1661, and PASS.

# cat /etc/stickshift/stickshift-node.conf

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