Friday, 2017-10-27

*** rajathagasthya has quit IRC00:15
*** bobh has joined #openstack-sdks00:22
*** gouthamr has joined #openstack-sdks00:48
*** LindaWang has joined #openstack-sdks00:56
*** fzdarsky_ has joined #openstack-sdks01:21
*** Kevin_Zheng has joined #openstack-sdks01:22
*** fzdarsky|afk has quit IRC01:24
*** dave-mccowan has quit IRC01:26
*** dave-mccowan has joined #openstack-sdks01:28
*** salv-orlando has joined #openstack-sdks01:55
*** salv-orlando has quit IRC02:00
*** bobh has quit IRC02:11
*** annp has joined #openstack-sdks02:23
*** dave-mccowan has quit IRC03:14
*** markvoelker has quit IRC03:43
*** salv-orlando has joined #openstack-sdks03:56
*** salv-orlando has quit IRC04:00
*** ldl has joined #openstack-sdks04:15
*** annp has quit IRC04:20
*** gildub has quit IRC04:24
*** annp has joined #openstack-sdks04:28
*** ldl has quit IRC04:32
*** gildub has joined #openstack-sdks04:40
*** shu-mutou has joined #openstack-sdks05:02
*** salv-orlando has joined #openstack-sdks05:25
*** salv-orlando has quit IRC05:38
*** salv-orlando has joined #openstack-sdks05:38
*** markvoelker has joined #openstack-sdks05:43
*** ldl has joined #openstack-sdks05:55
*** ldl has quit IRC06:04
*** ldl has joined #openstack-sdks06:14
*** markvoelker has quit IRC06:18
*** gildub has quit IRC06:19
*** gouthamr has quit IRC06:21
*** markvoelker has joined #openstack-sdks07:14
*** slaweq has joined #openstack-sdks07:26
ldlhi, friends, how are you.07:30
*** salv-orlando has quit IRC07:30
*** salv-orlando has joined #openstack-sdks07:31
openstackgerritJose Castro Leon proposed openstack/python-openstackclient master: Add missing parameters on openstack server rescue  https://review.openstack.org/51339307:34
*** salv-orlando has quit IRC07:35
*** e0ne has joined #openstack-sdks07:45
ldlHi, friends, may I ask a question?07:46
ldlhttps://stackoverflow.com/questions/46969598/whether-the-password-stores-in-the-keystones-password-table-and-if-is-how-doe07:46
*** markvoelker has quit IRC07:48
ldlDoes the openstacksdk register a user, when we register user, does we should use a encrypt password?07:48
ldlor use the orign password?07:48
*** ralonsoh has joined #openstack-sdks07:50
*** salv-orlando has joined #openstack-sdks07:52
*** hoangcx has quit IRC07:53
*** slaweq has quit IRC08:04
*** slaweq has joined #openstack-sdks08:05
ldlSovled it by myself. thanks08:22
openstackgerritzhichao zhu proposed openstack/python-openstacksdk master: Use assertIsNone(...) instead of assertIs(None,...)  https://review.openstack.org/51488408:29
*** fzdarsky_ is now known as fzdarsky08:43
*** markvoelker has joined #openstack-sdks08:45
*** shu-mutou is now known as shu-mutou-AWAY08:46
*** cvaillac__ has quit IRC08:51
*** cvaillac__ has joined #openstack-sdks08:51
*** cvaillac__ is now known as umbSublime08:51
*** sdague has joined #openstack-sdks08:54
*** slaweq has quit IRC09:16
*** slaweq has joined #openstack-sdks09:17
*** markvoelker has quit IRC09:18
*** slaweq has quit IRC09:22
*** slaweq has joined #openstack-sdks09:22
*** LindaWang has quit IRC09:29
*** LindaWang has joined #openstack-sdks09:29
*** LindaWang has quit IRC09:38
*** LindaWang has joined #openstack-sdks09:39
ldlask 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 True09:45
ldl        return False09:45
ldl in openstacksdk, the session is not request.session. alright?09:46
*** LindaWang has quit IRC09:52
*** slaweq_ has joined #openstack-sdks09:52
*** cdent has joined #openstack-sdks09:53
ldlHi friends, who can help me with this?09:54
ldlhttps://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 IRC09:54
*** LindaWang has joined #openstack-sdks10:10
*** markvoelker has joined #openstack-sdks10:15
umbSublimeldl, 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.py10:18
ldlthanks10:19
ldlyou mean, I should create a openstacksdk session instance, then pass into the method?10:21
umbSublimeno, 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#L17210:22
ldl:umbSublime thank you very much.10:24
umbSublimenp10:33
ldli don'w know why I pass the admin.conn.session, i get failure with 40410:35
umbSublimecan you manually call: admin.connection.session.head method?10:39
ldlThe 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-f4fd0ff4810110:41
ldl2017-10-27 18:29:52,228 DEBUG: keystoneauth.session Request returned failure status: 40410:41
umbSublimethe 404 in this case appears to be coming from the API and is just passed down by the method call10:41
ldlI use the admin create the new project, and the new user, and then pass the admin's conn.session10:42
umbSublimeTBH I'm no openstacksdk pro :p, I was just trying to help. Perhaps someone more knowledgeable can help :)10:43
umbSublimewhat about the role_id you pass, is it 'valid' ?10:44
ldlits `user`10:44
ldluser role10:44
ldland its roleID is correct, you can see the link10:45
ldlupper10:45
umbSublimevalidate_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 IRC10:49
ldlall I put10:51
umbSublimehmm really not sure then sorry :(10:51
ldlits ok, I will check10:52
ldlthank you, my bro.10:52
umbSublimenpnp10:53
umbSublimeif you idle here long enough I have no doubt someone will come to your rescue :)10:53
ldlok10:55
*** annp has quit IRC11:03
*** ldl has quit IRC11:29
*** sdague has quit IRC11:31
*** sdague has joined #openstack-sdks11:32
*** ldl has joined #openstack-sdks11:36
*** sdague has quit IRC11:37
*** sdague has joined #openstack-sdks11:38
*** sdague has quit IRC11:38
*** sdague has joined #openstack-sdks11:46
*** markvoelker has joined #openstack-sdks11:46
ldl:umbSublime, I figured out, I should assign_role_to_user() first11:57
*** dtantsur|afk is now known as dtantsur11:58
*** markvoelker has quit IRC12:20
*** markvoelker has joined #openstack-sdks12:27
*** rm_work has quit IRC12:29
*** rm_work has joined #openstack-sdks12:30
*** marst has joined #openstack-sdks13:01
*** edleafe is now known as figleaf13:02
*** ldl has quit IRC13:10
*** fungi has joined #openstack-sdks13:17
fungino 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
fungithe 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
fungitrying to be helpful, but my knowledge of openstacksdk is virtually nonexistent13:20
fungiand they've provided basically no context to their question besides the above13:21
fungiworst case i'll suggest that they come in here or post to ask.openstack.org13:21
*** sheel has joined #openstack-sdks13:32
*** dave-mccowan has joined #openstack-sdks13:53
dtroyerldl asked that here a couple of hours ago, it looked like it was sorted out13:55
*** gouthamr has joined #openstack-sdks14:02
*** Dinesh_Bhor has quit IRC14:04
*** d0ugal_ has joined #openstack-sdks14:04
*** d0ugal has quit IRC14:05
*** dave-mccowan has quit IRC14:20
openstackgerritDean Troyer proposed openstack/cliff master: Add OSC functional-tips job to check pipeline  https://review.openstack.org/51572514:26
openstackgerritVladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin  https://review.openstack.org/51269914:44
*** e0ne has quit IRC14:45
openstackgerritVladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI  https://review.openstack.org/51573014:45
*** LindaWang1 has joined #openstack-sdks14:51
*** LindaWang has quit IRC14:53
*** LindaWang1 is now known as LindaWang14:53
*** e0ne has joined #openstack-sdks14:53
*** e0ne has quit IRC14:53
*** e0ne has joined #openstack-sdks14:54
*** e0ne has quit IRC14:54
*** bobh has joined #openstack-sdks14:55
openstackgerritSlawek Kaplonski proposed openstack/python-openstackclient master: Remove convertion of Neutron Quota to dict  https://review.openstack.org/51573514:55
openstackgerritDean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests  https://review.openstack.org/51573614:55
*** e0ne has joined #openstack-sdks14:55
openstackgerritDean Troyer proposed openstack/python-openstackclient master: Add missing parameters on openstack server rescue  https://review.openstack.org/51339314:55
*** e0ne has quit IRC14:56
*** e0ne has joined #openstack-sdks14:56
*** e0ne has quit IRC14:57
*** bobh has quit IRC14:58
openstackgerritVladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin  https://review.openstack.org/51269915:00
openstackgerritVladyslav Drok proposed openstack/osc-lib master: Allow to use the none auth plugin  https://review.openstack.org/51269915:02
openstackgerritVladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI  https://review.openstack.org/51573015:03
fungidtroyer: thanks, i'll just ignore the e-mail in that case if it looks from logs to have probably been the same individual15:05
*** marst has quit IRC15:06
*** marst has joined #openstack-sdks15:06
*** dave-mccowan has joined #openstack-sdks15:11
*** dave-mccowan has quit IRC15:21
*** salv-orlando has quit IRC15:22
*** salv-orlando has joined #openstack-sdks15:23
*** slaweq_ has quit IRC15:25
*** salv-orlando has quit IRC15:27
*** LindaWang has quit IRC15:31
*** rabel has joined #openstack-sdks15:33
openstackgerritDean Troyer proposed openstack/osc-lib master: Consume the devstack functional jobs from OSC  https://review.openstack.org/51550315:35
openstackgerritDean Troyer proposed openstack/osc-lib master: Consume the devstack functional jobs from OSC  https://review.openstack.org/51550315:36
*** sheel has quit IRC15:41
openstackgerritVladyslav Drok proposed openstack/keystoneauth master: Make none auth usable in CLI  https://review.openstack.org/51573015:46
*** dave-mccowan has joined #openstack-sdks16:04
kuzkogood day everyone ! is sir Mordred here?16:18
*** rajathagasthya has joined #openstack-sdks16:19
kuzkomordred : 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-sdks16:21
*** salv-orlando has joined #openstack-sdks16:23
*** dave-mccowan has quit IRC16:26
*** salv-orlando has quit IRC16:27
*** ragasthya has joined #openstack-sdks16:28
*** rajathagasthya has quit IRC16:29
*** dtantsur is now known as dtantsur|afk16:36
*** rabel has quit IRC16:39
*** dave-mccowan has joined #openstack-sdks16:50
*** ralonsoh has quit IRC17:00
*** dave-mccowan has quit IRC17:03
*** fzdarsky is now known as fzdarsky|afk17:03
*** dave-mccowan has joined #openstack-sdks17:03
*** Matias has joined #openstack-sdks17:05
*** dave-mccowan has quit IRC17:29
openstackgerritDean Troyer proposed openstack/python-openstackclient master: Zuul job updates  https://review.openstack.org/51579417:43
openstackgerritDean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests  https://review.openstack.org/51573617:45
*** e0ne has quit IRC18:15
*** salv-orlando has joined #openstack-sdks18:24
openstackgerritMerged openstack/python-openstackclient master: Add missing parameters on openstack server rescue  https://review.openstack.org/51339318:29
*** salv-orlando has quit IRC18:29
*** dave-mccowan has joined #openstack-sdks18:38
*** dave-mccowan has quit IRC18:44
*** e0ne has joined #openstack-sdks19:29
*** e0ne has quit IRC19:30
*** dave-mccowan has joined #openstack-sdks19:37
*** dave-mccowan has quit IRC19:49
*** bobh has joined #openstack-sdks20:02
*** bobh has quit IRC20:04
*** bobh has joined #openstack-sdks20:05
*** bobh has quit IRC20:09
openstackgerritDean Troyer proposed openstack/python-openstackclient master: Add server rescue unit tests  https://review.openstack.org/51573620:19
*** salv-orlando has joined #openstack-sdks20:25
*** salv-orlando has quit IRC20:29
*** dave-mccowan has joined #openstack-sdks20:33
*** salv-orlando has joined #openstack-sdks20:35
*** dave-mccowan has quit IRC20:38
openstackgerritDean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job  https://review.openstack.org/51592920:45
*** ragasthya has quit IRC20:49
*** marst has quit IRC21:15
openstackgerritDean Troyer proposed openstack/cliff master: Consume the OSC unit-tips job  https://review.openstack.org/51592921:49
*** salv-orlando has quit IRC21:50
*** salv-orlando has joined #openstack-sdks21:50
*** salv-orlando has quit IRC21:55
*** figleaf is now known as edleafe22:01
*** salv-orlando has joined #openstack-sdks22:03
*** dave-mccowan has joined #openstack-sdks22:14
*** dave-mccowan has quit IRC22:24
*** salv-orlando has quit IRC22:27
*** salv-orlando has joined #openstack-sdks22:28
*** salv-orlando has quit IRC22:35
*** salv-orlando has joined #openstack-sdks22:36
*** salv-orlando has quit IRC22:40
*** sdague has quit IRC22:50
*** rajathagasthya has joined #openstack-sdks22:51
*** ragasthya has joined #openstack-sdks22:55
*** rajathagasthya has quit IRC22:56
openstackgerritLin Yang proposed openstack/python-openstackclient master: Add python-rsdclient into plugin list  https://review.openstack.org/51168323:00
*** cdent has quit IRC23:19

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!