[00:08] Chipaca, all the tests passed [00:09] cachio_: merge away! [00:13] Chipaca, I cant [00:13] cachio_: oh! [00:13] Chipaca, tx :) [00:14] PR snapd#3448 closed: tests: fix for the test postrm-purge [01:12] PR snapd#3446 closed: errtracker: Include /etc/apparmor.d/usr.lib.snap-confine md5sum in err reports [01:42] PR snapd#3420 closed: many: slight improvement of some snap error messaging === chihchun_afk is now known as chihchun === JanC_ is now known as JanC [06:08] good morning [06:09] * zyga had a terrible dream [06:10] morning! [06:10] zyga, mvo: one of you can merge https://github.com/snapcore/snapd/pull/3406 now? [06:10] PR snapd#3406: tests,packaging: add package build support for openSUSE [06:11] morphis: yes, just fiddling with expired github login [06:11] :-) [06:11] morphis: good morning, how are you? [06:11] zyga: fine, you? [06:12] so so, weather has deteriorated today it seems [06:13] gets stormy again :-) [06:15] morphis: done [06:15] morphis: thank you for this work! [06:15] mvo: awesome! [06:16] PR snapd#3406 closed: tests,packaging: add package build support for openSUSE [06:16] mvo: it's just the beginning [06:20] https://forum.snapcraft.io/t/spread-testing-for-fedora-and-opensuse/950 [06:21] * zyga cannot login to github [06:21] drat [06:21] this will be a boring day if I cannot log in [06:24] PR snapd#3449 opened: tests/lib: generalize RPM build support [06:24] zyga: what did you do? [06:24] 2fa I cannot access [06:24] well, I have backup but I cannot reach it yet [06:24] (backup is in Poland) [06:25] I'll try again soon [06:26] PR snapd#3450 opened: packaging/{opensuse,fedora}: allow package build with testkeys included [06:27] PR snapd#3451 opened: tests/main: use dir abstraction in a few more test cases [06:27] oh, nice [06:28] morphis: https://github.com/snapcore/snapd/pull/3450/files seems like a copy-paste comment [06:28] PR snapd#3450: packaging/{opensuse,fedora}: allow package build with testkeys included [06:28] PR snapd#3452 opened: tests/main: check for confinement in a few more interface tests [06:28] zyga: :-) [06:28] feel like a few smaller PRs are better [06:29] keeps travis busy but the review small and focused [06:29] +1 [06:30] PR snapd#3453 opened: tests/main/manpages: install missing man package [06:32] PR snapd#3454 opened: spread: add fedora snap bin dir to global PATH [06:32] zyga: complete list: https://forum.snapcraft.io/t/spread-testing-for-fedora-and-opensuse/950/2?u=morphis [06:33] PR snapd#3455 opened: tests/main: use pkgdb function in more test cases [06:36] PR snapd#3411 closed: tests/main: enable a first set of test cases for Fedora and openSUSE [06:58] * zyga tries to recover hist 2fa [07:09] re [07:09] ok, access regained [07:15] ogra_, hey, wdyt about refactoring mentioned in https://github.com/snapcore/core-build/pull/13 ? Where should a file with common functions reside? scripts/? [07:15] PR core-build#13: Androidboot support [07:30] PR snapd#3442 closed: snap: ensure security polices are re-created === koza|away is now known as koza [07:51] morphis: quick review on https://github.com/snapcore/snapd/pull/3452#pullrequestreview-43087627 [07:51] PR snapd#3452: tests/main: check for confinement in a few more interface tests [07:51] and doing others [07:54] zyga: fixe [07:55] morphis: morning, any chance you can help out an arch user? https://www.reddit.com/r/linuxquestions/comments/6euoj8/snaps_are_not_running/ [07:56] Antergos .. what is that? :-) [07:56] popey: ah based on Arch [07:56] yeah the snapd package on arch is somewhat broken [07:57] something somebody needs to look into, it's on my list which is quite full already [07:57] sorry to hear that [08:00] morphis: I installed arch and could tweak some things but I cannot commit it [08:00] me neither, we need Timothy for that [08:00] tried to reach out to him again but no reply [08:10] abeato, scripts/ sounds fine, then source it respectively [08:10] morphis: is it possible to find someone else if we're blocked on Timothy's time? [08:11] popey: not sure, zyga may know [08:12] my Arch times are long over and never really looked into the snapd situation there yet [08:12] popey: but the basic problem is that he is the maintainer so we need to him or an override from someone else to take the package over [08:13] popey, zyga: maybe we should start reporting bugs against that package [08:13] https://bugs.archlinux.org/index.php?string=snapd [08:17] popey: I think any trusted packager can update it [08:17] morphis: we might just file a bug with "packaging enhancements" [08:17] (and a diff attached) [08:18] zyga: yeah [08:19] PR snapd#3456 opened: many: add interfaces.SystemKey() helper [08:24] zyga: morphis yeah, i think we need some way to move forward on arch. We keep pimping snaps and see people complaining that they don't work on arch, which doesn't look good. [08:25] popey: +1 [08:25] zyga: so can you update hte package and file a bug? [08:27] PR snapd#3457 opened: tests: add refresh --time output check [08:29] PR snapd#3383 closed: tests: fix spread flaky tests linode [08:34] travis hates me again .. [08:36] PR snapd#3458 opened: tests: check that locale-control is not present on core [08:48] exit [08:49] popey: I'll see what I can do about the package [08:49] PR snapd#3459 opened: tests: add whoami check [08:51] hey fgimenez, I just had a look at https://github.com/snapcore/snapd/pull/3459/files [08:51] PR snapd#3459: tests: add whoami check [08:52] fgimenez: could you please change that to more "regular" shell [ ] && [ ] syntax [08:55] hey zyga sure, np, i blindly c&p it from tests/main/login [08:56] fgimenez: thank you, I don't mind bashisms that much but I prefer to use them only when there's no equivalent shell feature and it is justified [08:56] zyga: agreed, i'll update login too [08:56] Thanks! [09:02] thank you zyga, pushed [09:04] oh master why do you hate my PRs [09:04] did you hear the latest joke? [09:04] I pushed a PR and tests passed on the first go [09:08] fgimenez: you can use `-n` instad of `! -z` [09:08] zyga: sure! let me fix it [09:08] fgimenez: or just "$a" != "" [09:08] whatever you like :) [09:10] ok, while waiting for spread I'll look at refreshing the arch package a little [09:13] zyga: thanks [09:13] zyga: just [ "$a" ] is enough, right? [09:13] fgimenez: I don't think it is [09:13] or maybe it is [09:14] but feels more murky [09:14] STRING is equivalent to -n STRING [09:14] zyga: ok, i'll go for the -n then, thx [09:14] my comment was motivated by doing simple and obvious things (hence the suggestion for -n over ! -n or for using != "" explicitly) === ogra_ is now known as ogra [09:21] PR snapd#3460 opened: ifacestate: only re-generate all security profiles if the system-key changes [09:29] mvo: reviewed [09:29] mvo: I only feel strongly about the need to refresh other security backends (we do only two today) [09:29] mvo: and the need to treat "unknown" as special [09:29] Thank you for fighting this! [09:31] mvo, ogra, https://github.com/snapcore/core-build/pull/13 re-pushed [09:31] PR core-build#13: Androidboot support [09:32] ondra, hey ... trying your avahi snap on ym arm boards i get "/snap/avahi/44/meta/hooks/configure: line 48: /bin/nc: Permission denied" ... you probably want to ship nc as stage-packages and adjust the path in the script to use the in-snap one [09:34] popey: do you know where the git source of snapd packaging for arch is? [09:34] I cannot find this anyomre [09:38] abeato: thank you , I have a look [09:38] zyga: thank you too! [09:38] mvo, cool, thanks [09:41] zyga: sure, thanks for pointing that out! already pushed [09:42] fgimenez: thank you! [09:46] zyga: no idea, sorry [09:47] I think I have it in my browser history, I was looking at it yesterday [09:47] * zyga looks [09:49] abeato: the PR looks much better, thanks a bunch for the refactor! once the points from zyga are addressed I think it can go in [09:49] mvo, nice! [09:51] ogra yeah, that part is harmless, I'm having more changes in pipeline for avahi [09:52] ondra, well, it makes it fail to start [09:52] zyga: if you want unknown to be different every time, it might be easiest to make it "unknown (random-XXXXXX)" [09:52] zyga: then nothing in the higher layers needs to care [09:52] ogra that call there was just to lift up device name from model, so it can add it to service description, so once can search for core devices and see actual device model name [09:52] mvo: or just return nil, when it is nil we should regenerate [09:52] mvo: this feels even easier than deserialization [09:52] ogra hmm, let me quickly remove it [09:52] zyga: yeah, that works too [09:53] ondra, it should really not do that [09:53] ogra should not do what? [09:53] ondra, i'm working on a hostnamectrl option for the core snap so that the hostname can be set by that ... so you should actually query the real hostname not something from the model [09:54] ogra BTW I'm preparing avahi-control interface, so once can configure avahi over that [09:55] (and even without the core option i dont have a single board in my house where i didnt use "sudo hostnamectl set-hoostname ..." as the first thing after initial setup to tell the boards apart [09:55] ) [09:55] (and i assume other people do that too) [09:55] ogra problem with host name is that that is same on all fresh images [09:55] ogra model will at least give you what type of device it is [09:56] ondra, yes, but you hardcode it ... if the hostname isnt localhost it should not use the model then [09:56] (in my network with three pi3 boards always online it would already explode badly) [09:56] ogra well this one is on configure hook anyway, so it will track hostname changes [09:56] ok [09:57] ogra no t won't explode [09:57] ogra this is only addition string on service [09:57] well, it will pick random boards for pi3.local [09:57] ogra so you can have 100 devices with same additional string [09:57] ogra no, it will set set pi3 there [09:57] on all three boards [09:58] ogra it only attaches tag to ssh service with device name [09:58] zyga: any idea about https://paste.ubuntu.com/24814501/ ? this isn't about seccomp, there are no denials [09:58] ondra, oh, so it isnt actual avahi ? [09:58] ogra it's not using it for hostname [09:58] is that why i dont see a daemon ? [09:58] zyga: hm wait, I broke something [09:59] ogra it is in avahi, but it's not using that string( device name) for avahi host name [09:59] ah [09:59] morphis: dmesg | grep 1326 [09:59] ogra ssh service already has text tag so you can identify all ubuntu core devices [09:59] ogra well all avahi instances running from snap [10:00] yeah, but that doesnt help if the actual mdns daemon isnt running [10:00] ogra if it's failing that is bug [10:00] ogra that tag is used by snappy-discover [10:01] ah [10:01] zyga: what is 1326? [10:01] ogra which will list you all devices on your network which run avahi as snap [10:01] right ... [10:01] ogra and in that list, idea was not to just have it as snappy device, but at least also see what model it is [10:01] AUDIT_SECCOMP [10:01] so looking at the snap i see an command-avahi-daemon.wrapper ... but systemctl doesnt show it [10:01] ogra so it will show you 5 snappy device, where 3 will have pi3 tag [10:01] seems there is actually a bug then [10:02] ogra@sabrelite:~$ systemctl |grep avahi|grep service [10:02] ogra@sabrelite:~$ [10:02] * zyga breaks for quick breakfast [10:02] ogra just did clean install in amd64 core and avahi runing [10:03] well, not on armhf [10:03] ogra will test arm [10:03] ogra@sabrelite:~$ ps ax|grep avahi [10:03] 3848 pts/0 S+ 0:00 grep --color=auto avahi [10:03] ogra@sabrelite:~$ [10:03] ogra@sabrelite:~$ snap list avahi [10:03] Name Version Rev Developer Notes [10:03] avahi 0.6.32 44 ondra - [10:04] mvo: very unusual error https://travis-ci.org/snapcore/snapd/builds/241117099?utm_source=github_status&utm_medium=notification [10:04] ogra is there any safe way to lift model or gadget name? [10:04] snap confine did not refuse to run [10:05] ondra, only if your hok could call "snap" which we deny i think [10:05] isn't this in some way related to us generating the profile for snap-confine now? [10:05] (from core0 [10:05] may be a race [10:06] zyga, wow, that was really a quick breakfast ... only 2min [10:06] :P [10:06] zyga: indeed, *sigh* [10:07] ogra hmm clean install on cm3 and works [10:07] " Failed to open file '/var/snap/avahi/common/etc/avahi/avahi-daemon.conf': No such file or directory" [10:07] (from sudo journalctl -u snap.avahi.avahi-daemon) [10:07] ogra I get /snap/avahi/44/meta/hooks/configure: line 48: /bin/nc: Permission denied but it continues, installs and runs [10:08] doesnt here [10:08] hi guys: is the snap-id for core 99T7MUlRhtI3U0QFgl5mXXESAiSwt776? [10:08] 99T7MUlRhtI3U0QFgl5mXXESAiSwt776 [10:08] yep [10:09] btw .... "snap info core" shoudl show it [10:09] only on edge [10:09] ah, indeed [10:09] i need a confirm [10:09] yes, only on edge [10:09] I mean only there it is visible currently [10:09] well. snap-id is the same in all channels :) [10:09] so yes, the one above is fine [10:11] ondra, wow ... so uninstall and reinstall of the snap works ... sems there is some kind of race [10:13] ogra damn too late [10:13] ogra wanted to ask you for one log file [10:14] ah, crap, sorry [10:14] ogra hook at first install populates default config in writable path [10:14] ogra which for some reason failed on your device [10:15] ogra that call which you saw failing is on the end, so no matter what by that time default config should have been there, but it was not [10:15] ogra no worries :) [10:15] well, i'm re-installing often, i'll keep an eye out for oother issues like this next time [10:15] ogra but if you see it again, then check /var/snap/avahi/common/configure-hook.log [10:16] i assume you want the configure-hook.log ? [10:16] ogra this should tell us what happened in configure hook [10:16] heh ... *snap* [10:16] ogra yeah when it fails, then grab that log [10:21] * zyga sees a new VCS in 2017 and wonders if this is a good thing [10:21] https://pijul.org/ [10:22] oh, darcs is back [10:22] interesting [10:22] maybe without haskel it will actually perform [10:23] interesting indeed that people still see the need for new vcs [10:26] well [10:26] darcs was amazing [10:26] it just didn't get a decent implementation [10:26] (at the time when I tried it, darcs2 was feeling better but we moved to hg then) [10:26] but the vcs itself is less and less interesting [10:26] where is the tooling for it? [10:26] still, interesting [10:26] is there a snap? :D [10:27] there should be one [10:27] :) [10:29] mvo: can you please have a look at https://github.com/snapcore/snapd/pull/3444 [10:29] PR snapd#3444: interfaces: compose the base declaration from interfaces [10:31] abeato, that boot=bootloader-script ... why do you need that ? if you have detected there is an androidboot with abootimg -i $RECOVERY and you see that snap_mode is set to try, why do you need to additionally modify the commandline ... the idea was to actually not have to invent new vars like this but be able to work with what we already have [10:31] mvo: I feel this has 1.9 already (since jdstrand didn't give me a full approval) [10:32] mvo: I replied to his concern (there's one more branch behind this) and if I could land it I can propose the final piece of the puzzle [10:32] (and then fix existing interface PRs!) [10:32] ogra, there is a difficulty here, which is that the initramfs does not know if it has been loaded from recovery or from boot partition [10:32] ogra, the only easy way I found to know that was via kernel command line [10:32] i'm sure we can somehow find that out [10:33] sure, but how? :) [10:33] doesnt the kernel hand through the boot reasoon when it is called with reboot recovery ? [10:33] nope [10:33] no extra args added [10:35] well, but snap_mode knows we were rebooted into recovery [10:35] because it is set to try [10:35] so just match on that [10:36] ogra, except when it is "trying", but failed... [10:36] a) check if we are androidboot ... b) check if snap_mode is non-empty ... then you can be sure you should invoke the script to actually deal with snap_mode [10:36] snap_mode is for detecting the install status of core/kernel, using it for other stuff is a slippery slope [10:38] well, i dont really like to modify the cmdline twice [10:39] especially the currently working one [10:39] ogra, that will not work, if non-emtpy it can be that we are recovery or boot, that is unknown [10:40] ogra, no, boot=bootloader-recovery is only in the boot partition cmdline (which is not the one that contains the booting kernel as we are always doing boot->recovery->uc16) [10:40] worst case we could touch a file in the initrd when creating it as recovery ... that still better than changing the safe cmdline [10:40] ah, so you hardcode it there ? [10:41] technically that variable is set in initramfs.coonf [10:41] yes, for the boot partition only, which is not updated anytime (remeber, it is the bootloader to all effects) [10:41] (the BOOT variable i mean) [10:41] whcih you can actually set dynamicall yat build time of the initrd [10:41] yes, hardcoded in the boot partition [10:42] so when creating the recovery initrd we can simply set the var there ... and it will default to BOOT=boot-script [10:43] that way you dont need it at all on any cmdline [10:44] abeato, https://github.com/snapcore/core-build/blob/master/initramfs/conf/ubuntu-core-rootfs [10:44] we just need to replace that file dynamically when creating the recovery-initrd.img [10:45] so recovery always has BOOT=boot-script and noon-recovery does BOOT=ubuntu-core-rootfs [10:45] ogra, ok, it can be done that way or via kernel command line, in fact it is not very important. The only important thing is that the boot image will have this difference wiht the recovery image [10:45] that saves the extra var and the additiopnal cmdline fiddling [10:45] *has [10:45] (wheer did you plan to do that btw) [10:46] (the setting oof the cmdline i mean) [10:46] we have build scripts for the images, they create boot.img and recovery.img, being the only difference that boot.img has cmdline with boot=bootloader-script [10:48] well, i'D still like us to stay consistent here ... we dont set boot= anywhere in ubuntu except via the initramfs.conf file [10:48] (remeber we switched boot with recovery, the kernel is updated in the recovey partition) [10:48] right [10:49] ogra, it is perfectly fine to modify the conf file instead of the kernel cmdline for boot.img in our build scripts [10:49] the point that bothers me is that we set soimething on the cmdline :) [10:49] if you think that is better [10:49] so no issue here :) [10:49] i think it is consistent with the rest of the distro [10:49] it does not affect the PR anyway [10:49] right [10:49] sure, I will change that [10:50] regarding the PR you will have too fight with zyga over his request for unittests ... i'm fine with it as is (once it has seen sopme real world tesing) [10:50] I'll contribute some in a moment [10:51] re: real testing, it has had quite a bit, I simulated update failures in different ways, for instance [10:51] adding unit tests there will be some giant work i fear ... to do that right you surely want to run them in the environment they will later run [10:51] so you want an initrd, unpack it ... and run the unittests chroooted inside that at the very least [10:51] ogra: we will see, I don't know yet [10:52] else you dont really test if i.e. the binaries your scripts use are there etc [10:52] and you need to fake all the device bits ... findfs checking for labels etc [10:53] i'm not sure that buys us much TBH ... over actual testing of a boot and shellcheck to make sure there are no typos [10:56] hi, snapcraft question: how can i tell snapcraft to put folders/files in the $SNAP_USER_DATA ? [10:57] ogra: I think its definitely wort checking adding unit tests fwiw, I think its not something that abeato needs to do as its beyond the scope of the PR but something we should look into in the core team. I'm very happy that zyga looks at it [10:57] daker, with a wrapper script [10:57] worth even [10:57] ogra: any example ? [10:57] mvo, oh, yeah, not saying they arent worth it but he asked for them in context of the PR :) [10:58] daker: not automatically, but you can with the configure script [10:58] mvo, and i meant what i said above, they will be useless ifwe dont run them in the right env ... which means an unpacked initrd and chrooted into that with the change applied on top ... thats a rather complex thing to set up [10:58] daker: though it will run _after_ services started [10:59] daker: ah, for SNAP_USER_DATA (not the USER) you need a wrapper [10:59] * abeato happy to leave that for other PRs ;) [10:59] zyga: example :) [11:01] daker, https://github.com/ogra1/laidout (doesnt copy anything ... a cp $SNAP/default-config $SNAP_USER_DATA/config would be needed) [11:01] ogra: thanks! i'll try it [11:02] daker, ah, here i copy some java config in place in line 31 https://github.com/ogra1/jtiledownloader/blob/master/wrapper [11:02] daker: wrap the real command you want to run in a helper program (script) that does the initial setpu [11:03] zyga: ogra ok [11:09] PR snapd#3461 opened: debian: add missing "make -C data/systemd clean" === ogra_ is now known as ogra === ogra is now known as ogra_ [11:35] PR snapd#3462 opened: systemd: refactor service ops to also be exposed more directly [11:36] ouh [11:36] * Chipaca smacks forehead [11:39] PR snapd#3463 opened: Snap services 2 [11:39] * Chipaca smacks github's forehead [11:40] is it forehead-friday ? [11:42] ogra_: yes [11:43] very yes, in fact [11:43] * ogra_ slaps his forehead too in solidarity with the UK [11:46] ogra_: uff... if it were for the uk shenanigans my forehead would have a berm around the edge from all the slapping [11:46] heh [12:03] PR snapcraft#1361 opened: pluginhandler: don't clobber path on local import failure [12:11] koza, hey ... http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/ or http://people.canonical.com/~ogra/snappy/all-snaps/daily-stable/current/ have the hummingboard images ... we're still missing interfaces in the gadget ... https://github.com/ogra1/hummingboard-gadget/ has the gadget source [12:12] koza, i started working with fabo on getting proper build scripts in place in the linaro lite setup (which requires to build in docker, i'm waiting for him to get us a proper setup) [12:39] fgimenez: do you have time to do a review on my PRs listed in https://forum.snapcraft.io/t/spread-testing-for-fedora-and-opensuse/950/2 ? [12:42] morphis: sure, i'm finishing the sru verification, once that's done i'll take a look [12:42] fgimenez: thanks! [12:45] ogra_, hey and thanks for mail; got disconnected and my ssh/irssi to linode setup reacts with a delay to such events [12:45] koza, no worries ... i just wanted to make sure you definitely get the answer ... [12:46] ogra_, appreciated [12:46] koza, note the last line in the model assertion paste is wrong (in case you want to use it to build an image yourself) i only just noticed that my server spilled a message there ... [12:47] ogra_, oh right email notification :-) [12:47] yeah :) [12:49] morphis: btw, the suite is failing on opensuse and fedora when running against the staging store, could you please take a look? https://travis-ci.org/snapcore/spread-cron/builds/240983847 [12:49] fgimenez: interesting [12:50] morphis: ok opensuse this seems to be the problem http://paste.ubuntu.com/24815216/ [12:50] on opensuse [12:51] hm, I see [12:51] maybe go is too old? [12:53] morphis: no idea, also not sure if the quoting is right in that case [12:55] hm === om26er_ is now known as om26er [13:03] Chipaca: Standup? [13:05] niemeyer: yes! [13:23] Hi! who is the contact to talk about https://build.snapcraft.io/ ? [13:28] PR snapd#3444 closed: interfaces: compose the base declaration from interfaces [13:32] jdstrand: https://github.com/snapcore/snapd/pull/3464 :-) [13:32] PR snapd#3464: interfaces: put base policy fragments inside each interface [13:32] om26er: many people, can you be more specific? [13:32] PR snapd#3464 opened: interfaces: put base policy fragments inside each interface [13:34] ogra_, hey, I've created a script for better dates, see https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1696981 [13:34] Bug #1696981: fixrtc is ineffective when there is no battery for the RTC [13:34] zyga: ack, added to list [13:35] jdstrand: thank you! [13:35] abeato, ummm ... the description is weird [13:35] jdstrand: it's pretty tedious but should be easy to review patch by patc [13:35] jdstrand: as those are structured sanely, I hope [13:35] I haven't looked at it, but know what to expect [13:35] :) [13:35] abeato, fixrtc is exactly only for the one usecase where no RTC battery is around ... [13:36] abeato, that makes your changelog entry a bit weird [13:36] ogra_, yeah, but as discussed it does not work that well. see my comments in https://github.com/snapcore/core-build/pull/13 [13:36] PR core-build#13: Androidboot support [13:36] zyga, we need to publish our software and it build.snapcraft currently builds for 2 arches, amd64 and armhf, we need support for arm64 [13:37] so wanted to know if that will come in future [13:37] om26er: it's available already AFAIK [13:37] om26er: you can build a snap for aarch64 aka arm64 [13:37] abeato, yes, i remember them ... my point is that the missing RTC isnt what makes the local-top fixrtc not work but broken mount data of the disk ... [13:37] om26er: (via build.snapcraft.io) [13:37] ogra_, I can change the description, tbh it is not clear to mee if the current fixrtc script really fixes the issue if there is no rtc battery [13:38] ogra_, it does not for this device at least [13:38] abeato, and i would still like to find out why the original fixrtc doesnt DTRT [13:38] instead of just adding anothr script [13:38] zyga, hmm, by default it built for amd64 and armhf, do we need to change something ? [13:39] abeato, can you capture the data from dumpefs from the initrd when in local-top at least ? [13:39] om26er: I think that's something you can tweak on the website [13:39] abeato, and attach that to the bug [13:39] om26er: not sure, but I know the builders for aarch64 are around [13:39] zyga, ok, will look into that. [13:39] ogra_, the explantion on why it does not work is that the mount time is always wrong, as "/" is being mounted always in a moment near to the epoch [13:39] ogra_, but let me paste that [13:40] abeato, yes, and the current fixrtc script should take that into account [13:40] abeato, we originally developed it for android partitioning for never booted devices so it should work in any case ... if it doesnt, we should try to fix what we have, not add something new (that only as last resort) [13:41] ogra_, we could access files by moving fixrtc to local-bottom [13:41] abeato, well, but that is to late [13:42] we need the clock set before we try to mount [13:42] ogra_, then we need this other script [13:42] and there is no reason why you shouldnt get that info [13:42] dumppe2fs should always return *something* and we should be able to react to that [13:43] abeato, i think we just dont handle this special case corretly in the current script ... but to adjust we need the data [13:43] ogra_, http://paste.ubuntu.com/24815516/ [13:44] Last mount time: Thu Jan 1 03:42:04 1970 [13:44] yep [13:44] that should be enough to do something about it [13:44] we know we're at the epoch [13:45] sure, and we want something better, isn't it? ;) [13:45] test@localhost:~$ date [13:45] Fri Jun 9 13:44:22 UTC 2017 [13:45] that is the current time in the machine, it is not like it is in the epoch ^^ [13:46] abeato, http://paste.ubuntu.com/24815530/ line 99 and following [13:47] we just need to make the if a bit broader [13:47] and if you feel like push the hardcoded timestamp a bit forward ... [13:48] ogra_, 1999 is still not good enough, I want the snap assertions to be valid [13:48] well, push it to 2017 then [13:49] effectively it gains you nothing anyway ... you need to be online to initialize the device ... if you are online you will get a proper date anyway [13:50] ogra_, that is true, but I am thinking about the factory case here, no network, and somebody adding system-user assertions with a USB stick [13:50] and if you are not and your image is a month old the hardcoded date will still be wrong [13:50] getting a date from the filesystem helps there [13:50] and it is not wrong [13:50] not much [13:50] * zyga lunch [13:50] it will be stuck at the image creation date [13:51] yeah, but that is in fact enough to make sure the assertions are valid, ad they are part of the image [13:51] so depending how old your image is it will still not have a proper date for a freshly created assertion [13:51] (the one on the usb stick) [13:52] well, yes, but is an improvement (time to think now in time assertions to update time in non-connected devices ;) [13:53] abeato, well, your script also only uses "2017-06-09" ... [13:53] which is the date it will always fall back to [13:53] so i dont see why we cant use that in the actual fixrtc script [13:53] ogra_, that is an initial hint, then in searches for better dates in the file system [13:54] i also dont like to tie it to snap packages [13:55] i.e. *if* you check a file (which is shuddering ugly, but if there is no other way ...) then check creation time of / on the fs or of /etc or something else generic [13:55] well, it is not perfect, but nothing but a network connection would do things right. It is just an improvment on the current situation [13:55] ogra_, I check "/" [13:56] + if [ -d "$rootfolder" ]; then [13:56] you check /root :) [13:56] that is moved to "/" later in the initramfs [13:56] oh, ignore me :P [13:57] indeed [13:57] :) [13:57] well, could we just limit limit that bottom script to this ? [13:57] ogra_, ok, I can remove the snapsfolder part [13:57] and fix the -premount script accordingly to react to the epoch in line 91 [13:57] alright [13:58] and have another test in the bottom script ... if th edtae we did set in -premount is new enough just skip [13:58] *the date [13:58] i.e. if the date is as new as the creation time of / [13:59] that is actually done with the current logic, but yeah [13:59] also ... if you check /root ... doesnt that actually return the creation time of the mountpoint (i.e. the initrd creation time) ? [13:59] perhaps you should check the stamp of /root/etc [13:59] nope [13:59] ok [13:59] then it is fine [14:00] cool [14:00] will do the changes, thanks [14:01] thanks for doing it (and for putting up with me :) ) [14:01] :) [14:34] ogra_, where is http://paste.ubuntu.com/24815760/ coming from? It is actually not part of the fixrtc scrip in the initramfs-tools package [14:34] abeato, from the one we have in the image PPA [14:34] the "n/a" isnt upstreamed yet [14:34] oh, I see [14:35] abeato, https://launchpad.net/~snappy-dev/+archive/ubuntu/image/+packages?field.name_filter=&field.status_filter=published&field.series_filter=xenial [14:35] (yes, i' an evil lazy slacker ... should have SRUed that long ago) [14:36] lol, we all are... === chihchun is now known as chihchun_afk [14:43] PR snapd#3465 opened: hooks: re-org of some hooks types [14:44] niemeyer, ^ the hooks re-org branch I talked about in the standup [14:46] zyga, fyi, there is no UI to change which arches to build on build.snapcraft. [14:46] no, it always builds amd64 and armhf regardless [14:46] would be really great we were able to distribute our package for arm64 as well as our target is embedded systems. [14:47] for other arches use LP [14:47] (or wait until build.s.io grew such a feature) [14:47] does LP also support auto publish to store ? [14:47] yes [14:48] we could probably wait a bit, if arm64 build support is planned for build.snapcraft [14:49] om26er, https://github.com/snapcore/pi2-gadget mirrors to -> https://code.launchpad.net/~canonical-foundations/snap-pi2/+git/github-mirror ... then builds -> https://code.launchpad.net/~canonical-foundations/+snap/pi2 [14:50] (and that fgoes automatically into the edge channel) [14:50] *goes [14:59] hey zyga, i'm getting this denial http://paste.ubuntu.com/24815879/ while trying to test this rule https://github.com/snapcore/snapd/blob/master/interfaces/builtin/system_observe.go#L70, any idea what might be going on? === koza is now known as koza|away [15:11] mvo: the core-revert test including bluez is about to finish (I needed to retrigger it to set up the env vars properly to do stable -> candidate -> stable) will keep you posted [15:11] popey: https://forum.snapcraft.io/t/nginx-rtmp-streaming-server-snap/961 [15:12] mvo: btw the sru validation is finished, should i wait for the results or mark it as verification-done now? [15:13] fgimenez: lets wait a tiny bit for the results of bluez [15:14] ogra_, new patch uploaded to lp: #1696981 [15:14] Bug #1696981: fixrtc is ineffective when there is no battery for the RTC [15:17] pstolowski: Thanks, replied there [15:18] niemeyer, I saw your comment, thank you [15:20] zyga, responded to your comments to 3340 [15:23] mvo: ok, i get the same timeout reported in the bug, these are the syslog contents http://paste.ubuntu.com/24815993/ looks like we have now "hsearch_r failed for NETLINK_KOBJECT_UEVENT: No such process" [15:24] mvo: the session is open in case you want to take a look [15:26] re [15:26] fgimenez: looking now [15:27] fgimenez: looks like missing dbus abstraction, looking [15:27] zyga: thanks! the test snap used is in this changeset in case you want to look into it https://github.com/snapcore/snapd/compare/master...fgimenez:extend-system-observe-test-dbus-introspection?expand=1 [15:28] fgimenez: yes, looking at https://github.com/snapcore/snapd/blob/master/interfaces/builtin/system_observe.go I don't see the abstractions included [15:29] jdstrand: ^ should there be #include in system_observe.go? [15:33] * jdstrand looks [15:35] zyga, fgimenez: it is missing and should have "#include " [15:35] zyga: jdstrand, yep, system bus [15:35] (that is for the system bus. not dbus-session-strict, which is for the session bus) [15:37] thank jdstrand, for the sru this can't be considered a regression, right? although there was another rule already there that shouldn't work before [15:37] *thanks [15:39] fgimenez: no it is not a regression. even if both dbus rules were added this time it still isn't a regression, it is just an incomplete set of rules [15:39] kyrofa: do you know if there is any way during a build with snapcraft to find out which architecture we're building for? [15:40] jdstrand: cool thx! i can propose the fix together with the test and ping you for the review, is that ok? [15:40] fgimenez: absolutely. thanks! [15:40] morphis, depends on where "we" are: in snapcraft (e.g. a plugin)? Or the thing being built? [15:41] kyrofa: right now I am doing a wget call into a install: statement [15:41] s/into/in/ [15:41] morphis, and what happens there needs to change depending on arch? [15:42] kyrofa: I need to download a different file per arch, let say test_amd64.img on x86 and test_armhf.img on armhf [15:42] morphis, I'm afraid snapcraft doesn't export any variables relating to target arch. However, doing different things depending on arch is a feature we have on the roadmap... just not there yet [15:43] kyrofa: ok, nice! [15:43] morphis, as a workaround, you can create a local plugin for that part and then you can use the plugin API to get that information [15:43] kyrofa: I can workaround by doing different snap builds from different branches for now [15:43] That works too, but is annoying, I'm sorry [15:43] kyrofa: hm, you have any good example for that? [15:43] morphis, no, but it's easy enough I'll write one for you ;) [15:43] One minute [15:44] kyrofa: my hero :-) [15:44] * kyrofa turns on mission impossible music [15:45] :-D [15:56] * zyga feels sick again [15:56] darn food [15:59] zyga: :( feel better [15:59] jdstrand: thank you [16:00] morphis, here: https://github.com/kyrofa/arch-specific-plugin [16:01] morphis, that will error out because it's trying to pull a tarball from https://arch-specific, but you get the idea [16:02] kyrofa: hey, when is the next release of snapcraft? [16:02] kyrofa: nice, thanks! [16:03] zyga, dput just happened, trying to get into proposed [16:03] aha [16:03] nice! [16:03] kyrofa: can you have a quick look at https://github.com/snapcore/snapcraft/pull/1361 [16:03] PR snapcraft#1361: pluginhandler: don't clobber path on local import failure [16:04] I'm not sure why tests are failing [16:04] and you could review it, it's tiny [16:04] zyga, yeah looks good to me. Probably a store flake as usual [16:05] zyga, yep. We usually have to rerun our tests at least twice [16:05] I restarted them [16:06] thanks! [16:06] kyrofa: because of store issues? [16:07] zyga, yeah [16:07] wow [16:07] It wastes literally hours a day [16:08] what kind of store issues are you seeing? [16:08] connection resets [16:11] zyga, https://forum.snapcraft.io/t/101-connection-resets/775 [16:14] niemeyer, I've added a comment to my hooks re-org, I think this situation is more complicated than we had in configstate (but i'm happy to stand corrected) [16:15] pstolowski: We have several cases of cross dependency between these packages already.. I'd be surprised to see this case being unlike all of them [16:15] PR core-build#13 closed: Androidboot support [16:16] niemeyer: can you have a 2nd look on https://github.com/snapcore/snapd/pull/3399 please [16:16] PR snapd#3399: many: add the interface command [16:16] pstolowski: If it is, can we please have a proper analysis about why that's the case? [16:16] niemeyer: I believe it is as you requested now [16:16] Yep, will look, thanks [16:16] thank you! [16:16] * zyga gets back to feeling sick and testing [16:17] kyrofa, just stop routing through norway ... then Peer can reset your connection all the time [16:17] *can not [16:17] (sorry, already in EOW mood :P ) [16:21] :P [16:21] That darn peer [16:22] alsoo if you get 101 resets, just write a looop with 102 iterations :P [16:22] (really sorry, i should stop for the day :P ) [16:24] ogra_, haha, that's how I read that thread, too [16:24] 101 paper cuts, 101 connection resets [16:24] yeah :) [16:28] hmmm [16:28] zyga: you there? [16:28] yes [16:28] what's up? [16:28] zyga: snap refresh --channel edge core [16:28] zyga: and then [16:28] zyga: snap refresh --channel beta core [16:28] refreshing [16:28] oh [16:29] zyga: does the "preserve namespace" nastyness i was getting [16:29] intereting [16:29] PR snapd#3459 closed: tests: add whoami check [16:29] zyga: huzzah for reproducers! [16:29] edge snapd [16:29] Chipaca: thank you [16:29] Chipaca: I think we nailed that to us following current symlink [16:29] Chipaca: vs knowing the rev to internal tools in cmd/cmd.go [16:29] Chipaca: just not fixed [16:31] yes [16:31] it's definitely that [16:35] niemeyer, oh, I found a little trick we do in configstate with setting snapstate.Configure function pointer. that "solves" the dependency issue which would otherwise arise with snapstate setting up hooks [16:37] PR snapd#3466 opened: tests: extend core-revert test to cover bluez issues [16:37] mvo: i've just proposed the changes to reproduce the bluez issue snapd#3466 [16:37] PR snapd#3466: tests: extend core-revert test to cover bluez issues [16:38] zyga, any chance you have another look at https://github.com/snapcore/snapd/pull/3340 ? [16:38] PR snapd#3340: many: snapctl outside hooks [16:38] looking [16:45] pstolowski: done [16:45] pstolowski: almost there [16:48] fgimenez: thank you! I have a look monday, slightly sad about this. but many thanks for finding a reproducer [16:48] * mvo dinner [16:49] fgimenez: do you have a log of what is going on when the bluez code fails? [16:49] fgimenez: any denials or something similra? [16:49] *similar [16:51] zyga: this is syslog http://paste.ubuntu.com/24815993/ there are some denials in there but the relevant error seems to be "hsearch_r failed for NETLINK_KOBJECT_UEVENT: No such process" after the revert [16:52] aha [16:53] yes, that looks like another new thing related to netlink mediation [16:53] * zyga wonders what mvo's revert plan for that will be [16:53] fgimenez: thank you! [16:53] zyga: yw :) [16:59] zyga, done [16:59] pstolowski: I noticed, reading already [17:01] pstolowski: +1 [17:01] thank you :) [17:05] zyga, thanks :) === zyga_ is now known as zyga-fedora === zyga is now known as zyga-suse [18:39] PR snapd#3340 closed: many: snapctl outside hooks [18:44] zyga-suse: Sent a review on the interface PR.. let me know if you want to talk about it please [18:44] sure [18:44] let me de-conflict and look [18:48] niemeyer: nothing controversial, I will iterate on this quickly, maybe it can land before your EOD [18:49] niemeyer: one question, are we OK with changing the response this way without changing the URL? [18:49] niemeyer: snap /v2/interface vs /v3/interface (for instance) [18:50] zyga-suse: We're not *changing* the response [18:50] v3wha [18:50] zyga-suse: See the note about compatibility there [18:50] zyga-suse: We're not breaking any behavior for existing clients [18:50] zyga-suse: That's what v3 would be about [18:55] ah, I see [18:55] hmm [18:57] niemeyer: what would be the response though? currently it is a single object [18:57] niemeyer: and in the proposal it would have to be a list [18:57] niemeyer: do you mean if some options are not given we return the legacy response [18:58] niemeyer: and if they are, we return the new response [18:58] zyga-suse: That's expllcitly what is stated there I think: [18:58] """ [18:58] We can provide "connected" via a "select" field, analogous to the one we use for snaps, and then allow specifying "select=all" so that we preserve the result as-is when "select" is not provided, preserving compatibility with existing clients (including the current Interfaces method which will now become Connections). Eventually we can obsolete that result as we'll likely kill the "interfaces" command and introduce a more [18:58] polished "connections" one, per our conversations. [18:58] """ [18:59] I don't get it, the result, right now, is a single object that has two lists inside (plugs and slots) [19:00] how does that allow us to return information about a single non-plug, non-slot interface? [19:00] by returning a shim object with one element? [19:00] sorry if I'm asking silly things, just tired I guess [19:00] zyga-suse: Can you point out what is unclear in the above statemnet? [19:00] zyga-suse: it's explicitly stating how and when we change the result [19:01] zyga-suse: You should probably take some good rest.. we can discuss this again on Monday [19:01] I guess I'm not familiar with the /snaps endpoint [19:01] yeah, I think you are right [19:01] I'll review the snaps API [19:01] and fight this fresh tomorrow [19:02] zyga-suse: Monday! Go take some rest :) [19:02] oh, it's Friday [19:02] man [19:02] yes :) [19:02] * zyga-suse lost track [19:51] hi guys [19:56] ssbash: Heya [20:01] I'm having trouble having my python script accessing a custom python lib. Do you guys know what I can do to fix it in my snapcraft.yaml file? [20:01] http://paste.ubuntu.com/24817687/ [20:02] My guess is that it should be a stage package, but im not sure how to configure that since its a local lib. [20:02] ssbash: Looks like traditional Python module path issues [20:03] ssbash: You probably need to fiddle with sys.path to tell Python whre your libraries are located [20:05] ok ill give that a try. Thanks for your feedback. [20:45] PR snapd#3467 opened: interfaces/greengrass-support: add support for Amazon Greengrass as a snap [22:00] PR snapcraft#1362 opened: Only install golang-go if it is not found in PATH [22:01] hi snappies, that PR ^^ is mine - happy to discuss in here if needed === tvoss_ is now known as tvoss === mup_ is now known as mup === souther_ is now known as souther