Bug 1035186 - Cannot scale up via haproxy_ctld in the secondary haproxy since broker auth does not exist on that gear
Summary: Cannot scale up via haproxy_ctld in the secondary haproxy since broker auth d...
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: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1056899
TreeView+ depends on / blocked
 
Reported: 2013-11-27 09:10 UTC by Meng Bo
Modified: 2015-05-15 00:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1056899 (view as bug list)
Environment:
Last Closed: 2014-02-26 19:08:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2013-11-27 09:10:31 UTC
Description of problem:
For a HA enabled scalable app, when trying to scale-up in the secondary haproxy-gear, will get failed due to the broker auth does not exist on the gear.

[459590177713071029485568-bmengdev.dev.rhcloud.com 459590177713071029485568]\> haproxy_ctld -u
/var/lib/openshift/459590177713071029485568/haproxy//usr/bin/remove-gear:36:in `read': No such file or directory - /var/lib/openshift/459590177713071029485568/.auth/token (Errno::ENOENT)
	from /var/lib/openshift/459590177713071029485568/haproxy//usr/bin/remove-gear:36:in `execute'
	from /var/lib/openshift/459590177713071029485568/haproxy//usr/bin/remove-gear:208:in `<main>'


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

How reproducible:
always

Steps to Reproduce:
1.Create scalable app
2.Make the app HA via rest api
3.SSH login to the secondary haproxy gear
4.Try to scale-up with haproxy_ctld cmd

Actual results:
It will fail due to the broker auth does not exist on the gear.

Expected results:
Should be able to scale up manually on all the haproxy gears.

Additional info:

Comment 1 Dan McPherson 2014-01-15 14:36:24 UTC
https://github.com/openshift/origin-server/pull/4477

Comment 3 Jianwei Hou 2014-01-16 09:38:03 UTC
Verified on devenv_4229

1. Create a scalable app and make it HA enabled
2. SSH to the 2nd gear, scale it up with 'haproxy_ctld -u'

Result:
The app scaled up successfully.


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