Bug 798059

Summary: Scaling an app fails on Proxy Error.
Product: OKD Reporter: Chandrika Gole <cgole>
Component: PodAssignee: Rajat Chopra <rchopra>
Status: CLOSED NOTABUG QA Contact: Chandrika Gole <cgole>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: mshao
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: 2012-02-28 19:39:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chandrika Gole 2012-02-27 23:29:02 UTC
Description of problem:
As per US1463 I should be able to scale up an app, but I am not able to scale up the app. 

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

How reproducible:
Always

Steps to Reproduce:
1. Create a scaleable app -
curl -k -H "Accept: application/xml" --user "<user>:<pass>"  https://localhost/broker/rest/domains/<user>/applications -X POST -d name=<appname> -d cartridge=php-5.3 -d scale=true
2. Scale up the app -
curl -k -H "Accept: application/xml" --user "<user>:<pass>"  https://localhost/broker/rest/domains/<user>/applications/<appname>/events -X POST -d event=scale-up
3.
  
Actual results:
Scale up fails -

<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/broker/rest/domains/cgole10/applications/p1/events">POST&nbsp;/broker/rest/domains/cgole10/applications/p1/events</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>

Expected results:
App should scale up.

Additional info:

Comment 1 Chandrika Gole 2012-02-27 23:31:40 UTC
Had a discussion with Rajat, and he figured this is an mcollective issue.  Still debugging the issue..

Comment 2 Rajat Chopra 2012-02-28 03:13:23 UTC
The mcollective on this build suspiciously takes long. The request times out from passenger proxy. The mcollective calls to some hooks sometimes take a minute. Total request time being ~200 seconds. Thats a lot.

Tested this with new build - cant reproduce the problem. The total request time on new build is ~40 seconds. Scale up times are ~25 seconds.

The request for scaling is heavy and needs to be looked into in the future anyway, though.

Comment 3 Chandrika Gole 2012-02-28 19:39:13 UTC
THis bug was filed against a micro instance. Scaling up and down works fine on a large instance.