next share_links contains not supported marker field

Bug #1819167 reported by Chuan Miao
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Expired
Medium
Unassigned

Bug Description

when querying the endpoint /shares, a field share_links is returned in the response. It contains the next link, which has the marker field as shown below. It's confusing, because marker is not supported. And when querying the link, it doesn't return the "next" shares as the name suggests.

```
"shares_links": [
        {
            "href": "https://sth.com/v2/05f9781218b7401d9955f9b8a05a5aea/shares?limit=1&marker=56a8b778-47fc-45aa-bb5f-7950e2131331",
            "rel": "next"
        }
    ],
"shares": [
  ...
],
```

Jason Grosso (jgrosso)
Changed in manila:
assignee: nobody → Goutham Pacha Ravi (gouthamr)
Jason Grosso (jgrosso)
Changed in manila:
status: New → Triaged
Jason Grosso (jgrosso)
Changed in manila:
importance: Undecided → Medium
Changed in manila:
milestone: none → train-1
Revision history for this message
Jason Grosso (jgrosso) wrote :

Goutham has the train left :)

Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

Thanks for the reminder Jason :) Targeting this to Ussuri-2

Changed in manila:
milestone: train-1 → ussuri-1
milestone: ussuri-1 → ussuri-2
Changed in manila:
milestone: ussuri-2 → victoria-3
Changed in manila:
milestone: victoria-3 → victoria-rc1
Changed in manila:
assignee: Goutham Pacha Ravi (gouthamr) → Victoria Martinez de la Cruz (vkmc)
Changed in manila:
milestone: victoria-rc1 → wallaby-1
Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

This is better done as an API microversion bump since we will be changing what the API returns, generating breakage or a very inconsistent behavior. Let's push this for next cycle and ensure consistency across other resources (snapshots, groups, replicas, etc)

Changed in manila:
milestone: wallaby-1 → wallaby-2
Changed in manila:
milestone: wallaby-2 → wallaby-3
Changed in manila:
milestone: wallaby-3 → none
tags: added: wallaby-rc-bugsquash
Changed in manila:
milestone: none → xena-1
tags: removed: wallaby-rc-bugsquash
Changed in manila:
milestone: xena-1 → xena-2
Changed in manila:
milestone: xena-2 → xena-3
Changed in manila:
milestone: xena-3 → yoga-1
Changed in manila:
milestone: yoga-1 → yoga-3
Changed in manila:
milestone: yoga-3 → yoga-2
Changed in manila:
status: Triaged → Incomplete
Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

Tried to reproduce this on master

stack@xena:~$ curl -i -X GET http://192.168.122.98/share/v2/shares -H "X-Openstack-Manila-Api-Version: 2.65" -H "X-Auth-Token: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-manilaclient"
HTTP/1.1 200 OK
Date: Mon, 13 Dec 2021 14:35:18 GMT
Server: Apache/2.4.41 (Ubuntu)
Content-Type: application/json
Content-Length: 1162
x-compute-request-id: req-53571d63-ee3f-4105-8c74-cef23fc73ecf
X-OpenStack-Manila-API-Version: 2.65
Vary: X-OpenStack-Manila-API-Version
Connection: close

{
   "shares":[
      {
         "id":"724604c3-ba7c-4133-b5ef-7f6007ca2c93",
         "name":"carloss-test",
         "links":[
            {
               "rel":"self",
               "href":"http://192.168.122.98/share/v2/shares/724604c3-ba7c-4133-b5ef-7f6007ca2c93"
            },
            {
               "rel":"bookmark",
               "href":"http://192.168.122.98/share/shares/724604c3-ba7c-4133-b5ef-7f6007ca2c93"
            }
         ]
      },
      {
         "id":"25332e9d-babe-4a21-8f1b-091242c1a69d",
         "name":"gouthamr-test",
         "links":[
            {
               "rel":"self",
               "href":"http://192.168.122.98/share/v2/shares/25332e9d-babe-4a21-8f1b-091242c1a69d"
            },
            {
               "rel":"bookmark",
               "href":"http://192.168.122.98/share/shares/25332e9d-babe-4a21-8f1b-091242c1a69d"
            }
         ]
      },
      {
         "id":"1606060a-e5b0-42c6-b953-367c9f93be34",
         "name":"vkmc-test",
         "links":[
            {
               "rel":"self",
               "href":"http://192.168.122.98/share/v2/shares/1606060a-e5b0-42c6-b953-367c9f93be34"
            },
            {
               "rel":"bookmark",
               "href":"http://192.168.122.98/share/shares/1606060a-e5b0-42c6-b953-367c9f93be34"
            }
         ]
      },
      {
         "id":"103534dc-d8f7-432f-a33e-39b014370794",
         "name":"francie-test",
         "links":[
            {
               "rel":"self",
               "href":"http://192.168.122.98/share/v2/shares/103534dc-d8f7-432f-a33e-39b014370794"
            },
            {
               "rel":"bookmark",
               "href":"http://192.168.122.98/share/shares/103534dc-d8f7-432f-a33e-39b014370794"
            }
         ]
      }
   ]
}

I'm not getting shares_links, and the links that are listed are working. Maybe this was an issue in Train?

Revision history for this message
Carlos Eduardo (silvacarlose) wrote :

Was about to re-target this, but I think we should have some level of confirmation on this bug in older branches. Do we have a confirmation of this bug in Train?

Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

I'll check this on Train and report the results

Changed in manila:
milestone: yoga-2 → none
Vida Haririan (vhariria)
Changed in manila:
importance: Medium → Undecided
Vida Haririan (vhariria)
Changed in manila:
importance: Undecided → Medium
assignee: Victoria Martinez de la Cruz (vkmc) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Shared File Systems Service (Manila) because there has been no activity for 60 days.]

Changed in manila:
status: Incomplete → Expired
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.