+++ 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
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
Looks like we got this one in a rebase.
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
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