Earlier  
Posted Nick Remark
#openstack-sdks - 2017-10-26
15:34:04 openstackgerrit Hongbin Lu proposed openstack/python-openstackclient master: Added AddNetwork command to server https://review.openstack.org/509209
15:36:49 openstackgerrit Hongbin Lu proposed openstack/python-openstackclient master: [WIP] Add RemoveNetwork command to server https://review.openstack.org/515453
16:24:38 cdent edleafe, dtantsur : https://etherpad.openstack.org/p/api-sig-newsletter
16:25:30 edleafe cdent: metaphors are appropriately mixed.
16:25:54 cdent that needed ; so fixed that
16:26:15 cdent edleafe: good to go?
16:26:21 dtantsur cdent: LGTM
16:26:22 edleafe yes
16:26:26 cdent word
16:26:52 cdent i’m going to send it to the sig list too, cool?
16:27:58 cdent dtantsur, edleafe ^
16:28:07 dtantsur yep
16:28:19 edleafe sure, I don't think it will get lost in all the traffic :)
16:28:32 cdent quite
19:32:05 openstackgerrit Dean Troyer proposed openstack/osc-lib master: Consume the devstack functional jobs from OSC https://review.openstack.org/515503
21:01:37 openstackgerrit Merged openstack/os-client-config master: Consume the osc-functional-devstack-tips job https://review.openstack.org/514847
22:09:11 openstackgerrit Merged openstack/python-openstackclient master: Convert 'server' commands to use autoprogram https://review.openstack.org/458452
#openstack-sdks - 2017-10-27
07:30:22 ldl hi, friends, how are you.
07:34:27 openstackgerrit Jose Castro Leon proposed openstack/python-openstackclient master: Add missing parameters on openstack server rescue https://review.openstack.org/513393
07:46:53 ldl Hi, friends, may I ask a question?
07:46:54 ldl https://stackoverflow.com/questions/46969598/whether-the-password-stores-in-the-keystones-password-table-and-if-is-how-doe
07:48:37 ldl Does the openstacksdk register a user, when we register user, does we should use a encrypt password?
07:48:49 ldl or use the orign password?
08:22:14 ldl Sovled it by myself. thanks
08:29:39 openstackgerrit zhichao zhu proposed openstack/python-openstacksdk master: Use assertIsNone(...) instead of assertIs(None,...) https://review.openstack.org/514884
09:45:35 ldl ask a question:
09:45:38 ldl def validate_user_has_role(self, session, user, role):
09:45:39 ldl """Validates that a user has a role on a project"""
09:45:39 ldl url = utils.urljoin(self.base_path, self.id, 'users',
09:45:39 ldl user.id, 'roles', role.id)
09:45:39 ldl resp = session.head(url, endpoint_filter=self.service)
09:45:40 ldl if resp.status_code == 201:
09:45:40 ldl return True
09:45:40 ldl return False
09:46:01 ldl in openstacksdk, the session is not request.session. alright?
09:54:17 ldl Hi friends, who can help me with this?
09:54:18 ldl https://ask.openstack.org/en/question/110877/whats-the-session-in-def-validate_user_has_roleself-session-user-role-in-openstacksdk/
10:18:20 umbSublime ldl, I think it should be yes, the Session object in openstacksdk inherits from keystoneauth Session object which does have a head method. https://github.com/openstack/python-openstacksdk/blob/master/openstack/session.py https://github.com/openstack/keystoneauth/blob/master/keystoneauth1/session.py
10:19:13 ldl thanks
10:21:07 ldl you mean, I should create a openstacksdk session instance, then pass into the method?
10:22:08 umbSublime no, the Connection object has a session atribute which is a Session object, so passing connection.session should be fine IMO https://github.com/openstack/python-openstacksdk/blob/master/openstack/connection.py#L172
10:24:14 ldl :umbSublime thank you very much.
10:33:24 umbSublime np
10:35:55 ldl i don'w know why I pass the admin.conn.session, i get failure with 404
10:39:15 umbSublime can you manually call: admin.connection.session.head method?
10:41:03 ldl The traceback is bellow:
10:41:03 ldl : keystoneauth.session HEAD call to identity for http://controller:5000/v3/projects/3db5410e1e0d4f739f4524ac74794728/users/e888a5fa2a554a26be46bb1e5dd59ee9/roles/fe3a32f5476b4662931c5757c813febe used request id req-1a6367b6-3f7c-42d4-8504-f4fd0ff48101
10:41:03 ldl 2017-10-27 18:29:52,228 DEBUG: keystoneauth.session Request returned failure status: 404
10:41:57 umbSublime the 404 in this case appears to be coming from the API and is just passed down by the method call
10:42:43 ldl I use the admin create the new project, and the new user, and then pass the admin's conn.session
10:43:52 umbSublime TBH I'm no openstacksdk pro :p, I was just trying to help. Perhaps someone more knowledgeable can help :)
10:44:07 umbSublime what about the role_id you pass, is it 'valid' ?
10:44:28 ldl its `user`
10:44:31 ldl user role
10:45:41 ldl and its roleID is correct, you can see the link
10:45:46 ldl upper
10:46:15 umbSublime validate_user_has_role(self, session, user, role) --> you need a 'session' a 'user' (probably uuid) and a 'role' (probably uuid)
10:51:01 ldl all I put
10:51:49 umbSublime hmm really not sure then sorry :(
10:52:01 ldl its ok, I will check
10:52:05 ldl thank you, my bro.
10:53:22 umbSublime npnp
10:53:47 umbSublime if you idle here long enough I have no doubt someone will come to your rescue :)
10:55:11 ldl ok
11:57:37 ldl :umbSublime, I figured out, I should assign_role_to_user() first
13:17:56 fungi no idea who's had their coffee already, but i got this random question by e-mail and am wondering if it's maybe a faq:
13:19:25 fungi the user quotes the validate_user_has_role() function definition from identity/project.py noting they're not sure what the session parameter should be, and stating that they're receiving the following error... "'SessionStore' object has no attribute 'head'"
13:20:21 fungi trying to be helpful, but my knowledge of openstacksdk is virtually nonexistent
13:21:02 fungi and they've provided basically no context to their question besides the above
13:21:31 fungi worst case i'll suggest that they come in here or post to ask.openstack.org
13:55:14 dtroyer ldl asked that here a couple of hours ago, it looked like it was sorted out
14:26:23 openstackgerrit Dean Troyer proposed openstack/cliff master: Add OSC functional-tips job to check pipeline https://review.openstack.org/515725
14:44:09 openstackgerrit Vladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin https://review.openstack.org/512699
14:45:35 openstackgerrit Vladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI https://review.openstack.org/515730
14:55:12 openstackgerrit Slawek Kaplonski proposed openstack/python-openstackclient master: Remove convertion of Neutron Quota to dict https://review.openstack.org/515735
14:55:42 openstackgerrit Dean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests https://review.openstack.org/515736
14:55:54 openstackgerrit Dean Troyer proposed openstack/python-openstackclient master: Add missing parameters on openstack server rescue https://review.openstack.org/513393
15:00:01 openstackgerrit Vladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin https://review.openstack.org/512699
15:02:29 openstackgerrit Vladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin https://review.openstack.org/512699
15:03:50 openstackgerrit Vladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI https://review.openstack.org/515730
15:05:00 fungi dtroyer: thanks, i'll just ignore the e-mail in that case if it looks from logs to have probably been the same individual
15:35:28 openstackgerrit Dean Troyer proposed openstack/osc-lib master: Consume the devstack functional jobs from OSC https://review.openstack.org/515503
15:36:38 openstackgerrit Dean Troyer proposed openstack/osc-lib master: Consume the devstack functional jobs from OSC https://review.openstack.org/515503
15:46:28 openstackgerrit Vladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI https://review.openstack.org/515730
16:18:05 kuzko good day everyone ! is sir Mordred here?
16:19:54 kuzko mordred : I'm confronted to a limit in shade's behavior while listing a container's objects, I'm currently limited to 10000 objects returned, and it seems there are no kwargs to pass the limit argument to the lower levels...
17:43:24 openstackgerrit Dean Troyer proposed openstack/python-openstackclient master: Zuul job updates https://review.openstack.org/515794
17:45:55 openstackgerrit Dean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests https://review.openstack.org/515736
18:29:08 openstackgerrit Merged openstack/python-openstackclient master: Add missing parameters on openstack server rescue https://review.openstack.org/513393
20:19:17 openstackgerrit Dean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests https://review.openstack.org/515736
20:45:22 openstackgerrit Dean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job https://review.openstack.org/515929
21:49:50 openstackgerrit Dean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job https://review.openstack.org/515929
23:00:30 openstackgerrit Lin Yang proposed openstack/python-openstackclient master: Add python-rsdclient into plugin list https://review.openstack.org/511683
#openstack-sdks - 2017-10-28
01:47:01 openstackgerrit Merged openstack/python-openstackclient master: Add server rescue unit tests https://review.openstack.org/515736
03:26:54 openstackgerrit Dean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job https://review.openstack.org/515929
13:36:07 openstackgerrit Dean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job https://review.openstack.org/515929
#openstack-sdks - 2017-10-29
11:39:28 openstackgerrit James E. Blair proposed openstack/python-openstackclient master: Zuul: add file extension to playbook path https://review.openstack.org/516081
16:41:52 openstackgerrit James E. Blair proposed openstack/openstackclient master: Zuul: add file extension to playbook path https://review.openstack.org/516113
17:28:01 openstackgerrit Merged openstack/python-openstackclient master: Zuul: add file extension to playbook path https://review.openstack.org/516081
17:43:33 openstackgerrit Slawek Kaplonski proposed openstack/python-openstackclient master: Remove unnecessary comment https://review.openstack.org/515735

Earlier   Later