/srv/irclogs.ubuntu.com/2021/07/15/#snappy.txt

=== benfrancis4 is now known as benfrancis
_moep_ijohnson[m]: default value of snap refresh (I know its 4/day)04:23
mardy'morning!05:48
mborzeckimorning05:58
_moep_morning^^05:59
_moep_just for understanding: is it possible to get a personal-files interfaces for the snap teams from MS?06:00
pstolowskimorning06:28
_moep_hi^^06:40
mborzeckipstolowski: hey06:43
mborzecki_moep_: from microsoft? microsoft does not issue any assertions in the snap store06:44
_moep_yes06:44
_moep_hmm damn it06:45
mborzecki_moep_: the publisher of the teams snap can request personal-files, but if something does not work for you as an end user, you can reach out to the publisher and file bug06:46
_moep_mborzecki: I have n desktop clients which uses teams via *.deb and now I want to switch to snap without configure all settings again06:47
mborzecki_moep_: also why personal-files? isn't home enough for teams?06:47
_moep_mborzecki: no. the *.json files with the config stuff are stored in /snap/teams/5/.config/Microsoft/Microsoft Teams/preauth.json but I can copy the old from /home/user/.config/Microsoft/Mircosoft Teams/06:50
_moep_*can't06:50
mborzecki_moep_: i see, i think you should reach out to the team snap publisher and describe how you would see the migration process work06:53
mborzeckimvo: hey06:53
_moep_mborzecki: how is the way to contect the publisher?06:54
_moep_*contact06:54
mborzecki_moep_: `snap info <the-snap>` there should be a `contact` url in the output06:55
mvohey mborzecki 06:56
_moep_mborzecki: thx :)06:56
_moep_mborzecki: contact url as in store-url?07:06
mborzecki_moep_: which snap is it?07:06
_moep_mborzecki: teams07:06
mborzecki_moep_: ayy, the store page doesn't really list anything useful, htps://aka.ms/microsoftteams redirects to https://www.microsoft.com/en-US/microsoft-teams/group-chat-software tbh I have no clue, maybe there's something in the teams app help?07:09
_moep_mborzecki: ok I check it07:11
abeato_hey, one question I have, what can trigger a switch to a new channel for a snap? would that happen only if you do "snap refresh <snap> --channel=<new_channel>"?07:36
zyga-mbphello07:37
pstolowskiabeato_: that, or snap switch ...07:38
abeato_ah, snap switch, right07:39
abeato_thanks07:39
* pstolowski physio07:48
mardymmm... what did I do wrong to get into this situation? 2021-07-15T10:26:57+02:00 ERROR cannot remove snap file "test-snapd-mount-control", will retry in 3 mins: unlinkat /snap/test-snapd-mount-control/x1/bin: read-only file08:28
zyga-mbpmardy: can you show /proc/self/mountinfo08:37
zyga-mbpmy guess is that /snap/ is a self-bind mount08:37
zyga-mbpand it got mounted after /snap/test-snapd-mount-control/x108:37
zyga-mbpmardy: so you shadowed (in a way) that mount by the bind mount around /snap08:37
zyga-mbpmardy: but I'm just guessing for now, with the file we can be sure08:37
pstolowskire08:49
mardyzyga-mbp: mmm... I don't see anything weird: https://paste.ubuntu.com/p/SNkJHqbn69/08:49
zyga-mbpmardy: looking08:50
zyga-mbpit looks good so far08:50
zyga-mbpthat is weird08:50
zyga-mbpso whatever is going on, we try to remove x1/bin08:50
zyga-mbpwhich is weird08:50
zyga-mbpwe should never do that08:50
zyga-mbpit looks like snap remove not unmounting the mount point08:51
zyga-mbpand then ignoring the error08:51
zyga-mbpand then trying to remove recursively /snap/$SNAP_INSTANCE08:51
zyga-mbpmardy: do you have the log from snapd?08:51
mardyzyga-mbp: here it is: https://paste.ubuntu.com/p/Wf8wsMxkmx/08:55
zyga-mbpinteresting08:55
zyga-mbpwhat's with x2? the mount table had x1 mounted, no?08:55
zyga-mbp158 31 7:10 / /snap/test-snapd-mount-control/x1 ro,nodev,relatime shared:89 - squashfs /dev/loop10 ro08:56
zyga-mbpdoes snap list --all show x1, x2 or both?08:56
mardyzyga-mbp: yes, x1 is the only one mounted08:56
zyga-mbpbut you did have x2 at some point08:57
mardytest-snapd-mount-control  1.0        x1     -              -                  disabled08:57
zyga-mbpare you using snap try?08:57
mardytest-snapd-mount-control             x2     -              -                  disabled,broken08:57
mardynope08:57
zyga-mbpor snap install --local?08:57
mardyno, I do a "snap pack", then install with --dangerous08:57
zyga-mbpright08:57
zyga-mbpwhatever happened, the state is a bit messed up08:58
zyga-mbpyou can try to mount x308:58
zyga-mbps/x3/x2/08:58
zyga-mbpand remove it again08:58
zyga-mbpbut I'm not exactly sure what happened there 08:58
mardyyou mean manually?08:58
zyga-mbpyeah08:58
zyga-mbpenough to let it remove cleanly09:00
mardyzyga-mbp: it didn't help. But umounting did, so finally it's removed09:04
zyga-mbpha09:05
zyga-mbpright09:05
zyga-mbpunmounted (broken) snaps are easier to remove09:05
zyga-mbpbut check if it left any junk behind09:05
mardypedronis: I think that the failures in https://github.com/snapcore/snapd/pull/10438 are not related to my changes, can you please double-check and merge (please do squash the commits)?09:37
pedronismardy: in meetings, but yes I wanted to do that09:38
pedronismardy: done10:03
mardy\o/ thanks pedronis!10:10
pedronisthank you11:09
mborzeckipedronis: https://github.com/snapcore/snapd/pull/10510 has been updated with the changes we discussed, i think i got all of them, also added that unit test for repeated set-model execution whcih should mimic what happens after reboot11:54
mborzeckiand that test was super annoying to write in a way that i can still change the status of the task11:54
pedronismborzecki: thx, I'll see if I can get to it today or tomorrow morning11:56
mborzeckipedronis: cool, thanks!11:57
ijohnson[m]degville: how often does https://snapcraft.io/docs/snapd-roadmap get synced back with https://forum.snapcraft.io/t/the-snapd-roadmap/1973 ? I just made some changes to the forum post last night and they haven't appeared yet today in the docs site14:22
ijohnson[m]oh well now it's updated14:23
degvilleijohnson[m]: it's usually just a few minutes. But I've noticed the same thing over the last few days.14:23
ijohnson[m]yeah a bit odd, but it's updated now so not a big deal14:24
ograperhaps the intern that operates the update crank is on vacation ... 14:30
cachioijohnson[m], which is the pr to fix the error in snapd-refresh-vs-services-reboots test?14:39
cachiois it already merged?14:39
ijohnson[m]cachio: the pr is https://github.com/snapcore/snapd/pull/1053214:42
* ijohnson[m] hopes cachio didn't quit just because he saw my pr and all my bash mistakes14:45
cachioijohnson[m], tx14:47
ijohnson[m]cachio: also why you couldn't reproduce that error locally is that it only shows up when both variants of the test are run on the same system15:04
ijohnson[m]if you set workers to 1 for uc18 system in spread.yaml, and then run spread --debug google:ubuntu-core-18-64:tests/core/snapd-refresh-vs-services you can reproduce it 100%15:04
cachioah, ok15:04
ijohnson[m]but it should be fixed by this PR15:04
cachioyes, already reviewed the PR15:05
cachiothanks for creating it15:05
ijohnson[m]np, I'm testing the suggestion from mardy I had to modify it slightly to make shellcheck happy15:05
mardyijohnson[m]: don't bother spending toomuch time on it :-)15:15
ijohnson[m]ah it's just running in the background while I work on other things, it's not costing me any time at the moment15:16
mardyany idea why "systemctl show" returns What=tmpfs instead of What=/tmp/real/path of a mount unit?15:16
mardythe mount unit file has the correct What15:16
ijohnson[m]mardy: I would expect the Where= to be /tmp/real/path no ?15:16
ijohnson[m]i.e. I do locally `mount -t tmpfs tmpfs /tmp/real/path`15:17
mardyijohnson[m]: yes, Where is the correct mount point. But what about the mount source?15:17
ijohnson[m]the mount source for a tmpfs doesn't really exist, it's just a tmpfs15:17
mardyijohnson[m]: I did mount /tmp/real/path /somehere/else15:17
ijohnson[m]mardy: hmm and /tmp/real/path is a tmpfs ?15:18
ijohnson[m]I'm confused, were you trying to do a bind mount of /tmp/real/path to /somewhere/else ?15:18
mardyijohnson[m]: well, /tmp is a tmpfs15:18
mardyijohnson[m]: yes15:18
ijohnson[m]so you need to specify that it is a bind mount15:19
ijohnson[m]also just because /tmp is a tmpfs does not mean that /tmp/real/path is a tmpfs15:19
mardyijohnson[m]: yes, sorry for not specifying it, but I did it, and it works fine. Now the question is about getting the right information about this mount unit from systemd15:20
ijohnson[m]mardy: so when you created the bind mount from /tmp/real/path to /somewhere/else, was that specified as a bind mount? if it was then it should show up with the proper what and where in systemctl show15:21
ijohnson[m]mardy: basically I'm wondering did you create a bind mount or did you accidentally mount _another_ tmpfs at /somewhere/else15:21
ijohnson[m]mardy: if you have the output of /proc/self/mounts from inside that mount namespace that might be helpful15:21
mardyijohnson[m]: so, I created this unit file: https://paste.ubuntu.com/p/fJHZ8GYSXv/15:23
mardyijohnson[m]: then I started it15:23
mardyijohnson[m]: and proc/self/mounts says: tmpfs /var/snap/test-snapd-mount-control/common/ciao tmpfs rw,noatime 0 015:24
mardyit never shows the real source dir for bind mounts15:25
mardyI have a couple of them on my home, and it only shows the source *device* (i.e., /dev/sdb1) and not the precise dir15:26
ijohnson[m]ah yeah you're right I see that now15:26
ijohnson[m]hmm for what it's worth I see it in /proc/self/mountinfo as showing the "real" source15:26
mardyI *almost* see the real source:15:27
mardy1095 31 0:47 /test/wow /var/snap/test-snapd-mount-control/common/ciao rw,noatime shared:63 - tmpfs tmpfs rw15:27
mardyit shows /test/wow, but it should be /tmp/test/wow15:28
mardyijohnson[m]: anyway, the reason why I'm doing this is to implement support for "snapctl umount <what-or-where>":15:29
mardyif I pass the "where", it works fine; if I pass "what", it does not find anything in this case15:29
mardybut maybe it's acceptable?15:29
ijohnson[m]hmm15:30
ijohnson[m]does umount support providing what or where ? 15:31
mardyijohnson[m]: systemd-umount does, at least according to the docs; umount(8) doesn't15:37
mardyI mean, umount(8) supports only where15:37
ijohnson[m]are we just trying to have feature parity or is there a reason we can't be like umount and just support where ? 15:37
mardyijohnson[m]: I guess it's a question for pedronis; I'll add it as a comment to the google doc15:42
ijohnson[m]pedronis: mvo #10519 is green (mostly), has 2 +1s and will unbreak the delta-refresh tests which are failing on master, can one of y'all land it please?15:57
mvoijohnson[m]: sure15:57
ijohnson[m]\o/15:58
mvodone15:58
ijohnson[m]thanks mvo16:00
* cachio lunch16:03
cachioijohnson[m], new error https://github.com/snapcore/snapd/pull/10409/checks?check_run_id=3078069760#step:5:153816:38
cachioit is related to cloud init16:38
cachiohave you seen that before?16:38
* ijohnson[m] looks for the nearest table to flip over16:43
ijohnson[m]cachio: no I haven't seen that, I really question the utility of cloud-init for ubuntu core16:44
ijohnson[m]cachio: but anyways I think the right thing is to just make all calls to cloud-init be wrapper in retry 16:44
cachioijohnson[m], ok, makes sense16:46
cachioI'll update the branch in that case16:46
cachiothanks16:46
* ijohnson[m] afk for a while18:13

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