/srv/irclogs.ubuntu.com/2018/07/03/#ubuntu-server.txt

=== miguel is now known as Guest60735
=== giraffe is now known as Guest56583
lordievaderGood morning06:01
=== agm is now known as Guest94550
OlofLHello how do I run an ntp server properly ?07:42
OlofLhttps://paste.ubuntu.com/p/BQdCbWDHj6/ time seem to sync down to my server. but noone else can query me. tcpdump and I see requests coming in. firewall is off07:43
OlofLhttps://paste.ubuntu.com/p/32zHCpxshG/ systemctl status ntpd its running07:45
blackflowOlofL: ntp.conf is deliberately blocking queries from outside due to vulnerabilities inherent in the protocols. Check that. I don't know more because I never ran a stratum like that, only clients.09:43
blackflowOlofL: also timedatectl is relevant when systemd-timesyncd is in use, which shuts off when you install another ntp service like you did.09:43
=== agm is now known as Guest59573
=== beatzz_ is now known as beatzz
ahasenackrbasak: hi, around?12:15
rbasako/12:18
ahasenackrbasak: hi, about samba and libldb. ldb is stuck in migration for quite some time http://people.canonical.com/~ubuntu-archive/proposed-migration/update_excuses.html#ldb12:35
ahasenackthe reason is it needs a samba rebuild12:35
ahasenackrbasak: I'm not uploading my samba 4.8 merge because of that possible regression in samba upstream (https://bugzilla.samba.org/show_bug.cgi?id=13486)12:36
ubottubugzilla.samba.org bug 13486 in File services "CIFS guest connection can't read back file it just created in mode 0600" [Normal,New]12:36
ahasenackrbasak: libldb is a sync from debian, it's in the migration queue probably because of an auto-sync12:36
ahasenackit's a library, used by others (like sssd)12:36
ahasenackif we want to get that into cosmig (by we, I mean ubuntu), we should unblock it soon12:36
ahasenackone way would be to just upload a no-change samba pkg, the one in cosmic currently12:37
ahasenackI don't know how long it will take to upstream comment on that bug, so far only debian has12:37
ahasenackI pinged #ubuntu-devel yesterday, no response12:37
rbasakahasenack: I think a no change rebuild of samba is reasonable to unblock ldb, regardless of the status of an upcoming merge.12:53
ahasenackright12:53
rbasakahasenack: separately I trust your judgement on whether a merge is appropriate now or you want to wait for the upstream regression to be fixed.12:53
ahasenackI would like to have upstream at least comment12:54
ahasenack"yes, it's a bug" or "no, you are holding it wrong"12:54
ahasenackrbasak: how should I proceed with a no change rebuild? Add a changelog entry with a "build1" suffix and request sponsorship?12:55
ahasenackor is there a script for that12:55
rbasakdch has a switch for it that should help12:55
ahasenackdo we need an mp for that?12:55
ahasenack(I can't upload samba, if that hasn't become clear yet ;)12:55
rbasakIt'd be a debdiff or an MP. I don't mind which since it'll only be a change to debian/changelog so the resulting commit willl be basically the same whether we use an upload tag or not.12:57
ahasenackfrom 4.7.6+dfsg~ubuntu-0ubuntu2 to 4.7.6+dfsg~ubuntu-0ubuntu2build1, does that look correct? dch --rebuild didn't add build1 but instead bumped 0ubuntu2 to 0ubuntu312:59
rbasakBumping 0ubuntu2 to 0ubuntu3 is correct12:59
rbasakWe only add build1 when in sync with Debian12:59
ahasenackah, ok12:59
ahasenackrbasak: switching topics, I was looking at an exim4 merge, that normally christian handles13:01
ahasenackrbasak: our only delta is a patch to add the distribution name ("Ubuntu") to the smtp banner13:02
ahasenackrbasak: I didn't find evidence of that having ever been submitted to debian13:02
ahasenackrbasak: and the patch is as such that it will work with debian as well, just adding "Debian" to the banner13:02
ahasenackrbasak: do you know of some history behind this? Would debian oppose to such a change (advertise that the service is running on a debian box)?13:02
=== freyes__ is now known as freyes
ahasenack"220 sid-exim4 ESMTP Exim 4.91 Debian Tue, 03 Jul 2018 13:03:03 +0000"13:03
rbasakI believe it's down to individual Debian maintainers. I think Debian took a similar change to squid3 from us, for example.13:03
ahasenackok, I'll try to send it to them13:04
ahasenackYolanda made that one, back in 201313:05
ahasenackrbasak: and launchpad's diff got nuts again13:17
ahasenackhttps://code.launchpad.net/~ahasenack/ubuntu/+source/samba/+git/samba/+merge/34888813:17
rbasakack13:19
supercoolHello guys!14:02
supercoolCould someone help me to run the apt-get update command please?14:02
blackflow!ask | supercool14:03
ubottusupercool: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience14:03
compdocwhats the problem?14:03
supercoolWhen I run it it seems a old app has a invalid signature or something. I just want to restart it from scratch14:03
ahasenackrbasak: in a dep3 header, can Forwarded be used to indicate the patch has been forwarded to debian as well, or just to upstream?14:03
compdocif you have 16.04 or newer, use apt, not apt-get14:03
compdocdisable that repo then14:04
supercoolhow do I disable a repo?14:04
ahasenacksupercool: better to show the error. It might just be an outdated mirror14:04
supercoolIt is not a official ubuntu mirror, it is related to a app I did install14:04
supercoolI did already remove the sources.list fine14:06
supercoolfile*14:06
ahasenackyou removed sources.list?14:06
ahasenacknot sources.list.d/<someotherfile>?14:06
ahasenackor just a line from sources.list?14:06
compdocjust needed to edit it14:06
rbasakahasenack: I don't think dep3 has considered that case for derivatives, so "undefined" maybe? I think it makes sense to use the header multiple times, once for each place it has been forwarded, including Debian (for us).14:06
ahasenackrbasak: yeah, I would like to record somewhere that I forwarded the patch to debian14:07
supercoolAlright. Let me see it this file is listed.14:07
rbasakahasenack: essentially I'm unilaterally extending dep3 using the existing pattern in the spec set for Author.14:07
rbasakahasenack: another established way is to file the bug in Debian and then include "Closes: #XXX" in your changelog entry. You can do both.14:08
ahasenackrbasak: I'll stick with the salsa mp, let's see how it works out14:08
ahasenackI think the intent is clear14:08
ahasenackand I rather deal with salsa's interface than bugs.debian.org ;)14:09
supercoolahasenack: where do I locate sources.list.d ? The dir I removed was /var/lib/apt/lists14:24
ahasenacksupercool: it's just a subdirectory of /etc/apt14:25
supercoolChecking14:25
ahasenacksupercool: to add a new repository, one can add a line to /etc/apt/sources.list, or a new file inside /etc/apt/sources.list.d/14:25
ahasenackadd-apt-repository, for example, adds a file to /etc/apt/sources.list.d/ instead of a new line to /etc/apt/sources.list14:26
supercoolAnd to remove it perhaps one can remove a line from /etc/apt/sources.list,14:26
=== Adri2000_ is now known as Adri2000
supercoolI think I get it ahasenack. There was some files into /etc/apt/source.list.d14:33
supercoolThank you a lot!14:33
ahasenackcool14:34
coreycbjamespage: i'm working on some keepalived backports for LP: 174406214:55
ubottuLaunchpad bug 1744062 in neutron (Ubuntu Bionic) "L3 HA: multiple agents are active at the same time" [High,Triaged] https://launchpad.net/bugs/174406214:55
coreycbjamespage: are you ok with backporting keepalived to ocata and pike cloud archives? to fix this in xenial would be non-trivial.14:55
jamespagecoreycb: what does the version bump look like?16:03
coreycbjamespage: xenial is 1.2.19 and ocata/pike would be 1.3.216:05
ahasenackrbasak: do we need to wait a bit more? https://pastebin.ubuntu.com/p/qbryPBpXCv/17:26
ahasenackI bet that output is left as is just to serve as a test for core-dev applicants :)17:27
rbasakahasenack: :)18:42
rbasakahasenack: looks like it migrated now?18:42
ahasenacklet me check18:42
ahasenackrbasak: indeed. Odd, I didn't get the bugs ahhh, ok, the bugs being closed were tied to my 4.8 merge18:43
ahasenackrbasak: cool, it did migrate, thanks18:44
eriswansFrom #ubuntu: Where should I have been watching to find out in advance about the change to automatically install the ssm agent snap in the Xenial AMIs owned by Canonical, when earlier Canonical-owned Xenial AMIs did not?18:55
naccdpb1: Odd_Bloke --^ ?18:55
ahasenackdoes he mean snapd, or an actual snap called ssm?18:56
eriswansthe amazon-ssm-agent snap18:56
ahasenackno idea what that is18:57
naccahasenack:  a specific snap --^18:57
eriswansI only found out about it being installed (with no change to my cloud-init data) because of a monitoring freakout on newly-created instances panicking about there being no space or inodes free in the snap filesystem.18:57
nacc:cough: that's a buggy monitor :)18:58
sarnolduseful thuogh :)18:58
eriswansami-759bc50a (ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20180627) automatically installed it; previous versions did not18:58
Odd_Blokeeriswans: o/18:58
naccOdd_Bloke: thanks :)18:58
ahasenackhttps://snapcraft.io/amazon-ssm-agent18:58
eriswansThis wouldn't have been problematic if it was something introduced in 18.04, but it's a very surprisng change to see made to canonical-provided amis of an lts release.19:00
Odd_BlokeAdding amazon-ssm-agent was a change to the image requested by Amazon; it enables a number of their solutions to work seamlessly on top of Ubuntu.  We worked with them to ensure that it is inert unless there is specific metadata that indicates it should do something (which would only be present if you were using one of the services that require it).19:00
Odd_Blokeeriswans: Sorry that it ended up causing that monitoring problem for you; other than that sort of fallout, it's a fairly minor addition to the image, so I'm not sure that we really communicated it out.19:01
Odd_BlokeWe should do a better job of that in the future.19:01
eriswansIt's not just monitoring, it silently broke a pattern for immutable-for-security-reasons instances (cloud-init turns off sshd and disables cloud-init from ever running user data again)19:02
sdezielsnap's ro loopback mounts being 100% used also tripped our monitoring ;)19:03
eriswansIt's a good change, but IMO disastrous to add to an LTS release after that release19:03
sdezielthe fix was simply to ignore squashfs mounts19:04
eriswansYeah, I've already fixed our monitoring, but this is still a dizzying, trust-destroying experience to learn that it's not safe to automatically grab the latest canonical-provided ami for an lts.19:05
Odd_BlokeIn cloud environments, we have to find a position between the immutable LTS release and keeping up with the cloud platform so people can continue using Ubuntu on top of it effectively.19:07
eriswansMy expectation is, well was, that a new ami in an lts will never be sufficiently different than grabbing the original ami for an lts and having the user data do an automatic dist-upgrade.19:07
Odd_BlokeAnd, as I mentioned, we worked with Amazon to ensure that the installed daemon will be inert unless specifically required by services that users have opted-in to.19:08
eriswansThe security impact is that it provides a way around what was previously a reasonable way to ensure that once launched an instance wont' accept arbitrary administrative commands even from someone with access to the aws account.19:10
Odd_BlokeThe dist-upgrade thing almost always holds true; this was an exceptional case because of the new platform requirement.19:10
eriswansIt's not unlike sshd going from off by default to on by default mid-lts19:11
Odd_BlokeThey are different categories of risk IMO, but I do accept your point.19:13
eriswansIs there at least a flag i can add to the user data to prevent it from being installed (stopping after starting isn't good enough), or is the snap baked into the ami?19:14
_KaszpiR_make your own custom ami without it?19:15
Odd_BlokeThe snap is preseeded, which means it's put in to place on first boot.19:16
Odd_BlokeSo I don't think a `snap remove amazon-ssm-agent` would be sufficient, as it would have to be installed (and started) for that to possibly work.19:17
Odd_BlokeLet me try a couple of things.19:17
eriswansIs it correct that the snap being pre-seeded would mean that it'll start whenever systemd starts the snap stuff up? (Sorry, I'm not familiar with snaps.) With that in turn implying that unless the snap services are somehow default-disabled and turned on by/*after* cloudinit, there'd always be a race?19:19
Odd_BlokeYep, when snapd starts up, it will install the snaps that are preseeded in the image.19:20
eriswansThanks for the clarification.19:20
Odd_Blokeuser-data explicitly runs _after_ seeding is complete, so that preseeded applications are available to user-data.19:21
Odd_Bloke(Not particularly necessary in the amazon-ssm-agent case, but for snaps that install a CLI tool it's handy to actually be able to use them. :)19:21
Ubu-1604hello :)19:24
compdocyur old19:25
Ubu-1604compdoc: well true ... I still use 5 1/4 floppy disks :)19:28
Odd_Blokeeriswans: http://paste.ubuntu.com/p/dCCprfCqBp/ removes the seed configuration, so amazon-ssm-agent will never be installed.19:28
sarnoldhandy, thanks19:29
_KaszpiR_rm -f  rahter19:31
powersjthere was a command that would draw an topology of your system, can't recall it19:33
powersjhwloc-ls does a picture, but I thought i recalled an ascii one as well19:33
sarnoldlstopo19:33
Odd_Bloke_KaszpiR_: Right.19:33
eriswans@Odd_Bloke thanks for that19:33
powersjsarnold: thanks that is it, but I guess it is the same as hwloc-ls19:34
sarnoldpowersj: oh :)19:34
sarnoldpowersj: I was using lstopo --of console and lstopo --of ascii the other day..19:35
sarnoldascii is surprising19:35
powersjhah wow19:35
Odd_Blokeeriswans: Happy I could help!19:35
_KaszpiR_whoa so many years in linux and haven't seen that command19:38
npgmI'm looking for a text/cli based network management tool that knows about linux network namespaces. 18.04's netplan has no notion of network namespaces. I need a configuration that will allow me to define the namespaces and the associated interfaces and have this persist on restart.19:47
npgmis my only option to write raw ip commands in a bash script or something?19:47
sdezielnpgm: I'd look into "lxc network"19:48
npgmwill look - but to be clear I'm not using any containers19:49
sdezielnpgm: yeah, it's not a perfect match to what you need but you can use lxc defined network without using lxc containers19:49
npgmgot it19:50
sdezielhmm, not sure that will fit the bill though because the created networks are in the host context, sorry19:50
npgmso I am running a binary with `ip netns exec` under a certain namespace. At that point how far off is this from just being an lxc container?19:50
npgmI guess my issue is I know the exact ip configuration that I want, I just want to be able to write it down in a file that will be loaded on startup, so not terribly interested in writing some container file for this.19:51
sarnoldnpgm: please file a bug report against the netplan/nplan package, describing what you want, I have to imagine that we'd like to cover it in the future19:53
sarnoldnpgm: but you'll probably have best success most quickly just doing it by hand.19:53
npgmsarnold: how do you suggest doing that? i.e. whats the best way to manage raw `ip` commands?19:54
sarnoldnpgm: you could probably still install and use ifupdown and use /etc/network/interfaces19:55
npgmsarnold: oh, does that support namespaces?19:55
sarnoldnot that I know of, but it provides a place fo ryou to put all the ip commands that you want..19:56
npgmI see, I'll look into that. Thank you19:56
sdezielsome scriptability should be possible with netplan: https://netplan.io/faq#use-pre-up-post-up-etc-hook-scripts19:59

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