← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1504641] Re: Listing volumes respects osapi_max_limit but does not provide a link to the next element

 

Tempest will validate volume list response body.
It didn't accept unexpected attribute volumes_links.
We need to add volumes_links attribute in tempest first.

** Also affects: tempest
   Importance: Undecided
       Status: New

** Changed in: tempest
     Assignee: (unassigned) => Chung Chih, Hung (lyanchih)

-- 
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/1504641

Title:
  Listing volumes respects osapi_max_limit but does not provide a link
  to the next element

Status in OpenStack Compute (nova):
  In Progress
Status in tempest:
  In Progress

Bug description:
  When GETting os-volumes, the returned list of volumes respects the
  osapi_max_limit configuration parameter but does not provide a link to
  the next element in the list. For example, with two volumes configured
  and osapi_max_limit set to 1, GETting volumes results in the
  following:

  
  {
      "volumes": [
          {
              "attachments": [
                  {}
              ],
              "availabilityZone": "nova",
              "createdAt": "2015-10-09T18:12:04.000000",
              "displayDescription": null,
              "displayName": null,
              "id": "08792e26-204b-4bb9-8e9b-0e37331de51c",
              "metadata": {},
              "size": 1,
              "snapshotId": null,
              "status": "error",
              "volumeType": "lvmdriver-1"
          }
      ]
  }

  
  Unsetting osapi_max_limit results in both volumes being listed:

  
  {
      "volumes": [
          {
              "attachments": [
                  {}
              ],
              "availabilityZone": "nova",
              "createdAt": "2015-10-09T18:12:04.000000",
              "displayDescription": null,
              "displayName": null,
              "id": "08792e26-204b-4bb9-8e9b-0e37331de51c",
              "metadata": {},
              "size": 1,
              "snapshotId": null,
              "status": "error",
              "volumeType": "lvmdriver-1"
          },
          {
              "attachments": [
                  {}
              ],
              "availabilityZone": "nova",
              "createdAt": "2015-10-09T18:12:00.000000",
              "displayDescription": null,
              "displayName": null,
              "id": "5cf46cd2-8914-4ffd-9037-abd53c55ca76",
              "metadata": {},
              "size": 1,
              "snapshotId": null,
              "status": "error",
              "volumeType": "lvmdriver-1"
          }
      ]
  }

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


References