/srv/irclogs.ubuntu.com/2018/02/09/#ubuntu-server.txt

=== EP0D is now known as Epod
=== Epod is now known as EP0D
HardcoreKryptonanyone knows how to use cloud-init10:09
rbasakYes.10:13
HardcoreKryptoncan you tell me ?10:13
rbasakhttp://cloudinit.readthedocs.io/en/latest/10:16
rbasakIf you have a specific question, please ask it.10:16
HardcoreKryptonthank you !10:16
HardcoreKryptonokk10:16
rbasakThere's also #cloud-init10:16
ahasenackrbasak: hi, is there a way to tell git ubuntu merge to use debian/experimental instead of sid?13:11
rbasakahasenack: I'm not sure, sorry. I've not been much involved in that subcommand.13:21
ahasenackok13:22
ahasenackoh13:22
ahasenackI guess I should have read --help more carefully13:22
ahasenack"onto                  A reference to a commit whose corresponding version to prepare to merge with. If not specified, debian/sid is used. "13:23
ahasenack:)13:23
coreycbjamespage: qemu and libvirt updates are in kilo-staging and ocata-staging15:43
jamespagecoreycb: hurrah!16:00
rbasakahasenack: looking at https://code.launchpad.net/~ahasenack/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/33721317:06
ahasenackrbasak: ok17:06
rbasakI'm not very keen on stuff using bash in /etc/update-motd.d/. Debian and Ubuntu moved away from bash due to startup times, and update-motd.d is in the critical path for login time.17:06
rbasakWhat actually puts files into /etc/update-motd.d/ please? I don't see it in the packaging.17:07
ahasenackrbasak: debian/install17:07
rbasakAh. Thanks17:08
ahasenackrbasak: I continued using bash (the main ubuntu-advantage script already uses bash) because it's not a new dependency17:08
ahasenackI didn't think about startup times17:08
rbasakI think it'd be fine for the ubuntu-advantage script itself since it isn't in any critcal path.17:09
rbasakBut update-motd really needs to be kept quick.17:09
rbasak(especially for stuff present by default on all systems)17:09
ahasenackrbasak: well, the motd script will call ubuntu-advantage status17:09
rbasakOr else, measure it and convince me :)17:09
rbasakOh17:10
rbasakWell then that matters too17:10
ahasenackit's either that, or reimplement in the motd the logic that determines what's the status17:10
rbasakYeah17:11
ahasenackyou would gain a bit by reimplementing in the sense that "ua status" determines the status of all 3 services17:11
ahasenacklivepatch, esm, and fips17:11
ahasenacklivepatch is a snap call17:11
ahasenackesm and fips is an apt-cache policy call17:11
rbasakAnother way might be to shortcut it. If a user has never had UA, then detect that and do nothing quickly.17:11
ahasenackyou mean had an ua contract, or the ua package? The ua package will be there always17:12
ahasenackfrom the start, I mean, it can be removed17:12
rbasakThen the buck is passed to Canonical to make sure that adding UA doesn't slow things down. I'm fine with that :)17:12
dpb1wait17:12
ahasenackif livepatch is available, then the motd becomes an advertisement17:13
dpb1update-motd.d runs on a schedule17:13
rbasakua contract, or the ua package> I mean had UA contract related functionality enabled.17:13
rbasakOr "has" would be better I suppose.17:13
ahasenackdpb1: no17:13
dpb1it's not in critical path for login time?  or am I very wrong17:13
ahasenackunless there is some smarts that only calls the scripts in update-motd.d in a schedule17:13
dpb1ah17:13
dpb1script-by-script basis?17:13
rbasakdpb1: AIUI, update-motd.d runs on every MOTD display, but some scripts do their own caching.17:13
rbasakRight17:13
ahasenackyes17:13
dpb1got it17:14
guzzlefryhowdy17:18
dpb1ahasenack: what is the path for the default install case, does ubuntu-advantage get called there?17:18
ahasenackdpb1: default install of that, ubuntu?17:19
dpb1install server, then login.17:19
ahasenacks/that/what/17:19
ahasenackthe motd script runs at login17:19
ahasenackssh, terminal17:19
ahasenacknothing else calls "ua <stuff>" on its own17:20
dpb1yes, I mean, in that case17:20
dpb1does ua <stuff> get called there17:20
ahasenackyes, we do one "ua status" call to determine the livepatch status17:20
ahasenacksave the output, and then look for the bits we want in that output17:21
ahasenacka grep and two seds, something like that17:21
dpb1I'm looking for what is done for motd.ubuntu.com17:23
ahasenackthat must be different, since it's a network call17:24
* dpb1 can't find it :/17:25
rbasak50-motd-news17:25
dpb1is it on xenail?17:25
dpb1xenial17:25
rbasakI don't see it on Xenial17:26
* dpb1 checks bionic17:26
rbasakLooks like 50-motd-news only prints from a cache to me.17:27
rbasakAnd the cache is updated out of band.17:27
rbasakUnless --force is used, which is commented to happen from the systemd timer17:27
dpb1hm17:28
rbasakSeems to me that there is a common need for caching.17:28
dpb1yes17:28
dpb1and there is a systemd17:28
dpb1that updates the same file17:28
rbasakWho wants to write a general caching infrastructure for update-motd.d? :)17:28
dpb1lol17:28
dpb1well17:29
ahasenackrbasak: if we cache the "ubuntu-advantage status" output, would you be ok with the motd script itself be in bash?17:38
ahasenackor do you want that in dash as well17:38
ahasenackor are you still looking and have other comments?17:39
ahasenackrbasak: of course, we have to find a common denominator involving trusty all the way up to bionic regarding that caching17:40
ahasenacksystemd might be out of the picture17:40
rbasakahasenack: you could use cron17:43
ahasenackprobably17:43
rbasakahasenack: I want everything in dash, unless it's demonstrated that if everything in update-motd.d moves to bash, it wouldn't cause any significant difference.17:43
rbasakahasenack: since I think this package should be consistent with everything else; there's no reason to grant it an exception on this.17:44
ahasenackok17:44
ahasenackcan you make these comments in the mp please?17:44
ahasenack(if you haven't already)17:44
rbasakahasenack: done just now :)17:47
ahasenackthx17:48
rbasakahasenack: I'm EODing soon. I'll finish reviewing on Monday.17:48
ahasenackok17:49
HackeMatehello folks19:40
HackeMatei have configured bind9 for dns forwarding as cache, it works fine, now i want to set up a dns proxy, or any system that filter all dns queries in order to block porn sites19:41
HackeMateis there a project working in this way?19:41
sarnoldHackeMate: https://dnsdist.org/ is cool stuff19:42
HackeMateoh, thanks19:42
HackeMatei wonder how big should be your curriculum sarnold19:43
dpb1HackeMate: if you bottom out on anything, you could update https://help.ubuntu.com/community/ParentalControls19:43
sarnoldHackeMate: what do you mean?19:43
HackeMatedpb1: thanks19:43
HackeMatesarnold: you have a huge knoweldge19:43
HackeMatethat's what i mean19:44
sarnoldheh, it feels like I'm learning less than is being created every day .. it feels like endlessly slipping backwards :)19:44
HackeMatethat feelings makes you powerfull19:45
sdezielHackeMate: the implementation probably depends on the kind of block list you use. For example, you could leverage OpenDNS FamilyShield by setting their IPs as forwaders in your bind19:46
BenXVIIHello is there anybody on that could enlighten me with an issue I have on my HP server ?20:52
tewardBenXVII: not unless you give details about the 'issue' and ask your *real* question20:53
tewardfailing that nobody can help you.20:53
BenXVIII didn't know wether this was the proper place to ask. I plugged a 4TB SAS drive. But for some reason it is not recognized. In hpssacli it says "Status: Unsupported". It's an HP ProLiant DL370 G6 server.20:54
tewardBenXVII: that's an HP hardware question, so this isn't the right place20:55
tewardso you'd need to contact HP probably for assistance with the system saying it's unsupported20:55
BenXVIIThank you teward :)20:55
BenXVIIIt doesn't even appear in gparted :)20:55
tewardprobably because it's not a supported drive or something else, the fact it doesn't show up *sounds* like the drive and your hardware aren't compatible20:56
BenXVIII will contact HP support. I hope it won't be too expensive :p20:57
patdk-lapare you even sure the port you plugged it into supports sas disks?21:04
patdk-lapyou didn't plug it into a sata port did you?21:04
BenXVIIpatdk-lap, yes I am sure, the server only supports SAS21:04
patdk-lapI have never seen a server that only supports sas21:04
BenXVIIMight be that the controller is outdated and doesn't support 4TB volumes21:05
tewardpatdk-lap: I have.  some older poweredges here :P21:05
patdk-lapteward, heh?21:05
tewardthey're sitting in the scrap pile for destruction, but they only have 3 hotswappable disks, all SAS21:05
patdk-lapevery poweredge and hp I have ever had supported sata, and ones with raid cards did both21:05
patdk-laphotswappable sas != sas only21:05
BenXVIII tried to plug in a SATA drive once and it wasn't supported21:06
BenXVIIall drives are in the front bays, there are 8 of them21:06
tewardpatdk-lap: well, this one *only* had SAS drives, I guess whomever set it up played safe.21:07
teward*shrugs*21:07
tewardultimately irrelevant, we have much newer servers :p21:08
patdk-laphttps://h20195.www2.hpe.com/v2/getpdf.aspx/c04282679.pdf?ver=121:08
patdk-lapsupports sas and sata21:08
patdk-lapthe raid card that comes in it only supports 2tb drives though21:08
tewardah that explains that21:08
tewardBenXVII: unsupported drive size.21:08
BenXVIIThought so. Do you guys think I can use 2 2TB SAS and make them in the OS as one logical volume of 4 ? The purpose of the drive is to backup an attached NAS.21:09
patdk-laphmm, it can support 4tb, if your lucky and have upgraded firmware21:10
patdk-lapalso, those raid cards do not support passthough that I know of21:10
patdk-lapso you have to setup a raid config21:10
BenXVIIOh well, it's for a local non-profit, I will tell them to the backup of the NAS on two 2 TB dirves :)21:11
BenXVIIRAID is already setup, so I don't want to start all over again :p21:11
crester48hello21:27
BenXVIIpatdk-lap and teward .. thanks a lot for your help21:47
BenXVIIHave a good night everybody :)22:19

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