Bug 1160699 - App didn't inherit HA when created from another HA app.
Summary: App didn't inherit HA when created from another HA app.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Miciah Dashiel Butler Masters
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1158737
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-05 12:57 UTC by Brenton Leanhardt
Modified: 2015-09-30 16:36 UTC (History)
12 users (show)

Fixed In Version: rubygem-openshift-origin-controller-1.32.3.1-1 rhc-1.36.1.1-1
Doc Type: Bug Fix
Doc Text:
When creating an application from an existing application, details regarding the HA configuration of the original application were not available. As a result, applications created from an existing HA application would not themselves be HA as one would expect. This bug fix extends the REST API to provide HA application configuration details. The `rhc app-create --from-app` command now clones HA status from the original application.
Clone Of: 1158737
Environment:
Last Closed: 2015-09-30 16:36:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1844 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 2.2.7 security, bug fix and enhancement update 2015-09-30 20:35:28 UTC

Description Brenton Leanhardt 2014-11-05 12:57:52 UTC
+++ This bug was initially created as a clone of Bug #1158737 +++

Description of problem:
Create an app via rhc --from-app from another HA app,
the newly create app didn't inherit HA.

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

How reproducible:
always

Steps to Reproduce:
1.Create a scalable app.
$ rhc app-create appname cartridges --scaling
2.Make the app HA.
$ rhc app-enable-ha appname
3.Create another app based on above HA app.
$ rhc app-create newappname --from-app appname
4.Check newly created app.
$ rhc app-show newappname --gears

Actual results:
The app which is created based on HA app didn't inherit HA.

Expected results:
The newly created app should inherit HA.

Additional info:

--- Additional comment from openshift-github-bot on 2014-11-04 18:36:20 EST ---

Commits pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/2b58e82c28b162b7f5c1336811e7d2da19afdcb7
Bug 1158737 - exposes DISABLE_HA on broker

https://github.com/openshift/origin-server/commit/45df06e0959ed8fbc8bb01891d77d595989a1302
Bug 1158737 - exposes the "ha" attribute on the "application" rest endpoint

Comment 3 wangyanyan 2014-11-25 05:34:12 UTC
Query step:
env ose2.2.z/2014-11-24.3
Change the user can allowha true
1.rhc app-create app1 php-5.3 -s
2.rhc app enable-ha app1
3.rhc app-create app1clone --from-app app1
4.rhc app enable-ha app1clone

Actual results:
4.# rhc app enable-ha app1clone
RESULT:
app1clone is now highly available
Also can check the app's ha is false in mongodb

Expected results:
4.# rhc app enable-ha app1clone
Application is already HA

Also can check the app's ha is true in mongodb

Comment 7 Miciah Dashiel Butler Masters 2015-07-17 18:15:47 UTC
Looks like we got this one in a rebase.

Comment 8 Anping Li 2015-07-23 07:16:30 UTC
Verified and pass on 2015-06-30.1, the package is rubygem-openshift-origin-controller-1.36.2.3-1.el6op.noarch.

The copied applications inherit HA from another application. Both gears are embedded ha proxy cartridge.

$ rhc app create sperl2 --from-app sperl
Application Options
-------------------
Domain:     anlidom
Cartridges: perl-5.10
From app:   sperl
Gear Size:  Copied from 'sperl'
Scaling:    yes (copied from 'sperl')
HA:         yes (copied from 'sperl')

Creating application 'sperl2' ... done


Waiting for your DNS name to be available ... done

Setting deployment configuration ... done

2)
$ rhc app show sperl2 --gears
ID               State   Cartridges            Size  SSH URL
---------------- ------- --------------------- ----- -------------------------------------------------------------
anlidom-sperl2-1 started perl-5.10 haproxy-1.4 small anlidom-sperl2-1.com.cn
anlidom-sperl2-2 started perl-5.10 haproxy-1.4 small anlidom-sperl2-2.com.cn

Comment 11 errata-xmlrpc 2015-09-30 16:36:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1844.html


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