*** dave-mccowan has quit IRC | 01:01 | |
*** zaneb has quit IRC | 03:49 | |
*** zaneb has joined #openstack-oslo | 03:54 | |
*** larainema has joined #openstack-oslo | 05:31 | |
*** irclogbot_0 has quit IRC | 06:49 | |
*** jhesketh has quit IRC | 06:52 | |
*** irclogbot_1 has joined #openstack-oslo | 06:53 | |
*** irclogbot_1 has quit IRC | 06:53 | |
*** jhesketh has joined #openstack-oslo | 06:53 | |
*** tonyb has quit IRC | 06:54 | |
*** irclogbot_0 has joined #openstack-oslo | 06:54 | |
*** tonyb has joined #openstack-oslo | 06:59 | |
*** rcernin has quit IRC | 07:15 | |
*** tosky has joined #openstack-oslo | 07:32 | |
*** rpittau|afk is now known as rpittau | 07:37 | |
*** ralonsoh has joined #openstack-oslo | 07:55 | |
*** tkajinam has quit IRC | 08:18 | |
openstackgerrit | Andreas Jaeger proposed openstack/osprofiler master: Update hacking for Python3 https://review.opendev.org/716529 | 09:19 |
---|---|---|
openstackgerrit | Merged openstack/oslo.versionedobjects master: Use unittest.mock instead of third party mock https://review.opendev.org/716383 | 09:52 |
*** Andreas681 has joined #openstack-oslo | 10:15 | |
Andreas681 | How 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|bbl | 10:16 | |
Andreas681 | I should add that I don't have a `policy.yaml`-file since it's all embedded | 10:17 |
Andreas681 | something like: `oslopolicy-checker <something> <something>` | 10:18 |
*** rcernin has joined #openstack-oslo | 10:34 | |
Andreas681 | And another question: If i run: `oslopolicy-sample-generator --namespace keystone --output-file policy.yaml` | 10:37 |
Andreas681 | and make a change in that file, lets say i change: | 10:38 |
Andreas681 | "identity:update_domain": "role:admin and system_scope:all" | 10:38 |
Andreas681 | to this: | 10:38 |
Andreas681 | "identity:update_domain": "" | 10:38 |
Andreas681 | And then i re-run this command: `oslopolicy-sample-generator --namespace keystone --output-file policy.yaml` | 10:39 |
Andreas681 | Then it will override the policy I just changed | 10:39 |
Andreas681 | How do I prevent this? | 10:41 |
openstackgerrit | Merged openstack/oslo.rootwrap master: Use unittest.mock instead of third party mock https://review.opendev.org/716401 | 11:33 |
*** raildo has joined #openstack-oslo | 11:56 | |
openstackgerrit | Hervé Beraud proposed openstack/oslo-cookiecutter master: trivial: refresh template with recent best practices https://review.opendev.org/707180 | 11:56 |
*** rpittau|bbl is now known as rpittau | 12:07 | |
*** dmellado has quit IRC | 12:15 | |
*** Andreas681 has quit IRC | 12:23 | |
*** dmellado has joined #openstack-oslo | 12:23 | |
*** dave-mccowan has joined #openstack-oslo | 12:49 | |
*** dave-mccowan has quit IRC | 12:54 | |
openstackgerrit | Alan Bishop proposed openstack/tooz master: Add TLS support in etcd3 and etcd3gw drivers https://review.opendev.org/710539 | 13:57 |
openstackgerrit | Elod Illes proposed openstack/tooz stable/stein: [stable-only] Cap stestr for python 2 https://review.opendev.org/716610 | 14:40 |
smcginnis | bnemec: 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.mock | 16:05 |
smcginnis | Or revert the drop of mock in oslotest? | 16:06 |
bnemec | smcginnis: 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 |
smcginnis | bnemec: On the plus side, once oslo is updated, any project breakage should be easily addressed in those projects. | 16:11 |
smcginnis | It might highlight if they've been using mock but not including it in their own requirements, relying on indirect dependencies. | 16:11 |
smcginnis | But yeah, wish we would have discovered this a milestone or two ago. | 16:12 |
bnemec | Yeah, 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|afk | 16:15 | |
bnemec | I 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 |
smcginnis | Yeah. And it's a test only thing. | 16:17 |
bnemec | In 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#L281 | 16:37 |
bnemec | It will respect overrides. | 16:37 |
bnemec | Unfortunately it's not documented. :-( | 16:37 |
* bnemec opens a bug | 16:37 | |
openstackgerrit | Merged openstack/oslo-cookiecutter master: trivial: refresh template with recent best practices https://review.opendev.org/707180 | 17:23 |
openstackgerrit | Elod Illes proposed openstack/tooz stable/stein: [stable-only] Cap stestr for python 2 and unblock gate https://review.opendev.org/716610 | 17:32 |
openstackgerrit | Radosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend https://review.opendev.org/712479 | 17:52 |
*** gmann is now known as gmann_lunch | 17:56 | |
openstackgerrit | Radosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend https://review.opendev.org/712479 | 18:13 |
openstackgerrit | Radosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend https://review.opendev.org/712479 | 18:26 |
openstackgerrit | Merged openstack/tooz master: Add TLS support in etcd3 and etcd3gw drivers https://review.opendev.org/710539 | 18:27 |
*** gmann_lunch is now known as gmann | 18:28 | |
openstackgerrit | Radosław Piliszek proposed openstack/oslo.cache master: [WIP] Adding functional tests for memcache_pool backend https://review.opendev.org/712479 | 18:41 |
*** larainema has quit IRC | 18:46 | |
*** ralonsoh has quit IRC | 19:28 | |
*** Andreas681 has joined #openstack-oslo | 19:33 | |
Andreas681 | bnemec Thanks for reply, I'll investigate further into this :) | 19:35 |
Andreas681 | It says: `The path of a file to output to. stdout used if None` | 19:36 |
Andreas681 | instead of the output going to stdout, how can I "redirect" the output to an object, for example, hm. | 19:39 |
Andreas681 | Basically 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 IRC | 19:55 | |
bnemec | I 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 IRC | 22:08 | |
*** aspiers has quit IRC | 22:08 | |
*** fnordahl has quit IRC | 22:08 | |
*** aspiers has joined #openstack-oslo | 22:13 | |
*** melwitt has joined #openstack-oslo | 22:50 | |
*** tkajinam has joined #openstack-oslo | 22:55 | |
*** tosky has quit IRC | 23:03 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!