*** rajathagasthya has quit IRC | 00:15 | |
*** bobh has joined #openstack-sdks | 00:22 | |
*** gouthamr has joined #openstack-sdks | 00:48 | |
*** LindaWang has joined #openstack-sdks | 00:56 | |
*** fzdarsky_ has joined #openstack-sdks | 01:21 | |
*** Kevin_Zheng has joined #openstack-sdks | 01:22 | |
*** fzdarsky|afk has quit IRC | 01:24 | |
*** dave-mccowan has quit IRC | 01:26 | |
*** dave-mccowan has joined #openstack-sdks | 01:28 | |
*** salv-orlando has joined #openstack-sdks | 01:55 | |
*** salv-orlando has quit IRC | 02:00 | |
*** bobh has quit IRC | 02:11 | |
*** annp has joined #openstack-sdks | 02:23 | |
*** dave-mccowan has quit IRC | 03:14 | |
*** markvoelker has quit IRC | 03:43 | |
*** salv-orlando has joined #openstack-sdks | 03:56 | |
*** salv-orlando has quit IRC | 04:00 | |
*** ldl has joined #openstack-sdks | 04:15 | |
*** annp has quit IRC | 04:20 | |
*** gildub has quit IRC | 04:24 | |
*** annp has joined #openstack-sdks | 04:28 | |
*** ldl has quit IRC | 04:32 | |
*** gildub has joined #openstack-sdks | 04:40 | |
*** shu-mutou has joined #openstack-sdks | 05:02 | |
*** salv-orlando has joined #openstack-sdks | 05:25 | |
*** salv-orlando has quit IRC | 05:38 | |
*** salv-orlando has joined #openstack-sdks | 05:38 | |
*** markvoelker has joined #openstack-sdks | 05:43 | |
*** ldl has joined #openstack-sdks | 05:55 | |
*** ldl has quit IRC | 06:04 | |
*** ldl has joined #openstack-sdks | 06:14 | |
*** markvoelker has quit IRC | 06:18 | |
*** gildub has quit IRC | 06:19 | |
*** gouthamr has quit IRC | 06:21 | |
*** markvoelker has joined #openstack-sdks | 07:14 | |
*** slaweq has joined #openstack-sdks | 07:26 | |
ldl | hi, friends, how are you. | 07:30 |
---|---|---|
*** salv-orlando has quit IRC | 07:30 | |
*** salv-orlando has joined #openstack-sdks | 07:31 | |
openstackgerrit | Jose Castro Leon proposed openstack/python-openstackclient master: Add missing parameters on openstack server rescue https://review.openstack.org/513393 | 07:34 |
*** salv-orlando has quit IRC | 07:35 | |
*** e0ne has joined #openstack-sdks | 07:45 | |
ldl | Hi, friends, may I ask a question? | 07:46 |
ldl | https://stackoverflow.com/questions/46969598/whether-the-password-stores-in-the-keystones-password-table-and-if-is-how-doe | 07:46 |
*** markvoelker has quit IRC | 07:48 | |
ldl | Does the openstacksdk register a user, when we register user, does we should use a encrypt password? | 07:48 |
ldl | or use the orign password? | 07:48 |
*** ralonsoh has joined #openstack-sdks | 07:50 | |
*** salv-orlando has joined #openstack-sdks | 07:52 | |
*** hoangcx has quit IRC | 07:53 | |
*** slaweq has quit IRC | 08:04 | |
*** slaweq has joined #openstack-sdks | 08:05 | |
ldl | Sovled it by myself. thanks | 08:22 |
openstackgerrit | zhichao zhu proposed openstack/python-openstacksdk master: Use assertIsNone(...) instead of assertIs(None,...) https://review.openstack.org/514884 | 08:29 |
*** fzdarsky_ is now known as fzdarsky | 08:43 | |
*** markvoelker has joined #openstack-sdks | 08:45 | |
*** shu-mutou is now known as shu-mutou-AWAY | 08:46 | |
*** cvaillac__ has quit IRC | 08:51 | |
*** cvaillac__ has joined #openstack-sdks | 08:51 | |
*** cvaillac__ is now known as umbSublime | 08:51 | |
*** sdague has joined #openstack-sdks | 08:54 | |
*** slaweq has quit IRC | 09:16 | |
*** slaweq has joined #openstack-sdks | 09:17 | |
*** markvoelker has quit IRC | 09:18 | |
*** slaweq has quit IRC | 09:22 | |
*** slaweq has joined #openstack-sdks | 09:22 | |
*** LindaWang has quit IRC | 09:29 | |
*** LindaWang has joined #openstack-sdks | 09:29 | |
*** LindaWang has quit IRC | 09:38 | |
*** LindaWang has joined #openstack-sdks | 09:39 | |
ldl | ask a question: | 09:45 |
ldl | def validate_user_has_role(self, session, user, role): | 09:45 |
ldl | """Validates that a user has a role on a project""" | 09:45 |
ldl | url = utils.urljoin(self.base_path, self.id, 'users', | 09:45 |
ldl | user.id, 'roles', role.id) | 09:45 |
ldl | resp = session.head(url, endpoint_filter=self.service) | 09:45 |
ldl | if resp.status_code == 201: | 09:45 |
ldl | return True | 09:45 |
ldl | return False | 09:45 |
ldl | in openstacksdk, the session is not request.session. alright? | 09:46 |
*** LindaWang has quit IRC | 09:52 | |
*** slaweq_ has joined #openstack-sdks | 09:52 | |
*** cdent has joined #openstack-sdks | 09:53 | |
ldl | Hi friends, who can help me with this? | 09:54 |
ldl | https://ask.openstack.org/en/question/110877/whats-the-session-in-def-validate_user_has_roleself-session-user-role-in-openstacksdk/ | 09:54 |
*** slaweq has quit IRC | 09:54 | |
*** LindaWang has joined #openstack-sdks | 10:10 | |
*** markvoelker has joined #openstack-sdks | 10:15 | |
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:18 |
ldl | thanks | 10:19 |
ldl | you mean, I should create a openstacksdk session instance, then pass into the method? | 10:21 |
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:22 |
ldl | :umbSublime thank you very much. | 10:24 |
umbSublime | np | 10:33 |
ldl | i don'w know why I pass the admin.conn.session, i get failure with 404 | 10:35 |
umbSublime | can you manually call: admin.connection.session.head method? | 10:39 |
ldl | The traceback is bellow: | 10:41 |
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 |
ldl | 2017-10-27 18:29:52,228 DEBUG: keystoneauth.session Request returned failure status: 404 | 10:41 |
umbSublime | the 404 in this case appears to be coming from the API and is just passed down by the method call | 10:41 |
ldl | I use the admin create the new project, and the new user, and then pass the admin's conn.session | 10:42 |
umbSublime | TBH I'm no openstacksdk pro :p, I was just trying to help. Perhaps someone more knowledgeable can help :) | 10:43 |
umbSublime | what about the role_id you pass, is it 'valid' ? | 10:44 |
ldl | its `user` | 10:44 |
ldl | user role | 10:44 |
ldl | and its roleID is correct, you can see the link | 10:45 |
ldl | upper | 10:45 |
umbSublime | validate_user_has_role(self, session, user, role) --> you need a 'session' a 'user' (probably uuid) and a 'role' (probably uuid) | 10:46 |
*** markvoelker has quit IRC | 10:49 | |
ldl | all I put | 10:51 |
umbSublime | hmm really not sure then sorry :( | 10:51 |
ldl | its ok, I will check | 10:52 |
ldl | thank you, my bro. | 10:52 |
umbSublime | npnp | 10:53 |
umbSublime | if you idle here long enough I have no doubt someone will come to your rescue :) | 10:53 |
ldl | ok | 10:55 |
*** annp has quit IRC | 11:03 | |
*** ldl has quit IRC | 11:29 | |
*** sdague has quit IRC | 11:31 | |
*** sdague has joined #openstack-sdks | 11:32 | |
*** ldl has joined #openstack-sdks | 11:36 | |
*** sdague has quit IRC | 11:37 | |
*** sdague has joined #openstack-sdks | 11:38 | |
*** sdague has quit IRC | 11:38 | |
*** sdague has joined #openstack-sdks | 11:46 | |
*** markvoelker has joined #openstack-sdks | 11:46 | |
ldl | :umbSublime, I figured out, I should assign_role_to_user() first | 11:57 |
*** dtantsur|afk is now known as dtantsur | 11:58 | |
*** markvoelker has quit IRC | 12:20 | |
*** markvoelker has joined #openstack-sdks | 12:27 | |
*** rm_work has quit IRC | 12:29 | |
*** rm_work has joined #openstack-sdks | 12:30 | |
*** marst has joined #openstack-sdks | 13:01 | |
*** edleafe is now known as figleaf | 13:02 | |
*** ldl has quit IRC | 13:10 | |
*** fungi has joined #openstack-sdks | 13:17 | |
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:17 |
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:19 |
fungi | trying to be helpful, but my knowledge of openstacksdk is virtually nonexistent | 13:20 |
fungi | and they've provided basically no context to their question besides the above | 13:21 |
fungi | worst case i'll suggest that they come in here or post to ask.openstack.org | 13:21 |
*** sheel has joined #openstack-sdks | 13:32 | |
*** dave-mccowan has joined #openstack-sdks | 13:53 | |
dtroyer | ldl asked that here a couple of hours ago, it looked like it was sorted out | 13:55 |
*** gouthamr has joined #openstack-sdks | 14:02 | |
*** Dinesh_Bhor has quit IRC | 14:04 | |
*** d0ugal_ has joined #openstack-sdks | 14:04 | |
*** d0ugal has quit IRC | 14:05 | |
*** dave-mccowan has quit IRC | 14:20 | |
openstackgerrit | Dean Troyer proposed openstack/cliff master: Add OSC functional-tips job to check pipeline https://review.openstack.org/515725 | 14:26 |
openstackgerrit | Vladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin https://review.openstack.org/512699 | 14:44 |
*** e0ne has quit IRC | 14:45 | |
openstackgerrit | Vladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI https://review.openstack.org/515730 | 14:45 |
*** LindaWang1 has joined #openstack-sdks | 14:51 | |
*** LindaWang has quit IRC | 14:53 | |
*** LindaWang1 is now known as LindaWang | 14:53 | |
*** e0ne has joined #openstack-sdks | 14:53 | |
*** e0ne has quit IRC | 14:53 | |
*** e0ne has joined #openstack-sdks | 14:54 | |
*** e0ne has quit IRC | 14:54 | |
*** bobh has joined #openstack-sdks | 14:55 | |
openstackgerrit | Slawek Kaplonski proposed openstack/python-openstackclient master: Remove convertion of Neutron Quota to dict https://review.openstack.org/515735 | 14:55 |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests https://review.openstack.org/515736 | 14:55 |
*** e0ne has joined #openstack-sdks | 14:55 | |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient master: Add missing parameters on openstack server rescue https://review.openstack.org/513393 | 14:55 |
*** e0ne has quit IRC | 14:56 | |
*** e0ne has joined #openstack-sdks | 14:56 | |
*** e0ne has quit IRC | 14:57 | |
*** bobh has quit IRC | 14:58 | |
openstackgerrit | Vladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin https://review.openstack.org/512699 | 15:00 |
openstackgerrit | Vladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin https://review.openstack.org/512699 | 15:02 |
openstackgerrit | Vladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI https://review.openstack.org/515730 | 15:03 |
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:05 |
*** marst has quit IRC | 15:06 | |
*** marst has joined #openstack-sdks | 15:06 | |
*** dave-mccowan has joined #openstack-sdks | 15:11 | |
*** dave-mccowan has quit IRC | 15:21 | |
*** salv-orlando has quit IRC | 15:22 | |
*** salv-orlando has joined #openstack-sdks | 15:23 | |
*** slaweq_ has quit IRC | 15:25 | |
*** salv-orlando has quit IRC | 15:27 | |
*** LindaWang has quit IRC | 15:31 | |
*** rabel has joined #openstack-sdks | 15:33 | |
openstackgerrit | Dean Troyer proposed openstack/osc-lib master: Consume the devstack functional jobs from OSC https://review.openstack.org/515503 | 15:35 |
openstackgerrit | Dean Troyer proposed openstack/osc-lib master: Consume the devstack functional jobs from OSC https://review.openstack.org/515503 | 15:36 |
*** sheel has quit IRC | 15:41 | |
openstackgerrit | Vladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI https://review.openstack.org/515730 | 15:46 |
*** dave-mccowan has joined #openstack-sdks | 16:04 | |
kuzko | good day everyone ! is sir Mordred here? | 16:18 |
*** rajathagasthya has joined #openstack-sdks | 16:19 | |
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... | 16:19 |
*** e0ne has joined #openstack-sdks | 16:21 | |
*** salv-orlando has joined #openstack-sdks | 16:23 | |
*** dave-mccowan has quit IRC | 16:26 | |
*** salv-orlando has quit IRC | 16:27 | |
*** ragasthya has joined #openstack-sdks | 16:28 | |
*** rajathagasthya has quit IRC | 16:29 | |
*** dtantsur is now known as dtantsur|afk | 16:36 | |
*** rabel has quit IRC | 16:39 | |
*** dave-mccowan has joined #openstack-sdks | 16:50 | |
*** ralonsoh has quit IRC | 17:00 | |
*** dave-mccowan has quit IRC | 17:03 | |
*** fzdarsky is now known as fzdarsky|afk | 17:03 | |
*** dave-mccowan has joined #openstack-sdks | 17:03 | |
*** Matias has joined #openstack-sdks | 17:05 | |
*** dave-mccowan has quit IRC | 17:29 | |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient master: Zuul job updates https://review.openstack.org/515794 | 17:43 |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests https://review.openstack.org/515736 | 17:45 |
*** e0ne has quit IRC | 18:15 | |
*** salv-orlando has joined #openstack-sdks | 18:24 | |
openstackgerrit | Merged openstack/python-openstackclient master: Add missing parameters on openstack server rescue https://review.openstack.org/513393 | 18:29 |
*** salv-orlando has quit IRC | 18:29 | |
*** dave-mccowan has joined #openstack-sdks | 18:38 | |
*** dave-mccowan has quit IRC | 18:44 | |
*** e0ne has joined #openstack-sdks | 19:29 | |
*** e0ne has quit IRC | 19:30 | |
*** dave-mccowan has joined #openstack-sdks | 19:37 | |
*** dave-mccowan has quit IRC | 19:49 | |
*** bobh has joined #openstack-sdks | 20:02 | |
*** bobh has quit IRC | 20:04 | |
*** bobh has joined #openstack-sdks | 20:05 | |
*** bobh has quit IRC | 20:09 | |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests https://review.openstack.org/515736 | 20:19 |
*** salv-orlando has joined #openstack-sdks | 20:25 | |
*** salv-orlando has quit IRC | 20:29 | |
*** dave-mccowan has joined #openstack-sdks | 20:33 | |
*** salv-orlando has joined #openstack-sdks | 20:35 | |
*** dave-mccowan has quit IRC | 20:38 | |
openstackgerrit | Dean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job https://review.openstack.org/515929 | 20:45 |
*** ragasthya has quit IRC | 20:49 | |
*** marst has quit IRC | 21:15 | |
openstackgerrit | Dean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job https://review.openstack.org/515929 | 21:49 |
*** salv-orlando has quit IRC | 21:50 | |
*** salv-orlando has joined #openstack-sdks | 21:50 | |
*** salv-orlando has quit IRC | 21:55 | |
*** figleaf is now known as edleafe | 22:01 | |
*** salv-orlando has joined #openstack-sdks | 22:03 | |
*** dave-mccowan has joined #openstack-sdks | 22:14 | |
*** dave-mccowan has quit IRC | 22:24 | |
*** salv-orlando has quit IRC | 22:27 | |
*** salv-orlando has joined #openstack-sdks | 22:28 | |
*** salv-orlando has quit IRC | 22:35 | |
*** salv-orlando has joined #openstack-sdks | 22:36 | |
*** salv-orlando has quit IRC | 22:40 | |
*** sdague has quit IRC | 22:50 | |
*** rajathagasthya has joined #openstack-sdks | 22:51 | |
*** ragasthya has joined #openstack-sdks | 22:55 | |
*** rajathagasthya has quit IRC | 22:56 | |
openstackgerrit | Lin Yang proposed openstack/python-openstackclient master: Add python-rsdclient into plugin list https://review.openstack.org/511683 | 23:00 |
*** cdent has quit IRC | 23:19 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!