glance member-create doesn't complain when tenant_id doesn't exist

Bug #1308484 reported by Jaroslav Henner
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Opinion
Undecided
Unassigned

Bug Description

# glance image-create --name temporary_test --id 0bfbc34b-0ec8-4802-8f61-f45f0613fb54
# glance member-create --can-share 0bfbc34b-0ec8-4802-8f61-f45f0613fb54 'I do not exist!'
# echo $?
0
# glance image-delete 0bfbc34b-0ec8-4802-8f61-f45f0613fb54

I expected it to return something greater than 0

affects: python-keystoneclient → glance
Changed in glance:
assignee: nobody → dominik dobruchowski (dominik-dobruchowski)
Kent Wang (k.wang)
Changed in glance:
status: New → Confirmed
assignee: dominik dobruchowski (dominik-dobruchowski) → Kent Wang (k.wang)
Revision history for this message
Kent Wang (k.wang) wrote :

Looks like there is a similar problem with nova: https://bugs.launchpad.net/nova/+bug/1317515
and going off the work that's been done with that bug, looks like the keystone authentication may have performance issues

Revision history for this message
Belmiro Moreira (moreira-belmiro-email-lists) wrote :

This is an important bug that users frequently run into.

Our users usually use the project name when sharing images.
Because there is no project validation, glance accepts any value.

This is confusing to the user, because the project name is correct and it's accepted.
Also, shown when performing glance "glance member-list" the "Member ID" shows the correct project name.

Revision history for this message
Belmiro Moreira (moreira-belmiro-email-lists) wrote :

@k.wang are you still working on this?
We are happy to help.

Changed in glance:
assignee: Kent Wang (k.wang) → nobody
assignee: nobody → jayaditya gupta (jayssj11)
tags: added: image-sharing
Changed in glance:
assignee: jayaditya gupta (jayssj11) → nobody
Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :

AFAIK this by design, feel free to bring this as a topic in upcoming Yoga PTG.
https://etherpad.opendev.org/p/yoga-ptg-glance-planning

Changed in glance:
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.