Saturday, 2016-05-07

apuimedobut the ping works00:00
fkautzwere you having problems with iproute2?00:00
fkautzi don't think that uses ioctl, should be using netlink00:00
apuimedofkautz: it was fake iproute2 :P it was busybox00:01
fkautzoh, even worse :p00:01
apuimedocheeky busybox prettending to be other things00:01
fkautzno idea what busybox uses00:01
fkautzwell, busy box is a busy little bee :p00:01
apuimedobanix: I probably need another capability apart from net_admin00:01
apuimedoto modify /sys/class/net00:01
apuimedoI wonder which though00:01
fkautzmaybe net_raw?00:01
apuimedofkautz: no, I think that's just for crafting packets00:03
fkautzand transparent proxying00:04
*** abhiraut has joined #openstack-kuryr00:05
fkautzif you run in privileged, does it still work?00:05
fkautzdocker had problems with /sys being mounted read only in the past00:05
apuimedoI think so00:05
apuimedolet me check00:05
fkautzcould be a regression if it doesn't work00:06
apuimedosame issue00:10
apuimedo:(00:10
openstackgerritAbhishek Raut proposed openstack/kuryr: Eliminate duplicate logic to generate ID's for tests  https://review.openstack.org/31380500:10
apuimedoI'll try to mount it as a volume00:10
fkautzi believe sysfs should be unique for each container00:10
fkautzshouldn't just mount host sysfs00:10
fkautzbut should be ok for testing00:11
fkautzfor non-privileged: sysfs /sys sysfs ro,seclabel,nosuid,nodev,noexec,relatime 0 000:12
*** yamamoto_ has joined #openstack-kuryr00:12
fkautzfor privileged: sysfs on /sys type sysfs (rw,seclabel,nosuid,nodev,noexec,relatime)00:12
apuimedofkautz: curious00:13
fkautzthat's something else we should look at w/privileged containers... apparmor and selinux labels00:13
apuimedowith privileged it writes to it00:13
apuimedobut00:13
apuimedoit still outputs00:13
apuimedo+ echo 000:14
apuimedo/usr/libexec/kuryr/ovs: line 49: echo: write error: Invalid argument00:14
apuimedobut it sets the stp and the fd to 000:14
apuimedo/ # cat /sys/class/net/qbrc5983536-4e/bridge/stp_state00:14
apuimedo000:14
fkautzso the write is successful but still errors?00:14
apuimedono, I think that's stderr from the echo operation00:15
apuimedothe command, I think returns 000:15
apuimedoI can't really make heads or tails of it00:18
apuimedoI see the process exitting with 000:18
apuimedobut at the same time it logs an error00:18
fkautzmmm, a long shot...00:19
fkautzcheck the perms on the file, make sure it is writable by root?00:19
apuimedofkautz: banix: http://paste.openstack.org/show/496404/00:20
apuimedoit is00:20
banixapuimedo: problem solved?00:21
apuimedoI'm not sure00:22
*** abhiraut has quit IRC00:22
apuimedoI see the forward_delay and the stp_state set to 000:22
apuimedobut, as you can see in the latest paste00:22
apuimedoI can still see invalid argument (though the script finishes returning 0)00:22
banixi see00:22
banixmissed the errors00:22
apuimedoand then there's the issue with networkdriver.join00:22
banixno the 404 error is ok00:23
fkautzi have no problems with modifying stp_state in a privileged container by echoing directly to it00:23
banixits from /NetworkDriver.ProgramExternalConnectivity00:23
*** abhiraut has joined #openstack-kuryr00:23
banixkind of newly added to libnetwork api00:23
banixi opened a bug on it the other day00:23
apuimedoah, ok00:23
apuimedo:-)00:23
apuimedofkautz: I wonder if there is another cap that makes docker engine mount it rw00:24
apuimedobanix: thanks, at least I'm not going bonkers00:24
banixjust need to add a couple of noop catchers for thie ProgremEternalConnectivity and the Revoke ExternalConnectivity00:24
apuimedobanix: fkautz: I found it!00:25
apuimedoI know why even in privileged mode I get write error00:25
apuimedobut not when I do it myself on the terminal00:25
fkautzwhat happens if you try using brctl?00:26
fkautzbrctl stp bridge0 100:26
apuimedohttp://paste.openstack.org/show/496405/00:26
banixapuimedo: why? fkautz: that how we had it originally00:26
apuimedobanix: fkautz that would most likely work00:26
apuimedobecause it uses ioctl00:26
apuimedobut some distros don't ship it by default anymore00:27
fkautzwe should be able to find an equivalent netlink command00:27
apuimedoI wonder wtf is the problem with bash00:27
fkautzsome bash implementations drop privileges00:27
apuimedofkautz: if it exists, it will be ultra recent00:27
apuimedofkautz: that's true00:28
fkautzwe could also write a simple ioctl binary to toggle stp00:28
apuimedofkautz: I think it has to do with the redirection00:28
apuimedoactually00:28
fkautzstp is spanning tree00:29
fkautzdo you need it?00:29
apuimedofkautz: nova's binding does set it to 000:30
apuimedoIt could bring problems with the switches, I guess00:30
apuimedobash-4.3# tee /sys/class/net/qbrc5983536-4e/bridge/stp_state00:30
apuimedo000:30
apuimedo000:30
apuimedobash-4.3# cat /sys/class/net/qbrc5983536-4e/bridge/stp_state00:30
apuimedo000:30
apuimedobash-4.3#00:30
apuimedofunnily enough, using tee works :P00:30
fkautzthat's the main problem, you want it disabled unless you introduce switching loops00:30
fkautzlol yea00:31
fkautzecho 0 | tee stp_state :p00:31
apuimedoyes, that's what I do00:31
apuimedo:P00:31
fkautzand that worked? :o00:31
apuimedoit does00:31
fkautzweird00:31
fkautzi think you have a broken echo00:31
apuimedotee is usually coming to the rescue when redirections screw me00:32
fkautzyea, that's likely00:32
apuimedobusybox00:32
apuimedo:P00:32
apuimedoah no00:32
apuimedothat's actually bash00:32
apuimedothe busybox one works00:32
fkautzyea, i was thinking >00:32
apuimedommm00:32
fkautzfoo > redirect-breaks00:32
apuimedoI really wish our scripts would be /bin/sh and not /bin/bash00:33
fkautzwhy not switch them?00:33
apuimedobut I can't force the people to write in that ugly way00:33
fkautzsh is the most portable00:33
fkautznot that bash is particularly bad00:33
apuimedoI know00:33
apuimedoI try not to use the bashisms00:33
fkautzalso, lots of apps broke with dash :x00:33
fkautzeven those pointing to #!/bin/sh00:34
apuimedopeople write in bash nowadays00:34
apuimedonot sh00:34
fkautzapuimedo: so this is for running kuryr in a container?00:36
apuimedoyup00:36
apuimedoIt runs fine00:37
apuimedoit only bothers me to have the privileged00:37
apuimedolet me check with brctl00:37
apuimedothat worked00:41
apuimedobanix: mea culpa!00:41
apuimedoI should not have made you move to sysfs00:42
apuimedobrctl, we're back00:42
apuimedo!00:42
banixgreat!00:43
fkautzbrctl worked with --cap-add=NET_ADMIN00:43
fkautzhttps://www.irccloud.com/pastebin/bg94ROg2/00:44
*** abhiraut has quit IRC00:45
fkautzdefault is off00:45
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr: containerization: Add dockerfile  https://review.openstack.org/27932000:46
apuimedogood00:46
apuimedoso this is ready00:46
apuimedowhen Gal comes back from the weekend we can merge it00:46
apuimedoand have automated builds00:46
fkautz+100:47
apuimedobanix: fkautz: http://paste.openstack.org/show/496406/00:50
apuimedohttps://www.youtube.com/watch?v=Ugpg8XruhVk00:50
fkautz:D00:51
banixcool00:53
apuimedoI'll push it now as kuryr/libnetwork:ovs00:54
apuimedoso people can start using it00:54
apuimedobanix: no changes should be necessary for ovn, right?00:55
banixapuimedo: not that i can think of00:57
*** gangil has quit IRC00:57
apuimedogood00:58
*** abhiraut has joined #openstack-kuryr00:58
*** shashank_hegde has quit IRC01:00
*** abhiraut has quit IRC01:03
*** gangil has joined #openstack-kuryr01:04
*** gangil has quit IRC01:09
apuimedohttps://hub.docker.com/r/kuryr/libnetwork/tags/01:10
apuimedo:-)01:10
*** gangil has joined #openstack-kuryr01:11
banixcool; apuimedo you need to fix a pep8 error in the patch01:11
apuimedo:O01:11
apuimedoI'm a sinner01:11
banix2016-05-07 00:48:51.766 | ./kuryr/server.py:18:1: H306  imports not in alphabetical order (kuryr.common.config, kuryr.app)01:11
apuimedofixed01:12
apuimedothanks banix01:12
apuimedo!01:12
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr: containerization: Add dockerfile  https://review.openstack.org/27932001:13
banixthanks for the docker file!01:13
apuimedo:-)01:13
apuimedoand now. I deserve to hit the bed with my back, and not just with my butt01:13
apuimedofkautz: banix: nighty night!01:13
banixgood night01:13
fkautzgood night!01:14
banixfkautz: where are you located?01:14
fkautznear san francisco01:14
banixcool01:14
fkautzand you?01:14
banixNYC01:14
fkautzvisited there once01:15
fkautzmy university professor was collaborating with nancy lynch who was working out of CUNY and invited me to participate :x01:16
fkautzadvisor*01:16
banixnot a bad pace to visit. same goes for SF01:17
fkautzhttps://en.wikipedia.org/wiki/Nancy_Lynch01:17
fkautzAwards: Dijkstra Prize, Knuth Prize, IEEE Emanuel R. Piore Award, ACM-W Athena Lecturer :o01:17
fkautzyea, visited during a summer, was nice01:18
fkautzSF doesn't matter when you visit01:18
fkautzit's usually the same01:18
fkautzslightly warmer or cooler depending on the year01:18
baniximpressive professor!01:18
banixwell best time for visiting NYC is spring or fall01:18
banixsummers can get pretty uncomfortable01:18
banixand winters you know about :)01:19
fkautzi was coming from texas, so summer visit was a nice reprieve from the heat :p01:19
banixyeah i guess everything is relative :)01:20
fkautztbh, the one thing i miss in nyc manhattan is the great public transportation01:20
fkautzSF is decent, but wasn't as good as nyc01:20
*** gangil has quit IRC01:27
*** yamamoto_ has quit IRC01:32
*** fawadkhaliq has joined #openstack-kuryr02:28
*** fawadkhaliq has quit IRC02:31
*** yamamoto_ has joined #openstack-kuryr02:32
*** yamamoto_ has quit IRC02:42
*** fawadkhaliq has joined #openstack-kuryr03:43
*** salv-orlando has joined #openstack-kuryr04:08
*** banix has quit IRC04:15
*** salv-orlando has quit IRC04:18
*** fawadkhaliq has quit IRC04:21
*** fawadkhaliq has joined #openstack-kuryr04:21
*** fawadkhaliq has quit IRC04:33
*** shashank_hegde has joined #openstack-kuryr05:05
*** oanson has joined #openstack-kuryr05:56
*** gangil has joined #openstack-kuryr06:36
*** yamamoto_ has joined #openstack-kuryr06:36
*** oanson has quit IRC06:38
*** shashank_hegde has quit IRC06:44
*** shashank_hegde has joined #openstack-kuryr06:45
*** shashank_hegde has quit IRC06:50
*** shashank_hegde has joined #openstack-kuryr06:53
*** yamamoto_ has quit IRC06:57
*** gangil has quit IRC06:58
*** yamamoto_ has joined #openstack-kuryr07:03
*** yamamoto_ has quit IRC07:05
*** shashank_hegde has quit IRC07:16
*** shashank_hegde has joined #openstack-kuryr07:22
*** salv-orlando has joined #openstack-kuryr07:23
*** salv-orlando has quit IRC07:33
*** gangil has joined #openstack-kuryr07:37
*** salv-orlando has joined #openstack-kuryr07:38
*** salv-orlando has quit IRC07:47
*** gangil has quit IRC07:50
*** yamamoto has joined #openstack-kuryr08:05
*** yamamoto has quit IRC08:13
*** shashank_hegde has quit IRC08:23
*** yamamoto has joined #openstack-kuryr08:24
*** yamamoto has quit IRC09:04
*** yamamoto has joined #openstack-kuryr09:35
*** yamamoto has quit IRC10:00
*** yamamoto has joined #openstack-kuryr10:12
*** salv-orlando has joined #openstack-kuryr10:42
*** salv-orlando has quit IRC10:46
*** wangfeng has joined #openstack-kuryr12:19
*** banix has joined #openstack-kuryr12:26
*** HenryG has quit IRC13:22
*** HenryG has joined #openstack-kuryr13:23
*** HenryG has quit IRC13:23
*** HenryG has joined #openstack-kuryr13:24
*** banix has quit IRC13:48
*** salv-orlando has joined #openstack-kuryr13:49
*** salv-orlando has quit IRC13:57
*** ramishra has quit IRC14:07
*** ramishra has joined #openstack-kuryr14:08
*** banix has joined #openstack-kuryr14:12
*** openstack has joined #openstack-kuryr14:23
*** banix has quit IRC14:28
*** banix has joined #openstack-kuryr14:37
*** banix has quit IRC15:08
*** salv-orlando has joined #openstack-kuryr15:22
*** salv-orlando has quit IRC15:33
*** irenab_ has joined #openstack-kuryr15:47
*** irenab has quit IRC15:50
*** irenab_ is now known as irenab15:50
*** salv-orlando has joined #openstack-kuryr15:54
*** salv-orlando has quit IRC15:58
*** yamamoto has quit IRC16:05
*** yamamoto has joined #openstack-kuryr16:07
*** banix has joined #openstack-kuryr16:21
*** gangil has joined #openstack-kuryr16:24
*** banix has quit IRC16:30
*** gangil has quit IRC16:31
*** gangil has joined #openstack-kuryr16:34
*** gangil has quit IRC16:52
*** shashank_hegde has joined #openstack-kuryr17:16
*** salv-orlando has joined #openstack-kuryr17:30
*** gangil has joined #openstack-kuryr17:34
*** salv-orlando has quit IRC17:34
*** wangfeng has quit IRC18:17
*** shashank_hegde has quit IRC18:27
*** salv-orlando has joined #openstack-kuryr18:31
*** salv-orlando has quit IRC18:36
*** gangil has quit IRC19:20
*** shashank_hegde has joined #openstack-kuryr19:24
*** gangil has joined #openstack-kuryr19:44
*** salv-orlando has joined #openstack-kuryr19:57
*** salv-orlando has quit IRC20:04
*** shashank_hegde has quit IRC20:18
*** shashank_hegde has joined #openstack-kuryr20:25
*** shashank_hegde has quit IRC20:26
*** salv-orlando has joined #openstack-kuryr21:30
*** salv-orlando has quit IRC21:33
*** salv-orlando has joined #openstack-kuryr22:06
*** gangil has quit IRC23:38
*** salv-orlando has quit IRC23:54

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