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

lawhey all, I'm trying to netboot an ubuntu-server iso over ipxe/uefi, but it hates me.  Is the ubuntu-server image UEFI-compatible in Xenial?01:19
masonlaw: yes04:01
masbergood afternoon, for some reason my ubuntu server does not want to boot05:24
masberit says "gave up waiting for root device"05:24
masberand goes to (initramfs)05:25
masberhttps://pasteboard.co/H6bAYZY.png05:29
cpaelzergood morning06:29
cpaelzermasber: in the early env there is no lsblk yet06:31
cpaelzermasber: try looking for /dev/<dependingonyourdevice>06:31
cpaelzermasber: also dmesg might be interesting to see if anything failed while initializing the disk or controllers06:31
lordievaderGood morning07:34
jamespagecpaelzer: hmm well all seems good with a fresh snapshot09:15
jamespage\o/09:15
jamespagehttps://bileto.ubuntu.com/#/ticket/312409:16
cpaelzeroO09:19
cpaelzernice09:19
jamespagecoreycb: I'm going to push staging->proposed now13:15
coreycbjamespage: +113:16
coreycbjamespage: i'm re-running nova dep8 tests. they passed for me locally.13:16
jamespagecoreycb: ok13:16
rbasakcpaelzer: I wonder if you might know if there's an easy way to tell how much memory of a process cannot be evicted from the resident set? Eg. the heap, which would need to go to swap, vs. memory mapped libraries which can just be evicted.14:45
rbasakI ask because the amount on a vanilla server install seems to have gone up, so I'd like to measure it.14:45
TJ-rbasak: /proc/self/map ~ /proc/$PID/map  ?14:50
rbasakTJ-: I'm aware. I'm wondering if there's a tool that'll give me a number, instead of having to calculate it myself.14:50
rbasak(and it's maps, not map)14:51
TJ-rbasak: gotya, I saw some perf tooling a while ago but can't recall where or what exactly14:51
TJ-ahhh, "mem_usage"14:53
TJ-Mine notes I sourced it from https://elinux.org/images/d/d3/Mem_usage14:57
cpaelzerrbasak: look at the tool smem14:59
cpaelzerit has no good huge page support yet, but other than that is great15:00
=== _ruben_ is now known as _ruben
rbasakcpaelzer: thanks! I'm trying it, but I think it's still counting memory that could be swapped out though?15:02
rbasakUh15:02
cpaelzerit counts it "as it is"15:03
cpaelzerso it can be mapped, swapped or both15:03
cpaelzerif it is swapped, but not discarded15:03
rbasakWhat I want is the total memory per process that _has_ to be swapped out when under pressure.15:03
rbasakRather than how it is now.15:03
cpaelzer_has_ -> could ?15:03
rbasakNot exactly15:04
rbasakSay I have no swap15:04
cpaelzerdefine "has to be" please15:04
rbasakI'm under memory pressure.15:04
cpaelzerok15:04
rbasakWhat are the processes that I'm not using but are resident that are getting in the way?15:04
cpaelzerthe ones with the biggest USS in this output15:05
rbasakIn that situation, the kernel could evict everything that has a backing file.15:05
cpaelzersmem -tk -c "pid user command swap vss uss pss rss”15:05
cpaelzerthere is another cmdline for the mapping view15:05
rbasakUSS will include what is in memory but could be evicted, no?15:05
rbasakThe figure will be inflated.15:05
cpaelzerhmm - I see, you want to know the minimal set that has to stay - is it that?15:06
rbasakRight15:06
rbasakWithout putting the system under pressure, since that feels like it could introduce noise in my results depending on how I do it, what else is happening, etc.15:06
cpaelzerrbasak: but they are "just" userspace15:07
rbasakI don't follow15:07
cpaelzerrbasak: essentially all but maybe the mlocked pages "could" be swapped - in your non-swap case that can't be done15:07
cpaelzerso you look for "shrinkable" memory15:07
cpaelzerthat the processes will not hold15:07
cpaelzerthe smem output of above is what the program has on it's own allocated15:08
cpaelzerit is NOT what e.g it has in page cache (discardable) due to reading a file15:08
rbasakI thought USS would include, say, an mmapped ro file that's read only of which some is resident but that's the only process that has it mapped.15:08
cpaelzeryou mean because it can be discarded and brought back15:09
cpaelzerhmm15:09
rbasakRight15:09
cpaelzeryeah you are right15:09
cpaelzerit is overaccounting for your check15:09
cpaelzerrbasak: but15:10
cpaelzerrbasak: see the second command above15:10
cpaelzerto get closer to what you want you should be able to remove all that is mapped on files there15:10
cpaelzerso your mmapped ro file would show up there and have an USS matching its file15:11
cpaelzerrbasak: I don't know how to check (in this simplified view) what is dirty/cow and can therefore not be discarded15:12
cpaelzerrbasak: do you need that for a single process?15:14
rbasakI'd like a per-process amount15:14
cpaelzerrbasak: so process X - how much of its open file #2 is in memory?15:14
cpaelzerso a system wide overview still15:14
rbasakI'd like a per-process _total_ amount15:14
rbasakRight.15:14
cpaelzerhmm, no then I don't know a tool yet15:14
rbasakI want to identify the "bad" processes, and how bad they are.15:14
cpaelzerproc smaps parsing15:14
cpaelzermaybe a small extension to smem15:15
cpaelzerit is python after all, so you might be close15:15
rbasakOK, thanks15:15
cpaelzerI once had a hugepage extension15:15
cpaelzernot too bad (but a bit outdated)15:15
* rbasak wonders if it's worth it15:15
cpaelzerfyi the reverse I asked for is "man mincore"15:15
rbasakThere are two candidates I've less subjectively identified15:15
rbasakless objectively15:15
rbasakiscsid and snapd15:16
simulant_hi can anyone please help me out. I have two machines on my local network that can't ping each other. they can ping other devices, other devices can ping them - but they can't ping each other!15:18
simulant_it's driving me bonkers if anyone can please help15:18
rbasaksimulant_: I would narrow down the problem by seeing what is leaving and what is arriving where, using tcpdump. Sorry I don't have the time to go through the details with you.15:20
nacccpaelzer: was the llast comment in LP: #1733572 a private ping?16:39
ubottuLaunchpad bug 1733572 in kopanocore (Ubuntu) "php-mapi conflicts with other version" [Undecided,Triaged] https://launchpad.net/bugs/173357216:39
nacci have the 'fix' for that issue in particular in the MP (wich you can review). I have a feeling we are being bit by an openssl issue, but not sure yet.16:42
cpaelzernacc: It was making clear that you are already on it16:43
cpaelzerand for the review last week it was WIP - you say it is open for review now?16:43
nacccpaelzer: no, it's still not16:46
nacci haven't figured out teh segv yet16:46
cpaelzerok waiting for your ping still then16:46
cpaelzerno urge by me, just needed to check if still in the state I knew16:47
nacc*but* it passes onn debian16:47
naccand historically this has been due to some ssl issue, when the same segfault is seen16:47
naccthey are also only testing 7.0 and 7.1 :)16:48
=== dames is now known as thedac
HackeMatehello, is there a deployment generator for ubuntu server? such like opengnsys or the old rembo18:08
HackeMateor any image-restore via network18:08
sarnoldcloud-init, maas, fai-server are all popular and serve slightly different purposes18:11
HackeMatethank you sarnold18:27
coreycbjamespage: networking-bagpipe/bgpvpn were a pita for b3 as they both reverse-depend on each other and won't pass tests without b3 of each other19:42
coreycbjamespage: and i see they're ftbfs in proposed now19:42
coreycbjamespage: if we can upload 8.0.0~b3-0ubuntu1 of both packages to queens-proposed, they have tests disabled. then we can promote the current version to queens-proposed.19:48
axisysI need to call a script at network change.. running it on my laptop which is sometimes on wifi at home and sometimes on ethernet at work.. where is the right place to put the script, so it gets called at network change? I am on 16.04 lts21:14
masonaxisys: Use /etc/network/interfaces and have "up" directives. You can have multiple location-based configs for each interface.21:20
axisysmason: for laptop that file is mostly empty21:21
masonaxisys: It can be as empty or as full as you make it.21:21
masonIt's how I do it for my laptop. Works well.21:21
axisysmason: yep, use it for server..21:21
masonIf you're looking for a way to do this with Network-Manager, then 1) don't do that, and 2) there's no way to do that.21:22
sarnoldaxisys: investigate ip monitor or rtmon21:26
axisyssarnold: thanks a lot!21:27
sarnoldaxisys: don't thank me just yet. :) you might not like these solutions much, hehe21:27
powersjnacc: I think this run will get us self-test: https://jenkins.ubuntu.com/server/job/git-ubuntu-ci-redux/4/console21:31
naccpowersj: will watch21:32
naccpowersj: i'm also wondering if we can possibly leverage https://forum.snapcraft.io/t/snapcraft-clean-doesnt-clean-with-snapcraft-container-builds-set/229121:33
naccpowersj: (well the popey-mentioned commands int hat bug report)21:33
naccto reuse the containers for building in CI21:34
naccthat would speed it up significantly, sinnce our deps don't geerally change (only our code itself)21:34
powersjthat would be really nice21:34
naccpowersj: https://insights.ubuntu.com/2017/11/22/announcing-snapcraft-2-35/21:35
nacci will see how that works if the underlying build target keeps changing21:35
masonsarnold: rtmon looks interesting, but the dinosaur in me wants to manually control which network I'm on21:38
sarnoldmason: heh, yeah, I never really "got the hang" of network manager ..21:39
masonsarnold: I remember a long while back asking how to tie scripts to network-up events, and the NM guys told me it wasn't possible. So I kept using ifupdown.21:40
masonI still don't think it's possible, despite it being an obvious thing to want to do.21:40
sarnoldmason: it seems like such a basic thing :(21:40
masonHrm, this says NM just drives ifupdown: https://askubuntu.com/questions/258580/how-to-run-a-script-depending-on-internet-connection21:41
masonBut I don't think that's true nowadays.21:42
naccpowersj: ok, yeah, it seems that will do what we want21:51
naccpowersj: i should test it a bit locally21:51
powersjnacc: any issues if we are running multiple CI jobs at a time?21:51
naccpowersj: ah probably :)21:51
nacclet me ask21:51
naccpowersj: see #snappy?22:01
powersjI'm not in that channel22:01
naccpowersj: ah ok22:02
naccbasically, the container used is dtermined by the directory it's called from (and the snap's name)22:02
nacci'm trying to think of the matrix of decisions we want to make here22:03
powersjnacc: doh failed: 'bash -l -c git-ubuntu -h'22:05
powersjnot sure why that failed, I thought it exits 0. Anyway I'll rerun without the call to -h and just skip to self-test22:07
naccpowersj: hrm, that exited 1 here .. not sure why either22:08
naccxnox: is there a way with gpg2 to find out where private keys are stored (filename)? it used to be you could pass --secret-keyring, but that's ignored now and keys are put in private-keys-v1.d/ ... asking because php-horde-crypt calls gpg with --secret-keyring still and assumes it is honored22:11
xnoxnacc, that will not work, no. one is supposed to use gnupg-agent; non-agent access to private keys is no longer supported.22:17
naccxnox: ok, so the test as-written just doesn't make sense22:18
xnoxnacc, you can and should use GNUPGHOME, then you can control which toplevel dir will be used.22:18
naccxnox: yep, they do22:18
nacci guess i could just look for the one key created in there :)22:18
naccxnox: thanks22:19
powersjnacc: https://paste.ubuntu.com/26527006/22:41
naccpowersj: sigh ok22:43
naccpowersj: will pivot back to that in a bit22:43
powersjok, you can basically re-run that last build to re-test22:44
powersjI added the failure stop to, so it won't run the integration tests next time22:44
naccpowersj: https://paste.ubuntu.com/26527216/23:42
naccpowersj: you're building on xenial, right?23:42
powersjnacc: correct23:43
naccpowersj: with updates enabled?23:43
nacci'm not sure why you're versioning is different, which also ssems a bit odd23:43
naccpowersj: do you have the log from the buildl?23:43
powersjall I have is the jenkins log https://jenkins.ubuntu.com/server/job/git-ubuntu-ci-redux/4/console23:44
powersjwoops 5 was the failure of self-test: https://jenkins.ubuntu.com/server/job/git-ubuntu-ci-redux/5/consoleText23:44
naccpowersj: ack, reading23:45

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