Wednesday, 2020-04-01

*** dave-mccowan has quit IRC01:01
*** zaneb has quit IRC03:49
*** zaneb has joined #openstack-oslo03:54
*** larainema has joined #openstack-oslo05:31
*** irclogbot_0 has quit IRC06:49
*** jhesketh has quit IRC06:52
*** irclogbot_1 has joined #openstack-oslo06:53
*** irclogbot_1 has quit IRC06:53
*** jhesketh has joined #openstack-oslo06:53
*** tonyb has quit IRC06:54
*** irclogbot_0 has joined #openstack-oslo06:54
*** tonyb has joined #openstack-oslo06:59
*** rcernin has quit IRC07:15
*** tosky has joined #openstack-oslo07:32
*** rpittau|afk is now known as rpittau07:37
*** ralonsoh has joined #openstack-oslo07:55
*** tkajinam has quit IRC08:18
openstackgerritAndreas Jaeger proposed openstack/osprofiler master: Update hacking for Python3  https://review.opendev.org/71652909:19
openstackgerritMerged openstack/oslo.versionedobjects master: Use unittest.mock instead of third party mock  https://review.opendev.org/71638309:52
*** Andreas681 has joined #openstack-oslo10:15
Andreas681How can I test a policy from command-line? Lets say I want to check this policy: `'identity:delete_domain'10:16
*** rpittau is now known as rpittau|bbl10:16
Andreas681I should add that I don't have a `policy.yaml`-file since it's all embedded10:17
Andreas681something like: `oslopolicy-checker <something> <something>`10:18
*** rcernin has joined #openstack-oslo10:34
Andreas681And another question: If i run: `oslopolicy-sample-generator --namespace keystone --output-file policy.yaml`10:37
Andreas681and make a change in that file, lets say i change:10:38
Andreas681"identity:update_domain": "role:admin and system_scope:all"10:38
Andreas681to this:10:38
Andreas681"identity:update_domain": ""10:38
Andreas681And then i re-run this command: `oslopolicy-sample-generator --namespace keystone --output-file policy.yaml`10:39
Andreas681Then it will override the policy I just changed10:39
Andreas681How do I prevent this?10:41
openstackgerritMerged openstack/oslo.rootwrap master: Use unittest.mock instead of third party mock  https://review.opendev.org/71640111:33
*** raildo has joined #openstack-oslo11:56
openstackgerritHervé Beraud proposed openstack/oslo-cookiecutter master: trivial: refresh template with recent best practices  https://review.opendev.org/70718011:56
*** rpittau|bbl is now known as rpittau12:07
*** dmellado has quit IRC12:15
*** Andreas681 has quit IRC12:23
*** dmellado has joined #openstack-oslo12:23
*** dave-mccowan has joined #openstack-oslo12:49
*** dave-mccowan has quit IRC12:54
openstackgerritAlan Bishop proposed openstack/tooz master: Add TLS support in etcd3 and etcd3gw drivers  https://review.opendev.org/71053913:57
openstackgerritElod Illes proposed openstack/tooz stable/stein: [stable-only] Cap stestr for python 2  https://review.opendev.org/71661014:40
smcginnisbnemec: Did we want to go the route of getting an exception to get these oslo patches out: https://review.opendev.org/#/q/status:open+branch:master+topic:unittest.mock16:05
smcginnisOr revert the drop of mock in oslotest?16:06
bnemecsmcginnis: I've been debating that. From an Oslo perspective it's pretty safe to just merge the fixes to all our libraries, but I don't feel great about the possibility of breaking other projects at this point in the cycle.16:09
smcginnisbnemec: On the plus side, once oslo is updated, any project breakage should be easily addressed in those projects.16:11
smcginnisIt might highlight if they've been using mock but not including it in their own requirements, relying on indirect dependencies.16:11
smcginnisBut yeah, wish we would have discovered this a milestone or two ago.16:12
bnemecYeah, it's not hard to fix, but by the time you notice the problem, figure out what's wrong, and get a fix through the gate you've probably lost a day.16:14
*** rpittau is now known as rpittau|afk16:15
bnemecI guess I'm leaning revert as the safest option. It's not like third-party mock was broken. At worst it's one already-existing dependency that you might no longer need.16:16
smcginnisYeah. And it's a test only thing.16:17
bnemecIn case Andreas681 looks at the logs later, I think what he's looking for is oslopolicy-policy-generator: https://github.com/openstack/oslo.policy/blob/master/oslo_policy/generator.py#L28116:37
bnemecIt will respect overrides.16:37
bnemecUnfortunately it's not documented. :-(16:37
* bnemec opens a bug16:37
openstackgerritMerged openstack/oslo-cookiecutter master: trivial: refresh template with recent best practices  https://review.opendev.org/70718017:23
openstackgerritElod Illes proposed openstack/tooz stable/stein: [stable-only] Cap stestr for python 2 and unblock gate  https://review.opendev.org/71661017:32
openstackgerritRadosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend  https://review.opendev.org/71247917:52
*** gmann is now known as gmann_lunch17:56
openstackgerritRadosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend  https://review.opendev.org/71247918:13
openstackgerritRadosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend  https://review.opendev.org/71247918:26
openstackgerritMerged openstack/tooz master: Add TLS support in etcd3 and etcd3gw drivers  https://review.opendev.org/71053918:27
*** gmann_lunch is now known as gmann18:28
openstackgerritRadosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend  https://review.opendev.org/71247918:41
*** larainema has quit IRC18:46
*** ralonsoh has quit IRC19:28
*** Andreas681 has joined #openstack-oslo19:33
Andreas681bnemec Thanks for reply, I'll investigate further into this :)19:35
Andreas681It says: `The path of a file to output to. stdout used if None`19:36
Andreas681instead of the output going to stdout, how can I "redirect" the output to an object, for example, hm.19:39
Andreas681Basically what I want to do is; list all the configured policies, make modification(s) to the policies, list the policies again with the modification(s) made. All without ever having having a `policy.yaml`-file in the system to deal with, but instead use embedded code. If that is even possible with the current `oslo.policy`-module?19:48
*** Andreas681 has quit IRC19:55
bnemecI don't think oslo.policy supports non-file sources, so I doubt it. You could possibly modify one of the tools to take input from stdin though.19:58
*** melwitt has quit IRC22:08
*** aspiers has quit IRC22:08
*** fnordahl has quit IRC22:08
*** aspiers has joined #openstack-oslo22:13
*** melwitt has joined #openstack-oslo22:50
*** tkajinam has joined #openstack-oslo22:55
*** tosky has quit IRC23:03

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