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

=== bspar_ is now known as bspar
=== led_ir23 is now known as led_ir22
=== yokel_ is now known as yokel
lordievaderGood morning06:29
edenistmorning06:45
olivierbourdon38monring everyone, anybody having experience with overlayroot package on ubuntu xenial 64 bits which generates a new initrd which is not compatible with my LVM based initial server setup. When I install overlayroot on my base image and reboot, the system does not seem to look for LVM root partition. Any ways to fix this ?07:57
=== greenywd is now known as greeny_
=== greeny_ is now known as greenywd
=== greenywd is now known as greeny_
=== greeny_ is now known as greenywd
olivierbourdon38in fact I just narrowed down the problem which is not caused by overlayroot but by initramfs-tools08:09
olivierbourdon38in fact on my system,  dracut is installed and was used to generate the initial initrd08:10
olivierbourdon38installing initramfs-tools removes dracut and regenerates a non LVM compatible initrd08:11
=== miguel is now known as Guest43175
=== lypsis is now known as lypsis|awy
=== tomaw_ is now known as tomaw
=== lypsis|awy is now known as lypsis
rbasakcpaelzer: I see three MPs in the review queue from you. Is there anything you'd like me to look at first?11:08
* rbasak takes the oldest one first11:15
compdocthree MPs in the review queue? whats that?11:32
rbasakcompdoc: https://code.launchpad.net/~canonical-server/+activereviews11:49
rbasakcompdoc: though not a requirement for Ubuntu development, the Canonical server team operate a peer review policy for ourselves.11:49
ahasenackany idea why ubuntu-upload isn't working for this package that is in xenial? https://pastebin.ubuntu.com/p/FTBtZz5krd/12:35
ahasenackit's looking in cosmic12:35
ahasenackrbasak: hi, morning, did git-ubuntu break again? I'm getting ERROR:root:Is python3-pygit2 installed?12:41
ahasenackI have 0.7.4+git82.3512465  429 from edge installed12:41
ahasenackor maybe that was never fixed and I upgraded12:41
ahasenackoh, wait, I have 430 actually12:41
ahasenackbut with that error12:41
ahasenack429 works, I just reverted12:44
=== lypsis is now known as lypsis|awy
=== lypsis|awy is now known as lypsis
=== Freejack_ is now known as Freejack
cpaelzerrbasak: no particular prio order - open-iscsi is a bit special (no merge but a bug fix)13:47
cpaelzerrbasak: and surely the one with the biggest changes, so more to discuss13:47
=== lypsis is now known as lypsis|awy
rbasakcpaelzer: what I haven't been able to figure out is how the socket activation works at all13:56
rbasakI grepped for sd_ and found nothing13:56
rbasakand StandardInput=socket doesn't seem to be in use13:56
cpaelzerrbasak: it is an abstract socket13:57
cpaelzerthe iscsi adm uses the same abstract socket13:57
rbasakahasenack: sounds like it's broken again :(13:57
cpaelzerso the @... in the socket file registeres this abstraction13:57
cpaelzerand this is what iscsiadm and co open against13:57
rbasakcpaelzer: yeah but if systemd accepts the first connection, how does it pass the fd of that first connection over?13:57
cpaelzerrbasak: I didn't care yet, but this is a general socket activation question and less MP specific right?13:58
rbasakcpaelzer: it's MP specific in that I don't see how it could possibly work so therefore have a suspicion that merging this will break something13:59
rbasakahasenack: the self test passes for me. What subcommand is giving you that error please?14:00
cpaelzerrbasak: the socket connecting code in iscsiadm always does retry the connection anyway mutliple times14:00
cpaelzerrbasak: even if it does not use sd_listen_fds which would be explicit enabling via socket14:00
rbasakcpaelzer: ah14:00
cpaelzerthe client will just reconnect14:00
cpaelzerthe first triggers the service14:00
ahasenackrbasak: it was clone14:01
rbasakahasenack: thanks14:01
ahasenackrbasak: I was trying to clone the recently imported skytools314:01
rbasakahasenack: it works for me. What release is your host machine please?14:01
cpaelzerrbasak: and it even has native systemd socket actviation support14:02
cpaelzerfrom open-iscsid changelog line 22514:02
cpaelzer225       iscsid: implement systemd-compatible socket activation14:02
cpaelzerrbasak: I'm fetching the upstream repo to tell you where it does14:02
cpaelzerwhile I'm doing so, FYI - Fedora has socket activation on iscsid quite a while14:03
cpaelzerso things would have broken some time in this part of the world already14:03
cpaelzerrbasak: yep it checks first if it got an FD by systemd in  mgmt_ipc_systemd14:04
ahasenackrbasak: it was 430, I reverted to 42914:04
rbasakAh14:04
cpaelzerrbasak: since https://github.com/open-iscsi/open-iscsi/commit/5d0e19fcc1cea77a72647cf96c5d3d773e8ee27714:04
rbasakcpaelzer: I was looking for sd_*14:05
cpaelzerrbasak: is that enough FYI for now or are there other open issues?14:05
rbasakcpaelzer: looks like they've implemented it themselves instead of using the systemd provided API14:05
cpaelzerrbasak: yep14:05
rbasakcpaelzer: that's fine for now thanks. I'll continue.14:05
rbasakahasenack: I mean what release of Ubuntu, sorry - I want to try to reproduce in a VM.14:05
ahasenackrbasak: bionic14:06
rbasak(as it doesn't reproduce on my system)14:06
rbasakOK thanks14:06
LambdaComplexis there a guide for disabling netplan in ubuntu server 18.04?14:08
sdezielLambdaComplex: last I've heard, it was as simple as "rm /etc/netplan/*"14:08
LambdaComplexwell that would be nice14:08
LambdaComplexthe /etc/network/interfaces file says to install ifupdown--i'm guessing that's the package containing the ifup and ifdown binaries14:09
rbasakI think that's all you need to do14:09
geniiIf you also want to use use ifconfig instead of ip, then you'll also need net-tools14:10
LambdaComplexgenii: noted14:10
LambdaComplexubuntu 16.04 doesn't use netplan, does it?14:11
cyphermoxthat's different from whether you use ifup / ifdown14:11
cyphermoxLambdaComplex: it can, but it doesn't by default14:11
compdocLambdaComplex, netplan isnt difficult14:11
cyphermoxLambdaComplex: it would help a lot if you could tell me what you're trying to do, so if it doesn't work using netplan we can fix it for everyone.14:12
rbasakahasenack: reproduced. Yeah it's pretty broken. The self test fails on Bionic. I think it happens to pass on Xenial because it matches the core snap release.14:12
ahasenacksometimes snaps remind me of the broken java promise: write once, run everywhere14:13
LambdaComplexcyphermox: can i just say "trust me, the problem isn't netplan" and have you actually trust me? :P14:13
cyphermoxif you say so14:13
cyphermoxif what you're trying to do is actually special though, it might still help if you describe it; then if someone else wants to do something like that we have an example or something14:14
cyphermoxI *know* there are some things that aren't supported yet and I'm working on that, but I don't necessarily know of all the gaps because I don't necessarily try XYZ :)14:16
LambdaComplexcyphermox: oh, you're one of the netplan devs?14:17
rbasakahasenack: FYI, I filed bug 177399114:17
ubottubug 1773991 in usd-importer "snap version 430 broken" [Undecided,New] https://launchpad.net/bugs/177399114:17
ahasenackok14:17
rbasakcpaelzer: what is the purpose of replacing the invoke-rc.d call for the non-upgrade-path with deb-systemd-invoke?14:38
rbasakSpecifically I mean:14:39
rbasak+ deb-systemd-invoke restart iscsid.service || true14:39
cpaelzerrbasak: two reasons for that15:01
rbasakcpaelzer: FYI I just finished my review and asked in the MP but we can continue to discuss here15:02
cpaelzerchange #1 is to change from the start/restart to just restart - this is due to the whole things no only mattering at restart (guared when entering htis)15:02
cpaelzerchange #2 is to use deb-systemd-invoke, that is to be able to be able to pick .socket or .service15:02
cpaelzerwithout it will be both15:02
rbasakAre you sure it'll be both?15:03
cpaelzerand as I mentioned deb-systemd-invoke is the one that considers policy.d15:03
rbasakI got the impression systemd-sysv-generator affects .service only15:03
cpaelzerrbasak: it was both when testing, and with deb-systemd-invoke I can be explicit15:03
rbasakinvoke-rc.d also considers policy-rc.d :)15:03
cpaelzerI want to explicitly say .service to be sure to do what I mean15:04
rbasakOK15:04
cpaelzerand not just, "some iscsid"15:04
cyphermoxLambdaComplex: yes15:04
rbasakcpaelzer: would you mind putting a comment above that line please, explaining why that bit of the delta is there? The reason for everything else was obvious to me, just not that bit.15:05
cpaelzerrbasak: I'm already copying over15:05
rbasakThanks :)15:05
rbasakMy second MP point is also debatable15:05
rbasakI think it's probably correct to call systemctl is-active directly without deb-systemd-invoke15:05
rbasakLooking at its implementation15:05
rbasakAnd its manpage lists the start, stop and restart actions only15:06
rbasakBut I await your opinion.15:06
cpaelzerinteresting rbasak15:08
cpaelzerI didn't find that aspect, thanks to bring it up15:08
cpaelzeryeah I'd use systemctl instead then15:09
cpaelzerI was so happy to find deb-systemd-invoke to overuse it maybe, let me fix that15:09
cpaelzerthere is another call that neess the same change15:10
cpaelzerrbasak: grepping through debian*postinst also confirms on systemctl for that15:11
cpaelzerrbasak: I have the MP updated15:21
LambdaComplexcyphermox: may i query you?15:48
=== Redfoxmoon_ is now known as Redfoxmoon
naccrbasak: there?16:38
rbasaknacc: o/16:40
cyphermoxLambdaComplex: sure.16:44
rbasaknacc: I'm going to pop out for a while soon but will be back later.16:44
rbasaknacc: it'd be good to sync up with you16:44
naccrbasak: sure16:47
rbasaknacc: well I'm still here right at the moment :)16:47
rbasakWhen is best for you?16:47
naccrbasak: i'll be around for a while, and i think we have a checkpoint tmrw?16:47
rbasakWould you like to join a HO?16:47
naccrbasak: yeah i can do a hangout16:47
rbasaknacc: I sent you a URL16:49
LambdaComplexhm, i just realized i screwed up...17:12
LambdaComplexi deleted the 1MB partition that ubuntu put at the start of the drive17:12
LambdaComplexapparently that was necessary17:12
ahasenackLambdaComplex: are you booting uefi or legacy/mbr?17:49
lordievaderSounds like the efi partition.18:02
=== led_ir23 is now known as led_ir22
ahasenackhow do systemd service files with a "@" in their name work?18:33
ahasenackthey seem to be some kind of template18:33
ahasenackhttps://pastebin.ubuntu.com/p/vNQfzrs7nr/ practical case18:34
ahasenackI *think* the idea is to have one service per config file in, respectively, /etc/openvpn/server and /etc/openvpn/client18:34
sdezielahasenack: yeah, exactly, those are per instance services18:34
ahasenackhow are they used?18:34
ahasenacklet's say I place a config in /etc/openvpn/server/myconfig.conf18:34
ahasenackthe openvpn-server@.service file has18:35
ahasenackWorkingDirectory=/etc/openvpn/server18:35
ahasenackExecStart=/usr/sbin/openvpn --status %t/openvpn-server/status-%i.log --status-version 2 --suppress-timestamps --config %i.conf18:35
sdeziel"service openvpn-server@myconfig start"18:35
sdeziel%i gets replaced with what follows @18:35
sdezielnot sure about %t though18:36
ahasenackhmmmm18:36
ahasenackthat's cool18:36
sdeziel%t is runtime dir18:37
sdezielman 5 systemd.unit()18:37
sdezielyeah, that is a really nice feature18:37
ahasenackthanks18:38
=== irwiss`` is now known as irwiss
=== rmk` is now known as rmk
=== Beret- is now known as Beret
=== edwardly_ is now known as edwardly
=== Kamilion|ZNC is now known as Kamilion
=== giraffe is now known as Guest23105
=== lypsis|awy is now known as lypsis
trippeh_ah good, systemd-networkd-wait-online seems to be broken on my computer (18.04)20:21
trippeh_unless I specify interface it just times out, even with interface managed by networkd, working default ipv4 and ipv6 routes20:22
trippeh_oh one unimportant interface is temporarily stuck in configuring20:28
trippeh_so I guess not really broken just a little surprise :)20:29

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