Earlier  
Posted Nick Remark
#openstack-sdks - 2017-01-03
20:09:21 shalev67 I'm trying to add support for role assignment
20:10:13 shalev67 This is not a normal resource and I am not quite sure how to add this
20:11:07 ankur-gupta-f1 ah okay cool. Where are you getting stuck?
20:11:17 ankur-gupta-f1 Im still a newbie but will try to help :)
20:13:04 ankur-gupta-f1 I see that there are already some Client commands for "openstack role *" what specifically are you trying to add?
20:13:44 shalev67 commands? on the sdk?
20:15:27 ankur-gupta-f1 https://github.com/openstack/python-openstacksdk/blob/master/openstack/identity/v2/role.py
20:15:45 shalev67 I'm trying to add the role assignment to the v3 api
20:15:50 shalev67 proxy*
20:16:50 shalev67 I've already added the role resource to the gerrit
20:16:57 shalev67 https://review.openstack.org/#/c/416323/
20:17:32 shalev67 Now i'm trying to add the role assignment functionality
20:18:33 ankur-gupta-f1 aaaahhh I see. Looking into it
20:22:42 ankur-gupta-f1 stevemar: This is a Keystone thing. Do you know where to look for this ^^^
20:30:11 adriant the role assignments is just a filterable list of roles assigned to someone.
20:30:13 adriant http://developer.openstack.org/api-ref/identity/v3/index.html#id263
20:30:37 adriant ankur-gupta-f1, shalev67: ^
20:30:46 adriant It's just a GET call
20:31:09 adriant and the data model is reasonably simple, but the filtering options are the important part
20:31:18 shalev67 Yeah but it Does not act like othe resources
20:31:38 adriant yep, it's not a resource in the strictest sense
20:31:50 adriant or at least, it's a internal resource
20:32:28 shalev67 So should I add an internal resource class to adress this?
20:33:01 adriant maybe 'ReadOnly' resource?
20:33:11 adriant or get only
20:34:05 adriant it is a very important resource, because with V3 it is the only real API way to know what roles are assigned to projects/users, but I can under how odd it feels to use at first.
20:34:16 shalev67 Maybe just add the functionality to the domain and project resource
20:34:20 adriant can understand*
20:34:27 adriant and user
20:34:41 adriant that is an option.
20:34:59 adriant add a list role assignments command to all the resources which can have roles assigned
20:35:06 adriant users, projects, groups
20:35:16 adriant (projects = domains really)
20:37:07 shalev67 so if I add the project role assignment for example in the project resource, how would I get the session?
20:37:27 stevemar dtroyer: before i forget, i created https://etherpad.openstack.org/p/osc-weekly-meeting -- not sure if you saw it
20:37:51 dtroyer stevemar: I did but thanks for the reminder
20:38:08 stevemar np
20:39:03 adriant shalev67: not sure what you mean by the session. This is the openstackSDK codebase? I've not worked with it too much, I'm more familiar with keystoneclient
20:39:23 shalev67 oh ok than
20:39:53 shalev67 thank you
20:40:01 shalev67 by the way should
20:40:29 adriant shalev67: I can help understand how to interact with the role assignments stuff, as I understand the keystone side of it mostly, but can't help with anything openstackSDK related. :(
20:41:21 adriant well, not anything specifically openstackSDK.
20:41:22 shalev67 I do two seperate git review to each feature or just one?
20:41:43 shalev67 I'm new in this gerrit stuff
20:42:54 adriant depends. If the two patches are closely related, can probably do just one, but it depends on the core reviewers. Role adding/editing/removing is reasonably closely related to role assignments, so you're probably safe extending the roles patch.
20:43:21 shalev67 ok
20:43:37 adriant role assignments is basically the 'read' equivalent of role CRUD
20:44:05 adriant If someone complains, then split it into another patch.
20:44:18 shalev67 so the process is to git commit , git commit --ammend , and git review?
20:44:28 adriant yep :)
20:44:58 adriant and gerrit keeps track of the changes between the various amended commits.
20:45:07 shalev67 Thanks you ;)
21:58:41 openstackgerrit Tony Breeds proposed openstack/cliff: Add Constraints support https://review.openstack.org/412742
21:58:42 openstackgerrit Tony Breeds proposed openstack/cliff: Remove tox environments that no longer work https://review.openstack.org/416360
#openstack-sdks - 2017-01-04
00:17:01 openstackgerrit Samuel de Medeiros Queiroz proposed openstack/keystoneauth: Prevent MemoryError when logging response bodies https://review.openstack.org/416249
01:04:59 openstackgerrit Imtiaz Chowdhury proposed openstack/python-openstackclient: Fixes image api URL endpoint for certain scenario https://review.openstack.org/415301
01:14:08 waj334 So, I'm looking at the get_client_class function in osc_lib and I'm wondering would it be a good idea to modify it so that when the version is just X then use client version X unless specified by explicitly mapping X.YY to another client object. Cinder v3 already has 15 microversions (3.0 - 3.15) and each version would be mapped the same client at the
01:14:09 waj334 moment.
01:21:13 waj334 Or I guess allow some way of specifying use of a specific client for a range of versions. What I said above wouldn't work after higher versions require a different client
02:25:34 openstackgerrit zhiyong.dai proposed openstack/python-openstackclient: Add ":option:` `" in the help message https://review.openstack.org/412850
03:38:19 openstackgerrit Steve Martinelli proposed openstack/keystoneauth: Prevent MemoryError when logging response bodies https://review.openstack.org/416249
04:46:03 openstackgerrit Merged openstack/python-openstackclient: Beef up floating IP functional tests https://review.openstack.org/415792
04:46:48 openstackgerrit Merged openstack/python-openstackclient: Beef up network functional tests https://review.openstack.org/415900
04:52:09 openstackgerrit Steve Martinelli proposed openstack/keystoneauth: Prevent MemoryError when logging response bodies https://review.openstack.org/416249
06:15:09 sakthi hi
06:15:51 sakthi Got error on creating service in mitaka. CommandError: Missing parameter(s): Set a service AUTH_URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
07:08:57 openstackgerrit Merged openstack/keystoneauth: Prevent MemoryError when logging response bodies https://review.openstack.org/416249
09:05:04 openstackgerrit zhiyong.dai proposed openstack/python-openstackclient: Update the description format https://review.openstack.org/416485
09:27:19 openstackgerrit zhiyong.dai proposed openstack/python-openstackclient: Update the description format https://review.openstack.org/416485
09:32:31 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: changes from qiming teng https://review.openstack.org/416497
09:32:31 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: Added role resource https://review.openstack.org/416323
09:37:39 openstackgerrit miaohb proposed openstack/python-openstacksdk: Remove unnecessary coding format in the head of files https://review.openstack.org/416500
10:08:50 openstackgerrit Merged openstack/python-openstackclient: Add ":option:` `" in the help message https://review.openstack.org/412850
10:15:48 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: review changes https://review.openstack.org/416504
10:18:55 sakthi check_valid_auth_options raise exc.CommandError('Missing parameter(s): \n%s' % msg) CommandError: Missing parameter(s): Set a service AUTH_URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
10:19:10 sakthi any idea about the above error?
10:32:22 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: Added role resource https://review.openstack.org/416323
11:10:06 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: Added role resource https://review.openstack.org/416323
11:30:05 openstackgerrit Merged openstack/python-openstackclient: Beef up address scope functional tests https://review.openstack.org/415764
11:42:45 openstackgerrit zhiyong.dai proposed openstack/python-openstackclient: Update the description format https://review.openstack.org/416485
12:05:05 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: Added role resource https://review.openstack.org/416323
12:09:50 Dinesh_Bhor Hi all, someone knows whether openstacksdk supports listing glance images with multiple sort_keys or not?
12:13:13 Dinesh_Bhor Qiming: Hi, can you help me with this ^ ?
12:22:14 Qiming Dinesh_Bhor, the query parameter is 'sort_keys'?
12:24:32 Qiming this format is supported: GET /v2/images?sort=name:asc,status:desc
12:25:26 Dinesh_Bhor ok, i see
12:25:56 Dinesh_Bhor Qiming: thanks for clarification
12:26:16 Qiming np
12:34:31 openstackgerrit Vijendra Soni proposed openstack/python-openstackclient: Update owner to project_id in image show https://review.openstack.org/416539
13:27:36 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: Added unittests https://review.openstack.org/416323
13:56:31 openstackgerrit yuval shalev proposed openstack/python-openstacksdk: Added unittests https://review.openstack.org/416323
14:05:29 openstackgerrit Ed Leafe proposed openstack/api-wg: Add guidelines for boolean names https://review.openstack.org/411529
14:13:24 openstackgerrit Ed Leafe proposed openstack/api-wg: Clarify the status values in versions https://review.openstack.org/411849
14:33:02 openstackgerrit Brian Curtin proposed openstack/python-openstacksdk: Add support for Role resource in Identity v3 https://review.openstack.org/416323
14:36:47 Dinesh_Bhor Qiming: Hi, are you around. I have checked the glance thing and "GET /v2/images?sort=name:asc,status:desc" works fine but I don't see such implementation for compute.
14:40:47 Dinesh_Bhor briancurtin: Hi, Can you help me with this ^ ?. Is listing servers with sort_keys implemented in openstacksdk?
14:41:09 briancurtin did you try it?
14:41:32 briancurtin and no, it’s not in there
14:41:53 Dinesh_Bhor briancurtin: No but I dont see sort_key in QueryParameters

Earlier   Later