Bug 1012374 - When scaling up the app, an error message is shown in platform.log, saying "Cartridge directory not found for haproxy-1.4"
Summary: When scaling up the app, an error message is shown in platform.log, saying "C...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-26 11:17 UTC by Qiushui Zhang
Modified: 2015-05-15 00:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-17 13:31:48 UTC
Target Upstream Version:


Attachments (Terms of Use)
log from instance (87.14 KB, application/zip)
2013-09-26 11:17 UTC, Qiushui Zhang
no flags Details

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.


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