href links returned from poppy are missing project_id

Bug #1401628 reported by Mike Panetta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppy
Fix Released
High
Tony Tan

Bug Description

When I do a request on poppy, for example a health check, the returned href's don't contain the project_id, so can't be used as is.

Example:

mike6795@salt1a-cct-iad:~$ http --verify no get https://global.cdn.com/v1.0/999999/health x-auth-token:nunya
HTTP/1.1 200 OK
Content-Length: 305
Content-Type: application/json; charset=UTF-8
Date: Thu, 11 Dec 2014 18:06:10 GMT
Server: Jetty(9.2.z-SNAPSHOT)
Via: 1.1 Repose (Repose/6.1.1.1)

{
    "providers": {
        "akamai": {
            "links": {
                "href": "http://global.cdn.api.rackspacecloud.com/v1.0/health/provider/akamai",
                "rel": "self"
            },
            "online": "true"
        }
    },
    "storage": {
        "cassandra": {
            "links": {
                "href": "http://global.cdn.api.rackspacecloud.com/v1.0/health/storage/cassandra",
                "rel": "self"
            },
            "online": "true"
        }
    }
}

Revision history for this message
Amit Gandhi (amit-gandhi) wrote :

basically need to have a conf setting that indicates the base_url should include the project_id. Then insert it in the context hook.

This bug applies to all links returned and location headers in responses.

Changed in poppy:
importance: Undecided → High
milestone: none → kilo-2
status: New → Confirmed
Changed in poppy:
assignee: nobody → Tony Tan (tonytan4ever)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to poppy (master)

Fix proposed to branch: master
Review: https://review.openstack.org/141493

Changed in poppy:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on poppy (master)

Change abandoned by tonytan4ever (<email address hidden>) on branch: master
Review: https://review.openstack.org/141493

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to poppy (master)

Fix proposed to branch: master
Review: https://review.openstack.org/141494

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to poppy (master)

Reviewed: https://review.openstack.org/141494
Committed: https://git.openstack.org/cgit/stackforge/poppy/commit/?id=51b000074074c8617f02625b7efab59eeb30a91b
Submitter: Jenkins
Branch: master

commit 51b000074074c8617f02625b7efab59eeb30a91b
Author: Obulpathi <email address hidden>
Date: Tue Nov 11 13:37:00 2014 -0500

    Add project_id to rax-identity base url
    Closes-Bug: 1401628

    Change-Id: I5e7c61841d0ea8605f990c301aa0c18b8938dca1

Changed in poppy:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/143711
Committed: https://git.openstack.org/cgit/stackforge/poppy/commit/?id=647d60eebab30d8240f73f33d2a177b549ed5515
Submitter: Jenkins
Branch: master

commit 647d60eebab30d8240f73f33d2a177b549ed5515
Author: tonytan4ever <email address hidden>
Date: Tue Dec 23 13:34:37 2014 -0500

    Fixing response model url
    Closes-Bug: 1401628

    Change-Id: I0dfe3efc10486e646336bf606976922edec337e3

Changed in poppy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.