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

faekjarzI'm upgrading my server from 16.04 LTS to 17.10, and i'm used to bring network interfaces up and down via ifup / ifdown. Now netplan seems to be the way to go - How do i bring IFs up and down with netplan?02:06
sarnoldfaekjarz: this kind of looks like you're supposed to use ip link set IFNAME up  style commands https://wiki.archlinux.org/index.php/Network_configuration02:15
faekjarzsarnold: oh, i see, thank you02:19
sarnoldfaekjarz: heh, thanks for asking the question, I'd never found out how systemd-networkd is supposed to work before this :)02:20
CryptoManiacI have openvpn server running on Ubuntu 14. The server has its main IP address on eth0 and an additional IP from the host provider which I have assigned as an alias to eth 0:0. I've tried a lot of things so far to get my vpn traffic to see originate from the alias IP instead of the main server IP but it doesn't work. I edited the ufw before rules with these lines but still nothing...03:25
CryptoManiachttps://pastebin.com/u5Z1XgPA03:25
sarnoldCryptoManiac: a few wild guesses: try telling openvpn to bind to the specific IP address you want; or try assigning the IP directly to the interface without using the old "ip aliases" from oldentimes03:27
drabsarnold: after some conversations with zfs ppl, seems like the sync=always would have achieved the same as bcache03:33
sarnolddrab: _really_?03:34
drabbasically making the slog devices a cache in front of the platters03:34
sarnolddrab: that's fasincating. DHE half the time suggests to people to use sync=disable  :)03:34
drabthat seems the agreement, yes, because then all writes go to the slog/ssd like we were discussing03:34
drabsarnold: well I ddin't say they recommended that :P03:34
sarnolddamned freenode03:35
drabjust that there was agreement the result would have been what I was wanting to achieve03:35
sarnoldseems I'm not in ##Zfsonlinux and missed the whole thing03:35
CryptoManiacdidn't anyone perhaps reply to my query? I was DC.03:35
sarnoldCryptoManiac: oh sorry, I missed the disconnect, I gave some wild-ass guess..03:35
sarnoldCryptoManiac: a few wild guesses: try telling openvpn to bind to the specific IP address you want; or try assigning the IP directly to the interface without using the old "ip aliases" from oldentimes03:36
CryptoManiacok03:36
CryptoManiacoh03:36
drabsarnold: after the convo I'm rethinking that indeed I wanna do that... to their point, if the writes are sync then it's already happening03:36
drabif they are async, then the app isn't waiting anyway, so latency is low03:36
drabbasically it goes back to being a matter of losing data sort of, whihc wasn't what I was concerned with to begin with (at least for that <1sec sort of thing)03:37
CryptoManiacsarnold: Isn't the correct way still to assign an extra ip address to eth0:0 ? (That's what i meant by alias)03:37
sarnoldCryptoManiac: just ip addr add ADDRESS dev eth003:38
CryptoManiacok03:38
drabmy 2c go to that ip addrs + ovpn bound to it03:38
drabthat should do it03:38
CryptoManiacthanks guys :-)03:38
drabbasically what sarnold said as usual ;)03:39
CryptoManiacwill give it a shot03:39
sarnolddrab: nice to know my WAG matches your 2c :)03:39
drabtrust in sarnold, listen to no one else03:39
drab:P03:39
sarnoldthat's pretty good odds, hehe03:39
sarnoldlol03:39
sarnoldthere's so many things I've never done before.03:39
drabit's ok, it's important to give ppl confidence :P03:39
drabso anyway, I think I'm convinced enough to stop thinking about this bcache thing with zfs, at least for the standard servers03:40
drabI think it still makes sense for some much older machines with little memory03:40
sarnolddrab: yeah, that sounds about right03:40
sarnolddrab: hrm, really? the flushes to disk are all tuned to happen when memory pressure or five seconds or when the application requests a sync write..03:41
sarnolddrab: fwiw I've heard arguments that it's worth restricting the size of l2arc on low-memory machines, since the kernel might have to keep a huge amount of l2arc metadata in RAM instead of the ARC ..03:42
CryptoManiaclol03:43
drabsarnold: will keep that in mind, thanks, right now I'm actually not even using l2arc as I'm doing mostly writes03:53
sarnolddrab: aha :) I'm doing mostly reads, so l2arc is insanely good stuff03:55
=== njbair_ is now known as njbair
=== Foritus_ is now known as Foritus
lordievaderGood morning07:02
=== JanC_ is now known as JanC
Vamp898Hi guys, i want to build a java package i can distribute in the company. I used the jdk1.8.0_152.tar.gz from Oracles homepage but make-jpkg keeps telling me "No matching packaging method was found for jdk1.8.0_152.tar.gz. Please make sure you are using a tar.gz or a self-extracting archive"09:42
Vamp898I tried to unpack it --> works fine, everything is there and java works --> repack it with tar czf --> no difference09:42
chron0how do I configure macsec with /etc/network means to come up at boot?11:14
chron0or do I have to disable the config and use some rc.local script to set it up?11:14
chron0or if no one ever used macsec, how do I put iproute2 commands into this config scheme?12:36
chron0like "ip link add link eth0 macsec0 type macsec"12:36
=== lborda is now known as lborda_afk
danimanHey guys, i was installing ubuntu-server and the Ethernet doesn't work, no lights13:21
Vamp898found it --> the package is not allowed to be named different than the original package13:28
Vamp898so a simple "mv" fixed it13:28
=== pleia2_ is now known as pleia2
=== pitastrudl_ is now known as pitastrudl
drabchron0: in what ubuntu version? for 1604 you can use /etc/network/interfaces if-up commands18:11
drabchron0: https://askubuntu.com/questions/168033/how-to-set-static-routes-in-ubuntu-server18:12
drabfor example, see how they use the route command to add static routes18:12
drabyou can do the same with ip command if that makes sense18:12
drabis there a standard facility one can use to monitor log files and run arbitrary commands on certain string matches?19:28
drabthat may be19:35
drab"swatch"19:35
* lordievader wouldn't be surprised if logstash offers something along those lines19:45
=== JanC_ is now known as JanC
dpb1drab: logwatch is a good swiss-army knife that you should be familiar with.  When you move to multiple systems, it can quickly get overgrown, but it's a good sinlge-to-handful of systems tool.20:34
blizzowI mounted a logical volume that I have formatted as ext4 on a server.  When I type "mount" at a command prompt, the mount is not listed.20:35
blizzowWhen I do a df -h, the mount isn't listed there either.20:35
blizzowIt's also not listed in /etc/mtab.20:35
blizzowI am apparently senile and never mounted the directory.20:38
blizzowNever mind.20:38
sarnold:)20:40
drabdpb1: yeah, problem is, it doesn't seem to have a daemon mode20:42
drabswatch does20:42
drabI'm not actually looking for something to report on my logs, rather I need to make automatic a couple tasks and it so happens I can find the trigger in a log20:42
drabin fact, just in case someone has a better idea...20:42
drabI need to run some stuff against devices as they come online on the network20:43
drabI don't hvae fancy switches and stuff like that, and I'm not too worried about static ip assignments20:43
drabone way I thought I could do this was by tailing the dhcp server log and run a script when an was issued20:44
dnegreiraare those devices linux devices?20:54
drabdnegreira: many, not all20:55
drabbut for now even just getting the linux ones, would be good20:55
dnegreira4why not run a service discovery daemon? or a simple connect to whatever service with the server announcing itself ?20:56
drabI mean at some point they will generate traffic so I supposed I could do something on the gw with iptables, there's patches for userland stuff20:56
drabdnegreira: not sure I get it, I cannot touch the clients, at least not right now20:56
drabthat's part of the reason I'm trying to do it somewhere on the network20:56
drabie, dhcp or gw20:56
drabplaces I know those nodes will reach out to/go through so that I can find out about them20:57
dnegreirathen monitoring the lease files of the dhcp server would be a good start I guess20:57
drabyeah, that's what I was planning on doing witch swatch20:57
drabdnsmasq supports running a script on lease, but it also runs it when you restart it for all leases in the lease file, and that's not what I want20:57
drabso monitoring the log seems the simplest compromise20:58
dnegreirabut what do you want to 'know' or 'do' when a device comes online ?20:58
drabfor one inventory them, ie run nmap with fingerprinting to find out what they are etc20:59
draband in some cases run ansible on them (they are desktop boxes built a long time ago before automation), after the run the problem goes away as ansible will install the update itself to be initiated from the host21:00
dnegreirasounds nasty :)21:16
dnegreiradont you have a way to run an inventory on those desktop boxes, for example to figure out their mac address and run the ansible stuff?21:18
dnegreirainstead of having to run a script, to fingerprint, to figure out what kind of action you need to do on that box21:18
drabdnegreira: eventually they will all be in an inventory, yes, this is a temp manuver to rein the chaos in21:29
drabagents is unlikely to ever happen, since several are personal computers and many mobile devices I can't put anything on21:30
drabbut, once I have an initial database I plan on going directly to ppl, can't just do that yet21:30
drabbtw lxc testlab on raid0 ssds with ansible and base snapshot is so damn sweet, it's a whole new chapter in being able to test things21:32
dnegreiralxc/lxd rocks21:32
drabone thing I need to figure out is how to automatically create containers and generate mac addresses and have dnsmasq reserve a range for automatic assignments21:34
drabright now I'm still defining containers in ansible and autogen'ing stuff for them, which is not as fast as just going to the host and running lxc start xyz and having a container with self-assigned mac, ip and name started21:35
drabmaybe named after the shorthash from git or something21:35
sdezieldrab: in /etc/default/lxd-bridge, add LXD_CONFILE="/etc/default/lxd-bridge-static-ips" and put the static IPs in that file (i.e: dhcp-host=foo,1.2.3.4)21:36
drabsdeziel: I've ripped out most of the default stuff, including the local dnsmasq if that's what you were referring to21:37
sdezieldrab: yeah, that trick was indeed relying on the dnsmasq as provided by lxd-bridge21:37
drabbecause on average I don't want automagic, only magic I put in (appreciate that for ppl magical defaults are useful tho)21:37
chron0drab yeah xenial21:37
chron0but so far it looks like there are still issues with macsec21:38
drabchron0: so /etc/network/interfaces with up/down statement like in the example should work21:38
chron0so I'm one step back again getting this to work21:38
drabchron0: I'd expect there to be, it's brand new21:38
chron0it's 10y old21:38
drabuhm, somehow I thought support from kernel 4.621:39
drabbut mayube I dreamt that up21:39
chron0nah, you're right about that21:39
chron0still 10y old21:39
chron0and 4.6 id also kinda old21:39
chron0config wise it seems to work out21:40
chron0but no traffic is flowing through21:40
drababout a year old, not old enough for bugs to be ironed out, especially in stuff that's not exactly used in most setups21:40
chron0only see the initial ARP broadcast21:40
drabanyway21:40
chron0ye, macsec has only very little in the field experience it seems :/21:41
drabbtw anybody here uses icinga or something that21:42
chron0i personally I have no system with kernel <4.12 running21:42
drab's not nagios?21:42
chron0but this is at work21:42
chron0and I have to stick to ubuntu there21:42
drabor even nagios for what I care tbh, all I can't find and are looking for is a simple lava-lamp like dashboard21:42
chron0try grafana instead21:43
drabwell traffic light, green yellow or red, so that it's obvious if ppl shuold look at stuff or not21:43
drabchron0: I don't see how that helps me, the problem is parsing the failed hosts/services and changing a background of a webpage or something to put on a screen ala kiosk21:43
drabI'm not looking for a full dashboard21:43
chron0i c21:43
drabbasically even the tactical interface is unusable from a distance, too much text/info21:44
drabright now I have a script that fetches the failed hosts/services from the api and makes a web page bg red or white and accept filters so I can avoid reporting on non important tnodes21:44
drabbut it's clunky and if stuff fails more substantially or subtly, quite unhelpful21:45

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