Tuesday, 2021-09-14

thomasb06The Message class: https://review.opendev.org/c/openstack/openstacksdk/+/80887607:41
vkmchi folks10:44
vkmctrying to tweak and output to be more user friendly10:44
vkmcI'm using this function over here https://github.com/openstack/osc-lib/blob/master/osc_lib/utils/__init__.py#L48710:45
vkmcbasically the resource we have has it's id and the project_id 10:45
vkmcwanted to add the project_name as well 10:45
vkmcany tips on how to do this? 10:45
gtemawhere do you want to add it to?10:46
vkmcto the output 10:46
gtemain the output is load said - which output, which command?10:46
vkmcah sorry10:47
vkmcmanila share group type access list 10:47
vkmcso, openstack share group type access list10:47
vkmcpatch is here 10:47
gtemagenerally we only "output" what API sends to us10:47
vkmchttps://review.opendev.org/c/openstack/python-manilaclient/+/80506410:47
vkmcmore context here10:47
vkmchttps://review.opendev.org/c/openstack/python-manilaclient/+/805064/16/manilaclient/osc/v2/share_group_type_access.py#8910:47
gtemanormally we do not add anything else, but there are exceptions where i.e. for server we also extend it with flavor details10:47
vkmcyep, is feeling a bit "against" the design to add that info10:48
vkmcgtema, so this use case is nowhere in some other projects implementations? 10:50
vkmcI just want to keep consistency on how we do things10:50
gtemain principle the approach is fine. But definitely this is not really performant to find project each time10:50
vkmchmm good point10:50
gtemathis particular approach of extending output with project_name - no, it's not present anywhere10:50
vkmcI'll discuss with the reviewer10:51
gtemaanother issue is that the user might not really have priviliges to list/find project. This is unlikely, but you anyway can never say for sure it will work10:51
vkmcso this is an admin operation, in which case that shouldn't be the issue 10:52
vkmcunless I'm missing something10:52
gtemaok, but you know - admin of manilla is not necessarily having admin privs in identity10:52
vkmcyep10:52
vkmcit's a good point10:53
gtemacloud operators are keen to really separate privs as much as possible and even you are domain admin but with the project scope token you might not have privs to list projects10:53
vkmcmakes sense10:54
*** artom_ is now known as artom16:36
*** artom_ is now known as artom17:22
* gouthamr is reading the scrollback now 18:08
gouthamrthe admin in this context is a system admin18:08
gouthamrat least by default; although its possible to override18:09

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!