Comment 0 for bug 1362058

Revision history for this message
Ishant Tyagi (ishanttyagi) wrote :

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"