Bug 888043
Summary: | Replica set variables in broker.conf not being utilized correctly | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Steve Reichard <sreichar> |
Component: | Node | Assignee: | Brenton Leanhardt <bleanhar> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.0.1 | CC: | bleanhar, libra-onpremise-devel, lmeyer, xjia, xtian |
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-01-31 20:33:35 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
Steve Reichard
2012-12-17 21:47:49 UTC
Problem is the "elif" at line 115 of production.rb - if !hp raise "Broker is missing Mongo configuration." elif replica_sets "elif" isn't a keyword, so it's considered a method and the rest of that section is dead code. The logic goes to the "else" clause every time. Guess that's why we have coverage tests :) Change it to "elsif" to fix. BTW oo-accept-broker doesn't handle this properly. Did I say 115? I meant line 45. I'm going to bed now. Ha, great catch Luke. This is fixed in the next puddle. http://download.devel.redhat.com/brewroot/packages/openshift-origin-broker/1.0.6/1.el6op/noarch/openshift-origin-broker-1.0.6-1.el6op.noarch.rpm I'll make sure this is fixed upstream too. [root@broker broker]# cat /etc/openshift/broker.conf | grep MONGO_REPLICA_SETS MONGO_REPLICA_SETS=true [root@broker broker]# cat /etc/openshift/broker.conf | grep MONGO_HOST_PORT #MONGO_HOST_PORT="localhost:27017" MONGO_HOST_PORT="Absn1.osop.cloud.lab.eng.bos.redhat.com:27017 Absn2.osop.cloud.lab.eng.bos.redhat.com:27017 Absn3.osop.cloud.lab.eng.bos.redhat.com:27017" [root@broker broker]# rails console Loading production environment (Rails 3.0.13) irb(main):001:0> store = OpenShift::DataStore.instance => #<OpenShift::MongoDataStore:0x7f6c55d87610 @replica_set=true, @db="openshift_broker", @user="openshift", @collections={:application_template=>"template", :user=>"user", :district=>"district"}, @password="mongopass", @host_port=[["Absn1.osop.cloud.lab.eng.bos.redhat.com", 27017], ["Absn2.osop.cloud.lab.eng.bos.redhat.com", 27017], ["Absn3.osop.cloud.lab.eng.bos.redhat.com", 27017]]> irb(main):002:0> exit Verify: OpenShiftEnterprise/1.1.x/2012-12-18.1 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0220.html |