/srv/irclogs.ubuntu.com/2010/12/10/#ubuntu-cloud.txt

buuoHey any one can help a cloud noob with some questions? :P00:55
flaccidno00:57
flaccidhow long is a piece of string?00:57
zoopsterthat wasn't nice flaccid01:57
zoopsterbuuo: ask your question01:57
flaccid:)01:58
=== Evet_ is now known as Evet
mathiazsmoser: hi!15:29
mathiazsmoser: where are the new releases of Ubuntu EC2 images usually announced?15:29
mathiazsmoser: ie which blog/mailing list should I follow?15:29
smoserubuntu-cloud and ubunt-server i think15:29
mathiazsmoser: great - thanks!15:30
smoserbut programattically, you should just check at http://uec-images.ubuntu.com/query15:30
mathiazsmoser: is ubuntu-ec2@lists.ubuntu.com still active?15:31
smoserno. folded into -cloud15:32
mathiazsmoser: hm - nope15:32
mathiazsmoser: can the lucid images from http://uec-images.ubuntu.com/releases/10.04/release/ be used with kvm/libvirt?15:36
smosernot terribly easily.15:36
smoserhttps://code.launchpad.net/~smoser/+junk/boothooks is what i used in that timeframe to do local testing.15:37
asacsmoser: so a script in user-data ... where does that log to?15:39
smoserasac, console15:40
smoserie /dev/console, in ec2/uec that should be seeable in euca-get-console-output15:40
asacsmoser: nice... thx. will try!!15:41
smoserasac, you can also very easily write it wherever you want15:41
smoserif its shell, just do15:41
smoser{15:41
smoser  my script here15:41
smoser} 2>&1 | tee some-other-file.txt15:42
asacgood idea ... now i would have to figure how to make wiki show my #!/bin/sh if i place it at beginning of line ;)15:42
asacsmoser: https://wiki.linaro.org/Platform/Android/Specs/LinaroAndroidBuildInfrastructure#Experimental%20Node%20Scripts ... is that about the right approach to do something like this?15:50
smoserasac, yeah, that should work.15:52
smoser2 things, though15:52
smosera.) "cloud-config" can do similar things (the update an package install)15:52
smoserb.) see https://help.ubuntu.com/community/CloudInit for multipart information on user data.15:52
smosermultipart becomes useful if you've got separate sections of code that want to add things to cloud-config or cloud-init . then you can keep them separated in input parts15:53
asacright15:54
asaclooks interesting15:54
asacfor now its prototyping ... more important for me is to remember the internal ip of the controller so i can copy the results and logs back ;)15:54
asaci thought about encoding that in user-data ... but guess15:55
asaci will read through that page and see how i can make things cleaner with cloud-init/config15:55
asacsmoser: user-data is constrained to 16k, right?15:56
smoseryes, but it can be compressed.15:56
asacok ... just wonder how to best ensure that i dont grow more than that ... but seems its better to put everything in bzr like i try now15:56
asacand just have the update, apt, etc. stuff and then run that15:57
smoser"runit" in http://bazaar.launchpad.net/%7Eawstrial-dev/awstrial/trunk/annotate/head%3A/awstrial/trial/ec2_helper.py is an example of appending parts15:57
asacsmoser: i know its lame, but is it safe to just copy a script like i have there in the user data field when launching instances on the webUI?15:58
asacor better use ec2- commands with --user-data-file?15:58
asac(well better is wrong question ...)15:58
smoseryes, it should work.15:58
asaccool ;)15:59
smoserregarding 'safe' no one makes promises on sensitive data you put in there though.15:59
smoserasac, please let me know if pasting into that box does not work when running from command line does (for plain text)15:59
smoseri dont ever launch from that ui15:59
asacsure ... safe == script is properly run ;)15:59
asacsmoser: i am still not sure how to copy stuff back ... :/15:59
smosercopy back ?16:00
smoseras in phone data home ?16:00
asacsmoser: is hte idea to create a keypair for one run ... copy back to controller and then invalidate keypair?16:00
asacsmoser: yeah16:00
asaclike i want the logs and the image produced come back to my controller16:00
asacfor persistence16:00
smoserright.16:00
asacbut i dont know what best to do ... and how to ensure that that is not completely insecure16:00
smoserso it really just depends on how secure you want to be.16:01
asaclike ... putting private id_rsa in user-data ;)16:01
asacwhat are the options?16:01
smoserwell, no one makes promises on secure. but realistically, nothing outside your instance is going to get at that.16:01
asacyeah ... but what are the options?16:02
smoserso, you could:16:02
smoser- create a set of iam credentials, share that with the instance, let hte instance write to s3, then invalidate the credentials16:02
smoser  (you can even make a set of credentials that only work from a single IP address)16:03
smoser- share a secret in user data or in an snapshot/ebs-volume or s3 to the instance, then have it use that to post back to the controller16:04
smoser(ie, in a header of http post)16:04
smoserprobably lots of other ways...16:05
asacyeah16:05
asaci think i like the idea to http post a notification back ... and then have the controller pull stuff over16:05
asacrather than a push from the instance16:05
asacbut i dont want to muss the notification because then i guess the shutdown would have to be done by controller as well16:06
asacand i hate having logic to shut down stuff after a certain amount of time if nothing happened ... though maybe i hav eto do that anyway16:06
asaci will think a bit more about it ;)16:06
asacso you say i can create a bucket for each instance and create a special key for just that bucket?16:06
asacin s3?16:06
asachmm. i think there was a constrained of number of buckets16:07
asacsmoser: last thing for today ... in user data web field ... base64 encoded ... should i check that?16:07
asacor does it mean that i pasted base64 encoded stuff?16:08
asac(guess the latter)16:08
asacok fired off without base6416:09
smoserthere is a limit to the number of buckets you can have (i think)16:09
smoserbut you may be able to limit to s3 bucket path16:09
smoseryeah, i would think it means you're pasting base64.16:10
asacok ... will check that out... also look into messaging stuff etc.16:10
smoseri didn't know you coudl do that.16:10
asaclet me see if my job runs ;)16:10
smoserasac, http://docs.amazonwebservices.com/IAM/latest/UserGuide/UsingWithS3.html16:11
smoserExample 5: Allow a partner to drop files into a specific portion of the corporate bucket16:11
smoserso you could have a bucketk "results"16:11
asacsmoser: one question wrt to money ... if i shutdown after 5 minutes do i pay for full hour?16:11
smoserasac, yeah.16:11
asacdamn ;)16:11
smoserthe ceiling function kinda sucks.16:12
asacmy script failed now i cannot shut it down16:12
asacguess i will try on micro next time ;)16:12
smoserthere are ways to play faking user data post-first boot16:12
asacso the user data script is not run in /root/ home directory it seems16:12
smoserin maverick its fairly easy16:12
asaccannot find where it did the checkout :/16:12
smoserhm... i dont actually  know what the path woudl be.16:13
asacetting up bzrtools (2.2.0-2) ...16:13
asacProcessing triggers for python-central ...16:13
asacYou have not informed bzr of your Launchpad ID, and you must do this to16:13
asacwrite to Launchpad or access private data.  See "bzr help launchpad-login".16:13
asacBranched 2 revision(s).16:13
smosernothing changes cwd so, whatever upstart would run something at16:13
asac/var/lib/cloud/data/scripts/part-000: 8: ./ec2-tools/node/setup-android-build-node: not found16:13
smoserhttps://groups.google.com/group/ec2ubuntu/browse_thread/thread/d4d51238a2afb55b/bca69f3e89c88d0b?lnk=gst&q=user+data#bca69f3e89c88d0b discusses how you can test user data after initial launch16:14
asacthx16:15
asacguess i will use a spot instance next time i try it ;)16:19
smoserasac, its only $0.1016:19
asaclet me check16:19
asacsmoser: 0,3416:20
asacsmoser: problem is i need 64-bit for android16:20
asacso either micro with slow EBS ... or large :/16:20
smosertrue.16:20
asacnot really a big problem either ;) ... will just expense it16:20
smoseri do use spots a lot for playing. the problem with them for development is that they're slower to start16:21
smoserie, total time till up and reachable will be probably 8 minutes rather than < 3.16:21
asacdamn16:21
asacmy auto java license accept didnt work :(((16:21
asacguess i have to set seen as well16:21
asacyeah16:22
asacsmoser: do spot instances get killed earliest after 1h? e.g. if i pay in 1h rates?16:22
smoseryou always pay in 1 hour in crements.16:23
smoseri was always under the impression that spot instances would be killed on 1 hour units. but i'm not sure.16:24
smoserie, it would seem somewhat unfair for you got get a spot instance, and then them kill you after 10 minutes and charge you for 5516:24
smoserer... for 6016:24
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
smosersoren, you around ?17:59
patrickwWhy don't UEC images have devpts in fstab?  Is it unnecessary because of the kernel?  I'm customizing a Centos image (that will use an Ubuntu kernel) and was wondering about this difference.19:48
asacsmoser: http://paste.ubuntu.com/542014/ ... m2.xlarge with latest instance store 64-bit maverick :/20:12
asacdoesnt boot :/20:12
smoserknown issue20:12
asacsmoser: oh ... so just for that instance type?20:13
smoserhold on. getting bug20:13
asaccan i select a different kernel?20:13
smoserbug 65137020:15
uvirtbotLaunchpad bug 651370 in linux "ec2 kernel crash invalid opcode 0000 [#1]" [Medium,Fix committed] https://launchpad.net/bugs/65137020:15
smoseryou can't specify a different kernel20:15
smoserasac, hopefully updates next week maybe, with that through -proposed20:16
asachmm20:16
asaci can select kernels when creating an instance ... whats that?20:17
smoserits what you think.20:17
smosersort of20:17
smoser:)20:17
asacwhy cant proposed kernels be made available there?20:17
smoseryou can select a kernel, and prior to maverick, we would have published that kernel to ec2 that you could select20:17
asacah20:17
smoserbut with maverick the kernel is "pv-grub"20:17
asacmaybe "proposed" AMIs ?20:17
smoserand pv-grub loads the kernel from inside the image20:17
asacoh20:18
asacok20:18
smoserproposed amis woudl be somewhat useful for this sort of thing20:18
asacyeah20:18
asacdefinitly ;)20:18
asaci would use it!!20:18
smoserand right now, lucid is building with --proposed20:18
smoserbecause i wanted to test some things, but in general, the idea is that the dailies get turned into the rleeases20:18
smoserbit for bit20:18
smosermaybe i could start doing a weekly -proposed, which would never get promoted20:19
smoserbut i tihnk in general we have too much selection up there (with the daily builds) and that confuses people.20:19
asachmm20:19
asacselection where? you mean on uec-images? ... maybe20:19
smoser(ie, you wouldn't get or expect an ISO to have -proposed enabled or have been built from there)20:20
smoseras in selection, i really mean in number of "ubuntu" images on ec220:20
asacso this bug ... is that juts for my instance type? or just more frequent for large memory instances?20:21
asacthe reporter talksa bout t1.micro20:22
asacbut my previous instances worked well20:22
asaclike m1.large etc.20:22
asacjust m2.xlarge is causing pain now20:23
smoserits really only the larger memory instances.20:24
asacdamn ;)20:24
asacthose i want to test now :-P20:24
smosert1.micro is what the opener (me) opened it with20:24
asacah20:24
smoseri just launch a t1.micro and run 'ubuntu-bug'20:24
smoserespecially if you can't seem to get a instance type that you want to open to start :)20:25
asacalrighty20:25
smoserthe issue is really with getting a certain processor20:25
asacso is lucid perfect?20:25
asac;)20:25
smoserlucid has some issues too.20:25
asacbooting big memroy?20:26
smoserlucid's big issue is https://bugs.launchpad.net/ubuntu/+source/linux-ec2/+bug/61485320:28
uvirtbotLaunchpad bug 614853 in linux-ec2 "kernel panic divide error: 0000 [#1] SMP" [Medium,Confirmed]20:28
smoserthere is a patch, but you can look at it (http://launchpadlibrarian.net/58956370/lp614853.patch) its not that pretty20:28
sorensmoser: Yes.21:47
smosersoren, i'll probaly try to ping you monday21:49
sorensmoser: I'm intrigued :)21:49
smosersoren, well, it was regarding the ec2 metadata swrevi ce21:51
smoserandthe fun that that that delivers21:51
smoserbasically, i'm trying to make "full disk images" of the uec images, that ccan then just be booted under kvm.21:52
smoserin maverick i did this, but i did so via a floppy and bootinga partition image.  the floppy loaded the kernel from inside the image but passes some custom kernel parameters that disable the waiting for the ec2 metadata service21:52
sorensmoser: How does that relate to metadata? The block mapping?21:52
smoserbut if i just have one disk image, i'd like for its contents to boot correctly and not wait some stupid long time for the metadata service to come about.21:53
smoseri was wondering if you had any good ideas for how i could decide when to wait for it. but i can't use kernel parameters, because on uec, the grub.cfg is used for passing kernel params (so i can't just have that disable ec2 wiating)21:55
sorenI remember having this discussion a couple of times. :)22:02
sorenWith you, even :)22:02
sorenI think our conclusion was that there's no really good way to tell the difference.22:03
sorensmoser: Ok, let's attack this from a slightly different angle.22:03
smosersoren, no, ther isn't.22:04
sorensmoser: What if we try to minimise the impact of this wait time? Why do we wait for it to turn up?22:04
smoserand i said i should have waited till monday as i have to run righ tnow.22:04
sorenInstead of just letting it wait in the background.22:04
sorensmoser: Ah.22:04
soren:)22:04
smoserwe wait for it to turn up because its possibly important22:04
sorenAlright, Monday it is.22:04
sorensmoser: Use cases?22:04
smoserreally its only most important on first boot22:05
smoserbut the idea is that the user can do things on first boot to an instance that will get done22:05
smosersuch as setting mount points or importing ssh keys...22:05
smosersome of the stuff might be difficult to do "later"22:06
smoseranyway, i do have to run.22:06
sorenSure.22:07
sorenI'd be happy to talk on Monday.22:07
sorenHave fun.22:07
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates

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