Friday, 2020-03-27

*** eandersson8 has joined #openstack-oslo01:00
*** eandersson has quit IRC01:01
*** eandersson8 is now known as eandersson01:01
*** ralonsoh has joined #openstack-oslo07:08
*** tkajinam has quit IRC08:18
*** rpittau|afk is now known as rpittau08:23
*** tosky has joined #openstack-oslo09:29
*** takamatsu has joined #openstack-oslo09:38
*** zzzeek has quit IRC10:04
*** zzzeek has joined #openstack-oslo10:05
*** tkajinam has joined #openstack-oslo11:04
*** rpittau is now known as rpittau|bbl11:32
*** takamatsu has quit IRC11:56
*** raildo has joined #openstack-oslo12:25
*** Andreas681 has joined #openstack-oslo12:56
Andreas681I'm trying this:12:57
Andreas681from oslo_policy import generator12:57
Andreas681And i'm trying to get it formated to this12:57
Andreas681# DEPRECATED "identity:get_user":"rule:admin_or_owner" has been12:57
Andreas681HEAD  /v3/users12:57
Andreas681How do I go about to format and sort it to this?12:58
*** openstackstatus has quit IRC13:01
*** openstack has joined #openstack-oslo13:05
*** ChanServ sets mode: +o openstack13:05
*** rpittau|bbl is now known as rpittau13:10
*** jberg-dev has joined #openstack-oslo13:16
*** zzzeek has quit IRC13:18
*** zzzeek has joined #openstack-oslo13:20
*** rcernin has quit IRC13:23
*** tkajinam has quit IRC13:25
Andreas681{'keystone': <itertools.chain object at 0x7f9b9e3b7c50>}13:30
Andreas681Need to interate and format it somehow13:30
openstackgerritDaniel Bengtsson proposed openstack/oslo.serialization master: Remove the yamlutils module.  https://review.opendev.org/70736613:33
*** Andreas681 has quit IRC13:41
*** Andreas681 has joined #openstack-oslo13:51
Andreas681oslo_policy.generator.get_policies_dict(namespaces)13:52
Andreas681Returns13:52
*** bnemec is now known as beekneemech14:37
beekneemechAndreas681: I think some of your messages are missing or got delayed. Can you maybe paste the incorrect output you're seeing in http://paste.openstack.org/ ?14:40
beekneemechandrewbogott: There's no policy channel specifically, but the Keystone folks are the ones who drove the scope work so you might want to try pinging them in #openstack-keystone.14:41
andrewbogottbeekneemech: thanks!14:41
Andreas681beekneemech http://paste.openstack.org/show/791230/14:47
Andreas681I guess `generator.get_policies_dict(["keystone"])` doesn't give Documented policies with descriptions etc14:49
*** Andreas681 has quit IRC15:05
*** Andreas681 has joined #openstack-oslo15:06
beekneemechAndreas681: I think what you're seeing there is just the output you get from __str__: https://github.com/openstack/oslo.policy/blob/master/oslo_policy/policy.py#L113415:17
beekneemechIf you log i.description I think you'll find that the description is there, it's just not in the default str cast.15:17
*** Andreas681 has quit IRC15:19
*** Andreas681 has joined #openstack-oslo15:38
Andreas681beekneemech Hmmmm.. Let me try15:42
Andreas681beekneemech intresting, yes.. this gives:15:46
Andreas6812020-03-27 15:42:48.397736 WARNING:policies_plugin.api.rest.policy_client:Show access rule details.15:46
Andreas681That's for these 3 policies15:47
Andreas681WARNING:policies_plugin.api.rest.policy_client:"identity:get_access_rule": "(role:reader and system_scope:all) or user_id:%(target.user.id)s"15:47
Andreas681user_id:%(targetWARNING:policies_plugin.api.rest.policy_client:"identity:delete_access_rule": "(role:admin and system_scope:all) or user_id:%(target.user.id)s"15:47
Andreas681Are there more details for each policy, or is that it?15:47
beekneemechAndreas681: Yeah, that's the only description for that rule: https://github.com/openstack/keystone/blob/master/keystone/common/policies/access_rule.py#L3715:58
beekneemechIf you want to see what the descriptions are without digging into the code, keystone has docs for all of their rules already: https://docs.openstack.org/keystone/train/configuration/policy.html15:58
beekneemechAlso, any of the fields from the rule object should be available when you're iterating: https://github.com/openstack/oslo.policy/blob/master/oslo_policy/policy.py#L109816:00
*** sean-k-mooney has quit IRC16:02
*** sean-k-mooney has joined #openstack-oslo16:03
Andreas681I'm building a policy horizon-panel, to get a better visualization of all the policies, so I want as much information of each policy as possible. Thanks for feedback :)16:03
beekneemechCool, sounds interesting. Let us know if you have any more questions.16:07
*** melwitt is now known as jgwentworth16:12
openstackgerritmelanie witt proposed openstack/oslo.db master: DNM: investigating bug 1844929  https://review.opendev.org/71480216:12
openstackbug 1844929 in OpenStack Compute (nova) "grenade jobs failing due to "Timed out waiting for response from cell" in scheduler" [High,Confirmed] https://launchpad.net/bugs/184492916:12
openstackgerritmelanie witt proposed openstack/oslo.db stable/train: DNM: investigating bug 1844929  https://review.opendev.org/71483316:13
openstackbug 1844929 in OpenStack Compute (nova) "grenade jobs failing due to "Timed out waiting for response from cell" in scheduler" [High,Confirmed] https://launchpad.net/bugs/184492916:13
Andreas681beekneemech Are there any function or method in the `oslo_policy`-module to make it easier iterate all of the fields in the object?16:18
Andreas681like the one you sent: https://github.com/openstack/keystone/blob/master/keystone/common/policies/access_rule.py#L3716:18
Andreas681I want name, check_str, scope_types, description, operations16:19
Andreas681or do I have to come up with a nestled loops '=D16:20
beekneemechAndreas681: I don't think there's any way to iterate, but all of those things should be available from the rule objects.16:22
beekneemechYou can see how we're processing a rule in this function: https://github.com/openstack/oslo.policy/blob/master/oslo_policy/generator.py#L14216:22
Andreas681Thanks!16:26
*** hemna is now known as pewp16:27
*** pewp is now known as _pewp_16:30
*** _pewp_ is now known as hemna16:34
*** hemna is now known as _pewp_16:35
*** _pewp_ is now known as hemna16:37
*** smcginnis has quit IRC16:50
openstackgerritMonty Taylor proposed openstack/pbr master: Map requires-python to python-requires  https://review.opendev.org/71548417:00
*** Andreas681 has quit IRC17:40
openstackgerritAndreas Jaeger proposed openstack/oslo.i18n master: Update hacking for Python3  https://review.opendev.org/71549718:03
openstackgerritAndreas Jaeger proposed openstack/oslo.concurrency master: Update hacking for Python3  https://review.opendev.org/71549918:07
*** smcginnis has joined #openstack-oslo18:08
openstackgerritAndreas Jaeger proposed openstack/oslo.context master: Update hacking for Python3  https://review.opendev.org/71550218:10
openstackgerritAndreas Jaeger proposed openstack/oslo.cache master: Update hacking for Python3  https://review.opendev.org/71550318:11
openstackgerritAndreas Jaeger proposed openstack/oslo.db master: Update hacking for Python3  https://review.opendev.org/71550418:12
openstackgerritAndreas Jaeger proposed openstack/oslo.limit master: Update hacking for Python3  https://review.opendev.org/71550718:15
openstackgerritGhanshyam Mann proposed openstack/pbr master: Replace old requires-python with python-requires  https://review.opendev.org/71550918:22
openstackgerritAndreas Jaeger proposed openstack/oslo.messaging master: Update hacking for Python3  https://review.opendev.org/71551018:28
openstackgerritAndreas Jaeger proposed openstack/oslo.cache master: Update hacking for Python3  https://review.opendev.org/71550318:34
openstackgerritAndreas Jaeger proposed openstack/oslo.policy master: Update hacking for Python3  https://review.opendev.org/71551518:44
openstackgerritAndreas Jaeger proposed openstack/oslo.vmware master: Update hacking for Python3  https://review.opendev.org/71552018:51
*** rpittau is now known as rpittau|afk18:57
*** gmann is now known as gmann_lunch18:59
*** ralonsoh has quit IRC19:16
openstackgerritAndreas Jaeger proposed openstack/oslo.i18n master: Update hacking for Python3  https://review.opendev.org/71549719:24
*** gmann_lunch is now known as gmann19:29
openstackgerritAndreas Jaeger proposed openstack/oslo.db master: Update hacking for Python3  https://review.opendev.org/71550419:35
*** whoami-rajat has quit IRC19:44
*** whoami-rajat has joined #openstack-oslo19:44
*** iurygregory has quit IRC19:46
openstackgerritJohn Eckersberg proposed openstack/tooz master: Add TLS support in etcd3 and etcd3gw drivers  https://review.opendev.org/71053919:57
openstackgerritJohn Eckersberg proposed openstack/tooz master: Add TLS support in etcd3 and etcd3gw drivers  https://review.opendev.org/71053920:02
openstackgerritAndreas Jaeger proposed openstack/futurist master: Update hacking for Python3  https://review.opendev.org/71553420:05
openstackgerritAndreas Jaeger proposed openstack/debtcollector master: Update hacking for Python3  https://review.opendev.org/71553620:06
openstackgerritAndreas Jaeger proposed openstack/pycadf master: Update hacking for Python3  https://review.opendev.org/71553920:07
openstackgerritAndreas Jaeger proposed openstack/automaton master: Update hacking for Python3  https://review.opendev.org/71554020:11
*** raildo has quit IRC22:02

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