Bug 1017000 - old route for gear_groups are not supported.
Summary: old route for gear_groups are not supported.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Master
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-09 06:46 UTC by Peter Ruan
Modified: 2015-05-15 00:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-17 13:34:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Peter Ruan 2013-10-09 06:46:01 UTC
Description of problem:
  With the membership and related changes, it's discovered that old route for gear_groups results in a 404, 

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

How reproducible:
always

Steps to Reproduce:
1. go to broker/rest/applications/<app-id>/gear_groups.json
2.
3.

Actual results:
404

Expected results:
should be backward compatible.

Additional info:

Comment 2 openshift-github-bot 2013-10-09 22:47:41 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/bed222457797870ec5a433af9c789bae0624463e
Bug 1017000 - Expose correct form of gear-groups

Comment 3 Jianwei Hou 2013-10-10 03:33:47 UTC
Verified on devenv-stage_491 and devenv_3880, both routes are supported.

0 % curl -k -H 'Accept: application/xml' --user jhou:x https://ec2-54-227-176-213.compute-1.amazonaws.com/broker/rest/applications/52560f31c28ef71a0d000001/gear_groups.json | json_reformat
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   683  100   683    0     0    422      0  0:00:01  0:00:01 --:--:--   422
{
    "api_version": 1.6,
    "data": [
        {
            "additional_gear_storage": 0,
            "base_gear_storage": 1,
            "cartridges": [
                {
                    "name": "ruby-1.9",
                    "display_name": "Ruby 1.9",
                    "tags": [
                        "service",
                        "ruby",
                        "web_framework"
                    ]
                }
            ],
            "gear_profile": "small",
            "gears": [
                {
                    "id": "52560f31c28ef71a0d000001",
                    "state": "started",
                    "ssh_url": "ssh://52560f31c28ef71a0d000001.rhcloud.com"
                }
            ],
            "id": "52560f31c28ef71a0d000003",
            "name": "52560f31c28ef71a0d000003",
            "scales_from": 1,
            "scales_to": 1
        }
    ],
    "messages": [
        {
            "exit_code": 0,
            "field": null,
            "index": null,
            "severity": "info",
            "text": "Showing gear groups for application 'app1' with domain 'jhou'"
        }
    ],
    "status": "ok",
    "supported_api_versions": [
        1.0,
        1.1,
        1.2,
        1.3,
        1.4,
        1.5,
        1.6
    ],
    "type": "gear_groups",
    "version": "1.6"
}


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