← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1362058] [NEW] osapi_compute_link_prefix configuration option has incorrect behavior for certain urls

 

Public bug reported:

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"

** Affects: nova
     Importance: Undecided
     Assignee: Ishant Tyagi (ishant-tyagi)
         Status: New

** Description changed:

  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
+ 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"
-         }
-     ]
+     "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";
+ 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"

** Changed in: nova
     Assignee: (unassigned) => Ishant Tyagi (ishant-tyagi)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1362058

Title:
  osapi_compute_link_prefix  configuration option has incorrect behavior
  for certain urls

Status in OpenStack Compute (Nova):
  New

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"

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1362058/+subscriptions


Follow ups

References