Thursday, 2020-06-04

*** hamalq has quit IRC00:01
openstackgerritmelissaml proposed openstack/oslo.versionedobjects master: Remove translation sections from setup.cfg  https://review.opendev.org/72835400:41
*** rcernin has quit IRC01:27
*** rcernin has joined #openstack-oslo01:30
*** rcernin has quit IRC02:37
*** rcernin has joined #openstack-oslo03:37
openstackgerritmelissaml proposed openstack/oslo.utils master: Fix pygments style  https://review.opendev.org/73343506:09
openstackgerritmelissaml proposed openstack/oslo.reports master: Fix pygments style  https://review.opendev.org/73343606:14
openstackgerritmelissaml proposed openstack/oslo.cache master: Fix pygments style  https://review.opendev.org/73344006:26
openstackgerritmelissaml proposed openstack/oslo.context master: Fix pygments style  https://review.opendev.org/73344106:34
*** redrobot has quit IRC06:39
openstackgerritmelissaml proposed openstack/oslo.privsep master: Fix pygments style  https://review.opendev.org/73344506:46
openstackgerritmelissaml proposed openstack/oslo.serialization master: Fix pygments style  https://review.opendev.org/73344706:50
*** jaosorior has quit IRC07:00
openstackgerritmelissaml proposed openstack/oslo.service master: Fix pygments style  https://review.opendev.org/73345207:01
*** jaosorior has joined #openstack-oslo07:06
openstackgerritmelissaml proposed openstack/oslo.tools master: Fix pygments style  https://review.opendev.org/73345507:15
*** rcernin has quit IRC07:15
openstackgerritmelissaml proposed openstack/oslo.db master: Fix pygments style  https://review.opendev.org/73345607:17
*** rcernin has joined #openstack-oslo07:20
*** rcernin has quit IRC07:21
*** rcernin has joined #openstack-oslo07:21
openstackgerritmelissaml proposed openstack/oslo.middleware master: Fix pygments style  https://review.opendev.org/73345807:25
openstackgerritmelissaml proposed openstack/oslo.messaging master: Fix pygments style  https://review.opendev.org/73346007:29
*** ralonsoh has joined #openstack-oslo07:32
openstackgerritmelissaml proposed openstack/oslo.policy master: Fix pygments style  https://review.opendev.org/73346307:32
openstackgerritmelissaml proposed openstack/oslo.reports master: Fix pygments style  https://review.opendev.org/73346807:41
*** rcernin has quit IRC07:41
*** tosky has joined #openstack-oslo07:46
*** rpittau|afk is now known as rpittau07:50
openstackgerritmelissaml proposed openstack/oslo.concurrency master: Fix pygments style  https://review.opendev.org/73347307:55
openstackgerritmelissaml proposed openstack/oslo.config master: Fix pygments style  https://review.opendev.org/73347408:02
*** dtantsur|afk is now known as dtantsur08:13
openstackgerritIldiko Vancsa proposed openstack/openstackdocstheme master: DNM - Cross-job to test changes with starlingxdocs theme  https://review.opendev.org/73348308:45
*** tkajinam has quit IRC08:48
openstackgerritIldiko Vancsa proposed openstack/openstackdocstheme master: DNM - Cross-job to test changes with starlingxdocs theme  https://review.opendev.org/73348309:08
openstackgerritIldiko Vancsa proposed openstack/openstackdocstheme master: DNM - Cross-job to test changes with starlingxdocs theme  https://review.opendev.org/73348309:31
*** geguileo has quit IRC09:56
*** geguileo has joined #openstack-oslo09:58
*** rpittau is now known as rpittau|bbl10:02
*** hemna has quit IRC10:26
*** hemna has joined #openstack-oslo10:33
*** rpittau|bbl is now known as rpittau11:35
openstackgerritIldiko Vancsa proposed openstack/openstackdocstheme master: DNM - Cross-job to test changes with starlingxdocs theme  https://review.opendev.org/73348311:36
openstackgerritIldiko Vancsa proposed openstack/openstackdocstheme master: DNM - Cross-job to test changes with starlingxdocs theme  https://review.opendev.org/73348311:42
*** raildo has joined #openstack-oslo11:55
*** kgiusti has joined #openstack-oslo12:16
*** ianychoi_ has joined #openstack-oslo12:32
*** csatari_ has joined #openstack-oslo12:33
*** hemna_ has joined #openstack-oslo12:34
*** ralonsoh_ has joined #openstack-oslo12:34
*** dmellado_ has joined #openstack-oslo12:35
*** benj_- has joined #openstack-oslo12:36
*** zzzeek has quit IRC12:36
*** dmellado has quit IRC12:36
*** csatari has quit IRC12:36
*** hemna has quit IRC12:36
*** zigo has quit IRC12:36
*** csatari_ is now known as csatari12:36
*** benj_ has quit IRC12:36
*** tonyb has quit IRC12:36
*** ralonsoh has quit IRC12:36
*** elod has quit IRC12:36
*** ianychoi has quit IRC12:36
*** benj_- is now known as benj_12:36
*** elod_ has joined #openstack-oslo12:37
*** dmellado_ is now known as dmellado12:37
*** zzzeek has joined #openstack-oslo12:38
*** zigo_ has joined #openstack-oslo12:46
*** tkajinam has joined #openstack-oslo13:02
*** Guest10631 has joined #openstack-oslo13:04
*** Guest10631 is now known as redrobot13:05
*** elod_ is now known as elod13:17
*** rpittau is now known as rpittau|brb13:24
*** ralonsoh_ is now known as ralonsoh14:00
ralonsohhi! I have a question about privsep. I'm trying to execute some methods using a privsep decorator14:00
*** rpittau|brb is now known as rpittau14:01
ralonsohI'm decorating some "sysctl" commands, to define or to read some parameters14:01
ralonsohbut I found that, in my system, those commands succeed regardless of the linux cap I set14:01
ralonsohfor example, "sysctl -w net.ipv4.conf.all.send_redirects=1" is executed correctly with the "stack" user14:02
ralonsohif I execute this in a shell, I have14:02
ralonsohsysctl: permission denied on key 'net.ipv4.conf.all.send_redirects'14:02
ralonsohcan you guess what is wrong in my system? or why this is happening?14:03
ralonsohbtw, this is NOT happening in the CI14:03
bnemecralonsoh: How are you configuring the priv_context?14:20
ralonsohbnemec, very similar to the unique priv_context we have in Neutron14:21
ralonsohthis is the new one14:21
ralonsohsysctl_cmd = priv_context.PrivContext(14:21
ralonsoh    __name__,14:21
ralonsoh    cfg_section='privsep',14:21
ralonsoh    pypath=__name__ + '.sysctl_cmd',14:21
ralonsoh    capabilities=[caps.CAP_SYS_ADMIN,  # To be able to access to a namespace14:21
ralonsoh                  caps.CAP_NET_ADMIN]14:21
ralonsoh)14:21
ralonsohsame as https://github.com/openstack/neutron/blob/master/neutron/privileged/__init__.py14:22
bnemecAre you expecting the sysctls to not work with those? CAP_SYS_ADMIN and CAP_NET_ADMIN are pretty permissive.14:24
ralonsohbnemec, no no, I'm expecting sysctl to work with those ones14:25
ralonsohbnemec, but I tried to deleted them and add a trivial one, not related14:25
ralonsohand the command is executed correctly14:25
ralonsohfor example, CAP_SYSLOG14:26
bnemecAh. That sounds bad. :-(14:26
ralonsohyeah...14:26
ralonsohbut I think this is somthing  in my system14:26
ralonsohbecause in my system all UTs passed14:26
ralonsohbut not in the CI14:26
ralonsoh(actually I'm executing sysctl commands in UTs by mistake)14:27
ralonsohwithout the correct permissions14:27
bnemecIs this code available somewhere that I could try it?14:30
ralonsohbnemec, yes, one sec14:34
ralonsohbnemec, https://review.opendev.org/#/c/733250/14:35
ralonsohbnemec, if you use sysctl with a namespace (you have only CAP_NET_ADMIN), this should fail14:35
openstackgerritMerged openstack/oslo.messaging stable/ussuri: Print warning message when connection running out  https://review.opendev.org/73176114:41
openstackgerritBen Nemec proposed openstack/oslo.privsep master: Add functional test for calling sysctl  https://review.opendev.org/73363314:44
bnemecralonsoh: I can reproduce that behavior in a minimal functional test ^14:44
bnemecI'm curious what that does in the gate.14:44
bnemecOh wait, the functional tests don't run in the gate. :-/14:45
ralonsohbnemec, so is this method passing in you dev environment?14:45
ralonsohhahaha14:45
ralonsohbnemec, we can run this in Neutron CI14:45
ralonsohI can push a patch to test this14:45
bnemecralonsoh: Yeah, I'm seeing the same thing as you. I run it as a regular user in shell and it fails, but when I run it under privsep, even with minimal permissions, it works.14:46
ralonsohuffff14:46
bnemecI wonder if it's because of subprocess.14:46
bnemecThat would spawn a new process as root, but it won't drop capabilities because it isn't a privsep process.14:47
ralonsohbnemec, btw, I'm wrapping processutils.execute14:47
bnemecYeah, that calls subprocess under the covers.14:47
ralonsohI though that was calling popen14:48
ralonsohyour are right14:48
ralonsohobj = subprocess.Popen(cmd, ...14:48
*** Luzi has joined #openstack-oslo15:05
*** Luzi has quit IRC15:05
bnemecOkay, it's not subprocess. I get the same thing if I write directly to /proc/sys/net/ipv4/conf/all/send_redirects in-process.15:08
ralonsohright, and just writing a file15:12
bnemecI wonder if it's because that's just a file operation so all it checks is the file permissions.15:15
ralonsohbnemec, but not under /proc/sys15:16
openstackgerritHervé Beraud proposed openstack/oslo.service master: [WIP] Fix SSL tests for wsgi module under python 3  https://review.opendev.org/73088415:18
bnemecHmm, interesting. If I create a file in /root, I can write to it even with no capabilities. But I can't create the file if it doesn't already exist.15:20
ralonsohI've tried with capsh with no luck15:21
ralonsohI can't test it in my dev env15:22
ralonsohjust to check what caps I need for any operation15:22
openstackgerritBen Nemec proposed openstack/oslo-specs master: policy: Migrate Default Policy Format from JSON to YAML  https://review.opendev.org/73365015:49
openstackgerritHervé Beraud proposed openstack/oslo.service master: [WIP] Fix SSL tests for wsgi module under python 3  https://review.opendev.org/73088415:52
openstackgerritHervé Beraud proposed openstack/oslo.service master: [WIP] Fix SSL tests for wsgi module under python 3  https://review.opendev.org/73088415:53
openstackgerritBen Nemec proposed openstack/oslo-specs master: policy: Migrate Default Policy Format from JSON to YAML  https://review.opendev.org/73365016:00
*** tkajinam has quit IRC16:05
*** ebbex has joined #openstack-oslo16:14
*** hamalq has joined #openstack-oslo16:18
*** hamalq has quit IRC16:18
*** hamalq has joined #openstack-oslo16:19
*** rpittau is now known as rpittau|afk16:31
*** dtantsur is now known as dtantsur|afk16:33
*** pmatulis has quit IRC16:49
*** pmatulis has joined #openstack-oslo16:49
*** moguimar has quit IRC17:47
*** ralonsoh has quit IRC18:07
*** raildo has quit IRC22:18
*** dougwig has quit IRC22:35
*** samueldmq has quit IRC22:35
*** dawzon has quit IRC22:35
*** csatari has quit IRC22:35
*** jungleboyj has quit IRC22:35
*** knikolla has quit IRC22:36
*** rpittau|afk has quit IRC22:36
*** mnaser has quit IRC22:36
*** larainema has quit IRC22:36
*** jberg-dev has quit IRC22:36
*** mnasiadka has quit IRC22:37
*** gagehugo has quit IRC22:37
*** andrewbogott has quit IRC22:37
*** Nizars has quit IRC22:37
*** TheJulia has quit IRC22:37
*** jberg-dev has joined #openstack-oslo22:37
*** gagehugo has joined #openstack-oslo22:37
*** jrosser has quit IRC22:37
*** johnsom has quit IRC22:37
*** gmann has quit IRC22:37
*** vdrok has quit IRC22:37
*** rm_work has quit IRC22:38
*** larainema has joined #openstack-oslo22:38
*** Nizars has joined #openstack-oslo22:38
*** gmann has joined #openstack-oslo22:38
*** dougwig has joined #openstack-oslo22:38
*** knikolla has joined #openstack-oslo22:39
*** andrewbogott has joined #openstack-oslo22:39
*** mnasiadka has joined #openstack-oslo22:39
*** csatari has joined #openstack-oslo22:39
*** dawzon has joined #openstack-oslo22:40
*** jrosser has joined #openstack-oslo22:41
*** mnaser has joined #openstack-oslo22:41
*** TheJulia has joined #openstack-oslo22:41
*** johnsom has joined #openstack-oslo22:43
*** rcernin has joined #openstack-oslo22:48
*** rm_work has joined #openstack-oslo22:51
*** jungleboyj has joined #openstack-oslo22:53
*** vdrok has joined #openstack-oslo22:54
*** tkajinam has joined #openstack-oslo22:56
*** samueldmq has joined #openstack-oslo23:02
*** rpittau|afk has joined #openstack-oslo23:04
*** hamalq has quit IRC23:22
*** tosky has quit IRC23:35
*** rcernin has quit IRC23:49

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!