/srv/irclogs.ubuntu.com/2019/02/14/#ubuntu-server.txt

apawlMy home server (Ubuntu 18.04.2 LTS -- GNU/Linux 4.15.0-43-generic x86_64) is unresponsive when downloading large files. Netdata is alarming on the following "number of times, during the last 10min, ksoftirq ran out of sysctl net.core.netdev_budget or time slice, with work remaining"00:34
apawlIt’s a 10GbE interface though, with lots of CPU / mem.00:34
apawlI'm wondering if there's additional tuning I need to do? This is just a home server, but beefier hardware than I've used with Ubuntu before..00:34
apawlThe default netdev_budget value is 300. I'm in the process of testing that value of 600. Part of me wants to jack it up way higher, but I'm unsure of the correct practice00:36
sarnoldapawl: I think ethtool -S <iface> will show some stats on dropped packets..00:44
sarnoldapawl: I think your missing packets may show up in this output too00:44
apawlI just rebooted, so am going to run a new test. Hopefully I'll see missing packets with that command00:47
apawlSo I'm not seeing actual packets dropped, but I am seeing this number, which matches very closely to the netdata alarm01:40
apawlrx_flow_control_xon: 1851301:40
apawlCould that explain an unresponsive ssh session during heavy network downloads?01:41
sarnoldflashbacks to RTS/CTS modem days..01:41
sarnolda friend put this together back in 2002 .. https://lartc.org/wondershaper/01:42
sarnoldprobably it'd be better to use fqcodel flow control things today ..01:42
sarnoldbut I wonder if this is related. (I still haven't gotten networking gear like yours, sorry it's all speculation on my part)01:42
apawlHonestly, I'm at the edge of my networking knowledge. Could be related? I was really surprised to see packets aren't being reported as dropped, but that I ran out of netdev_budget like 18k times01:45
sarnoldthis is wild speculation, but perhaps you did run out the budget, but the packets weren't dropped, and were handled by the next workqueue run?01:46
apawlI _think_ that would suggest that the behavior would be a delayed SSH session, but from what I can tell that doesn't happen.01:47
sarnoldhave you had any success with the 300 -> 600 test?01:48
apawlNope. I'm going to try jacking it up to something silly.01:48
sarnoldif that doesn't give results, then I'd think it's time for wider investigation.. maybe http://www.brendangregg.com/flamegraphs.html or http://www.brendangregg.com/usemethod.html could be good starting points01:50
cpaelzerjamespage: the OVS config patch for DPDK 18.11 as we have it was accepted06:46
cpaelzerjamespage: I updated the OVS packaging git with that update06:46
cpaelzerjamespage: but I didn't upload anything as that can wait for OVS 2.11 being released06:46
cpaelzerjamespage: but I wanted to make sure that updated patch is ready and waiting for you then :-)06:46
lordievaderGood morning07:19
=== Bodenhaltung_ is now known as Bodenhaltung
siavoshkcOK. What is the best method to create backups on ubuntu server07:53
lordievaderThere is no "best" method... I use dirvish.08:11
=== cpaelzer__ is now known as cpaelzer
zzarrhello!08:56
zzarrI have a problem08:56
zzarrI get "sudo: no tty present and no askpass program specified" when I try to run a command08:56
zzarr(as root)08:56
zzarrI don't know what I did to cause this08:57
zzarrI would restart the machine if I could08:59
zzarrit's only sudo that's broken09:00
zzarrand su09:01
lordievaderWhat are you trying to run precisely?09:02
zzarrI'm stuck09:02
zzarrsudo reboot09:02
zzarrit's a cloud server and I don't have access to the management environment09:03
zzarrwhen I run su it says "su: must be run from a terminal"09:04
zzarrthe server is running 18.0409:05
lordievaderAlmost sounds like you do not have a real terminal.09:05
zzarrI only have ssh09:06
zzarrI have tried to start a new ssh session but that did not help09:06
zzarrI have 2 screen sessions running and 1 tmux09:07
lordievaderClose all ssh connections and run `sudo -t <host> "sudo ls"`, what is the output? The same error?09:07
lordievaderErr `ssh -t <host> "sudo ls"`.09:07
zzarrit says "PTY allocation request failed on channel 0"09:09
zzarrI have bind mounted /dev /dev/pts /sys and /proc trying to run a chroot, but that should not be a problem09:10
zzarrI have root access now :)09:11
jamespagecpaelzer: tbh I'll push a new snapshot this week09:11
lordievaderOK, good09:12
zzarrup and running again :D09:17
fricklerjamespage: did you look into building ceph 12.2.11 yet? I'm getting issues with symbol changes, some additions can probably be amended, but this deletion looks bad https://paste.ubuntu.com/p/87JMf8fppV/09:36
jamespagefrickler: yes had the same thing - not to worried about the deletion - https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/353409:38
jamespagefrickler: my build/test loop is quite slow with LP builders as they don't have huge amounts of RAM09:38
fricklerjamespage: oh, great, I'll try to build that locally, thx09:41
jamespagefrickler: pushed all to https://code.launchpad.net/~ubuntu-server-dev/ubuntu/+source/ceph09:46
jamespagefrickler: that PPA is the tip of my work for bionic09:47
jamespagefrickler: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3535 has similar but for xenial09:48
jamespagefrickler: that should have been https://code.launchpad.net/~ubuntu-server-dev/ubuntu/+source/ceph/+git/ceph I think09:52
fricklerjamespage: seems it defaults to git already09:55
jamespageapparently so09:56
* jamespage needs more coffee09:56
fricklerthanks to smoser I also have a bit of experience with bzr, though ;)09:56
rbasakkstenerud: so is bug 1812387 actually in the tmux-plugin-manager package? Because that's in universe.10:11
ubottubug 1812387 in tmux (Ubuntu) "tmux crashes on tpm init" [Medium,Confirmed] https://launchpad.net/bugs/181238710:11
kstenerudoh ok, so that means we don't bugfix universe?10:28
blackflow"we"?10:34
rbasakkstenerud: Canonical's commitment is in main only. That's effectively what main means.11:04
zenirc369command| grep -w heat12:46
zenirc369includes output with both heat and heat-cfn12:46
zenirc369how can i exclude heat-cfn from output to get the output with only the word 'heat'12:46
blackflowzenirc369: ... | grep -v "heat-cfn"12:47
fricklerzenirc369: or use negative lookhead: grep -P 'heat(?!-cfn)'13:09
dpawlikcoreycb: hi, don't you have any error on queens/rocky13:23
dpawliklike: http://paste.openstack.org/show/ppKG3IWpaBvuaiEnyf7h/13:23
dpawliklibvirt version: 4.0.0-1ubuntu8.613:23
dpawlikall is installed from bionic repo13:24
dpawlikcoreycb: I report a bug: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/181591013:33
ubottuLaunchpad bug 1815910 in libvirt (Ubuntu) "Apparmor blocks access to /dev/vhost-net" [Undecided,New]13:33
coreycbcpaelzer: is that a known issue? ^13:37
cpaelzercoreycb: reading13:45
cpaelzerdpawlik: let me guess - your guest initially does not have any vhost-net devices and you then hotplug one right?13:46
cpaelzerthe rule for /dev/vhost-net i added on guest definition if a network device has VIR_DOMAIN_NET_BACKEND_TYPE_QEMU and virDomainNetIsVirtioModel13:49
cpaelzerthat means if you start withotu it isn't added13:49
cpaelzerthere might be no security relabeling call that we could hook onto for adding the network device13:49
cpaelzerlet me check that13:49
cpaelzerdpawlik: please confirm (or correct) my assumptions if you are still around13:49
cpaelzerI replied on the bug, let me know there once you have time13:56
cpaelzercoreycb: I assume you usually start with at least some vhost-net devices right away right?13:56
coreycbcpaelzer: i would assume so too but would have to check a deployed instance to be sure13:57
cpaelzercoreycb: well yours work, which is a hard argument that it is that way :-)13:57
coreycbcpaelzer: sahid and i are working through enabling py37 unit tests for openstack. how's libvirt-python wrt py37?14:05
dpawlikcpaelzer: w8, let me finish eat lunch :)14:05
coreycbcpaelzer: 14 months until likely having to support py37 too in 20.0414:06
coreycbi mean py38 too14:06
cpaelzerdpawlik: take yur time with lunch, no rush14:06
dpawlikcpaelzer: yes, I would like to add a vm which doesn't have any nic, attach a new interface so later it raises an error14:06
cpaelzercoreycb: TBH - I have exactly zero idea about the py3 support state of python-libvirt14:07
cpaelzerdpawlik: ok, then all my assumptions are right14:07
cpaelzerdpawlik: just state so on the bug where I asked14:07
cpaelzerI need to debug the labeling calls that go on while hot adding a further network device14:07
cpaelzerdepending on that result this is annoying or really hard to implement, so no commitment before I have that result14:08
cpaelzer:-)14:08
dpawlikcpaelzer: you are genius.  Now when I read bug on launchpad I see that I miss important information14:09
cpaelzerreally, then add it please :-)14:09
coreycbcpaelzer: would you be able to push on py37 support by any chance? doko will be very happy if you do. :) 20.04 will likely be python 3.8 by default but minimally will be python 3.7. also thanks for looking at the vhost-net issue.14:09
dpawlikbut you find out that :D14:09
dpawlikcpaelzer: ack14:10
cpaelzerit was enough to get me thinking, which to admit is more than what you usually find on the average bug report, so you did well already14:10
cpaelzercoreycb: I really have had no business with python-libvirt so far14:10
cpaelzercoreycb: your push a.k.a email will be just as effective (or not) as mine14:11
coreycbcpaelzer: ok looks like we generally just sync that one from debian14:12
cpaelzeryep14:13
cpaelzercoreycb: I appreciate that you think I'm involved everywhere, but no :-)14:14
coreycbcpaelzer: but you are Mr Libvirt :)14:14
dpawlikcoreycb: +114:17
dpawlikhe is a Mr Libvirt ;D14:17
coreycbcpaelzer: sahid: fyi https://bugzilla.redhat.com/show_bug.cgi?id=167732114:32
ubottubugzilla.redhat.com bug 1677321 in libvirt "libvirt-python missing support for modern python versions (python 3.7)" [Unspecified,New]14:32
smoserfrickler: if you don't have anything nice to say, don't say anything at all ;)14:34
fricklersmoser: hmm, the nice thing I'd have to say about that is that you responded to my request to move to git pretty fast :)14:39
smoserfrickler: thanks!14:54
cpaelzercoreycb: 1815917 is a tracker onto that, thanks for filing15:05
coreycbcpaelzer: ok thx15:07
kstenerudahasenack: In reference to https://bugs.launchpad.net/ubuntu/+source/freeipmi/+bug/1808637/comments/316:01
ubottuLaunchpad bug 1808637 in freeipmi (Ubuntu) "freeipmi-ipmidetect postinst fails on default install" [Undecided,Triaged]16:01
kstenerudHow would one check the RUN variable in systemd?16:01
sdezielkstenerud: probably not the most elegant thing but you could add ExecStartPre=/bin/echo $RUN or check ipmidetectd's /proc/$pid/environment16:04
sdezielkstenerud: maybe adding "export SYSTEMD_LOG_LEVEL=debug" before "systemctl start" would also provide what env vars it is going inject to the ExecStart process16:08
kstenerudsdeziel: That would definitely show what's going on, but I need to always allow the postinstall to succeed, but print out a warning message when $RUN is no.16:12
kstenerudbasically the package can't run with no config, but there's no default config. So it needs to say something to the user, but also allow the package install to succeed via apt16:12
sdezielkstenerud: ExecStartPre=/usr/bin/test "$RUN" != "no"16:14
sdezieluntested of course16:17
kstenerudok thanks I'll play around with it16:18
sdezielbut that sounds like a kludge. It would be better to instead add a ConditionPathExist=/path/to/config IMHO16:24
sdezielI'm spinning a disco container to take a closer look16:25
sdezielipmidetectd.conf is provided by the package but in a unusable state so I think the ExecStartPre test is the way to go then16:31
=== Ussat-1 is now known as Ussat
kinghatif you disable ssh access for root and try to login via root does it just say no or give you password attempts even though you will never be able to login?18:41
kinghatfor me its letting me try to login 3 times with password but getting permission denied.18:41
tomreynif password authentication is enabled and preferred / no preffered authentications succeed, i guess it'll show password prompts, otherwise it'd allow for user enumeration.18:43
kinghattomreyn: is password login default? i dont have that enabled in sshd_config18:48
kinghati dont even see it in there actually.18:48
kinghator is that what `PAM` is?18:49
kinghatok so password auth config is for both root and users?18:52
kinghati guess i dont full understand what all im disabling if i disable PAM.18:53
kinghatfully*18:53
tomreynkinghat: "PasswordAuthentication yes" is default, i think, also "PermitRootLogin prohibit-password"18:56
kinghatis it smart just to disable ssh access via root altogether?18:57
tomreynthere is a statement on sshd_config explaining what setting "UsePAM false" results in18:58
tomreynwhat is smart surely depends on your needs and how you use it18:58
tomreynit is smart to only allow those authentication methods and users to authenticate that you strictly depend on.18:59
kinghatya disabling ssh root access altogether seems smart. im just not sure about my user. i have the key setup but not sure if i should kill its password access. i mean you have to share the private key around or add it to every device you need to connect from. or make their own. and managing all that.19:00
kinghatalso i had a key setup that i used for root and my user, i know where the user pub key went, but what about the root reference?19:06
tewardwell the OTHER way is to do it by whitelist - whitelisting specific IPs to access SSH19:08
tewardbut that won't work unless you have static IPs on every side19:08
tewardor you could set up a VPN into your box and then only allow SSH from that VPN19:09
kinghatya there is that19:10
kinghati want to try and find the pub key that i submitted for root to use and remove it and leave the one thats in my users `.ssh` file.19:11
kinghatbasically, where is the roots `authorized_keys` file?19:15
benharri/root/.ssh/authorized_keys19:16
kinghathmm i dont have that19:16
kinghatnot sure how i was logging in via root with key.19:17
benharriyou _can_ specify an alternate authorized_keys filename in /etc/ssh/sshd_config19:17
benharribut that's non-standard19:17
kinghathuh. odd19:18
benharrire: root ssh login: i usually set it to prohibit-password in the unlikely event that i muck up my normal user account or its keys19:18
benharriand only keep my hardware-backed gpg-agent-provided pubkey in the authorized_keys19:19
kinghatthats a good idea19:21
benharriit's definitely come in handy more than once19:22
benharrimucked up /etc/{passwd,shadow,group} during a migration to a new box19:23
Ussatso can I verify, on 16.04 I used ot use: apt-get -y autoremove --purge to remove old kernels but keep the last two, is that no longer the case ?20:04
tomreynUssat: i think that's still the case on newer releases (you're not saying which one you're asking about) if you have package "linux-image" installed.20:07
tomreyn"last two" is almost correct there, it also keeps the one which is currently running.20:07
UssatOK so N+2 thanks20:11
Ussatok, and if I dont have linux-image ?20:13
tomreyni'm not certain about this but i *think* they are not removed automatically then. but this may be plain wrong or outdated, i have not tried to verify this.20:14
UssatOK, thanks20:15
Ussatre newer systems, 18.X20:15
DeihmosIf I wanted to remove all the packages installed with Ubuntu is that possible?20:20
tomreynDeihmos: theoretically it may be, but then you'd have nothing left to work with. why would you wnat to anyways?20:21
DeihmosHow would I do it?20:22
sarnoldconstructing the order of packages to remove so that the prerm and postrm scripts that are run don't have dependencies on already-removed packages might be difficult20:23
tomreynit's a somewhat interesting experiment, but i guess it'd get somewhere between boring and daunting really quick.20:28
tomreynbut removing essential packages is not supported, and we haven't seen an actual use case either.20:28
CarlenWhiteI'm screwing around with ubuntu-like and...I'm not sure what I'm looking at.22:36
CarlenWhiteBW checkered background with a teal bordered terminal.22:37
CarlenWhiteHolding left click in empty space gives me 'Main Menu' and middle click gives me 'Window Ops'22:38
CarlenWhiteOh, it's TWM22:40

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