GET snapshots without details does not return user_id as mentioned in api-ref

Bug #1878699 reported by Ghanshyam Mann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Ghanshyam Mann

Bug Description

api-ref says user_id is returned in GET (no detail) snapshots API

- https://docs.openstack.org/api-ref/block-storage/v3/?expanded=list-accessible-snapshots-detail#list-accessible-snapshots

But it does not return actually. This is found while adding schema in Tempest side
- https://review.opendev.org/#/c/609624/6/tempest/lib/api_schema/response/volume/snapshots.py@46

While checking the history of 3.45 microversion when user_id was added in snapshot API response, it seems it is never added in code but only updated in api-ref

- https://review.opendev.org/#/c/472545/

As we cannot fix the old microversion let's fix the api-ref for now.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/728301

Changed in cinder:
assignee: nobody → Ghanshyam Mann (ghanshyammann)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/728301
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=6b866de648ec595b6e195c2d38c3669bf25849f8
Submitter: Zuul
Branch: master

commit 6b866de648ec595b6e195c2d38c3669bf25849f8
Author: Ghanshyam Mann <email address hidden>
Date: Thu May 14 16:44:08 2020 -0500

    Fix api-ref for GET snapshot response

    GET snapshot without detail does not return user_id
    atributes but api-ref say it does. Fixing the api-ref.

    Change-Id: I006df750a9f01098c8c326648f5da472d1a10f06
    Closes-Bug: #1878699

Changed in cinder:
status: In Progress → Fix Released
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.