/srv/irclogs.ubuntu.com/2021/06/29/#snappy.txt

=== benfrancis29 is now known as benfrancis2
=== not_phunyguy is now known as phunyguy
=== not_phunyguy is now known as phunyguy
mborzeckimorning05:15
mardymborzecki: hi!05:29
mborzeckimardy: hey05:49
mborzeckimardy: i think it's what/where, mount seems to be defined as list05:53
mardymborzecki: ouch, I now realize that the formatting in the commend was lost05:55
mardymborzecki: you mean, that for specifying multiple mounts, there should be a single plug, with a list of what/where fields inside the "mount" attribute?05:57
mborzeckigh is kinda slow06:05
mborzeckimardy: yes, if i'm reading this right, there's supposed to be a `mount` attribute which has a list of mappings06:08
mborzeckimardy: tbh, wondering if there will be like an 'unmount' attribute too, or does it already imply that a snap can mount & unmount?06:15
mborzeckii guess it wouldn't be named mount control then06:15
pstolowskimorning06:28
mardypstolowski: hi!06:34
mardymborzecki: I would say that umount should also be implied06:34
zyga-mbpgood morning06:37
mborzeckipstolowski: hey06:38
mborzeckizyga-mbp: hey07:04
zyga-mbphey :-)07:05
mborzeckimvo: morning07:08
mvogood morning mborzecki and zyga-mbp 07:08
mardymvo: hi!07:09
mardyI see in the content interface, that it appends a "-[0-9]*" to the apparmor rules for accessing the target mount point: anyonw knows why?07:10
mardyemit("  mount options=(rprivate) -> %s{,-[0-9]*}/,\n", target)07:10
zyga-mbphey mvo, hey mardy :)07:14
zyga-mbpmardy I may know07:14
zyga-mbpmardy so07:14
zyga-mbpit's the auto-unclashing system07:15
zyga-mbpthere is a test for that as well07:15
zyga-mbplet's say you have a slot that accepts content in $SNAP/plugins07:15
zyga-mbpand then you have two other content interfaces that offer plugs that contain the plugin name07:15
zyga-mbpbut due to some mistake, they have the same name "foo"07:15
zyga-mbpthe mount backend will rename one of the plugs to "foo-1"07:16
zyga-mbpmardy hth :)07:16
mardyzyga-mbp: thanks!, makes sense.07:18
pedronishello, reminder I need reviews for https://github.com/snapcore/snapd/pull/1045807:18
mborzeckimeh, assertions, in managers tests, `s.brands.AccountsAndKeys("can0nical")`, tells me that there's no such key, so how come a model assertion for that brand can be generated?07:19
mborzeckiunless that's a different list of thing again07:20
mvohi mardy! good morning too you too07:20
mborzeckimardy: iirc if multiple things are mounted at the same location, then content will be named foo, foo-1, foo-2 07:22
mborzeckimardy: that's probbaly done by snap-update-ns but the content iface could use a comment about that behavior if there isn't one yet07:23
zyga-mbpmborzecki that's done in snapd proper, snap-update-ns just executes the orders07:24
zyga-mbpit's done in the mount backedn07:24
zyga-mbp*backend07:24
pedronismborzecki: the store account is not registered with the others, you need to find it on the store stack itself or fix this07:24
pedronismborzecki: only signing with it is supported atm as a convenience07:24
pedronisthis is also because there can be more than one key tied to it, while the rest of that code assumes one key usually for the accounts07:27
pedronismborzecki: tbh if you working a bit with assertstest nowadays I just recommend reading it maybe07:30
mborzeckipedronis: started looking at it, but got buried with assertions in managers07:33
mborzeckipedronis: btw. i think i'm getting a hold of it now, had to tweak seedtest a little as it's doing a bit to much for my use case07:34
mborzeckipedronis: well, at least it isn't complaining about account id, models and so on, i can open a quick PR with thw tweaks so that you can tell whether those make any sense07:35
mardymvo: about the mount-control interface: the plug definition only specifies what mount operations are allowed, so that the application can call mount/umount itself, or are these mount points expected to be automatically mounted, when the plug gets connected?07:36
mardyor pedronis ^07:36
pstolowskido we have any doc/tutorial about building a minimal and functioning base snap and its requirements? anything more than https://snapcraft.io/docs/base-snaps ?07:50
pedronismardy: just permissions, nothing happens on connection. that's the case for most interfaces, they given permissions, don't have side effects, with few exceptions08:01
pedronismardy: (sorry, mvo was in a meeting with me)08:02
pedroniscontent is one of those exceptions for example, but mount-control is meant to be just permissions08:08
pedronispstolowski: there's test-snapd-bare-base and bare08:10
pedronisthose are minimal and tested08:10
pstolowskipedronis: i had something similiar but my hook wouldn't work (i was getting an error about snap-exec)08:15
mvocould someone please eyeball 10456? it's for the 2.51.2 backport of the pi-config fixes10:17
mvoand 1045510:17
pstolowskimvo: done11:36
mvopstolowski: \o/12:45
mardycachio__: hi! So, the problem I'm having with the fake store is that I create a package with make_snap_installable_with_id, but installation fails:14:50
mardy- Fetch and check assertions for snap "microk8s" (1) (cannot find supported signatures to verify snap "microk8s" and its hash (account (developer1) not found))14:50
cachio__mardy, hi, can you show me the test please?14:50
cachio__do you have a link?14:50
mardycachio__: here's the preparation code: https://github.com/anonymouse64/snapd/blob/feature/snap-microk8s-shared-system-usernames/tests/main/system-usernames-microk8s/task.yaml#L35-L4214:51
cachio__mardy, tx14:51
cachio__I'll have a look14:51
mardycachio__: thanks!14:52
* mvo switches network and will be off for some minutes14:54
cachio__mardy, where make_snap_installable_with_id is defined?14:56
cachio__found it14:56
mardycachio__: ah, I think I got it: I was just calling "snap ack" on the account assertions for developer1, but I also need to copy them under the store's assertions dir14:58
cachio__yes14:58
cachio__look at the test14:58
cachio__set-proxy-store14:58
cachio__there you have an example14:59
cachio__mardy, 14:59
mardycachio__: I see, thanks! I see that most other tests, however, keep the assertions separate (they use cp and not cat), but I guess it's equivalent15:00
cachio__it should be the same15:01
pedronispstolowski: I reviewed the wait-chain PRs15:10
pstolowskipedronis: ty15:15
pedronispstolowski: cachio__: it seems some image has changed now we get core20 instead of core18, this makes the preseed test fail, see here for example: https://github.com/snapcore/snapd/pull/10458/checks?check_run_id=294313763915:23
cachio__pedronis, ah, ok, I'll update that15:23
pedronisit happens 20.10 and 21.0415:23
cachio__I just updated last week one test with this problem15:23
pedronisthx15:24
cachio__yaw15:24
pstolowskithanks15:25
* pstolowski errand, eod15:30
wez.o/15:34

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