Bug 1116124 - [RFE] cherry-pick REST API exposure of regions/zones
Summary: [RFE] cherry-pick REST API exposure of regions/zones
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
: 1116836 (view as bug list)
Depends On: 1115238 1115244 1115274 1115309 1115321
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-03 19:28 UTC by Luke Meyer
Modified: 2014-08-04 13:27 UTC (History)
6 users (show)

Fixed In Version: rubygem-openshift-origin-msg-broker-mcollective-1.23.3.2-1.el6op openshift-origin-broker-1.16.1.7-1.el6op rubygem-openshift-origin-controller-1.23.10.4-1.el6op
Doc Type: Enhancement
Doc Text:
Using the broker REST API directly, developers can now specify the region to which their application is deployed. This allows developers to reduce latency to target users or implement a highly-available application scheme. Developers can also now use the REST API directly to determine the region and zone(s) to which an existing application's gears were deployed. In addition, administrators can now use the DEFAULT_REGION_NAME parameter in the /etc/openshift/broker.conf file to set the default region for new applications. If the parameter is not set, then a region is chosen randomly.
Clone Of:
Environment:
Last Closed: 2014-08-04 13:27:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0999 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.1.4 bug fix and enhancement update 2014-08-04 17:26:43 UTC

Description Luke Meyer 2014-07-03 19:28:00 UTC
Description of problem:
https://trello.com/c/mgZtuujn/241-5-expose-region-and-zones-of-gears-in-rest-api-geo is complete (with bugs currently). This allows viewing via the REST API which zone and region each gear is in.

The cherry-pick applies cleanly. Not sure if it *works* and need to evaluate the bugs for inclusion.

Also we could just wait until it's rebased into OSE 2.2.

Comment 1 Brenton Leanhardt 2014-07-07 12:55:34 UTC
We should be sure to include Bug 1116836 as part of this work.

Comment 3 Luke Meyer 2014-07-11 14:47:06 UTC
Replacing bug 1116836 with its blockers as I think it makes more sense to just track this feature and its follow-on bugfixes here.

Cherry-picking these from origin-server:


From PR https://github.com/openshift/origin-server/pull/5555

commit 7079d938b95052f04fcf72e432a0a071b543c418
Author: Lili Nader <lnader>
Date:   Thu Jun 26 14:27:04 2014 -0700

    Expose region and zones of gears in REST API

commit a01e57efbed15ac377f53a40640f63eb0ec2428e
Author: Lili Nader <lnader>
Date:   Fri Jun 27 19:08:22 2014 -0700

    Enables user to specify a region when creating an application


From PR https://github.com/openshift/origin-server/pull/5567

commit e29b2f9cd8637c4953ed8e2efb76b7139ac86b5f
Author: Ravi Sankar Penta <rpenta>
Date:   Wed Jul 2 18:47:06 2014 -0700

    Bug 1115321 - Fix zone name in gear_groups rest api response

commit 41098c5746efe83947a485cc99a0fe8efbfc7555
Author: Ravi Sankar Penta <rpenta>
Date:   Wed Jul 2 23:51:45 2014 -0700

    Bug 1115244 - Add 'region' as optional param to ADD_APPLICATION link

commit 83a1ad0c3f3025e07085cfad9bc6916486c60b20
Author: Ravi Sankar Penta <rpenta>
Date:   Wed Jul 2 23:55:00 2014 -0700

    Bug 1115238 - Add DEFAULT_REGION_NAME param to the broker configuration.

commit 0598d3648d0e33052970a83a229296f9cb6396ab
Author: Ravi Sankar Penta <rpenta>
Date:   Wed Jul 2 23:59:46 2014 -0700

    Bug 1115274 - Fix 'default' field in /regions REST api

commit 3181c5ca9cfb5408a16b194953accde4f2e45ce4
Author: Ravi Sankar Penta <rpenta>
Date:   Thu Jul 3 00:02:15 2014 -0700

    Bug 1115309 - Default region will be selected when optional param 'region' is not set during app creation.

Comment 4 Luke Meyer 2014-07-11 14:47:58 UTC
*** Bug 1116836 has been marked as a duplicate of this bug. ***

Comment 8 Luke Meyer 2014-07-14 17:01:42 UTC
Packages available with puddle 2014-07-11.3; I assume the same test cases apply (https://tcms-openshift.rhcloud.com/cases/search/?summary=%5Borigin_broker_241%5D&author=&product=&plan=&is_automated=&category=&case_status=1&case_status=2&component=&bug_id=&tag__name__in=&a=search) as well as regression testing on the blocked bugs.

Comment 9 Anping Li 2014-07-15 08:47:41 UTC
Verified and pass on OSE2.1z/2014-07-11.4.
The test cases have been run and passed.No blocked bug issue was found.

Comment 11 errata-xmlrpc 2014-08-04 13:27:36 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.

http://rhn.redhat.com/errata/RHBA-2014-0999.html


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