Description of problem:
One of the end user is unable to lists snapshots created from the same volume using openstack snapshot list --all |grep <uuid>.
However, running openstack snapshot show <uuid> on the same uuid returns the desired output.
I requested for a db dump from them and the only similarity I notice is that both snapshots that are not visible under openstack snapshot list are created from the same volume & same name.
All other snapshots created from the same volume are visible under snapshot list.
Version-Release number of selected component (if applicable):
I tried reproducing it on the same z stream release but unfortunately, couldn't reproduce the issue.
Steps to Reproduce:
Looking for additional pointers here.
There are a lot of snapshots created from that volume, but only these 2 snapshots are not visible under openstack snapshot list, show works fine. The only information I could find similar in between those 2 snapshots is they carry the same name.
And they both are in available state in db, not deleted.
Who owns the snapshots?
Are the commands being run as a user or an admin?
Please provide exact commands being run and their output, I assume you mean "openstack volume snapshot list".
$ openstack volume snapshot list
$ openstack volume snapshot list --all-projects
$ cinder snapshot-list
$ cinder snapshot-list --all-tenants 1
$ openstack volume snapshot show <snap>
$ cinder snapshot-show <snap>
These plus a look at the database records should provide enough info to see if this is related to the snapshots being owned by different users, etc.
Yup, the commands are being run via admin user but a different project.
I have the user id with me, I'll cross verify with cu if that belongs to admin.
Although I would like to mention that there are 181 snapshots in total from the same volume, they all have the same user & project id.
All of them are visible under openstack snapshot list, except these two.
No, I mean the command "openstack snapshot list". It's RHOSP10 so still using openstack snapshot list & openstack snapshot show.
Mentioning the available records in my next update.