/srv/irclogs.ubuntu.com/2022/06/21/#ubuntu-server.txt

athos_I see lots of build failures in the update excuses pages without logs from syncs in the past ~4 hours; I am retriggering some of the php ones.11:40
=== athos_ is now known as athos
ahasenackdoes anyone know how to use resolvectl to accomplish this: use 192.168.122.10 for the "test.lan" domain, and 192.168.122.1 for anything else, including a "vms" search domain12:54
ahasenackI'm trying to use the SNI syntax, but it just complains, even though the manpage says it should work12:54
ahasenacklike "That is, the acceptable full formats are "111.222.333.444:9953%ifname#example.com" for IPv4"12:55
ahasenackroot@j-dc:~# resolvectl dns 192.168.122.1:53%enp1s0#vms12:55
ahasenackFailed to resolve interface "192.168.122.1:53%enp1s0#vms": Invalid argument12:55
ahasenackeven /etc/systemd/resolved.conf has that SNI example12:56
ahasenack# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:12:56
ahasenack# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com12:56
ahasenackoh, this worked: resolvectl dns enp1s0 192.168.122.1#vms12:57
ahasenackwell, it didn't complain12:57
sdezielahasenack: the SNI thing is for DNS over TLS (DoT) or DNS over HTTPS (DoT) certificate validation (where https://1.1.1.1/ should have a cert with a CN or SAN matching "cloudflare-dns.com")13:12
ahasenackI knot SNI has a meaning in the TLS context, but here I thought it was also just a way to specify routing13:13
ahasenackthat syntax, ip:port%nic#domain is also used by dnsmasq13:13
ahasenackwell, not the exact same syntax13:13
ahasenack--server=[/[<domain>]/[domain/]][<ipaddr>[#<port>]][@<interface>]13:13
ahasenackso, back to the original question, forgetting about this sni13:14
ahasenackthere must be a way to use resolvectl via its command line options to do what I described?13:14
ahasenackhttps://pastebin.com/k2E4VN62 is my starting point, after reboot13:15
sdezielahasenack: `resolvectl dns enp1s0 192.168.122.1 domain vms` maybe13:15
sdezielor possibly use `~vms` instead13:16
ahasenackthis is a syntax error: resolvectl dns enp1s0 192.168.122.10 domain ~test.lan13:16
ahasenackI think each dns and domain are their own commands13:16
sdezielahasenack: https://linuxcontainers.org/lxd/docs/latest/howto/network_bridge_resolved/ might give you a hint13:17
ahasenackyeah, I googled that too, but so far I only have hints13:17
ahasenacknot answers :)13:17
sdezielahasenack: I don't know why but the LXD doc does 2 calls to resolvectl, one for the dns and another for the domain so maybe that's important somehow13:19
ahasenackyeah, but I want the domain from the second call to use a different dns ip13:19
ahasenackso somehow I need to tie those together13:19
ahasenackI have two dns servers13:19
ahasenackdomain vms -> 192.168.122.113:19
ahasenackdomain test.lan -> 192.168.122.1013:19
sdezieland another default resolver?13:20
ahasenackwhat's unique here probably is that it's only one nic13:20
ahasenackit's too geared towards interfaces13:26
sdezielahasenack: might be one for #systemd13:30
ahasenacksergiodj: ok, std join from kinetic, old sssd (2.6.3), failed with a more reasonable error14:02
ahasenack   *  (2022-06-21 14:01:56): [gpo_child[1474]] [copy_smb_file_to_gpo_cache] (0x0400): [RID#8] smb_uri: smb://j-dc.test.lan/sysvol/test.lan/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/MACHINE/Microsoft/Windows NT/SecEdit/GptTmpl.inf14:02
ahasenackand14:02
ahasenack   *  (2022-06-21 14:01:56): [gpo_child[1474]] [copy_smb_file_to_gpo_cache] (0x0020): [RID#8] smbc_getFunctionOpen failed [2][No such file or directory]14:02
sergiodjOK14:02
ahasenackso it tried to fetch that gpo, which does not exist, and failed14:03
ahasenackaccess denied14:03
sergiodjalright, makes sense14:03
ahasenackwhat should I check now, create that file, or upgrade sssd? :)14:03
ahasenackI think create that file14:03
sergiodj(actually, No such file or directory)14:03
sergiodjyeah, create the file14:03
sergiodjbaby steps14:03
ahasenackok, worked14:05
sergiodjthe login worked?14:05
ahasenackyes, on kinetic, sssd 2.2.x, with the inf file14:05
ahasenackso far so good14:05
sergiodjthat's good14:05
ahasenacknow add cráshed to GPT.INI14:05
ahasenackthis drove us nuts yesterday14:06
ahasenackI'm thinking about snapshotting this vm14:06
sergiodjgood idea14:06
ahasenackboth are snapshotted: server and client14:06
ahasenack# echo "displayName=crásher" | iconv -f UTF-8 -t CP850 >> GPT.INI 14:07
ahasenack   *  (2022-06-21 14:07:55): [gpo_child[1585]] [perform_smb_operations] (0x0020): [RID#16] Cannot parse ini file: [84][Invalid or incomplete multibyte or wide character]14:08
ahasenackfailed as expected14:08
ahasenacknow upgrade sssd?14:08
ahasenackthis on k still14:08
* ahasenack checks on the sssd migration14:08
ahasenackfailed to build?14:08
ahasenackah, the i38614:09
ahasenacktime to ping vorlon14:09
ahasenackI'll grab it from the ppa14:09
ahasenackhttps://launchpad.net/~sergiodj/+archive/ubuntu/sssd-bugfix/ right?14:09
sergiodjahasenack: yes14:10
sergiodjahasenack: I pinged vorlon yesterday.  will ping again14:10
ahasenackE: The repository 'https://ppa.launchpadcontent.net/sergiodj/sssd-bugfix/ubuntu kinetic Release' does not have a Release file.14:12
sergiodjwait, what?14:12
sergiodjI uploaded the package yesterday "just in case"14:12
ahasenackwhat indeed14:12
ahasenackI did the usual add-apt-repository -y -u 14:12
ahasenackand apt update again14:12
ahasenackoh, wait14:13
ahasenackyou don't have a kinetic build there14:13
sergiodjdon't I?14:13
sergiodjah, right14:13
ahasenackno, was it a different ppa for the merge?14:13
sergiodjyes14:13
sergiodjshould be sssd-merge14:13
sergiodjyep14:13
sergiodjhttps://launchpad.net/~sergiodj/+archive/ubuntu/sssd-merge/+packages14:13
ahasenackyou, sir, need to do some cleanup in your ppas :)14:14
sergiodjhah14:14
ahasenackok, updating to 2.7.114:15
sergiodjbtw, have you done anything different when setting up the samba AD DC VM?14:15
ahasenackyes14:15
sergiodjI'm still wondering why I can't make the GptTmpl.inf trick work here14:15
ahasenackon the ad dc, just install "samba winbind"14:16
sergiodjhm14:16
ahasenackno need for libnss*, krb5-kdc14:16
ahasenackor pam14:16
sergiodjOK, that was it?14:16
ahasenackcan't say14:16
ahasenackI just simplified things14:16
sergiodjI will simplify the Test Plan too14:16
ahasenackand the samba wiki says to not use the ad as a file server, so there is no need to actually install libnss-winbind and use it, afaik14:16
ahasenackI also did some things around resolved and netplan14:17
ahasenackbut no rocket science, just simplifying it14:17
ahasenackand yes, we have to disable systemd-resolved14:17
sergiodjOK14:17
ahasenacksamba doesn't like that it cannot bind to 0.0.0.0:53, even though resolved is only using 127.0.0.53:5314:17
ahasenackok, sssd upgraded14:18
ahasenacklogin should work now, with a notice about the invalid chars in GPT.INI being replaced by "?"14:18
ahasenacknope14:18
ahasenackgot "permission denied" now14:18
ahasenack   *  (2022-06-21 14:18:35): [gpo_child[3892]] [copy_smb_file_to_gpo_cache] (0x0400): [RID#5] smb_uri: smb://j-dc.test.lan/sysvol/test.lan/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI14:19
ahasenack   *  (2022-06-21 14:18:41): [gpo_child[3892]] [copy_smb_file_to_gpo_cache] (0x0020): [RID#5] smbc_getFunctionOpen failed [13][Permission denied]14:19
sergiodjthat same permission denied?14:19
ahasenackthis is bonkers14:19
sergiodjhm14:19
sergiodjand this is with sssd 2.7.1-2, right?14:20
ahasenackyes14:20
ahasenackmaybe we should try a join with that version already14:20
ahasenackmaybe it's an upgrade problem14:20
sergiodjwait14:20
sergiodjcan you revert the change to GTP.INI and try again?14:20
ahasenacksure14:21
sergiodjGPT.INI*14:21
ahasenackand I just realized my "echo" from above missed a \n14:21
ahasenackthe file got kind of corrupted14:21
ahasenack[General]14:21
ahasenackVersion=0displayName=crsher14:21
sergiodjah14:21
sergiodjyeah, but that shouldn't trigger a Permission Denied error14:21
ahasenackbut still, it failed at parsing before, so I think the test was still valid14:22
ahasenackfile restored, it's working (!)14:22
sergiodjalright!14:22
ahasenacklet's reintroduce the crásher, properly14:22
sergiodjyes14:22
ahasenackworked, and I got14:23
ahasenack^[[D(2022-06-21 14:23:33): [gpo_child[4045]] [gpo_sanitize_buffer_content] (0x3f7c0): [RID#20] Value for key 'displayName' contains non-ascii symbol. Replacing with '?'14:23
sergiodjOK, so everything is working, then14:23
ahasenackso, hm14:23
ahasenackyeah14:23
ahasenackbut I still have the .inf file I think14:24
ahasenackyeah, let me get rid of it14:24
sergiodjOK14:24
ahasenackworked again14:24
sergiodjthat should still work14:24
ahasenackbut I got two replacement warnings14:24
ahasenacklike it fetched GPT.INI twice14:24
ahasenackmaybe that's what happened before with the corruption, the first time it replaced the á with ?, and then the second time the file was really invalid due to my bad echo >14:25
ahasenackhm, no, it was probably something to do with a local cache14:25
ahasenacknow I just get one parsing notice14:26
sergiodjI'm happy that you finally got everything to work, but I am puzzled about why my setup doesn't work14:26
ahasenackwell, even my "all is working" might be temporary14:26
ahasenackas it was yesterday14:26
sergiodjyes, this setup is very fragile14:26
ahasenackone thing I did was just not use dhcp on the addc14:27
sergiodjI'm actually impressed at how easy it is to break it14:27
ahasenackspecified everything manually14:27
ahasenackip, nameserver, default route14:27
ahasenackalso specified myself as a dns server, and .114:27
ahasenackand in smb.conf, there is a forwarder to .114:27
ahasenackthe provisioning tool adds a forwarder to 127.0.0.5314:27
sergiodjyou know, yesterday I was really suspicious of my DNS setup here14:28
ahasenacktrying to cope with systemd-resolved I gues14:28
ahasenacknow, let's try jammy14:28
sergiodjOK14:28
sergiodjheh, this is all part of the MP review14:29
ahasenacksssd/samba/winbind/allthatstack is definitely not simple14:29
ahasenackit can be 1h or 1d14:29
ahasenackimagine taking care of this in production14:29
ahasenackeven maintaining the packages and coping with all scenarios would require a team over here14:30
sergiodjone can say that 2 people are already a team ;)14:30
ahasenackyeah, calling is a coupld would be weird14:31
ahasenack:D14:31
ahasenackcouple*14:31
ahasenackduo14:31
sergiodjbut I do agree, this is all complex and requires a lot of time to setup14:31
ahasenackon the + side, this works, no need to specify the samba ip: # realm discover -v test.lan14:32
ahasenackjust the domain14:32
ahasenackonce this client machine is using the samba addc as its dns server14:32
sergiodjI think it's the DNS that fixed it14:33
sergiodjif you're available, I'd like to compare notes after the standup14:33
ahasenackright after I can't, family lunch14:33
ahasenackbut I can now14:33
sergiodjOK14:33
sergiodjmeet you there14:33
rbasakathos: https://code.launchpad.net/~bryce/ubuntu/+source/nginx/+git/nginx/+merge/424337 has an empty comment from you and I think you grabbed the slot. Is this intentional?15:47
athosrbasak: I picked the slot but tried to restore it at some point. I thought I did it.16:07
athosgiven the size of the merge, it would be nice to have someone who did touch nginx before to review that one16:08
athosrbasak: I guess I could not re-assign that slop16:08
athosslot*16:08
Soniwhen do they make 22.04.1?16:09
lotuspsychjeSoni: around august16:09
rbasakathos: no problem I'll review, thanks.16:13
rbasak(not sure I'll finish today though)16:13
athosthanks, rbasak :)16:22
MaikSoni: if you're already running 22.04 it will automatically become 22.04.1 just by keeping it up to date16:29
Maikno need to re-install16:29
ahasenacksergiodj: does this just need a retry click? https://launchpad.net/ubuntu/+source/sssd/2.7.1-2ubuntu1/+build/2409713620:31
sergiodjahasenack: https://launchpad.net/ubuntu/+source/jose/11-2/+build/24097239 -- jose's build is still pending20:32
sergiodjhas been like this for hours and hours20:32
ahasenack"start in 42min"20:32
sergiodjsometimes I think someone should write a crawler to parse the build page and use this estimate as a random number generator20:34
ahasenackdid you trigger that build, or it's been like this since yesterday perhaps?20:36
ahasenackif you cancel it, can you retry it?20:37
sergiodjahasenack: vorlon triggered that build20:37
sergiodjyesterday, when he added jose to i38620:37
sergiodjI can try cancelling it, but I don't know if this will have any undesired consequences or not20:38
sergiodjI'll wait a bit more.  if it doesn't start building by my EOD, I'll cancel and retry20:41

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