Bug 1017005 - Unable to create scalable application and jenkins server application
Summary: Unable to create scalable application and jenkins server application
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Brenton Leanhardt
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-09 06:49 UTC by Gaoyun Pei
Modified: 2017-03-08 17:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-16 09:11:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gaoyun Pei 2013-10-09 06:49:23 UTC
Description of problem:
Unable to create scalable app and jenkins server due to unable to find the pubkeyfile.

Version-Release number of selected component (if applicable):
http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/2.0/2013-10-08.1

How reproducible:
Always

Steps to Reproduce:
1.create a scalable app
[root@dhcp-8-133 workspace]# rhc app create app1 python-2.6 -s
Application Options
-------------------
  Domain:     12
  Cartridges: python-2.6
  Gear Size:  default
  Scaling:    yes

Creating application 'app1' ... 
Unable to complete the requested operation due to: No such file or directory - /var/www/openshift/broker/config/server_pub.pem.
Reference ID: a3fee5f487954139317c61a548f995fe

2.create a jenkens server app
[root@dhcp-8-133 workspace]# rhc app create j jenkins-1
Application Options
-------------------
  Domain:     12
  Cartridges: jenkins-1
  Gear Size:  default
  Scaling:    no

Creating application 'j' ... 
Unable to complete the requested operation due to: No such file or directory - /var/www/openshift/broker/config/server_pub.pem.
Reference ID: f980a918abece91194fc708d572dfa66


Actual results:


Expected results:
Apps should be created successfully

Additional info:
Noticed that there's inconsistency between  /var/www/openshift/broker/config/environments/production.rb
and /etc/openshift/broker.conf 

In production.rb, the name defined is AUTH_PRIV_KEY_FILE/AUTH_PRIV_KEY_PASS/AUTH_PUB_KEY_FILE,
while in broker.conf, the name defined is
AUTH_PRIVKEYFILE/AUTH_PRIVKEYPASS/AUTH_PUBKEYFILE

/var/www/openshift/broker/config/environments/production.rb:
  config.auth = {
    :salt => conf.get("AUTH_SALT", ""),
    :privkeyfile => conf.get("AUTH_PRIV_KEY_FILE", "/var/www/openshift/broker/config/server_priv.pem"),
    :privkeypass => conf.get("AUTH_PRIV_KEY_PASS", ""),
    :pubkeyfile  => conf.get("AUTH_PUB_KEY_FILE", "/var/www/openshift/broker/config/server_pub.pem"),
    :rsync_keyfile => conf.get("AUTH_RSYNC_KEY_FILE", "/etc/openshift/rsync_id_rsa")
  }

/etc/openshift/broker.conf:
AUTH_PRIVKEYFILE="/etc/openshift/server_priv.pem"
AUTH_PRIVKEYPASS=""
AUTH_PUBKEYFILE="/etc/openshift/server_pub.pem"
AUTH_RSYNC_KEY_FILE="/etc/openshift/rsync_id_rsa"

Comment 2 openshift-github-bot 2013-10-09 20:45:02 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/d581d65888db65412a08621273f753f68deca55c
Bug 1017005 - Fixing the Broker's AUTH_* settings that have been renamed

If they are wrong it will break jenkins integration

Comment 3 Gaoyun Pei 2013-10-11 02:50:18 UTC
This bug was already fixed on the new puddle 2.0/2013-10-10.2 with package openshift-origin-broker-1.15.1-1.git.648.c9bf8fd.el6op.noarch.rpm, would move it to VERIFIED once its status changed to ON_QA

Comment 4 Brenton Leanhardt 2013-10-11 11:54:47 UTC
I forgot to move this bug to ON_QA since we picked it up during the rebase. :)

Comment 5 Gaoyun Pei 2013-10-12 02:40:42 UTC
Move this bug to VERIFIED according to Comment 3


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