/srv/irclogs.ubuntu.com/2017/11/29/#ubuntu-server.txt

drabfor some reason no joy, trying to figure out what's wrong00:26
drabI've added the one routing rule on the gw, and I can ping the gw of the lan from behind the vpn, but not other hosts on the lan00:27
TJ-does the 'other' end of the vpn 'know' about the LAN subnet?01:03
drabTJ-: the default gw does, it has a static route to it, I thought that should have been enough01:46
drabtomorrow I need to go to a startbucks, like this I can't even debug, if I connect to ovpn from inside the lan the results are skewed01:47
drabI tried to test using someone's phone data, but they are gone now01:47
sarnoldyou could spin up a gce or aws instance for a few bucks if you're not actually interested in the coffee :)01:48
TJ-drab: let me be clear; your problem is when connecting into the LAN through the VPN, the client that connects cannot ping hosts on the LAN sub-net?01:49
drabTJ-: correct. but they can ping the gateway of the lan and ping the internet01:49
drabsarnold: you mean installing a vpn client on it?01:50
sarnolddrab: yeah, or whatever testing you needed..01:50
drabfair enough, I guess it'd be enough to figure out the routing issue01:51
TJ-drab: in the openvpn config file on the openvpn server have you got a "push "route 10.254.201.0 255.255.255.0"  " ? (with your LAN sub-net, not mine)01:51
drabTJ-: oh, eer, I don't. why does it matter? aren't the vpn clients going to send those pkts to their default gw (the ovpn server), which then knows (has a direct route) to the hosts on the lan?01:53
TJ-drab: and the client's config should have a "pull" to ensure those are accepted01:54
TJ-drab: the remote client does not know about the server's LAN sub-net, so the server has to tell the client about it01:55
drabbut wouldn't a vpn, like any other network client, send pkts for hosts it doesn't recognize on its lan to the default gw? (the ovpn server)01:55
drabeffectively achieving the same result01:55
drabsince I'm forcing all traffic to go through the vpn01:56
drabI have that push "redirect-gateway def1 bypass-dhcp"01:56
TJ-drab: you're using redirect-gateway ?01:56
drabyeah, that's in my server conf01:57
TJ-drab: OK, is the openvpn server on the LAN also acting as the LAN's gateway to the internet, or is that done by another router?01:58
drabdone by another router (also an ubuntu-server)01:58
TJ-drab: if the default gateway of the LAN is another router, then all those PCs need to have a route added for the VPN sub-net so they can *return* packets01:59
drabsdeziel earlier was mentioning icmp redirects, which I thought made sense01:59
drabwon't the gw, which they will send it to since they don't know what to do with it, tell them?01:59
TJ-drab e.g: gw 192.168.0.1, ovpn-server 192.168.0.254, vpn 10.0.1.0/24 ... LAN clients will need a "ip route add 10.0.1.0/24 via 192.168.0.254"02:00
drabright, I added that route on the gw, thinking that when the clients send it pkts for the vpn host the gw would have redirected them02:01
drabI guess that doesn't work02:01
TJ-drab: drab you said the ovpn-server has 2 NICs, one on the LAN and the other to the router?02:01
drabI wasn, all hosts are on the lan, the ovpn server has the lan nic and its tun interface02:02
drabwasnt clear*02:02
TJ-drab: oh, I misread02:02
TJ-OK, that makes more sense :)02:02
TJ-so the router has effectively "ip route add 10.0.1.0/24 via 192.168.0.254"02:03
drabcorrect02:03
TJ-is ip4_forward enabled on the ovpn-server's interfaces?02:03
drabyep02:03
drabsysctl -p02:03
drabnet.ipv4.ip_forward = 102:03
drabbut I just realized that probably yhe gw has icmp redirect disabled02:04
drabnet.ipv4.conf.all.send_redirects = 002:04
TJ-OK, well, test your routing manually. Create a dummy interface on the ovpn-server with the IP subnet the vpn usually uses. Then try to ping that IP from the clients on the LAN. Use tcpdump on the various PCs to see where it is going astray, if it doesn't work02:04
draboh, right, such a simple and great idea, I can just test that way, brilliant02:05
TJ-you can also connect a local client with a VPN to your ovpn-server and test that :)02:06
drabI tried that, results were skewed02:06
TJ-if all that works then you've an issue in the ovpn config itself02:06
TJ-are you using UDP ?02:07
drabno, I set it up with tcp02:07
TJ-Ahhh. I've always used UDP; not had a problem in over 10 years02:07
sarnoldencapsulating tcp within tcp is often a recipe for catastraphic latency when you least want it :)02:07
drabpoint taken02:08
TJ-not to mention fragmentation and MTU issues02:08
TJ-but basic ping should not be upset by those02:08
drabbut for the local test, the issue seemed to be that routes on the android phone still show lan routes02:08
drabso I thought when I tested that way that reachability worked because some pkts "leaked" or something02:09
TJ-I prefer UDP since it's harder to DoS it, especially using the ta.crt option02:09
drabok, I'll switch to udp, but don't think it has to do with my issues right now02:09
TJ-drab: don't switch NOW! You'll introduce another variable02:09
TJ-get your TCP config sorted first, one thing at a time02:09
TJ-1. Prove your LAN routing works as you expect and you can ping the dummy i/f from clients on the LAN that are using the default GW02:10
TJ-2. create VPN tunnel from a client to the ovpn-server and check each stage of the routing through it, using ping/tracepath02:11
drabroger that02:12
drabthanks02:12
TJ-drab: when I first started with openvpn I got the same kind of problems; I found running tcpdump on each hop on the network really useful for figuring out issues. The main is when you try to ping from PC1 to PC2 and it doesn't work you assume it's PC1 at fault, but often it's PC2 doesn't have a return route so it receives the ping packets but never replies. You can see that instantly with tcpdump02:16
drabtrue, seen that in the past debuggin other issues02:17
drabwill look for that02:17
drabok02:33
drabso indeed pings aren't getting back to the vpn subnet and get lost at the gw. if I add a route on the hosts on the lan too then it works02:34
drabbut I'm not going to add a route for that everywhere02:34
sarnolddrab: hrm. does the vpn even encapsulate icmp? or .. uh.. something?02:34
drabI don't understand the question. the behavior makes sense, I thought icmp redirect would have fixed that, but it's disabled by default and it seems I don't wanna enable it02:35
drabwhen the hosts on the lan get the pkts they don't know what to do with it and send it to the gw and they die there02:35
drabI have a great idea that i'm sure will make everybody cringe :P02:37
drabsince I don't wanna do masquerading, add a route on each host or enable icmp redirect02:37
drabwhat if, I gave the vpn client a range that's on the same subnet as the lan but unused, and then had the ovpn server arp_proxy for it?02:38
drabthat way when a host on the lan gets a pkg from a vpn client it'll think it's on the lan, arp for it, adn the ovpn proxy will respond for it02:38
TJ-drab: I'd sooner want to figure out why the router isn't using the route? Did you also add firewall pin-hole rules to ensure the vpn traffic was allowed to be forwarded/02:55
drabTJ-: yeah, I was thinking about that, but I feel I'm back on networking 101 and my brain not responding well to it...02:58
drabTJ-: shuold the router, when it sees a pkt from a client on the lan, having a route to the vpn clients, send it over to the ovpn-server?02:59
TJ-Yes02:59
drabok, good point, lemme check on the fw part02:59
TJ-but it has to go through the FORWARD tables02:59
TJ-you may need to enable a default ACCEPT for anything arriving from the LAN side and leaving on the LAN side03:00
drabonce again you're right, they are in ulog... adding a rule03:01
drabTJ-: ok, it works, and I see the icmp redirect , I thought those were disabled by default but guess they aren't and they weren't issued becuase the fw was blocking stuff03:09
TJ-drab: you're about sorted now then03:10
TJ-drab: seems like that was your problem all along03:10
drabwell my problem is that I haven't got a clue anymore... if I ever had it :P03:10
TJ-well are your pings ponging?03:11
drabyeah03:11
drabeverything checks out03:11
drabI'll do one last test tomorrow from the actual phone, but from the dummy itnerface everything works03:12
drabI can see the icmp and the redirects with tcpdump and all03:12
drabso I'm assuming the phone will work too tomorrow03:12
=== albech1 is now known as albech
hdon_hi all :) can i "install" ubuntu server to a ramfs/tmpfs?06:33
cpaelzergood morning06:49
lordievaderGood morning07:05
zioprotogood morning09:25
cpaelzerhiho zioproto09:25
zioprotoanybody already faced this ? :09:30
zioprotogbp:error: Pristine-tar couldn't checkout "horizon_10.0.5.orig.tar.gz": pristine-tar: delta is version 3, newer than maximum supported version 209:30
cpaelzerzioproto: https://bugs.launchpad.net/launchpad/+bug/1732400 ?09:31
ubottuLaunchpad bug 1732400 in Launchpad itself "please upgrade pristine-tar to support version 3" [Undecided,New]09:31
zioprotolooks like it09:32
cpaelzerzioproto: do you get that locally on your system?09:33
zioprotoI get it on the buildroot for horizon09:33
cpaelzerhmm, yeah so likely the bug I linked09:33
zioprotoI do09:33
cpaelzerbut in the scope of your build then09:33
zioprotomk-sbuild xenial09:33
cpaelzerwhich will be xenial which is on pristine-tar 1.33 (current is 1.42)09:34
zioprotoI guess that is the problem09:34
zioprotoso it is just about upgrading pristine-tar in Xenial ?09:34
cpaelzerwell, that would not match SRU policy right - as it is feature addition at the cost of regressions for others09:35
cpaelzerbut in that case I'm not sure how it woud be handled09:35
cpaelzerzioproto: are you doing backports building that in xenial?09:36
zioprotoI am building a package for Openstack Newton09:37
zioprotoin Xenial09:37
zioprotohorizon exactly09:37
zioprotoI have to test a patch09:37
cpaelzerok, so that could be the issue09:37
cpaelzerhmm, I'm sure the openstack Team has sometihng in place to make this not a FTBFS09:38
cpaelzerjamespage: coreycb: ^^ ?09:38
cpaelzerzioproto: are you building "through" gbp ?09:39
cpaelzermaybe that is the issue then09:39
cpaelzeras it might rely on pristine-tar in your cae but you might be able to get going with e.g. dpkg-buildpkg + sbuild or such09:39
cpaelzerI'd not have expected to need the "in target" pristine-tar for a build09:40
cpaelzeron the other hand, if your host is xenial it might be you just need it on your system09:40
zioprotoI am trying to upgrade pristine-tar09:41
zioprotothis tool does not even print his own version09:41
jamespagehmm that's a new one09:41
cpaelzerzioproto: I have no personal involvement to pristine-tar, just using it :-)09:42
cpaelzerzioproto: but you might find https://www.preining.info/blog/2014/06/debian-pristine-tar-packaging/ amusing09:42
cpaelzeractually it never broke me, so I'm good09:42
cpaelzerit's also of 2014 and recently seems well maintained09:43
cpaelzerjamespage: other question on planning OVS/DPDK in binoic09:45
cpaelzerjamespage: I mentioned https://code.launchpad.net/~ubuntu-server-dev/ubuntu/+source/openvswitch/+git/openvswitch/+ref/ready-for-dpdk-17.11 last week09:45
cpaelzerjamespage: 17.11-1 would be ready to sync this week09:45
cpaelzerjamespage: what is your intended OVS version in bionic?09:45
jamespagecpaelzer: 2.9.x09:46
cpaelzerjamespage: that is bug 1733325 btw09:46
ubottubug 1733325 in openvswitch (Ubuntu) "Update in Bionic to match DPDK 17.11" [Undecided,New] https://launchpad.net/bugs/173332509:46
jamespagecpaelzer: yeah sorry I was off on leave last week - I'm bad at catching up on backscroll09:46
cpaelzerjamespage: ok, so would it be ok for you if I upload dpdk this/next week and along that a small delta to OVS 2.8.1 to make it work for now09:46
cpaelzerjamespage: that delta will be droppable on the 2.9 upload then09:47
zioprotoI dont get it for Horizon. In the pristine branch I get the files horizon_10.0.5.orig.tar.gz.delta and horizon_10.0.5.orig.tar.gz.id. But the all thing fails looking for the file horizon_10.0.5.orig.tar.gz that is not there09:47
cpaelzerzioproto: so it wants to generate the tarball via pristien-tar and that is failing you09:47
zioprotoyes... this I got it09:48
cpaelzeryou could work around all that by just getting the file there09:48
zioprotoso the Horizon release 10.0.5 does not even exist in Openstack09:48
zioprotoI cannot download the tarball09:48
cpaelzercd ..; pull-lp-source horizon yakkety; cd -09:48
cpaelzerwell09:48
cpaelzerthis might overwrite your dir dpeending on what you work on09:48
cpaelzerso do the same in /tmp and copy the tarball09:49
cpaelzeror fetch it from LP09:49
zioprotowow, let me try this09:49
cpaelzerhttps://launchpad.net/ubuntu/+source/horizon/3:10.0.4-0ubuntu109:49
cpaelzeroh that is 10.0.409:49
cpaelzerzioproto: where did you base your version on?09:50
zioprotothe latest ubuntu cloud archive09:50
cpaelzermaybe in cloud archive there is something newer than at the end of yakkety support09:50
zioproto3:10.0.5-0ubuntu1~cloud1 50009:50
zioprotocan I use pull-lp-source to pull stuff from the ubuntu cloud archive ?09:50
cpaelzerzioproto: then just enable the deb-src lin in /etc/apt/source.list.d/<cloudarchive>09:50
cpaelzerapt update; apt source horizon09:51
cpaelzerthat will give you the source as it is there09:51
cpaelzerzioproto: in that regard UCA is like a ppa, so not pull-lp-source, but the above with apt-source will work09:51
zioprotoit worked !09:53
cpaelzer\o/09:53
=== albech1 is now known as albech
adrian_1908I still frequently see `service <servicename> <action>` being mentioned, which works with systemd services as well. Isn't this (strictly speaking) deprecated in favor of `systemctl <action> <servicename>` or will both remain correct indefinitely?14:15
UssatNo, not indefinately, and yes, depricated14:16
Ussatits there as a conveniance14:16
adrian_1908ok, thanks.14:16
rbasakUssat: do you have a citation for it being deprecated?14:22
rbasakI'm not aware that it is.14:23
Ussatcitation no, but that is the way things are moving...14:26
UssatIts pretty logical to me, that the old way will not stick around forever since the new way has been introduced. Its only there now as a transition14:26
rbasakDebian still supports multiple init systems. That's where the wrapper comes from.14:28
rbasakIt's useful because you don't need to care about which init system is in use.14:28
Ussat....14:29
rbasak...so I don't see it going away any time soon.14:29
UssatI dont care about debian14:29
rbasakNot until Debian drops support for multiple init systems.14:29
rbasakTherefore it isn't deprecated.14:29
Ussat...14:29
Ussatok14:30
rbasakUnless some more closely associated Debian or Ubuntu developer says it is.14:31
rbasakBut I'm not aware of any such position.14:31
Ussatsigh..ok14:32
coreycbcpaelzer: zioproto: 'pull-uca-source horizon newton' is also an option14:43
zioprotothanks !14:43
cpaelzeruh - pull-uca-source14:50
cpaelzernice14:50
cpaelzercoreycb: package?14:50
cpaelzerI actually have a ~/bin/pull-uca-source.py - probably from you coreycb :-)14:51
coreycbha14:51
coreycbcpaelzer: ubuntu-dev-tools14:51
cpaelzerah but post xenial14:51
cpaelzerfound it14:51
cpaelzerhttps://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/166132414:52
ubottuLaunchpad bug 1661324 in ubuntu-dev-tools (Ubuntu) "add pull-ca-source to ubuntu-dev-tools" [Low,Fix released]14:52
coreycbjamespage: if we were to do a snapshot of the latest upstream gnocchi commit, we could drop pandas from the queens cloud archive14:58
jamespagecoreycb: I peeked at that yesterday - we could just pick the commit that drops it14:59
coreycbjamespage: yes true, looking for that14:59
jamespageoh nice I'd not realized that pull-uca-source had got into dev-tools15:03
jamespagecoreycb: having a run at deploying queens :-)15:19
jamespageneeded to switch keystone to v3 but that bit is working ok15:19
jamespageglance is foobar15:19
jamespageaodh don't know what queens it15:20
jamespagecoreycb: prob need a  charmhelpers release for that15:26
coreycbjamespage: ok awesome about queens. want me to get charmhelpers?15:26
coreycbjamespage: i'm uploading gnocchi with the patch and will get rid of pandas15:27
jamespagecoreycb: charmhelpers is ok - it just needs a release for the reactive charms15:27
jamespagecoreycb: oh ok - oops15:27
coreycbjamespage: oh ok15:27
jamespagegit push --force over my changes :-)15:27
coreycbjamespage: oh you got it already? no prob :)15:27
jamespagecoreycb: no you take it15:27
coreycbjamespage: ok that's uploaded15:33
cpaelzerrbasak: ahasenack: is the serverguid still the on on bzr?15:33
jamespagecoreycb: awesome15:33
cpaelzerrbasak: ahasenack: I always have something on the back of my mind they wanted to change, but miss to remember if that happened15:34
jamespagecoreycb: where did we leave glance b1?15:54
jamespageI remember we had some sort of unit test failure right?15:54
ahasenackcpaelzer: should still be in bztr15:54
ahasenackbzr15:54
coreycbjamespage: i think we were going to skip it due to https://bugs.launchpad.net/glance/+bug/172836815:55
ubottuLaunchpad bug 1728368 in oslo.serialization "oslo.serialization 2.21.2 breaks glance" [Undecided,New]15:55
jamespageright15:56
rbasakcpaelzer: I think it may be but I'm not certain.15:56
=== lamont` is now known as lamont
drabsdeziel: TJ-: fwiw when I tested today with the actual phone from a remote connection it did not work unless I put static routes on the individual nodes19:22
drabI'm out of time so I can't look into why, I know last night I saw the icmp redirect and it worked with the dummy interface19:22
drabbut it would not trying to ping the android phone19:22
drabluckily I actually don't really care to get to all the nodes on the lan from the phone, just out to the network and to my workstation and I can reach everything else from the latter19:23
drabs/network/internet/19:24
sdezieldrab: the clean fix would be to relocate the VPN server to a new network zone that is directly attached to the router, this way, you'd only need the static route on the router itself19:24
drabyou mean like in a DMZ?19:25
sdezieldrab: kind of  but only for the VPN server19:25
sdezieldrab: because if you put some machines next to the VPN server, you'd run into the same problem when trying to access them from the VPN clients19:25
draboh, I see19:25
sdezieldrab: in other words, you need to always have your router between your destination and your VPN server otherwise, machine will figure out that the router's hop is pointless19:26
drabI guess I could do that, yeah, hopefully nothing funny happens with the fw, when I was working on it last night I saw some weird things happening (I'm using firehol as a frontend to iptables)19:26
drabright, got it19:26
drabbecause if the ovpn is still physically on the lan interface then I have inface/outface on the gw both being lan and it seemed to trigger some issue with rule matching19:27
drabanyway, I'm about to take off so for this trip it's staying this way, but when I coem back that does sounds like a cleaner/permanent solution19:28
drabsdeziel: thanks19:28
sdezieldrab: you could probably use a dedicated vlan to get a new interface19:28
drabgood point, I'll explore that19:29
drabthanks again, afk19:29
ahasenackhi, could someone please accept my nominations in bug #1732032? Thanks20:09
ubottubug 1732032 in iproute2 (Ubuntu) "ip maddr show and ip maddr show dev enP20p96s0 show different data" [Undecided,In progress] https://launchpad.net/bugs/173203220:09
ahasenackand a question: do we SRU FTBFS fixes?20:10
ahasenackor only when there is another needed change, then we really have to fix the ftbfs problem?20:10
sarnoldahasenack: done20:10
ahasenacksarnold: thanks20:10
sarnoldahasenack: I'm going to guess it's not worth an sru to fix ftbfs20:11
ahasenacksarnold: ok, ideas on how not to "lose" the fix, when a real sru comes by? Leave it attached to the bug?20:11
ahasenackjust wondering20:12
ahasenackhttps://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1735158 in this case20:12
ubottuLaunchpad bug 1735158 in iproute2 (Ubuntu) "FTBFS with gcc7" [Undecided,In progress]20:12
sarnoldahasenack: is it fixed in the devel release yet?20:12
ahasenackno, I"m about to do that20:12
sarnoldahasenack: my guess is that fixing it in devel is sufficient20:13
ahasenackok20:13
ahasenackhm, I don't understand this git ubuntu lint error21:44
ahasenackE: Targetted branch distribution (devel) and changelog distribution (bionic) do not agree21:44

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