/srv/irclogs.ubuntu.com/2021/01/27/#ubuntu-server.txt

sarnoldhmm I wonder why that didn't work :00:02
jayjocould it be a permisions issue?00:04
jayjoI am mounting existing partitions using curtin and the autoinstall configuration00:04
jayjonot sure if there will be a way around that if that's the case00:05
sarnoldjayjo: if you want to try apt-ftparchive, here's some internal tooling we use https://paste.ubuntu.com/p/5knWHsGMkN/00:07
sarnoldthe function shows roughly how we use it00:07
jayjowhen using the new terminal ALT + F2 I can see the permissions are root for the mounted partition00:07
jayjoThanks for that, I'll take a look and maybe try generating signed Releases00:08
jayjoIt does seem like in the logs I'm getting a Get and Ign for InRelease and Release00:12
jayjoand then about 8 Get Ign for the Packages file (which exists)00:12
jayjodoes subiquity/curtin run as a non-root user? If that's the case, when I use curtin storage to mount, is there way to give a uid or gid?00:13
jayjoIt looks like the installer has an ubuntu-server user and an _apt user00:34
jayjohow can I inspect which one of these actually is trying to open the local repo?00:35
sarnoldif the system were up and running already, it'd be easy to use eg opensnoop-bpfcc... but you've got an awkward time to try to troubleshoot things00:36
jayjoboth `sudo -u ubuntu-server cat /target/mnt/ubuntu-apt-repo/debs/Packages.gz` and `sudo -u _apt ...` fail due to permissions, but I can read the file as root00:37
jayjowhen I mount using curtin storage, I can use options from mount(8) - Is that where I should look to make this mounted repo group readable?00:38
sarnoldtry namei -l /target/mnt/ubuntu-apt-repo/debs/Packages.gz -- it might help spot something00:40
=== halvors1 is now known as halvors
jayjohmm - it belongs to `installer:netdev`00:42
jayjoI'm looking at the cloud-init docs to see if I can mount it in a specific manner00:49
jayjoshould I maybe use bindfs as a mount tool in order to restrict permissions?00:49
jayjoI'm mounting an ext4 partition with current uid:gid 1000:1000. The installer only has a handful of users, but I'm not able to tell which one is running these commands01:00
jayjomaybe _apt is trying to access the repo, or maybe ubuntu-server. (If it was root it would just work, right?)01:01
jayjodoes using Alt + F2 and have that drop me in a new shell with ubuntu-server user tell me that ubuntu-server is running most installation commands?01:03
jayjoI'm wondering if I can just add the correct user to the 1000 group as an "early-command" for installation01:03
sarnoldif your partition has world read and execute permissions it ought not matter01:09
sarnoldI'd also hope you could get something concrete like "permission denied" or "file not found" etc *somewhere*01:09
jayjoThe error I am getting is "File not found - /target/mnt/ubuntu-apt-repo/debs/Packages (2: no such file or directory)"01:12
jayjoI thought ext4 was a linux FS and had no partition-level flags like that when mounting. Maybe that's completely wrong.01:12
jayjobut I have confirmed that file exists01:16
sarnoldhave I ever said how much I dislike that apt 'friendlifies' the filenames and removes the extensions in its logs?01:16
jayjoYou have:)  I'm following in your footsteps, I also despise it now.01:18
jayjois ubuntu-server user deleted after installation?02:21
jayjowhen I try to install packages from my offline local deb repository, it looks like some packages are held back by things in /var/lib/dpkg/status which is pinned at 10005:08
jayjoand my package is pinned at 50005:08
jayjocan I just use my repo as the priority for a one-off priority?05:08
lordievaderGood morning07:02
twbI use Ubuntu's live media as a rescue image for my ZFS systems, because Debian's a bit ugh in the ZFS department.07:37
twbI'm about to zpool upgrade to 2.0 features, so I want to know if/when Ubuntu can talk to ZFS 2 pools.07:37
twbIs "rmadison -u ubuntu zfs-dkms" an appropriate package to check?07:37
twbI guess "zfsutils-linux" is a better choice, because even if Ubuntu isn't using a dkms, it will still use those for userland07:39
pavementHello, I am running a Ubuntu 18.04 server.. I have the latest updates. Is the sudo vulnerability fixed in bionic? I have 1.8.21p2-3ubuntu1.4 installed.08:02
twbhttps://ubuntu.com/security/CVE-2021-23239 ?08:04
ubot3The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path. <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23239>08:04
twbI *think* that is saying 1.8.21p2-3ubuntu1.4 has the fix08:04
twbOver in Debian we have this table which I am used to reading: https://security-tracker.debian.org/tracker/source-package/sudo08:05
=== denningsrogue8 is now known as denningsrogue
rbasakI agree with twb's interpretation of that page.10:43
UssatSo, I am being asked if Ubuntu has anything similar to yum history. If you are not familiar, yum history can allow yopu to roll back a bad update, among other things. I dont THINK there is (and IMHO there should be) but wanted to be sure15:17
tewardUssat: i don't think there's a *specific* command to roll back but you can extrapolate such a command to run (install with package=version) based off of the apt history.log file15:28
tewardnearest thing I've seen to a revert command like that is from a Landscape instance15:29
UssatRight, I know you can do that, I am really a fan of yum history, not just for the rollback feature15:30
UssatOK, thanks, kinda what I thought.15:30
rbasakI've always wanted to write a tool that parses history.log and provides the rollback command :-/15:41
naccahasenack: hey! I had a sssd question for you :)16:15
ahasenackhi nacc16:42
tewardrbasak: got a few minutes?17:05
naccahasenack: hi! So I'm testing something a bit different here and for baremetal CI, I'm booting a host with overlayroot=tmpfs. We use sssd and it fails to start in the overlayed root kernel. If i modify the apparmore config to include `attach_disconnected`, though, it does work. And I noticed that other binaries (e.g., libvirtd, ntpd) have this flag by default17:09
ahasenackwe had to add it to a few profiles, yes17:09
ahasenackI remember that bit, not exactly what it does, though17:10
rbasakteward: o/17:12
tewardrbasak: PMs, which you've replied to.  (I find it easier to ping you here heh)17:13
naccahasenack: yes, me either! it seems to do with the namespace/filesystem issues where you're crossing a boundary17:17
naccI think in my case, because I have an overlay in the effective root, it gets confused with some of the absolute paths in the config?17:18
ahasenackI'd have to check. What's annoying is that you can't add that flag via an /etc/apparmor.d/local/ override :/17:19
naccahasenack: yes, that's what I am encountering. So I can fork sssd internally for now, but really, I'd like to get it fixed in Ubuntu so I don't need to maintain that ;)17:19
ahasenackcpaelzer: do you remember what `attach_disconnected` was for?17:19
ahasenackor change the config, and press "n" every dpkg upgrade17:19
naccahasenack: equally yucky :)17:20
ahasenackI'm asking in #ubuntu-hardened17:21
ahasenacksergiodj: might be a good fix to make ^17:21
ahasenacknacc: sergiodj is maintaining sssd this year, while I'm away on a different assignment17:21
naccahasenack: ah sorry!17:21
ahasenacknp17:22
ahasenackthe description doesn't help much to see if that's the case here, with overlayfs: "attach_disconnect and no_attach_disconnected are mutually exclusive and determine if pathnames resolved to be outside of the namespace are attached to the root. ie. have the / character prepended. This is generally not considered a good idea as it allows disconnected paths to alias to other files that exist in the file name. It is only provided to work around17:27
ahasenackproblems that can arise if delegation is not being used."17:27
ahasenack"outside of the namespace"17:27
naccahasenack: yeah, I haven't resolved it much further either. What I saw was when i used `aa-complain usr.sbin.sssd` it explicitly complained about a disconnected path for the ldb dependency17:30
ahasenackI think there is no other way for now, and that's the same approach we took with other profiles in the past17:31
ahasenackcan you file a bug please?17:31
naccahasenack: agreed. Do you want me to file a bug?17:31
naccahasenack: heh, will do!17:31
naccahasenack: LP: #191347017:34
ubot3Launchpad bug 1913470 in sssd (Ubuntu Bionic) "sssd also needs `attach_disconnected` in its apparmor profile" [Undecided, New] https://launchpad.net/bugs/191347017:34
ahasenackthanks17:35
ahasenacksergiodj: ^17:35
naccit's very easy to reproduce with the overlayroot= option17:35
sergiodjahasenack: nacc: thanks.  I will take a look at it later today17:35
ahasenackcan you add a very quick log snippet?17:35
naccahasenack: yeah, i just need to reboot a node17:35
ahasenackit only happens in a reboot?17:35
ahasenackif you restart sssd afterwards, it doesn't complain?17:35
ahasenackor you can't login to try that :)17:36
naccahasenack: so the symptom is it only happens in the overlayroot= boot17:42
naccahasenack: i'm kexecing inot the same kernel with overlayroot=tmpfs set17:42
naccahasenack: but i ened to do that kexec to get you the log info :)17:43
ahasenackok17:43
ahasenacknacc: security's TL;DR "it sucks, but there is no other way right now"17:46
ahasenack(using the flag)17:46
naccahasenack: sounds about right17:47
jayjoI'm trying to autoinstall a server with some additional packages, and using the autoinstall and curtin to mount drives and then add to my sources.list and update the packages offine is just not working. I think it could work, though. What are my other options? I took down an edge server and it was really difficult to debug without WAN access yesterday. My goal is to autoinstall an ubuntu server with17:50
jayjolibvirt, qemu, and kvm installed. Should I remaster an ISO?17:50
ahasenackjayjo: have you tried the subiquity server installer? afaik it has an automated install mode17:51
ahasenackit does use curtin behind the curtains17:51
jayjothat's precisely what I've been using. It can autoinstall the system just fine, but then to use a mounted partition with debs (an offline repo I maintain) is just so going against the grain. Because of installer/netdev permissions, when stuff is installed on the target stystem, etc. THen when I diverted to just mounting the partition manually and installing (again manually) after autoinstallation17:53
jayjocompletes, pakages won't upgrade because I'm offline and have "held back packages" from the additional repo17:53
jayjoI may be wrong, but it feels really "against the grain". But at the same time this seems like a very common thing to do, to install a server with additional packages offline17:53
naccahasenack: logs added17:54
ahasenackthanks nacc17:54
ahasenackjayjo: I see. Sorry, I don't have any tips at the moment17:55
ahasenackI haven't personally used the autoinstall feature yet17:55
jayjoahasenack: no worries, thanks for your input17:56
ahasenackmaybe a next step could be a forum post, on the autoinstaller topic17:56
ahasenackmaybe on this topic, or start a new one: https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/1525017:57
ahasenackmost recent one is https://discourse.ubuntu.com/t/subiquity-21-01-2-has-been-released-to-stable/20554 from a few hours ago, about a new release17:58
tewardanyone know how hard or different it is to configure iptables-nft vs. iptables-legacy or is the syntax pretty similar for rule adding (not necessarily restoration por persistent, but initial config of rules)20:16
sergiodjnacc: thanks a lot for filing the sssd bug.  I'm trying to reproduce it here; are you available to answer a few questions?21:04
naccsergiodj: yep21:05
sergiodjnacc: I have Bionic VM with sssd and overlayroot installed.  I configured /etc/overlayroot.conf and set overlayroot="tmpfs", as well as aa-enforce'd usr.sbin.sssd21:06
sergiodjis there anything that I'm missing here?21:06
naccdid you rebuild the initrd and actually boot into the overlay?21:07
naccand/or update-grub, maybe?21:07
sergiodjI booted into the overlay, or at least I think I did, according to mount's output21:07
naccsergiodj: ack21:08
naccsergiodj: and sssd started, i assume, by your comment?21:08
sergiodjyes, it did21:08
sergiodjI haven't touched sssd's config, FWIW21:08
naccsergiodj: yeah, we actively use sssd so maybe that's the difference. Symptomatically, I can't ssh into the box without my change21:09
sergiodjI'd expect to see sssd failing to start because of the apparmor denial21:10
naccsergiodj: only if it actaully talks to ldb, maybe?21:10
naccsergiodj: not sure if that's happening with yours21:10
sergiodjI don't think it is talking to ldb, no21:10
sergiodjdo you have a sample configuration file for sssd which I can use to try to reproduce the bug here?21:10
naccsergiodj: let me see -- these are our HVs. I think the difference might be we are using ldap for the auth provider?21:12
naccsergiodj: https://gist.github.com/nacc/cdc548214afcc2c28a5c3f55c9655c0421:14
naccI'm guessing that you'd need the ldap config so that ldb is invoked and that will be what breaks, but not sure21:14
sergiodjyeah, it is possible21:14
sergiodjI thought this was going to be an easy one :-/21:15
tewardwho here's familiar with the differences between legacy iptables and iptables-nft?21:20
naccsergiodj: sorry :( it feels easy to me because the change very linearly fixes it for me all the time, but I also am struggling to understand exactly why21:20
tewardasking because I'm tempted to start making the migration from legacy iptables to iptables-nft but I've got > 500 rules, half of which are autopopulated by blacklist population from a script21:20
tewardso I need to understand the fundamental differences from a manipulation perspective21:21
sergiodjnacc: no, that's OK, it's just that this has been a frustrating week with a lot of "this-looks-easy-but-it's-actually-impossible-to-reproduce" kind of bugs21:21
sergiodj:)21:21
naccsergiodj: love/hate those weeks :)21:21
sergiodjyep!21:22
naccsergiodj: if there's anything I can provide to help, please lmk on the bug (or here, if I'm around)21:23
sergiodjnacc: will do, thanks a lot!21:23
ahasenacksergiodj: I have sample configs for sssd with ldap21:25
ahasenackand the dep8 test uses those21:25
sergiodjah, that helps21:25
sergiodjthanks, ahasenack21:25
ahasenackso maybe running the dep8 tests in that env can be the easiest way to trigger it21:25
sergiodjlet me check21:26
ahasenackrun as a script, no need to invoke autopkgtest itself21:26
sdezielteward: personally, I'm waiting for nftables to go into main before looking into switching21:26
tewardsdeziel: meh, maybe i'll futz in a VM ;)21:28
tewardbut i'm still curious if the addition of rules / manipulation is similar21:28
tewardin terms of command line syntax, etc.21:28
ahasenacksergiodj: I'm gonna eod, we can talk again tomorrow21:30
ahasenacktl;dr sssd will only bring up the processes it needs21:30
ahasenackand they are all socket activated nowadays21:30
ahasenack(via systemd)21:30
=== vlm_ is now known as vlm

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