/srv/irclogs.ubuntu.com/2018/06/14/#ubuntu-server.txt

lordievaderGood morning06:54
sveinseWill 18.04 server by default reboot on automated updates?08:19
sveinseI had a reboot on server yesterday, and I'd like to know if it was intentional/software triggered or if it was something unexpected08:20
=== boxrick_ is now known as boxrick
jamespagecoreycb: working on ceph mimic and py3 transitions for neutron/networking pkgs hope that's ok09:42
coreycbjamespage: sounds good, thanks12:08
ahasenackgood morning12:23
a_okHow can I install a package as a dependency?12:56
a_okIf anyone here is familiar with Arch I want to do: pacman -S --asdeps package12:57
jamespagecoreycb: how are you assessing py3 readiness for projects?14:39
coreycbjamespage: well, i'm not really. there is the upstream wiki doc that has status. for now i'm adding dep8 tests to ensure daemons start and py2/py3 usr/bin shebangs are correct.14:40
coreycbjamespage: and installing py2 by default with py3 as an alternative for now14:41
coreycbjamespage: i think we need to do this until all upstream projects are +1 saying they support py3 and then we can drop all the py2 support14:42
jamespagecoreycb: ok14:47
=== miguel is now known as Guest9977
=== maple is now known as Guest36249
naccrbasak: fyi, my changes to the importer loop now pass self-test (i used the edge snapcraft build) and integration test. Working on cleaning them up, I still haven't got to the point where I've written the tests for the branch moves, but I might put up an MP just so you can see what I mean.16:42
rbasakOK16:42
rbasakI'm half way through preparing a PR to switch our CI to use the edge snap16:43
nacccool, it does seem better there in my testing so far16:45
jaydemirI want to build a basic file server for my office to reduce the dependency on google drive. I have a few machines at my disposal, but DDR3 ram is scarce and I'm practically swimming in DDR2. Is it a significant difference what I use?17:04
oerheksa duak core machine with gigabit and 4 gb memory, perfect for an owncloud server17:11
oerheksyou could serve 100 clients with that, i guess17:12
RoyKoerheks: or nextcloud, perhaps? ;)17:31
oerhekssure, own/next/.. openstack :-P17:37
srulii have a few 16.04 headless servers, don’t really need to login more than 2-3 times a year, each time i have a full boot drive (never reboot so its full of kernels the oldest one is in use) cant install anything, removing the kernels manually is a taks and a half, and still as there are still more newer kernels downloaded and not installed as soon as i remove a few and run "install -f" boot gets full again and i have to remove again and again, how do o18:27
sarnoldsruli: irc has line length limits, looks like you were cut off at 'how do o'18:37
srulisarnold: thanks... "how do others get by this issue? and is there at least a script to hook onto update to check if there is a new kernel and i'll manually login and reboot each time"18:38
ahasenacksruli: I run "apt autoremove" every now and then, that takes care of it. I don't have it automated, though18:38
ahasenackit knows which old kernels to remove, and leaves two behind, plus the one you are currently booted into, iirc18:39
sruliahasenack: problem is i only login 2-3 times a year by the time i login its too late for auto remove18:39
ahasenacksruli: what handles the updates? unattended-upgrades?18:39
sruliyes unattended-upgrades18:40
srulii dont mind logging in when a new kernel is installed but i need some script to check that and i'll add it to my email script18:40
sarnoldwhat's *really* annoying is that the automated update things supposed to handle this transparently18:40
ahasenacksruli: check /etc/apt/apt.conf.d/50unattended-upgrades18:40
ahasenack/ Do automatic removal of new unused dependencies after the upgrade18:41
ahasenack/ (equivalent to apt-get autoremove)18:41
ahasenackUnattended-Upgrade::Remove-Unused-Dependencies "true";18:41
ahasenackthat's what I have in my little remote server18:41
ahasenackit can also automatically reboot if you are so inclined, there is an option for that18:41
sarnoldapt.conf.d/01autoremove-kernels18:41
sarnold// DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal18:41
ahasenackthat configures which kernels to remove, right18:41
ahasenackthe one I linked to is about unattended upgrades only, and not specific to kernels, but it has that "apt autoremove" bit18:42
ahasenackso it covers removing old kernels18:42
srulithe problem is not that it doesnt remove old kernels, it cant remove it as usually the oldest one is the one in use, the problem is it keeps on installing new ones with the oldest in use until it gets full than the download dir has a belly full of even newer kernels that it cant install18:44
ahasenacksruli: it won't get full18:44
ahasenacksruli: as new kernels come in, it removes installed ones that are not in use18:44
srulii need some script which checks if a newer kernel is install, i cannot have it reboot automatically at a random time18:44
ahasenackso you always have 3 installed, of which one is in use18:44
sruliahasenack: it will remove newer ones than the one installed?18:45
ahasenacksruli: that config file I showed also has a config option to reboot at a specified time if needed18:45
ahasenacksruli: yes18:45
ahasenackUnattended-Upgrade::Automatic-Reboot "true";18:45
ahasenackUnattended-Upgrade::Automatic-Reboot-Time "02:00";18:45
sarnoldsruli: just how small is your boot partition anyway?18:45
srulii changed "Unattended-Upgrade::Remove-Unused-Dependencies" to "true" thats it?18:45
sarnoldsruli: it might be too small to handle the number of packages ..18:45
srulisarnold: the default installer size 256MB, which in my opinion is way to small for ubuntu boot18:46
ahasenacktrue, you need to be able to hold at least 3, possibly more to cope with temporary files during initrd generation perhaps18:46
sarnoldyikes18:46
ahasenack256mb? wow18:46
ahasenackthat won't work18:46
ahasenackwell18:46
ahasenackthat machine I'm using as an example18:47
sruli256mb is the default installer size if you choose guided partitioning, i stopped using guided for that reason some time ago18:47
ahasenack$ sudo du -hs /boot18:47
ahasenack137M/boot18:47
ahasenackwith 3 kernels18:47
ahasenackmy that /boot is not on its own partition :)18:47
sarnoldneither of my machines has a separate /boot, I guess I got sick of dealing with those18:47
sarnoldand now that I'm not using lilo any more ..18:47
ahasenackit's a tight fit, but using that autoremove option might be what you can do now18:48
sruliwhat i did now was add a virtual drive 1GB (its vm) dismounted boot mounted this as boot copied all files over, updated fstab, will now "grub-install /dev/new1" and hope that it will work fine18:48
ahasenackalso have it email you18:48
srulihave it email what?18:49
ahasenackwhenever it upgrades or autoremoves packages18:52
ahasenackthere is a config setting in that file18:52
srulii will try to find it.. i'd rather have it email me when a new kernel is installed as it would be ideal to run on latest kernel anyway18:54
srulii can simply make a script to check if /var/run/reboot-required exists, is this file only created after new kernel install?19:07
ahasenacksruli: other packages can touch that file as well, like openssl19:08
ahasenackany package that decides that a reboot is required for a particular update will touch that package, not just the kernel19:08
sruliwhat command would i use to check if there is a newer kernel installed than the one in use?19:10
sarnoldsruli: afaik no such command exists ready-made for that task..19:13
sarnoldsruli: you could probably drop a script in /etc/kernel/postinst.d/ that could alert you in some fashion19:14
srulii will need for the script to check if its a kernel that's been updated19:14
sarnoldconsidering that we publish new kernels every three weeks or so and you downgrad ekernels .. once a year? once per install? :) .. it might be fine to fudge it and just alert on every new kernel package install19:16
sdezielsruli: you can do this:grep ^linux-image- /var/run/reboot-required.pkgs19:17
srulii dont mind rebooting once a month.. what would i put in the script to alert me that a kernel package has been installed?19:17
sdezielreboot-required.pkgs contains a list of packages that wanted you to reboot19:18
sdezielgrep -q ^linux-image- /var/run/reboot-required.pkgs && reboot19:18
srulisdeziel: thanks, that will do, if true will email me, great19:18
srulisdeziel: cant reboot randomly, have to make sure no users are connected...19:19
sarnoldsruli: something like echo new kernel | mail -s "new kernel" sruli@sruli.example.com   might do the trick19:19
sarnoldassuming mail works, anyway19:19
srulisarnold: i use python to email me on different vents, will add a crontab to check this19:20
sdezielsruli: you can check for connected users with "w -h | wc -l"19:20
srulisdeziel: users dont connect directly, its a local web-server19:20
UssatIs july still the target for upgrades from 16.04LTS --> 18.04LTS ?19:21
sdezielsruli: then "netstat -puant | grep ESTABLISHED" or something with ss instead19:21
srulisdeziel: it will never reboot, lol, if there are < 10 users i send a quick email that service will be down for few minutes19:22
sruliif there are > 10 i wait, i useually get up in the early hours of the morning to do my reboots19:22
srulisdeziel: thanks for "grep -q ^linux-image- /var/run/reboot-required.pkgs" great help19:23
sdezielnp19:23
compdocis there a webpage that mentions which large corps or businesses that use ubuntu?21:00
DirtyCajun#AllTheOnesThatDontHaveTheirOwnOSorAre100YearsOldLikeIBM21:02
naccdefine "use ubuntu'21:02
naccIBM actively contributes to Ubuntu21:02
DirtyCajuncontributes yes but more of their evironment is on CentOS/RedHat as of the last polling21:02

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