glance member-add doesn't validate input
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned |
Bug Description
Glance currently doesn't validates inputs for this command which makes it possible to add un-existing members to an image.
[root@ykaul-
+------
| Image ID | Member ID | Can Share |
+------
| a92439a6-
+------
Now adding with a non-existent ID (similar to above, only with '1' at the end of the ID):
[root@ykaul-
[root@ykaul-
0
[root@ykaul-
+------
| Image ID | Member ID | Can Share |
+------
| a92439a6-
| a92439a6-
+------
This is the expected behaviour. The decision was made to not do a round trip to the Keystone service to determine if the user ID was valid or not.