Adding a User in a Project is not Possible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
Confirmed
|
Critical
|
Brian Curtin |
Bug Description
Assigning a user to project is currently not possible with the openstacksdk (identity v3). I think this should be a priority, because not being able to add users to a project seems to restrict the client in a lot of use cases. The API might should either be restrictive and project only or allow all the different use cases (projects, groups, domains and users).
IMO a Python 3 api that looks like:
def create_
...
would do the job. Obviously this is a bit more complicated than the usual create_* methods. You need to use different urls (depending on the objects you have) and you also need to throw errors if a combination is not possible (which is true for a lot of the combos). You can also add different methods for all these use cases, but you will end up with a lot of combinations and that is not likely to decrease, rather the opposite.
Note that it's also not possible with the keystoneclient:
~ Dave
Yeah we just went through a change to be able to list existing role assignments and it was quite involved. I'll try to take a look at this soon.