Bug 1012374

Summary: When scaling up the app, an error message is shown in platform.log, saying "Cartridge directory not found for haproxy-1.4"
Product: OpenShift Online Reporter: Qiushui Zhang <qiuzhang>
Component: PodAssignee: Rajat Chopra <rchopra>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: 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-10-17 13:31:48 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:
Attachments:
Description Flags
log from instance none

Description Qiushui Zhang 2013-09-26 11:17:34 UTC
Created attachment 803358 [details]
log from instance

Description of problem:
When scaling up an app, check the node log "tailf /var/log/openshift/node/platform.log". Error message pops up, saying "ERROR Cartridge directory not found for haproxy-1.4"

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

How reproducible:
always

Steps to Reproduce:
1. On instance, tail node log
tailf /var/log/openshift/node/platform.log
2. Create an scalable app and scale it up
rhc app create php1s php-5.3 -s
rhc cartridge scale php-5.3 -a php1s --min 2
3. Check the log file

Actual results:
It shows:
September 26 19:04:09 ERROR Cartridge directory not found for haproxy-1.4
September 26 19:04:09 ERROR /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.3/lib/openshift-origin-node/model/v2_cart_model.rb:129:in `cartridge_directory'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.3/lib/openshift-origin-node/model/v2_cart_model.rb:139:in `get_cartridge'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.3/lib/openshift-origin-node/model/application_container_ext/cartridge_actions.rb:91:in `create_public_endpoints'
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:760:in `block in oo_expose_port'
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:297:in `with_container_from_args'
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:759:in `oo_expose_port'
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:136:in `execute_action'
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:192:in `block in execute_parallel_action'
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:185:in `each'
/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:185:in `execute_parallel_action'
/opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/agent.rb:86:in `handlemsg'
/opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:126:in `block (2 levels) in dispatch'
/opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout'
/opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:125:in `block in dispatch'


Expected results:
No error is shown in platform.log

Additional info:

Comment 1 Mrunal Patel 2013-09-26 22:07:13 UTC
Broker is sending an expose-port for haproxy to the scaled up gear (which it shouldn't).

Comment 2 Rajat Chopra 2013-09-27 20:33:15 UTC
Fixed with pull request : https://github.com/openshift/origin-server/pull/3732

Comment 3 Qiushui Zhang 2013-09-29 02:46:07 UTC
Tested on devenv_3844.

No error messages are shown during scalable app create / scale / control.

Mark the bug as fixed.