Bug 1043007 - openshift.ks: add ability to enable external LB example plugin
Summary: openshift.ks: add ability to enable external LB example plugin
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-13 17:41 UTC by Luke Meyer
Modified: 2014-02-04 16:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-04 16:46:35 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Luke Meyer 2013-12-13 17:41:41 UTC
Description of problem:
The procedure given in https://access.redhat.com/site/documentation/en-US/OpenShift_Enterprise/2/html-single/Deployment_Guide/index.html#sect-External_Load_Balancing could be automated in openshift.ks. Let's add this as an option when we get time. Should be off by default so we don't queue stuff on ActiveMQ that will never be used.

Comment 2 Luke Meyer 2013-12-31 21:11:44 UTC
I did it :) https://github.com/openshift/openshift-extras/pull/258

Might be wise for QE to check I didn't mess anything up.

Note also the "echo" listener https://github.com/openshift/openshift-extras/blob/enterprise-2.0/admin/routing-listeners/echo.rb

Comment 3 Ma xiaoqiang 2014-01-02 05:49:04 UTC
check it on latest openshift.ks script.
1.modify the CONF_ROUTING_PLUGIN to true as follow:
# vim openshift.ks 
<--snip-->
CONF_ROUTING_PLUGIN=true
CONF_ROUTING_PLUGIN_USER=routinginfo
CONF_ROUTING_PLUGIN_PASS=routinginfopassword
2.delete the install os content.
3.install the openshift testing env using "openshift.ks"
4.generate the testing script
#vim test.rb
require 'rubygems'
require 'stomp'
c = Stomp::Client.new("routinginfo", "routinginfopassword", "localhost", 61613, true)
c.subscribe('/topic/routinginfo') { |msg|
  puts
  puts msg
}
c.join
5.run the test.rb, the create an app.check the output of the testing script.
Output:

<Stomp::Message headers={"content-type"=>"text/plain; charset=UTF-8", "message-id"=>"ID:broker.ose20-xiama.com.cn-24337-1388641460197-3:2:-1:1:1", "destination"=>"/topic/routinginfo", "timestamp"=>"1388641604652", "expires"=>"0", "subscription"=>"c707e52abaa201ff133037d1275eb887fbd7352b", "content-length"=>"69", "priority"=>"4"} body='---
:action: :create_application
:app_name: xiaom1
:namespace: xiaom
' command='MESSAGE' >

check the problem with "openshift.sh" script by the same method.
move it to verify.


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