/srv/irclogs.ubuntu.com/2017/03/15/#ubuntu-server.txt

=== poster is now known as Poster
=== notdaniel is now known as notdaniel_
cpaelzerjamespage: no backporting by cloud-archive of new DPDK further back than Xenial right?09:01
jamespagecpaelzer: correct09:10
jamespageany earlier pockets are closed now09:10
cpaelzergood, thanks jamespage09:10
cpaelzerthere was a fix to recent dpdk to build on older kernels <=3.10 I think09:10
cpaelzerno need to rush it in then09:10
=== Benjamin_ is now known as nmjnb
=== petevg is now known as petevg_afk
=== vamiry_ is now known as vamiry
fricklerjamespage: coreycb: ICYMI nova 15.0.1 is out with high impact fixes for ocata, pls update12:59
=== rxc is now known as Guest14564
jamespagefrickler: on my list for as soon as it appeared14:04
jamespagefrickler: working that next14:04
=== poster is now known as Poster
fullstopany good tools to understand why I'm having poor network performance on a server?15:28
fullstopThere are four NICs, and throughput is choppy, even on a NIC which is unused for anything else, so I'm guessing that it's something with the scheduler.15:29
fullstopThe server is a little busy, load avg of ~1615:29
fullstopbut there are 24 cores15:29
=== BrianBlaze420 is now known as BrianbBlaze420
=== BrianbBlaze420 is now known as BrianBlaze420
exegesisHi there. I'm having trouble executing a script at startup.17:14
exegesisI have added it to cron as a @reboot job, not working.17:14
exegesisCan anyone give me a light on how to add it to rc.local?17:14
erlonstgraber: Hey Stephane, Im hitting this bug (https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1576341) do you know what is the status? I basically cant run iscsid inside the container (failed to mlockall, exiting...). I added the lxc.aa_profile=unconfined, as suggested in the bug, restarted the container, but no success, I still get the same error17:29
ubottuLaunchpad bug 1576341 in systemd (Ubuntu) "fails in lxd container" [High,Confirmed]17:29
erlonstgraber: any idea?17:30
naccerlon: did you verify the running container is unconfined?17:33
naccerlon: what version of open-iscsi?17:34
erlonnacc: the last, 2.0.87317:34
erlonnacc: hmm, one point worth to mention, this container is running inside a KVM machine17:34
erlonnacc: not sure if that can be a problem17:35
naccerlon: specific version -- is this i ubuntu 16.04?17:35
erlonopen-iscsi                           2.0.873+git0.3b4b4500-14ubuntu3.3 amd6417:35
erlonnacc: yes17:35
naccerlon: right it doesn't have the fix, afaict17:36
naccerlon: only zesty does17:36
naccerlon: (well, the open-iscsi fix)17:36
naccerlon: you can try making the same change to the service file locally17:36
erlonnacc: reALLY?17:36
erlonopps17:37
erloncaps17:37
naccerlon: i see no tasks for xenial and the last comment is for the zesty version (per changelog and rmadison)17:37
erlonnacc: you mean configuring the iscsid.service  in the container?17:38
naccerlon: let me see if i can find the change verbatim to show you17:38
erlonnacc: ok17:38
erlonhttps://www.irccloud.com/pastebin/kAgDBIav/17:40
naccerlon: http://paste.ubuntu.com/24183873/17:40
naccerlon: interesting -- i don't know enough about why mlockall is failing then, it would seem if it was unconfined, it shouldn't have issues with it17:41
erlonnacc: as it seems that fix just blocks iscsi from running inside confined containers, righ?17:42
erlonnacc: ConditionVirtualization=!container, 'if this is a container, don't run'17:43
naccerlon: i think it prevents it from running in containers period?17:44
erlonnacc: yes,17:44
nacchallyn: --^17:45
nacchallyn: should that change be SRU'd?17:45
erlonnacc: but checking here, I have run iscsid inside a container running in a baremetal machine and is not getting the same problem17:46
naccerlon: same version of the container (16.04)?17:46
erlonnacc: I believe yes, checking17:47
erlonnacc: very same version17:48
erlon iscsid -f --version17:48
erloniscsid version 2.0-87317:48
naccerlon: the iscsid version isn't very helpful17:49
naccneed the package versions17:49
nacc`apt policy open-iscsi`17:49
erlondpkg -l | grep iscsi17:49
erlonii  open-iscsi                       2.0.873+git0.3b4b4500-14ubuntu3.3  amd64        iSCSI initiator tools17:49
erlonhttps://www.irccloud.com/pastebin/4VZlxypy/17:49
erlonhttps://www.irccloud.com/pastebin/BYzncru8/17:50
erlonnacc: ^this last one inside the virtualized container17:51
naccerlon: ack17:51
naccerlon: well, i'm a bit stumped myself. It does seem like hallyn's fix in 17.04 is to prevent open-iscsi.service from running in containers at all. But I'm not sure why that'17:52
naccthat's acceptable -- i guess you would need to do it manually17:52
patdk-wkI'm having a horrible time on 16.04 with a cups server17:52
erlonnacc: hmm, but I can't run it  even manualy17:52
patdk-wkwhen run with cupsd -f, it works fine17:52
erlonnacc:17:53
naccerlon: right, that's probably why it was disabled17:53
erlonroot@juju-5efd81-1-lxd-1:/home/ubuntu# iscsid -f17:53
erloniscsid: failed to mlockall, exiting...17:53
patdk-wkbut when run as a service, or manually, using cupsd -l17:53
patdk-wkit timesout after 60seconds and exits17:53
naccerlon: as you don't have CAP_IPC_LOCK actually17:53
erlonnacc: Im mean calling the binary directly17:53
naccerlon: right, the systemd service just calls the binary17:54
naccerlon: so rather than have it fail all the time in containers, hallyn disabled it17:54
erlonnacc: but inside the baremetal container it runs fine17:54
jamespagefrickler: just published the 15.0.1 update for nova through to zesty; that will auto-backport in the next hour and then I'll promote and test to the UCA (that might be AM tomorrow)17:54
naccerlon: are the two hosts (baremetal and KVM) the same Ubuntu?17:54
jamespageif you want it early then it will be in ppa:ubuntu-cloud-archive/ocata-staging17:55
erlonnacc: I believe yes, just double checking17:55
drabpatdk-wk: had the same issue, went back to 14.04, couldn't figure it out17:56
naccerlon: and same version of lxd in both?17:56
patdk-wkit's odd17:56
naccerlon: and kernel (since there are hwe now)17:56
patdk-wkonly happening on this one server, the other one it works fine17:56
patdk-wkbut think that has something to do with avahi stuff keeping it alive from hitting the 60sec timeout17:56
drabpatdk-wk: yeah, I think so, because onew ork around was to add a "ping" cronjob17:57
patdk-wkya, as long as I keep hitting the web interface to configure and do setup, it keeps running17:58
patdk-wkas soon as I'm done, it's dead17:58
erlonnacc: HOST->"Ubuntu 16.04.2 LTS" ->  KVM -> ="Ubuntu 16.04.1 LTS", -> LXC -> Ubuntu 16.04.2 LTS17:58
drabI did some tracking in systemd thinking it was a socket problem, and found some stuff was indeed missing, but couldn't figure out what needed to be fixed17:58
drabpatdk-wk: but imho the prob is there, with ssytemd and the "on-demand" stuff17:58
naccerlon: so the KVM and baremetal systems are different?17:58
naccerlon: rather than using codenames, it's probably better to pastebin things like `uname -a`, `apt policy lxd`17:59
drabhey DammitJim17:59
drabDammitJim: how did that work out?17:59
patdk-wkepoll_wait(4, [], 65536, 1000)          = 018:00
patdk-wkepoll_wait(4, [], 65536, 60000)         = 018:00
patdk-wkepoll_ctl(4, EPOLL_CTL_DEL, 9, 0x7ffe5adefb70) = 018:00
patdk-wkepoll_ctl(4, EPOLL_CTL_DEL, 10, 0x7ffe5adefb70) = 018:00
patdk-wkclose(9)                                = 018:00
patdk-wkclose(10)                               = 018:00
erlonnacc: hold on, just fcorrenting KVM I mean the lxc running18:00
patdk-wkright after the return from that 60000 epoll_wait, cupsd start to shutdown18:00
patdk-wksocket ping should keep it alive :( but annoying18:00
drabyeah18:00
erlonnacc: so yes, the LXC container that iscsid can work (16.04.1 ) is different from the LXC running under KVM (16.04.2)18:01
patdk-wkdoesn't happen on my laptop, but that has the full gui installed on it, not just a cups server18:01
erlonnacc: just does not makes sense the the later version should work, not the 16.04.118:02
patdk-wk● cups.service - CUPS Scheduler18:03
patdk-wk   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)18:03
patdk-wk   Active: inactive (dead) since Wed 2017-03-15 13:32:05 EDT; 31min ago18:03
patdk-wk     Docs: man:cupsd(8)18:03
patdk-wk  Process: 13103 ExecStart=/usr/sbin/cupsd -l (code=exited, status=0/SUCCESS)18:03
patdk-wk Main PID: 13103 (code=exited, status=0/SUCCESS)18:03
ducasseis there a difference between the zfs.ko that comes with the kernel and the zfs-dkms package? both are the same version, afaict.18:04
axisysI increase the virtual hard disk.. how do I realize the new size in the VM? pvs still shows old size18:04
patdk-wkducasse, yes18:04
axisysI increased the size of the virtual disk..18:04
DammitJimdrab, I told one of the other managers and he said we'll talk about it18:06
DammitJimthanks for following up18:06
axisysah.. it took a while for pvresize to take in effect.. now I see the large size18:09
DammitJimaxisys, good luck with resizing18:10
axisysDammitJim: done18:10
DammitJimI still have to document how I do that to standardize it in our company18:10
DammitJimawesome18:10
ducassepatdk-wk: i assume i should use the zfs.ko in the kernel, as the zfs metapackage doesn't drag in zfs-dkms?18:11
patdk-wkeither is fine18:11
naccfor ubuntu kernels you shouldn't need zfs-dkms, iiuc18:11
patdk-wkdkms is for when you use a kernel that does not have it18:11
axisysmy /dev/sdb was a PV .. so once I changed the size of the disk in vmware, I had to run pvresize.. and it took a little type to reflect18:11
ducassepatdk-wk: ok, thanks18:11
patdk-wkor if if you want to use a different version than the one in the kernel18:11
ducassei see. perfect :)18:12
fricklerjamespage: great, thx18:12
naccerlon: so i'm not sure where we stand -- it's sort of hard to tell which version is which (as 16.04.1 and 16.04.2 are the same version of lxc and open-iscsi, the difference is in the kernel/x stacks potentially)18:27
patdk-wkdrab, this is not really the *right* fix20:26
patdk-wkbut editing the systemd cups.service unit file to change the -l (run on demand) to -f, has fixed the issue20:27
drabpatdk-wk: oh, good point, better than the ping or stick with 14.04 I guess20:33
drabthanks20:33
patdk-wkit seems like -F works too20:33
patdk-wktesting that, as it seems like a better solution20:33
patdk-wkatleast till the real reason is solved, this on demand stuff for a server heh20:34
drabwhile on the topic, I don't know your setup, but you wouldn't happen to have quite a few diff systems there and a reasonable way to centralized printing?20:34
drabI wrote to the cups ML, but no response for some reason20:34
drabthe client.conf thing they say is deprecated and "you must run a local cups connecting to the remote one"20:34
drabI get that in principle, but in practice it's a mess ime20:35
patdk-wkthat is how I do it20:35
drabok, maybe I'm doing something wrong, here's the big problem for me20:35
patdk-wkI setup a cups printer, that advertizes airprint and google print20:35
patdk-wksetup cups-browsed20:35
drabprinter goes down, queue is still up because cups doesn't actually check the printer20:36
drabuser goes to machineA, tries to print, doesn't work, tries again, doesn't work, a third time, doesn't... now machineA has 3 jobs in the local queue20:36
drabthen use thinks "I nkow, there's a problem with machine A" and goes to machine B and does the same thing20:36
drabnow I have two machines with 3 jobs each of the same thing in the queue20:37
drabI go to fix the printer and bam, 6 copies of the same thing gets printed20:37
patdk-wksetup your cups server, with cups-browsed, and BrowseLocalProtocols cups20:37
patdk-wkthen on the client machines install both again, but with cups-browsed setting of BrowseRemoteProtocols cups20:37
patdk-wkit will automatically add the cups servers printers locally20:37
drabwith client.conf that doesn't happen because jobs only exist on the remote cups, which I can easily monitor and see the dup'ed jobs and remove them before I restart the printer20:37
drabthe problem isn't finding/configuring the printer20:38
drabit's job management20:38
drabspecfically stuck jobs20:38
drabwhen something is wrong with the printer, local queues ime are a nightmare20:38
drabbecaue I have no clue on which machine theya re and purging them is a pain20:38
patdk-wkyes, but the job won't be on the local machines then20:38
drabmmmh, I had that situation quite a bit, which is why we switched to client.conf20:40
drabbut maybe there was something else wrong20:40
patdk-wkdunno, I never have to worry about queues ever myself20:41
patdk-wkI mainly use that feature for my laptop and macs20:41
patdk-wkthey show up on the lan, the printer just appears and is usable20:41
patdk-wkno local config setup or anything needed20:41
patdk-wkI can't imagine it would get stuck in a local queue when doing that20:41
patdk-wkas it should always be able to go to the remote queue20:42
patdk-wkor the printer would *vanish* from the local machine20:42
drabI see20:43
drabeer, above I said "printer has a problem", the problem case is "remote cups has a problem"20:43
drabwhich is when the job is cached locally20:43
drabin the other case you're right, the job would be gone from the local queue even if not printed20:44
drabI'll take a look at the browserd thing you mentioned, thanks20:44
drabif the printer did vanish that'd stop the problem altogether20:44
patdk-wkok, not sure -F works :(21:13
patdk-wkok, found the real reason21:19
patdk-wkit's cause I have no shared printers configured21:19
patdk-wkadding this as in the bug report I found solves the issue21:21
patdk-wkListenStream=63121:21
patdk-wkbug #159830021:21
ubottubug 1598300 in cups (Ubuntu Xenial) "CUPS web interface stops responding after a while" [Undecided,Fix committed] https://launchpad.net/bugs/159830021:21
patdk-wkya, that looks like it fixed up21:33
patdk-wkupgrading to the cups -proposed package21:33
patdk-wkthat is damned annoying21:33
drabpatdk-wk: good catch. the upstream patch seemed unresolved tho, ie they don't accept the ListenStream=63121:40
patdk-wkdifferent issue, kindof21:40
patdk-wkdefault in ubunt is to have the webinterface enabled21:41
patdk-wkthen cups should never exit21:41
patdk-wkthe patch fixes that21:41
patdk-wkso then it becomes a non-issue21:41

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