/srv/irclogs.ubuntu.com/2020/08/20/#ubuntu-server.txt

Aison0bind9 from bind repository seams to be stable so far07:57
Aison0but maybe it is just luck07:58
Aison0:D07:58
Aison0how do I have to change the systemd bind9.service file, so that the server is directly restarted after exiting?13:31
rbasakSee Restart= in systemd.service(5)13:33
=== Wryhder is now known as Lucas_Gray
=== Wryhder is now known as Lucas_Gray
=== halvors1 is now known as halvors
RoyKAison0: does it still die?14:30
sdezielAison0: "sudo systemctl edit named" (the service was renamed to named with 20.04)14:32
Aison0sdeziel, here it is bind9.service -> /lib/systemd/system/named.service14:33
Aison0ok, maybe because of upgrade14:33
sdezielAison0: oh, that's because the named.service provides an Alias=bind9.service14:34
sdezielI run mine with "Restart=on-failure"14:35
=== halvors1 is now known as halvors
RoyKsdeziel: that should be the default, but should fail after some attempts if the error repeats14:37
sdezielRoyK: oh, didn't know it was the default but yes, there is a limit to how fast restarts are done to avoid DoS'ing the machine14:43
sdezielRoyK: man systemd.service(5) says Restart=no is the default14:45
sdezieland then > on-failure is the recommended choice for long-running services14:45
Psi-JackThis is a very strange new thing. I installed Ubuntu 20.04.1 onto a VM in Proxmox VE. Bare minimums only. Convered it to a template, cloned that into a new VM. cloud-init didn't generate a new host key, heck it even somehow had the same IP and I'm not sure how or why. It didn't act new and re-generate anything.17:07
rbasakAIUI, cloud-init detects that it's on a different host by detecting that the instance-id has changed17:08
rbasakThe instance-id is provided by the VM environment - for example through the Amazon metadata service when on EC2.17:09
rbasakSo you might be able to reduce your problem to: what instance-id did cloud-init pick up from Proxmox, did it change, and if not, why not?17:09
Psi-JackHmmm never had a problem before. Heck even Debian 10 works fine.17:10
rbasakOh, and also: I installed Ubuntu 20.04.1 onto a VM in Proxmox VE17:10
rbasakWhy didn't you use a cloud image?17:10
rbasakIf using the installer, I think *it* generates the instance id, and so cloud-init will use that and it will never change?17:11
Psi-JackWhy would I?17:11
sdezielmaybe you could "reset" cloud-init with https://cloudinit.readthedocs.io/en/latest/topics/cli.html#clean ?17:11
rbasakThe installer isn't intended for the cloud use case.17:11
rbasakOur cloud images are intended for the cloud use case.17:12
rbasakAll the installer is doing is configuring a cloud image for non-cloud use anyway17:12
rbasakIf I'm right, the behaviour you're seeing is by design17:12
rbasakAnd (again only if I'm right with my assumptions here) Debian works because you installed cloud-init manually there, and it wasn't configured by the installer for a non-cloud use case.17:13
Psi-JackYeah well using a cloud image in this use case adds complications and doesn’t allow for “Golden images”17:14
rbasakWhy not?17:14
rbasakUbuntu cloud images _are_ "golden images" and they are customisable to produce your own custom "golden images".17:14
Psi-JackHmmmm.. I suppose I can try. I found some documentation on how to use proxmox-ve CLI tools to use the ubuntu-cloud images, and thought it'd be more difficult.17:21
Psi-JackWell, after some work, it is indeed, working.18:23
Psi-JackWell, save for the display issue, which seems to work better with it associated to a serial socket.18:24

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