osapi_compute_link_prefix configuration option has incorrect behavior for certain urls

Bug #1362058 reported by Ishant Tyagi
This bug report is a duplicate of:  Bug #1304099: link prefixes are truncated. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Undecided
Unassigned

Bug Description

I am using osapi_compute_link_prefix conf option in nova.conf to get some other URL in response.

I am using osapi_compute_link_prefix = https://16.125.106.106:8774/rest/compute

output which I get is

{
    "servers": [
        {
            "id": "c85f3e06-daef-468f-a298-e5427b6095cc",
            "links": [
                {
                    "href": "https://16.125.106.106/v1.1/ccbea08bdd8c42dfaad04e1c27dadfc9/servers/c85f3e06-daef-468f-a298-e5427b6095cc",
                    "rel": "self"
                },
                {
                    "href": "https://16.125.106.106/ccbea08bdd8c42dfaad04e1c27dadfc9/servers/c85f3e06-daef-468f-a298-e5427b6095cc",
                    "rel": "bookmark"
                }
            ],
            "name": "vm1"
        }
    ]
}

The URL in the response is incorrect . It should be "https://16.125.106.106/rest/compute/v1.1/ccbea08bdd8c42dfaad04e1c27dadfc9/servers/c85f3e06-daef-468f-a298-e5427b6095cc"

Tags: api
description: updated
Changed in nova:
assignee: nobody → Ishant Tyagi (ishant-tyagi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/117207
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Removing "In Progress" status and assignee as change is abandoned.

Changed in nova:
status: In Progress → Confirmed
assignee: Ishant Tyagi (ishant-tyagi) → nobody
Matt Riedemann (mriedem)
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.openstack.org/117207
Reason: Nevermind, this was fixed in Juno with commit bbb0f22fa91f678049e22c9d203d74010421043a.

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.