Bug 1029679

Summary: manually scaling with haproxy_ctld while application is stopped yields a confusing error message
Product: OpenShift Online Reporter: Brenton Leanhardt <bleanhar>
Component: ContainersAssignee: Ben Parees <bparees>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, bparees
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1100143 (view as bug list) Environment:
Last Closed: 2014-01-30 00:50:06 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:
Bug Depends On:    
Bug Blocks: 1100143    

Description Brenton Leanhardt 2013-11-12 21:58:46 UTC
Description of problem:

[5282a2a5fa6006aabc000005]\> haproxy_ctld -u
/var/lib/openshift/5282a2a5fa6006aabc000005/haproxy/usr/bin/haproxy_ctld.rb:101:in `initialize': Connection refused - "/var/lib/openshift/5282a2a5fa6006aabc000005/haproxy/run/stats" (Errno::ECONNREFUSED)
        from /var/lib/openshift/5282a2a5fa6006aabc000005/haproxy/usr/bin/haproxy_ctld.rb:101:in `open'
        from /var/lib/openshift/5282a2a5fa6006aabc000005/haproxy/usr/bin/haproxy_ctld.rb:101:in `refresh'
        from /var/lib/openshift/5282a2a5fa6006aabc000005/haproxy/usr/bin/haproxy_ctld.rb:67:in `initialize'
        from /var/lib/openshift/5282a2a5fa6006aabc000005/haproxy/usr/bin/haproxy_ctld.rb:345:in `new'
        from /var/lib/openshift/5282a2a5fa6006aabc000005/haproxy/usr/bin/haproxy_ctld.rb:345:in `<main>'


It would be nice if an error message was returned indicating that the application had been stopped.

Comment 1 openshift-github-bot 2013-11-18 19:51:46 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/c362b17efe2037ee6b5a84e0dabe5aa6b447362c
Bug 1029679: handle connection refused error with clean error message

Comment 3 Meng Bo 2013-11-21 05:26:58 UTC
Checked on devenv_4056, issue has been fixed.

[php1s-bmengdev.dev.rhcloud.com 528d9863c8c92ebbbf00005e]\> haproxy_ctld -u
An error occurred; try again later: Could not connect to the application.  Check if the application is stopped.
[php1s-bmengdev.dev.rhcloud.com 528d9863c8c92ebbbf00005e]\> haproxy_ctld -d
An error occurred; try again later: Could not connect to the application.  Check if the application is stopped.