Bug 992897 - Missing DB ports in scaling apps
Missing DB ports in scaling apps
Product: OpenShift Online
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Jhon Honce
libra bugs
: Regression, TestBlocker
Depends On:
  Show dependency treegraph
Reported: 2013-08-05 02:55 EDT by Zhe Wang
Modified: 2015-05-14 19:25 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-05 11:23:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Zhe Wang 2013-08-05 02:55:25 EDT
Description of problem:
Given a scaling app, if adding only one or two DB carts to this app, the port(s) of the added DB cart(s) will be missing. However, if adding all the three DB carts to this app (say, MySQL-5.1, MongoDB-2.2, Postgresql-8.4(Postgresql-9.2)), only the port of the lastly added one will be at presence. One of the consequences is that, port-forward is not functioning if adding only one (even two) DB carts to a scaling app.

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

How reproducible:

Steps to Reproduce:
1. create a scaling app
2. add one db cart to this app (e.g., mysql-5.1)
3. SSH into this app, and check the port of the added DB cart.
4. add another db cart to this app (e.g., mongodb-2.2)
5. repeat Step 3
6. add a third db cart to this app (e.g., postgresql-8.4)
7. repeat Step 3
8. forward the app's ports to local

Actual results:
In Step 3 and 5, the ports of the first two DB carts were missing. However, in Step 7, the port of the lastly added DB carts was at presence. If shuffling the order of adding the three DB carts, the results are similar, i.e., only the port of the lastly DB cart is not null.

[sphp-zwstg.stg.rhcloud.com 51ff09dd2587c84886000087]\> env | grep DB_PORT

Moreover, forwarding all the DB ports to local did not function for the first two added DB carts:

Service    Local                OpenShift
---------- --------------- ---- ----------------------------------------------------
haproxy   =>
haproxy   =>
httpd   =>
postgresql  =>  51ff0b8ddbd93cc62c00023c-zwstg.stg.rhcloud.com:47701

Expected results:
All the DB ports of a scaling app should not be null regardless of the number of DB carts added to this app.

Additional info:
Comment 1 Paul Morie 2013-08-05 11:23:16 EDT
I wasn't able to reproduce this in master or stage.

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