/srv/irclogs.ubuntu.com/2015/06/26/#snappy.txt

dholbachgood morning07:00
fgimenezgood morning07:11
=== erkules_ is now known as erkules
davidcalleMorning all o/07:44
Chipacamo'in08:41
ogra_moin moin08:42
mvohey Chipaca08:47
Chipacamvo: hi there08:47
Chipacamvo: how's the sprint? what have you broken *now*?08:47
Chipaca:)08:48
mvoChipaca: sprint is interessting, we can talk next week :)08:49
Chipacamvo: ok08:49
Chipacamvo: wink your left eye if you are held against your will and can't talk about it08:50
mvolol08:50
* mvo winks08:51
ogra_lol08:51
* Chipaca hopes that was the right eye08:51
ogra_wasnt the left eye the right eye ?08:53
Chipacaogra_: only if was held against his will09:07
=== vrruiz_ is now known as rvr
JamesTaitGood morning all; happy Friday, and happy Chocolate Pudding Day! 😃09:24
ogra_yummy !!09:25
ogra_though i prefer icecream at this weather09:25
pittiogra_: mmmm, ice cream!10:06
ogra_:D10:09
ogra_(sadly i cant ... recovering from a jaw infection kind of goes against it :/ )10:10
* Chipaca -> lunch11:12
mvosergiusens: fwiw, I triggered a build with the new livecd rootfs so that we can test the deb/apt less system11:23
ogra_well, semi-deb-less :)11:24
ogra_dpkg itself is still there11:24
ljoseI have just installed snappy in beaggle board, following steps in https://developer.ubuntu.com/en/snappy/start/#try-beaglebone11:25
ljosessh ubuntu@webdm.local11:25
ljosessh: Could not resolve hostname webdm.local: Name or service not known11:25
ogra_sergiusens, the shadow patch looks good to me, but i would like to have slangasek take a look before we land that (i think he looked into it before)11:25
ogra_ljose, whats the system you run the ssh command on11:25
ljoseUbuntu 15.0411:25
ogra_(ubuntu ? )11:26
mvoogra_: :)11:26
ogra_hmm, that should have the avahi daemon11:26
ljosekubuntu actually11:26
Chipacaljose: and you got the 15.04 xz?11:26
ogra_webdm.local is resolved using an avahi mDNS request11:27
ogra_if both devices are on the same network and your desktop has the avahi bits installed it should just work ...11:27
Chipacaah, kubuntu might not have that, good point11:27
ogra_i'm not sure kubuntu installs the avahi parts ... though i wouldnt know why if they dont :)11:27
Chipacakubuntu-desktop pulls it in11:28
Chipacaas a task11:28
ogra_yeah, would be weird if it didnt11:28
Chipacaljose: could you check you have avahi-daemon installed?11:29
Chipacawait, not the daemon11:29
Chipacahm11:29
ogra_ljose, the first setip runs cloud-init to set up the user and ssh keys etc ... that can take a few minutes ... did you wait a while before trying it ?11:29
Chipacalibnss-mdns11:29
Chipacaljose: ^11:29
ogra_Chipaca, avahi-daemon is also a client :)11:29
ljoseChipaca: more than 10 minutes11:29
ogra_yeah, after 10min it should be done11:29
ljose /dev/sdd is the device and seems to have any partitions now after "dd"11:30
Chipacaljose: silly question, is the bbb's ethernet plugged in to the network?11:31
ljosejust USB11:31
Chipacaljose: that won't work then11:31
ljosedoesn't work like the original image over USB?11:31
Chipacaljose: we don't bring up the usb device11:31
Chipacaljose: no11:31
Chipacaljose: we should, probably/maybe, but right now don't11:31
ogra_right, by default only the onboard ethernet is brought up on boot11:32
Chipacathe usb one would be so much more convenient11:32
ljoselet's plug the network and see11:32
Chipacayou usually plug the usb in to power the thing anyway11:32
ogra_you might need to reboot11:33
Chipacaat least while testing :)11:33
ogra_i'm not sure webdm will start dynamically if you now plug it in11:33
ogra_(geez, whats up in france !! /me just watches the news on the side)11:33
davmor2ogra_: France is a big place could you be a little more specific?11:40
Chipacadavmor2: beheading close to lyon11:41
Chipacahttp://www.bbc.co.uk/news/live/world-europe-3328709511:41
ljoseSame problem after connect network cable, and avahi-daemon is running, any ideas?11:55
ogra_did you reboot the BBB ?11:55
ljoseyep11:55
ogra_hmm11:55
ogra_can you reach it by IP ?11:56
ogra_ssh ubuntu@<IP> should work too11:56
ljoseI reboot the BBB but there isn't any blinking leds , that seems odd11:57
ljosejust the power, and network leds11:57
ogra_yeah, at least during boot something should blink11:57
ogra_do you have a serial cable to check the boot ?11:57
ljoseusb?11:58
ogra_FTDI11:58
ogra_something like http://www.amazon.com/Ftdi-TTL-232r-3v3-Serial-Converter-Cable/dp/B00M41OUYA/ref=sr_1_1?ie=UTF8&qid=1432041571&sr=8-1&keywords=FTDI+to+TTL+3.311:58
ogra_(pretty essential when working with embedded boards)11:59
ljoseI don't have this right now11:59
ogra_ah, sad, would have been helpful to see whats goiing on11:59
ljoseshould I see the flash partitions when connect the USB cable?12:00
ljoseI see /dev/sdd but no partitions there12:00
Chipacaljose: yes, you should see four partitions12:01
ogra_no, you shouldnt12:01
Chipacano?12:01
Chipacadah12:01
ogra_we dont even enable the USB gadget12:01
Chipacathe usb cable12:01
Chipacano12:01
Chipacasorry12:01
Chipacathe sd card, yes12:01
ogra_i dont get how you see /dev/sdd though12:01
ogra_since that driver isnt on in our images it shouldnt create such a device ...12:02
ogra_are you sure it is booting from SD at all ?12:02
ogra_(try rebooting with the user button (S2) pressed)12:03
ljoseI just install the image in /dev/sdd , that was the BBB device12:04
ljoseattached to USB on my computer12:04
ogra_uh12:05
ogra_thats will liekyl not work12:05
ljoseok so I just mess the BBB image?12:05
ogra_well, you should be able to restore the internal MMC from some debian-BBB image from beagleboard.org12:06
ogra_i'm pretty sure you cant bot from a dd'ed snappy image from the internal MMC yet though ... needs an SD12:07
ljoseI don't follow, I need an extra SD to use Snappy with my BBB?12:08
ogra_yes, currently we have no way for on-board installs12:09
ljoseWhat kind of SD? can I use a USB disk?12:10
ogra_a micro SD12:10
ogra_you could use USB but still ned the bootloader on SD i think12:10
ogra_the initrd mounts the partitions by label ... so if you put the image on USB and have only the /boot partition on SD that would also work i guess12:11
ogra_but you need the SD for booting12:11
ogra_(there are surely ways to hack the /boot partition and bootloader into the MMC, but we have no automatic or userfriendly way yet)12:12
* ogra_ will at some point take a look at rcn-ee's installed script for the BBB so we can provide an install image 12:13
ljoseso dos BBB include SD card reader?12:14
ogra_yes12:14
ogra_well, microSD12:14
ljoseso I need a microSD and a reader for my PC to load the image?12:14
ogra_to write it, yes12:15
ogra_and if you work with embedded boards investing the $10 for a proper serial cable makes sense and saves a lot of headdache :)12:16
ljoseogra_: Yes I will get one, just my first BBB project12:17
ogra_:)12:18
mvomeh, image build is broken12:42
ogra_oh <?12:43
ogra_oh, ! damn ... i saw the mail ... thoght ... ah, arm64 again ... and ignored it12:43
ogra_we really really need to do something about these arch names !12:43
ogra_+dnsmasq:*:16612:0:99999:7:::12:44
ogra_where does that come from ?12:44
ogra_did we change seeds ?12:44
ogra_(doesnt look like we would want that in the core image)12:44
* ogra_ wonders if some of seb128's changes leaked into core via seed deps or some such 12:45
sergiusensogra_: might be the addition of ubuntu-fan12:45
ogra_ah !12:45
seb128ogra_, I doubt that has to do with my changes12:45
ogra_still. do we really want a DHCP server preinstalled ?12:45
sergiusensogra_: if we want ubuntu-fan I don't see a way out of it12:46
seb128sergiusens, ogra_, btw, tried to build a personal image today for some reason I can't log in with ubuntu/ubuntu12:46
ogra_seb128, yeah, not blaming you, rather a mis-setup of our seed deps that is exposed now ... but what sergiusens says is more likely12:46
ogra_seb128, well, i doubt you have cloud-init installed ?12:46
seb128ogra_, we do12:47
ogra_(which sets up the account on first boot)12:47
seb128which is creating a boot timeout12:47
seb128cf #ubuntu-desktop log from earlier12:47
ogra_oh, and do you see it setting up the account ?12:47
seb128I guess not12:47
ogra_it is quite wordy on console when doing it12:47
seb128it errors loop on url_helper warnings about trying to call http://109-04-04/...instance-id12:48
seb128then timeout after 90s12:48
ogra_sergiusens, well, do we want ubuntu-fan actually *inside* core in the long term ?12:48
seb128so I guess that fails12:48
ogra_i thought that was only a temporary thing12:48
sergiusensogra_: it's like this, we either need a framework for frameworks or it needs to be in core :-/12:49
ogra_then we need a framework12:49
ogra_core should really only offer an embedded os ... not fancy stuff imho12:50
sergiusensogra_: a framework that frameworks can depend on12:50
sergiusensogra_: and that breaks the rule for frameworks12:50
ogra_yeah, whatever works :)12:50
sergiusensogra_: in any case, you can revert the seed change and we can think of this12:51
* ogra_ leaves the details to the architects ;) 12:51
sergiusensheh, another problem for lool to solve12:51
sergiusens:-)12:51
ogra_:)12:51
seb128I guess cloud-init is not hitting the same timeout errors on core atm?12:52
seb128I wonder if that's a local issue12:52
ogra_no. it works fine12:52
seb128does it need to access the internet to boot?12:53
ogra_it might expect an eth0 device12:53
seb128not sure what http://109-04-04 is12:53
* ogra_ neither 12:53
seb128but it was working on the image from a week ago12:53
seb128weird12:53
ogra_i never looked at cloud-init ... i only always see the ton of messages on first boot ...12:53
ogra_sergiusens, well, i dont think we should change seeds back right now,  someone might expect fan asap ...12:54
ogra_but we should start a discussion, imho adding stuff like dnsmasq is wrong12:55
ogra_(what if i ship a snap using isc-dhcpd for netbooting my thin clients from my thin client server snap ... they will clash and break)12:55
sergiusensogra_: right, I would unseed for now, no one was expecting this today12:56
ogra_oh, ok12:57
ogra_to not be broken over the weekend12:57
sergiusensseb128: the only reason I think your login could be broken is if for some reason the ssh host keys failed to be created and it cloud-init bailed on you13:03
sergiusensseb128: oh, and why do you have cloud-init?13:03
ogra_because he has no user at all otherwise13:03
seb128sergiusens, dunno, because core has it and we started from there?13:03
ogra_seb128, i guess you want to port the touch user creation bits for now ... and drop cloud-init13:04
sergiusensseb128: I would remove it, but we can accomodate for it, I'm not sure the 'personal' target has the nocloud seed creation going on13:04
seb128ogra_, sergiusens, unsure what needs changing? seeds? livecd-rootfs?13:06
ogra_seb128, seeds to drop cloud-init ... livecd-rootfs to move over the user creation from touch13:06
seb128ogra_, k, let me find the user creation bits13:07
seb128why is core using cloud-init rather than doing it the touch way?13:07
ogra_seb128, 01-setup_user.chroot13:07
seb128ogra_, danke13:07
ogra_cloud-init brngs the ssh config13:07
ogra_*brings13:07
ogra_touch has ssh off by default13:07
sergiusensmvo: http://paste.ubuntu.com/11778540/13:08
sergiusensmvo: I can push that to the ppa if you want (took me 10s to make the code change and 30 minutes to rebuild a test package :-P)13:09
ogra_sergiusens, mvo http://paste.ubuntu.com/11778546/ ... that would fix the build error13:10
ogra_but not sure if we want that ... or instead revert the seeds and have a proper discussion first13:11
ogra_sergiusens, not sure you saw my ping above ... technically it looks correct to me, but i would feel better if someone like slangasek could take a look and sign it off ... he has looked at adduser before13:12
ogra_(and might know things we dont)13:12
sergiusensogra_: I saw it, but slangasek will only be avail in 3 hours :-)13:12
ogra_(there are twi whitespace changes you might want to fix btw)13:13
sergiusensogra_: and I was just fixing something mvo pointed out :-)13:13
ogra_*two13:13
ogra_line 135/136 and 144/14513:13
ogra_but thats just nitpicking :)13:14
sergiusenssure13:14
sergiusensbut this quilting business is so tiresome :-P13:14
ogra_heh13:14
sergiusensogra_: there, vorlon has been _mentioned_ in the card13:17
ogra_:)13:17
sergiusensogra_: just for you http://paste.ubuntu.com/11778568/13:19
ogra_haha, thanks :)13:19
ogra_so much shorter all of a sudden :P13:19
sergiusensogra_: paste needs to learn how to color patches with a patch ;-)13:20
ogra_i'm surprised /var/lib/extrausers/shadow is already in defines.h13:21
sergiusensogra_: that's added in debian/patches/1010_extrausers.patch13:22
sergiusensogra_: here you go http://paste.ubuntu.com/11778582/13:23
ogra_aha, mterry13:23
ogra_ah, thats for the phone13:24
ogra_(i think i even signed it off back then :P )13:24
dholbachfgimenez, elopio, balloons: https://wiki.ubuntu.com/Snappy13:27
dholbach(and subsequent pages)13:27
dholbachfeel free to change/add as you see fit13:27
ogra_oldschool \o/13:27
ogra_now we just need a gdoc -> wiki importer :)13:28
dholbachhaha13:29
* mvo is in a meeting13:29
ogra_poor guy13:29
balloonsdholbach, woot13:30
sergiusensogra_: I can make the extrausers thing without the toggle thing as well if you want13:34
ogra_no, the toogle is good i think13:34
loolsergiusens: I'm not a fan of that idea13:35
loolthe ubuntu-fan framework of frameworks13:35
sergiusenslool: no one is13:35
sergiusenslool: so in core it is for now13:35
ogra_lool, i'm not a fan of shipping a dhcp server :)13:36
ogra_(in core that is)13:36
loolI'm not a fan of fan in the first place13:36
ogra_we might want to consider cloud vs core seeds for snappy13:37
ogra_i assume fan has its fans in the cloud :)13:37
loola fan to move the cloud13:37
loolfantastic idae13:37
sergiusenslol13:37
ogra_:D13:38
mvosergiusens: "++(void) fputs (_("  -E, --extrausers              Use the extra users database\n"), usageout);" the -E is still there in the help output13:51
ogra_sergiusens, oh, line 76 could use indentation fixing13:53
ogra_hmm, 83 to 85 too13:53
ogra_yay for tabs vs spaces13:54
elopiogood morning.14:16
elopiothanks dholbach!14:16
elopiodo you want to hangout today fgimenez ?14:17
fgimenezelopio, as you like, don't have too much to say, all the merges are already done14:18
elopiofgimenez: thanks for that.14:19
elopioI'll merge yours too.14:19
fgimenezelopio, ok thanks14:19
elopiofgimenez: lets skip today. I talk too much, you need some free time from me :)14:19
fgimenezelopio, ok np :)14:20
sergiusensogra_: hmm, mvo left, the latest diff didn't have that -E14:20
sergiusensogra_: and the whole file is mixed14:20
sergiusensogra_: hmm,14:29
ogra_hmm14:29
sergiusensI'll fix all of those14:29
sergiusensogra_: mvo http://paste.ubuntu.com/11778888/ (the -E was already fixed in diff you missed)14:37
* sergiusens raises fist at nothing (the lack of vcs)14:37
mvosergiusens: ta!14:38
ogra_sergiusens, heh, but the whitespace change on the two comment lines is back ...14:38
sergiusensmvo: and I was thinking if maybe this should be an implicit thing now (more invasive diff though)14:38
ogra_just leave it though before it gets messed up again14:38
sergiusensogra_: oh, I need to manually remove those :-P14:38
sergiusensogra_: there you go http://paste.ubuntu.com/11778897/14:40
ogra_heh, thanks :)14:40
sergiusensmvo: what do you think of implicit vs explicit?14:40
mvosergiusens: hm? sorry, lacking context (plus meetings)14:41
ogra_sergiusens, as long as it is *plicit :P14:42
sergiusensmvo: instead of -E, if /etc/passwd and friends fail to lock to try and use the extrausers ones14:42
* ogra_ wouldnt do any automation here ... in case we want to upstream it 14:43
ogra_it is more likely to be included if it is swiatchable14:43
ogra_-a14:43
mvosergiusens: explicit sounds better to me14:43
mvosergiusens: do we need adduser at all (asking, no idea if yes or no) :)14:44
ogra_well, we need some tool to add users ...14:44
ogra_if we dont use the default (adduser) as documented everywhere for ubuntu, we need to have specific docs explaining how to add users then14:44
ogra_personal might want it though14:45
ogra_for multiuser desktops14:45
sergiusensmvo: ok, let's keep it explicit, and we need it for cloud init as well14:54
sergiusensok then, we are good to go then14:54
mvosergiusens: ok15:02
mvosergiusens: ta15:02
ogra_pitti, so this seed change ... is that a hard req now ?15:09
* ogra_ feels rather uneasy about it15:10
ogra_sergiusens, seed revert done ... (i'll wait one publisher run before kicking the image, not sure when the task generation happens)15:22
Chipacasergiusens: mvo: elopio: fgallina: http://npf.io/2015/06/testing-exec-command/15:35
elopiocool, thanks Chipaca.15:36
elopioI'm puzzled about this: http://paste.ubuntu.com/11779125/15:36
elopiothe build works with the default arch, but fails using GOARCH=arm.15:37
sergiusenselopio: you need more than just goarch, look at webdm's build script15:38
* elopio looks.15:38
Chipacaelopio: or alternatively read doc/cross-build.md15:48
Chipacasergiusens: ^15:48
elopioChipaca: hah, that's the second time you tell me that. Sorry.15:50
* elopio bookmarks the cross-build.15:50
Chipaca:)15:50
elopioI was missing one of the packages.15:51
fgimeneznice weekend everyone o/16:09
=== seb128_ is now known as seb128
slangasekogra_, sergiusens: I didn't look at adduser, I only pointed in its direction.  what input did you need from me on it?16:52
ogra_slangasek, just a glance over http://paste.ubuntu.com/11778897/ if you see anything insane16:54
ogra_technically it looks ok to me ... i'm just not sure about "conceptual" :)16:54
Chipacasergiusens: this grub.cfg should work with both old and new and do the right thing and etc: http://pastebin.ubuntu.com/11779470/16:57
Chipacasergiusens: however, i haven't been able to test the upgrade16:58
Chipacasergiusens: is there a way of testing this without publishing an image with this grub?16:58
Chipacasergiusens: super simple the grub.cfg in the end, and i had all the bits already16:59
Chipacasergiusens: more DRY: http://pastebin.ubuntu.com/11779488/17:00
Chipacasergiusens: and now i'm off to make pizza. will check back later wrt the above.17:01
slangasekogra_: ah, so changing shadow instead of adduser.  hmm.  I think it's a better logical fit in adduser, but clearly doing it in shadow would work17:09
ogra_well, i think sergiusens plans to do both17:09
ogra_but have shadow do all the work17:10
ogra_so adduser needs just the switch enabled17:10
sergiusensChipaca: nice18:09
sergiusensChipaca: ogra_ what if we allow expansion of cmdline with a grubenv?18:13
sergiusensslangasek: my worry is that some component in some place will need to do an 'if RO' or 'if snappy' and apply the right switches; is that useradd or cloud-init?18:23
slangaseksergiusens: I'd suggest that it should be part of the adduser config18:24
slangasekthere's not currently an option for this in /etc/adduser.conf, but it could be done18:25
sergiusensslangasek: ok, I was thinking of that and don't mind adding it there; thanks18:31
slangaseksergiusens: ok, great :)18:32
balloonselopio, trying to update to latest snappy edge is giving me an error; if I use snappy update, rather than snappy update ubuntu-core: http://paste.ubuntu.com/11780433/20:39
balloonsas an aside, will snappy support diff based updating? Or will I always have to grab the entire image?20:40
sergiusensslangasek: can you look at https://code.launchpad.net/~sergiusens/ubuntu/wily/adduser/extrausers/+merge/263169 later?20:56
slangaseksergiusens: ok, queued for looking21:12
elopioballoons: please report a bug for that, I'll try to reproduce it.22:36
elopioballoons: I think you are downloading only the delta.22:37
=== tt_ is now known as Guest36352
Guest36352trying out snappy on the raspberry pi 2, i installed docker and booted a container with "docker run -it -p 4444:4443 nblumoe/rpi-clojure". I installed netcat and ran "echo yo | nc -l 4444". Should I not be able to "nc 127.0.0.1 4443" and get "yo" from the pi?22:43
Guest36352i can see the port bound with docker ps "a1cee09fade8        nblumoe/rpi-clojure:latest   "bash"              14 minutes ago      Up 14 minutes       0.0.0.0:4444->4443/tcp   fervent_babbage"22:43
Guest36352but no cigar22:46
damjanGuest36352: format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort23:42
damjanGuest36352: so 4444 is the hostPort 4443 is the containerPort23:43
damjanso you need to listen to 4443 in the docker container23:43
damjanand connect to 4444 from the host23:43

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