/srv/irclogs.ubuntu.com/2015/09/10/#snappy.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mvoogra_, ricmm: do you think we can remove the /etc/ppp example files? they make the snappy config ubuntu-core output pretty ugly06:24
fgimenezgood morning07:08
ogra_mvo, sure, whatever suits :)07:35
* ogra_ likes sentences with the word "remove" if they refer to the image ;)07:40
=== davidcalle_ is now known as davidcalle
ppisatiogra_: i finally cracked pwm support on the rpi208:40
ppisatiogra_: it requires a new kernel with some config changes and a little atch08:40
ppisatiogra_: and the pwm overlay must be loaded from config.txt08:40
ogra_cool08:42
ppisatihttp://pastebin.ubuntu.com/12327126/08:42
ogra_15.04.3 release should be around end of the month i think08:42
ppisatiogra_: do you have your rpi2 with snappy installed?08:43
ogra_indeed08:43
ppisatiogra_: i'm using the newer linux-firmware here (i'm juggling betweeb 3.19 and 4.2)08:43
ppisatiogra_: sudo cat /proc/device-tree/soc/pwm@7e20c000/compatible08:43
ogra_(RaspberryPi2)ubuntu@localhost:~$ sudo cat /proc/device-tree/soc/pwm@7e20c000/compatible08:44
ogra_cat: /proc/device-tree/soc/pwm@7e20c000/compatible: No such file or directory08:44
ogra_only i2c, spi, gpio and leds08:44
ogra_no pwm by default08:45
ppisatiogra_: find /proc/device-tree/ | grep pwm08:45
ogra_(RaspberryPi2)ubuntu@localhost:~$ find /proc/device-tree/ | grep pwm08:45
ogra_(RaspberryPi2)ubuntu@localhost:~$08:45
ppisatiogra_: ok so, the device-tree there din't have the bindings for the pwm08:45
ppisatiogra_: in vivid we need to update that too08:45
ogra_well, thats the default dt08:45
ogra_no overlays08:46
ppisatiogra_: the pwm overlay just turn it on08:46
ppisatiogra_: the pwm node must be there already08:46
ogra_nope08:46
ppisatiogra_: https://github.com/raspberrypi/linux/blob/rpi-4.1.y/arch/arm/boot/dts/overlays/pwm-overlay.dts08:46
ogra_(RaspberryPi2)ubuntu@localhost:~$ find /lib/modules/ | grep pwm08:47
ogra_(RaspberryPi2)ubuntu@localhost:~$08:47
ogra_there is no pwm support at all, so how would that work08:47
ppisatiogra_: right08:47
ppisatiogra_: but what i'm saying is that, evern with a kernel with the correct config08:47
ppisatiogra_: the driver doesn't know where to attach08:47
JamesTaitGood morning all; happy Thursday, and happy Swap Ideas Day! 😃08:47
ppisatiogra_: because the DT doesn't export the hw08:47
ogra_indeed, thats why you need to enable the overlay08:48
ogra_and thats good08:48
ppisatiogra_: but overlay support is already on08:48
ppisatiogra_: and the pwm overlay, it just flips a value08:48
ogra_we dont want pwm on while someone has plugged somethin into it that requires the pins configured completely different08:49
ppisatiogra_: right08:49
ogra_worst case that could blow up something08:49
ogra_so changing config.txt for now is fine08:49
ppisatiogra_: and indeed what the overlat does, is to just flip it from off to on08:49
ogra_yeah08:49
ppisatiogra_: yeah, but the DT has to have the node there08:49
ppisatiogra_: let me show my DT without the pwm overlay08:50
ogra_right, does that work with the bootloader ?08:50
ogra_switching to our own dtb there i mean08:50
ppisatiubuntu@raspy2:~$ grep pwm /mnt/config.txt08:51
ppisati#dtoverlay=pwm-overlay08:51
ppisatiubuntu@raspy2:~$ sudo cat /proc/device-tree/soc/pwm@7e20c000/compatible08:51
ppisatibrcm,bcm2835-pwmubuntu@raspy2:~$ sudo cat /proc/device-tree/soc/pwm@7e20c000/status08:51
ppisatidisabledubuntu@raspy2:~$08:52
ppisatiwith no overlat loaded08:52
ppisatibut the node is already there08:52
ppisatiogra_: the one provided with the kernel? don't know, i would just switch to the latest https://github.com/raspberrypi/firmware08:52
ogra_yes, because your kernel config has it08:52
ppisatilet me try that08:53
ogra_right, thats what i'll do with 15.04.308:53
livcdi have downloaded ova and imported it to vbox on mac but the whole thing gets stuck on booting somewhere in no valid rapl domains found08:55
ppisaticat: /proc/device-tree/soc/pwm@7e20c000/status: No such file or directory08:56
ppisatiogra_: it doesn't have that node08:56
ppisati:(08:57
ogra_yeah08:57
ppisatiogra_: found the dtb patch08:58
* ppisati respins another kernel08:58
livcdany help ?09:01
Chipacalivcd: vbox is virtualbox?09:03
Chipacalivcd: the "no valid rapl domains found" is not a blocker/crasher/etc, just an informational message09:04
livcdChipaca: yes...i know but the whole thing stops there09:05
livcdand won't continue booting09:05
Chipacaogra_: at least here autopilot does reboot the machine09:07
ogra_Chipaca, not if you disable it09:08
Chipacalivcd: you're giving us zero information we can use to help you :-(09:08
Chipacaogra_: correct09:08
ogra_it still does the download and installs it though09:08
ppisatiogra_: so, you were already using the dtb provided by the kernel so far?09:18
ogra_ppisati, nope09:18
ogra_laways the one from upstream09:18
ogra_*i always09:19
ppisatiuhm09:19
ppisatii wonder if there's any difference between the one shipped by upstreamn (linux-firmware in the github/raspberry repo) and ours09:20
ogra_well, given they get generated based on kernel config ...09:20
ogra_if our config differs, the dt will differ i guess09:21
ppisatiogra_: right, and we are switching from an upstream dtb to our dtb, right in the middle of a cycle09:28
ppisatiogra_: i've to do some db-diff and see the difference09:28
ogra_yeah, not ideal09:29
ppisatiogra_: or we should simply bite the bullet, and move to wily09:29
ppisati*wily's kernel09:29
ogra_as long as we can do that without regressing anything09:29
ppisatiogra_: ok so, i'm pushing a new kernel with owm and so to my ppa09:30
ppisatiogra_: then i cehck that wily is ok09:30
ppisatiogra_: and after all that, i'll do some db-dif to see if moving from upstream to vivid is ok09:30
=== chihchun_afk is now known as chihchun
ogra_Chipaca, oh, i see, the context is missing because the text from the readme.md in that mail is all screenshots09:43
ogra_the text in the inline image actually talks about the fact how the update applies if you disabled it09:43
Chipacapopey: next time you want to point somebody at "their own page on launchpad", try https://launchpad.net/~10:47
Chipaca:)10:47
popeydammit, I was looking for that but couldn't find the thing10:47
popeyi thought it was +me10:48
Chipacapopey: if only you knew people that knew launchpad better than you, such that you could ask them!10:48
* Chipaca is being mean10:48
popey:(10:50
popeyFinding their own launchpad page is the least hard part of signing the CoC to be fair10:50
Chipacapopey: good on you for noticing there are so many of us delinquent on that point10:51
=== chihchun is now known as chihchun_afk
livcdbah how do i uncompress the xz img ?11:32
livcdah11:32
ogra_usin unxz :)11:32
livcdthere's a unxz11:32
ogra_ricmm, oh, forgot to tell you, the latest 15.04 edge has auto-resize11:35
ogra_(still testing pending, working on it)11:35
livcdi am starting to give up on snappy11:35
ogra_whats your issue ?11:35
livcdoh well the ova did not quiete work for me11:36
livcdit would not boot on vbox11:36
ricmmogra_: sweetskies11:37
livcdi plan to build a box using Packer.io but there seem to be too much hassle to get a working vbox img :SSS11:38
ogra_livcd, did you try just converting the amd64 img ?11:38
livcdnot yet11:39
ogra_wget http://releases.ubuntu.com/15.04/ubuntu-15.04-snappy-amd64-generic.img.xz11:41
ogra_unxz ubuntu-15.04-snappy-amd64-generic.img.xz11:41
ogra_qemu-img convert -O vdi  ubuntu-15.04-snappy-amd64-generic.img ubuntu-15.04-snappy-amd64-generic.vdi11:41
ogra_then just use the vdi11:41
livcdyeah except i will have to get unxz and quemu-img first to my system (not on ubuntu)11:42
ogra_ah11:42
ogra_in vbox you need to use "Choose an Existing Virtual Hard Drive File" when creating the vm11:42
livcdogra_: ok ty12:23
josephtaa13:08
yashi_is it intended to put image cache under /root/.cache when I run u-d-f? because u-d-f needs to be run with sudo13:15
ogra_no, it should use the $SUDOUSER13:16
ogra_well the home of that user :)13:16
yashi_ah, ubuntu sudo is special?13:16
ogra_no13:17
ogra_ogra@anubis:~/Devel/packages$ sudo -s sh -c "env|grep SUDO"13:17
ogra_SUDO_GID=100013:17
ogra_SUDO_UID=100013:18
ogra_SUDO_COMMAND=/bin/bash -c sh -c env|grep\ SUDO13:18
ogra_SUDO_USER=ogra13:18
ogra_sorry ... should be SUDO_USER13:18
yashi_sudo -s sh -c "env|grep HOME"13:20
yashi_HOME=/home/yashi13:20
yashi_under wily13:20
yashi_but i get HOME=/root under sid13:20
ogra_did debian change anything ?13:21
yashi_did i?  not that i remember13:22
yashi_/etc/sudoers seems the same13:22
ogra_https://launchpad.net/ubuntu/+source/sudo/1.8.12-1ubuntu113:23
yashi_all debian machine around me returns /root13:23
yashi_ah13:24
yashi_thanks13:24
yashi_keep_home_by_default.patch: Keep HOME in the default environment13:24
ogra_there are a few changes ... nothing that points to an obvious mangling of HOME though13:24
ogra_oh, i'm blind13:24
ogra_:P13:24
ogra_yeah, that would be it i guess13:25
yashi_yup, thanks a lot13:25
yashi_not sure it's planed to package for debian, but this needs to be remembered if it is13:26
* Chipaca just tried importing "path/timepath". Science fiction and coding mix quite well.13:27
ogra_heh13:28
Chipacamvo: you around?13:44
Chipacaok, school run time for me13:53
yashi_ok, some progress; no partitions are recognized grub seems to be working; but "error: invalid file name `root=LABEL=system-a'." after "Booting from hard Disk..."13:57
yashi_this should be easy to fix13:57
yashi_(hope)13:57
dduffeysince gotomeeting URL is non-functional, do we have call in info?13:58
dduffeysorry, wrong channel14:03
mvoChipaca: yes, sorry for the delay14:13
ppisatiogra_: so, i was looking at the snappy dtb14:20
ppisatiogra_: and it looks very very similar to the one we are shipping with the 3.19 kernel14:20
ppisatiogra_: actually, it's almost the same!14:20
ppisatiogra_: the only difference are the naming of the leds (led0 vs ACT and led1 vs PWR and stuff like that)14:21
ppisatiogra_: abnd the pwm node that i added14:21
ogra_ppisati, ah, cool14:33
Chipacamvo: no worries, i was on a school run anyway. I'm wondering at the relation between oem packages, and LocalRepo(oemDir)14:52
Chipacamvo: ie, are all packages in an oemDir of type oem?14:52
Chipacaand thus, unremovable14:52
mvoChipaca: yes14:52
Chipacaor are there non-oem packages that could live in an oemDir, which we may then try to remove and fail14:53
Chipacathere is duplication of information there :)14:53
mvoChipaca: well, unless the user manually copies stuff in there or something14:53
Chipacawell, if they purposely break it, they can go ahead and keep all the bits14:53
Chipaca:)14:53
mvoChipaca: yeah14:53
mvoChipaca: so if type == Oem -> installdir = /oem14:53
mvoChipaca: what duplication do you have in mind? the prefix?14:53
Chipacamvo: so conversely, a list of removed packages can skip the oem repo entirely14:53
Chipacamvo: type=oem, and oem repo14:54
mvoChipaca: yes14:54
Chipacaanyway, the tiny bit of code that i'm working on is correct if that <-> is true14:54
Chipacamvo: so, installdir = /oem -> type==oem?14:55
mvoChipaca: yes14:55
Chipaca\o/14:55
mvoChipaca: just out of curiosity, is this simpler than just checking the type and excluding it? (I assume the anwer is yes :)14:55
Chipacamvo: in answering the question "can i get a list of all packages that have been removed but not purged"14:56
mvoohhh14:56
mvook14:56
Chipacaquite14:56
Chipacamvo: so i'll just check the path of the repo, and if it's not the apps path, i'll return nil14:57
Chipaca\o/ :)14:57
mvoChipaca: sounds reasonable, we will have data dirs for kernel/os at some pont though, but thats future14:58
mvo(but its getting closer!)14:58
Chipacamvo: and are those SnapParts, or are they their own go type?14:58
Chipacabecause the problem here is because oem snaps and framework snaps and app snaps are the same go type14:59
Chipacawhich used to make sense, but is making less as we refine the business logic behind each14:59
mvoChipaca: yeah, I struggle(d) with that too14:59
mvoChipaca: I made them OsSnap, AppSnap, KernelSnap now14:59
mvoChipaca: but its not 100% great because of misisng dynamic binding of functions (we talked about this some days ago). but its a step forward :)15:00
fgimenezChipaca, a log of the error http://10.55.32.36:8080/job/snapd-test/34/console15:10
fgimenezthe code http://bazaar.launchpad.net/~fgimenez/snappy/snapd_integration_test/view/head:/_integration-tests/tests/snapd_test.go#L6915:10
fgimenezChipaca, i'm pretty sure it's working fine, i've been able to access it with curl from the laptop after adding a rule for the testing port15:11
Chipacafgimenez: what firewall is running on that host?15:33
fgimenezChipaca, it's managed by nova, the security group that we have been using so far only accepts incoming requests to port 2215:34
fgimenezChipaca, i think there's nothing else, it's a regular snappy image15:34
Chipacafgimenez: can you ask whether it's filtering access to 127.0.0.1:80?15:35
fgimenezChipaca, yes, there's no rule for that, i can add one15:35
Chipacafgimenez: tbh i wouldn't expect it to be blocked, but ¯\_(ツ)_/¯15:36
Chipacamvo: i think i'm going to leave this husk work to later15:40
mvoChipaca: what work specificially?15:41
elopioogra_: a micro branch, can you please review? https://code.launchpad.net/~elopio/snappy/parted_script/+merge/27042115:41
Chipacamvo: a Husk part that is a part representing a remove package15:42
Chipacamvo: so i get the "removed" state right15:42
Chipacaremoved*15:42
fgimenezChipaca, yes, we give them this restrictive security groups just for testing! :)15:46
fgimenezChipaca, if you want to have a look there's a running instance in 10.55.32.103 with the service up on 9999, you should be able to ssh15:46
fgimeneznow the security group has the 9999 port opened, curl -i -X GET http://10.55.32.103:9999 works for me15:46
Chipacafgimenez: 's ok, i'll believe you :)15:48
Chipacafgimenez: fwiw, note that you can ask to serve on port 0 and you'll be given a random available one15:48
fgimenezChipaca, mmm how could we do the get from the test if we don't know the port?15:49
Chipacaah! you're doing it via activate from the test too15:50
Chipacanever mind then :)15:50
fgimenezChipaca, ok :) one question for you, how could we kill the service created by systemd-activate?15:51
Chipacafgimenez: from inside, or from outside?15:51
fgimenezChipaca, inside15:51
Chipacafgimenez: you call Stop()15:51
fgimenezChipaca, sorry, inside the testbed, not the code15:51
Chipacafgimenez: from outside, kill it with SIGINT SIGQUIT, or SIGTERM15:52
fgimenezChipaca, ok thx, i'll add it to the integration test15:53
Chipacafgimenez: e.g., cmd.Process.Kill()15:53
Chipacafgimenez: or cmd.Process.Signal(syscall.SIGINT)15:53
Chipacafgimenez: actually safer (non-panic'ing) code would be: proc := cmd.Process; if proc != nil {proc.Kill()}15:54
Chipacabecause cmd.Process can be nil15:55
Chipacaif the universe has exploded or something15:55
Chipacawhich can happen in a racy end-of-test cleanup15:55
fgimenezChipaca, :) thanks, i'll put that in place15:56
tedgmvo: Looking at python-apt and the sourceslist support. It seems like that's just for reading, is that true?16:41
mvotedg: if you use aptsources.SourceList there is a save() method17:10
mvotedg: that should work and also preserve order comments and all that17:10
tedgmvo: Do you think it makes sense to import the system default?17:12
tedgmvo: I'm wavering on that. Kinda looking now towards full replacement to make it more predictable.17:12
mvotedg: my gut feeling is yes17:12
mvotedg: but I have no strong opinion either way, not doing it is more predictable (no crazy ppas get pulled in by default) but might surprise people who expect their crazy ppas :)17:13
tedgmvo: I'm okay surprising crazy people, the results are fun! ;-)17:13
mvothe up-side of using the system ones is that you don't need a apt.Cache().update() run which might be expensive on slow networks. but then - you don't need it very often in any case17:14
tedgYeah, but I think I always need that with custom sources.17:14
tedgSo I think I can default to system if not set, but if anything custom, I think just replace.17:15
tedgmvo: Also, I'm confused on why I need to do update() and then open(), will that work if memonly=True ?17:15
mvotedg: thats a long standing usability bug, update() really should open() internally again :/17:17
mvotedg: and memonly=true will work17:17
tedgmvo: Cool, good to know as I build this up :-)17:22
mvotedg: I step away from the laptop for a bit, but I will read scrollback if you have any more questions, the software-properties code might also be a useful real-world example  of p-apt17:22
tedgmvo: Cool, thanks! Enjoy your evening!17:22
mvothanks!17:23
elopioogra_: https://code.launchpad.net/~elopio/snappy/resize_test/+merge/27071817:50
=== ahayzen_ is now known as ahayzen
=== ahayzen_ is now known as ahayzen

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