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

=== niemeyer__ is now known as niemeyer
erichammondhttp://cloud.ubuntu.com/ami/ is broken on my browser (chromium): "DataTables warning: JSON data from server failed to load or be parsed. This is most likely to be caused by a JSON formatting error."09:42
kim0erichammond: It's not browser specific .. something seems to have went wrong .. thanks for the heads up09:56
kim0Can anyone help me answer that:   Will Eucalyptus be 2.0.1 (upstream released Oct 20) be in Natty ?15:26
smoserDaviey, ?15:34
Davieykim0: can't say for certain, but 'probably'... depending if there are any difficult regressions when one of us has a smoke test.15:38
Davieykim0: certainly will not have 2.115:38
kim0Daviey: thanks :)15:48
kim0Daviey: Any luck thinking of some community contribution venues15:54
kim0smoser: your input is much appreciated as well :)15:55
Davieykim0: smoser has an AMAZING idea.16:06
smoserhttps://blueprints.launchpad.net/ubuntu/+spec/cloud-server-n-image-rebundle16:07
smoser:)16:07
smosermostly seriously on that.  rebundling is a very important area of our images that isn't addressed in documentation or tools terribly well.16:07
TeTeTsmoser: we have an exercise on it in the UEC training16:09
* kim0 in a call16:10
kim0but I would like to understand exactly what would contributors do ?16:10
kim0is it documentation16:10
smosersome is documentation, yes. but some is development of utilities for "cleaning" or making that process easier.16:11
kazadehi smoser, I've just been asking some questions in #ubuntu-uk about Amazon EC2 and Daviey mentioned you might be able to help me (they aren't Ubuntu related, just general EC2 questions). you free?16:19
smosersure.16:20
kazadebasically, I have this running EC2 instance and I'd like to create a duplicate16:20
kazadethe EC2 instance has a single EBS root device..16:20
smoserkim0, this is the type of thing that i'd like better covered16:21
smoser(it almost smells like a setup)16:21
smoserkazade, what release ? 10.10 ? 10.04 ?16:21
kazade10.0416:21
kazadebasically, if I click "Create Image" will it freeze/pause the running instance? and will that create me an image I can create a new EC2 vm with?16:21
* kazade is confused generally16:22
kim0smoser: I'll ping ya in a 20 mins or so .. thanks a lot though! :)16:22
kazadealso, if I create a snapshot of the EBS device... would restoring that snapshot essentiall "rollback" the EC2 vm?16:23
smoserif you hit 'Create Image', that makes the 'CreateImage' (i think thats the api name) call , which can also be done via 'ec2-create-image'.16:24
smoserit will stop the instance (by issuing 'shutdown'), and then snapshot the volume and create a new ami from that snapshot, then start the instance back up.16:24
smoserthis is probably what i would recommend you do. it is very easy and very effective.16:25
kazadeok cool that sounds like exactly what I needed to know. How long would the image creation take normally?16:25
smosercouple minutes16:29
smoseri might advise that you shut down your instance (/sbin/poweroff) yourself16:29
smoserit just seems cleaner to me, but i believe it does work the other way.16:29
kazadesmoser, thanks  just one final question: is taking a snapshot of the EBS device exactly equivalent of taking a snapshot in virtualbox (for example)16:30
smoseri dont know what it means in virtualbox, but its pretty much a volume snapshot16:30
smoserie, it saves all data at the block device level16:30
kazadewhat I mean is, if I reverted the snapshot and booted the EC2 vm, would it essentially rollback? (I mean, the EC2 wouldn't break or anything)16:31
smoserdid i answer your question ?16:31
smoserthe running instance is not affected by any snapshots of its root device16:31
kazaderight..16:32
smoseryou can even do them to a mounted filesystem16:32
kazadeif I restored a snapshot of the device though, what would that do to the running machine? (or is that not possible?)16:32
smoseryou cannot reset an existing volume's content to a snapshot you can only create new volumes from the snapshot.16:32
kazadesmoser, right ok, that makes sense16:32
kazadeCan an EC2 machine change it's root device?16:33
smoserkazade, sort of.17:00
smoserwhat do you want to do ?17:00
kazadeI just wondered if I could snapshot the EBS device, and then if I screwed up the VM, restore the EBS device17:01
kazade(e.g. by pointing the EC2 machine at a newly restored snapshot)17:01
smoserDaviey, if you see kazade, you can tell him that you can easily attach a volume of a snapshot to runnign instance, mount that volume, diff it against / anda sync contents that way.17:37
kim0Hi everyone, anyone new around here ? say Hi please18:02
dakerpoor kim018:07
kim0daker: It takes some effort man :)18:08
kim0However I am presistent hehe18:09
dakeryes18:09
kim0Daviey: must the CLC be configured to NAT packets manually ? i.e. is that not part of setup ?18:17
kim0Daviey: I'm trying to answer http://ubuntuforums.org/showthread.php?t=1646048 .. where basically NC doesn't have internet connectivity18:17
kim0kirkland: ^18:28
kim0smoser: Hi! so you're basically proposing people attack https://blueprints.launchpad.net/ubuntu/+spec/cloud-server-n-image-rebundle18:34
smosersure.18:34
kim0smoser: did you ever blog or write something explaining what needs to be done18:34
kim0manually18:34
smoserwell if you have a way they can do it automatically (as opposed to manually) i'm happy to hear it!18:35
kim0what I'm saying this .. did you ever explain the manual steps, so that I have a better understanding of what needs to be done18:36
kim0s/this/is/18:36
* kim0 reading https://wiki.ubuntu.com/CloudServerNattyCloudUtils18:42
DigitalFluxkim0: Interesting18:44
DigitalFluxsmoser was talking about it i think today at #openstack18:44
kim0yeah interesting indeed :)18:45
smoserkim0, no. not really. theres a bunch of things covered there.18:45
kim0smoser: by first impression .. that's a whole lot of things :) can u pick an important one or two scenarioes to tackle18:45
kim0I guess downloading ec2 images .. boot in kvm .. modify .. republish18:46
smoseri've probably covered many of them before on posts to ec2ubuntu and such18:46
kim0smoser: what about if this "cleaning" utility records files at ~ while booting .. and at cleaning stage presents the user with all newly created files to delete or keep18:47
kim0we could have defaults based on regex matches .. like for /var/log/* -> delete18:48
kim0for /etc/ -> keep18:48
kim0it may monitor the whole system .. not just ~18:48
kim0don't know .. comments18:48
smoseryeah, its really crappy and heuristic18:48
smoserso it needs config options18:48
smoserand its going to be wrong in many cases in both ways18:49
kim0smoser: what's the main purpose of uncloud-init18:51
kim0can't find any proper page talking about that18:51
smoserto hackily boot one of our images without a ec2 metadata service18:51
kim0without cloud-init blocking for ages18:52
kim0that once bit me :)18:52
smoserthat problem sucks in general18:53
smoserthere is no way to tell if i'm on EC2, and thus should wait for the metadata service18:53
smoserbut on EC2 (or on UEC), i *have* to wait for the metadata service, indefinitely.18:53
kim0yeah!18:54
raymdthey19:17
kim0raymdt: hey19:32
=== dendro-afk is now known as dendrobates
sorensmoser: This is my last working day of the year. If you want to chat about stuff, this is a good time :)19:43
smoserhm..19:45
smosergive me a couple minutes ?19:45
sorensmoser: Sure, I'm not going anywhere.19:49
sorenyet :)19:49
smosersoren, ok19:59
smoserso19:59
smoserour cloud images, i *want* them to be bit for bit identical on different clouds.20:01
smoseror as close to it as possible20:01
smoseri want the download on uec-images.ubuntu.com to not need a bunch of "fixing" for before its useable on EC2, UEC, openstack, and ideally "raw kvm/libvirt"20:01
smoserbut we have this metadata service thing, that i want/have-to wait around for in some cases (uec / ec2) and not in others ('raw kvm/libvirt')20:04
smoserright now in the .tar.gz files, there is a -floppy file, which is a bootable floppy, and documentation, then that says how to boot it (boot with floppy bootable).20:05
sorensmoser: Right.20:05
smoserthe floppy then boots the kernel in the instance with special args telling it "hey, theres no cloud here"20:05
sorensmoser: What is the canonical use case that makes us have to wait for the meta-data service (rather than just handling it in the background once it turns up).20:06
soren?20:06
smoserbut even that is yucky. ideally, it would boot up, find that there was no metadata service or any other method of letting a user log in, and "uncloud" itself.20:06
smoserwell, righ tnow it actually blocks boot.20:07
smoserwhich allows the user to do things (via user data) when it runs20:07
smosersome of these things might include modifying the system in ways that are difficult to do once it is further up20:08
smoserie, at that point you can still mount another volume over the top of /home or modify config of a server before it has started.20:08
smoserso those things are valuable, and backgrounding would make them impossible (or require restart/reboot)20:09
sorenright, ok.20:09
sorenDo we have any data on how long it takes before the meta-data service turns up?20:10
smoserwe have annoyances20:11
sorenmin/max/mean time sort of stuff?20:11
smoseri would have marked this as not an issue sometime about 6 months ago on EC2.20:11
smoseri have never really seen a "waiting for metadata service" message there.20:11
smoserand i had even turned it down to something small, 20 seconds or something, maybe less.20:11
smoserbut UEC started failing, and we were told "you have to wait longer"20:12
smoserso, wait longer we did.20:12
soren:(20:12
smoserin the vast majority of the cases, waiting more than 30 seconds was not that useful, i thikn, but dont have a lot of data on it. although we did at the time.20:12
sorensmoser: So the difficult case is UEC.20:15
sorensmoser: Luckily, that's the one we control.20:15
smosermostly, yes, but then it came about because of EC220:15
smoserso UEC is feature compatible :)20:15
sorenSure, sure.20:16
sorenHow about we change UEC to pass a "Hi, I'm UEC. Please bear with me while I get off my a*** and get the meta-data service up and running for you" sort of kernel parameter?20:16
smosersoren, well, i can somewhat control the kernel parameters that are passed20:17
smoserhowever, the control i have over that is via /boot/grub/grub.cfg20:18
sorenEh?20:18
smoserwhich would ideally be read by kvm or openstack "full disk" or ...20:18
sorenUEC never boots an out-of-image kernel anymore?20:18
smoserremember my 'loader' hack/feature in eucalyptus20:18
=== dendrobates is now known as dendro-afk
sorenI didn't think that was used all the time.20:19
smoserit does, and in that case, sure, you could hard code a "you're running on UEC" parameter.20:19
sorenThat's a start, at least.20:19
smoserits not used all the time, but that is the "right way" going forward (or some other mechanism that is more 'normal' to allow guest to control its own kernel loading)20:19
smoserso that solution is really only for "legacy"20:19
=== dendro-afk is now known as dendrobates
sorenCan't we ask the BIOS how it booted?20:20
sorenIf it's from floppy, there's a 99.999% chance it's UEC.20:20
smoserwell, the way i have to run kvm without cloud for those right now is via a floppy also20:21
sorenDoh.20:21
smoserthat was the easiest way to inject kernel parameters20:21
sorenWait, what?20:21
smoser(the -floppy disk distributed is hacky20:21
smoserbut it basically does: boot (hd0,1)/vmlinuz some-kernel-args NOCLOUD20:21
smoserso its quite less than ideal.20:22
smoserin natty cycle, i hope to have full disk images, and just say "kvm -hda disk.img"20:22
smoserbtw, i'm thankful for your input, please dont' think i'm just shooting down ideas20:23
smoserone thing i've considered is putting something into the image, which could be written to without understanding the filesystem20:23
smoserand the providing a tool that could muck that bit20:23
kim0smoser: what about providing different kernels, such that the user would choose a different kernel for a direct kvm boot20:30
smoserwell that would incur the overhead of maintaining 2 kernels.20:31
smoserwe recently got a *major* feature add when we dropped the -ec2 kernel20:32
sorensmoser: You've lost me. I thought you said you used grub.cfg for something.20:32
kim0smoser: not really different kernels .. just 2 kernel entries .. booting same kernel with different params20:32
sorensmoser: (/me is catching up on the conversation... Many things going on at the same time)20:33
sorensmoser: re: "btw, i'm thankful for your input, please dont' think i'm just shooting down  ideas20:33
soren"20:33
sorensmoser: Not a problem at all.20:33
smoserkim0, in which case i'd still have to get the user (or cloud) to select the kernel to boot.20:34
smosersoren, currently we jsut ship a partition image20:34
kim0smoser: defaults to cloud kernel .. and kvm user chooses a different one20:34
smoserthat partition image has no bootloader in it20:34
smoserbut, it has both /boot/grub/grub.cfg and /boot/grub/menu.lst in it20:34
smosergrub.cfg is used if you boot with 'loader support' on UEC20:35
smosermenu.lst is used if you boot with pv-grub on EC220:35
smoserthen, there is a floppy disk in the .tar.gz file.20:35
smoserwhen you boot off of that, it does a dirty hack and says "boot /vmlinuz from inside disk 1 partition 1, and pass 'nocloud' as a kernel parameter"20:36
kim0what about a count down .. like Press N for no-cloud 5 4 3 2 120:37
smoserkim0, i'd like to avoid manual action on every reboot (even the first)20:37
kim0so cloud kernel works ok for ec2 and uec .. only problem is, direct kvm case20:38
kim0well u just have to detect run time env I guess then .. somehow20:39
kim0no detectable info on ec2 xen store ?20:39
smoserthere is definitely stuff in the xen store, but not something published that i could rely on being there.20:40
smoserthe thing that is documented is the metadata service :)20:40
smoserand even then... ideally.... the image is easily used as xen instance.20:41
smoseri know that i'm asking a lot, but thas what the goal is... this disk image "just works"20:41
smoserso far, your timeout on selection of non-EC2 cloud kernel entry is about the best i have.20:42
smoserthe issue with that is that20:42
smosera.) then you penalize the UEC boot by 5 seconds20:43
smoserb.) that default isn't easily modifyable without mounting the image -- this is what i really want to stay away from.20:44
kim0what about a no-penalty .. press shift while booting kinda thing ?20:45
eucahi guys! I'm trying to run a private cloud with UEC and I want all my machines to have a static IP on the network. The VMs get an IP, but then they don't boot. There is a script that tries to obtain metadata from a server it can't reach, and so it just keeps looping.20:45
euca DataSourceEc2.py[WARNING]: waiting for metadata service at http://169.254.169.254/2009-04-04/meta-data/instance-id20:45
euca DataSourceEc2.py[WARNING]:   16:06:10 [ 1/100]: url error [timed out]20:46
kim0lol :)20:46
kim0haahaahh .. speak of the devil20:46
kim0euca: how long did you wait for them to boot ?20:48
eucaI've read that this happens when the private IP is the same as the public IP.. but I can't seem to make them be different. Has anyone dealt with this? I'm using the cloud controller runs Ubuntu Server 10.10, the node runs CentOS, both with eucalyptus 2.0.020:48
eucakim0:  I let it stay overnight20:48
kim0ew!20:49
kim0why aren't you running one software stack in all ur cloud20:49
eucakim0:  because Ubuntu Server failed to install on the node20:49
kim0:)20:49
eucaand CentOS didn't20:49
kim0euca: how did it fail20:49
eucait didn't detect any storage20:50
eucadevices20:50
kim0can you post a bug report please20:50
eucawell, I can, but this is sort of urgent for me20:50
kim0hmm20:50
eucaI'm sure the underlying OS is not the issue20:51
kim0try asking in #eucalyptus maybe20:51
smosereuca, make sure you're not running a dhcp server on your network20:52
eucasmoser:  I don't have control over the network20:52
eucabut there is a dhcp server20:52
eucaon that network20:52
smoserthen you really can't run eucalyptus20:52
smoserthe guests will dhcp, which gets put onto the network of the host20:53
smoserthere are 2 dhcp servers20:53
smoserit will take the lease from whichever runs first20:53
smoserreturns first20:53
kim0wild west competition20:53
eucathe guest get the correct IP20:53
eucaI configured it to be STATIC20:53
eucaI can traceroute and ping the machine. I even checked the MAC and the IP. They are both correct.20:54
eucawhen I try to ssh, I get a connection was reset error. and the guest is trying to fetch metadata from that URL20:55
eucaI tried the URL manually, and it returns 404 Not Found20:55
eucaI've read that this used to be a bug in lucid, when both the public and private IPs are the same20:55
smosereuca, that url will only be good from inside the guest20:55
eucasmoser: I suspected as much, but I thought I'd try ;)20:56
smoseri wonder how you configured the IP to be static, though, and which IP you chose.20:56
eucasmoser:  hold on, I'll post the eucalyptus.conf somewhere20:56
smoserbecause the instance should be configured with the private ip20:56
smoser(ie, ifconfig inside it will show the private IP)20:57
smoserand routing magic on the node lets it through20:57
smosereuca, for debugging, you can try running my ttylinux images, which do not depend on the metadata service20:58
smoserhttp://smoser.brickies.net/ubuntu/ttylinux-uec/20:58
kim0smoser: btw for UEC, does CLC perform NATing as part of default setup, or is the user expected to do that manually20:58
smoseruse the latest there, use uec-publish-tarball to publish it, run an instance, and you can ssh in.  of course you have to somehow set your IP address (those expect that they get dhcp)20:58
smoserthey will also, after a time, start dumping debug info on their view of the world.20:59
smoserkim0, i dont belive it does any natting, i'm not really certain on the config of that stuff.20:59
kim0so out of the box, NCs doesn't have internet connectivity21:00
eucasmoser: http://codepad.org/uwgop8kl (eucalyptus.conf on the CC)  http://codepad.org/BoFMV18z (part of eucalyptus.conf from the NC)21:01
eucasmoser:  euca-describe-instances output http://codepad.org/OUozYObx21:03
smoserso how do you think that you made the instances use a static IP address ?21:03
smoseri could be incorrect, but i believe that everything is based on dhcp21:03
eucaI thought so too.. but then I ran nmap and saw the MAC associated to that IP21:04
smoserwell, it could very well get that.21:05
smoserbut its a race21:05
smoserrun one of those ttylinux images21:05
eucaI'll try doing that in a sec21:05
smoserand see what happens.21:05
smoserthey'll open up a ssh server on 22 with a password21:06
eucawhat's the username and password?21:08
* euca 30k/sec21:08
smoserreally ?21:08
eucayes21:09
smoseri think its ubuntu:passw0rd21:09
smoserhm..21:09
eucaand it's stuck now21:09
eucahm21:09
euca40k now ;)21:09
smoserhm.. that stinks. i just pulled to here *michigann) at 600k, but my ec2 instance is only getting it at ~ 30 k21:10
eucaI'll wait21:11
smoserno idea whats wrong there, maybe i should get a mirror for those21:13
eucasmoser: can I run it in a t1.small ?21:28
smoserm1.small you mean ?21:29
smoseryes, it should fit inside your pocket21:29
eucayes, m1.small :)21:29
smoser(it has a 24M root filesystem i think)21:29
eucapending..21:31
eucainteresting21:37
eucaI can't run it21:37
eucathe machine doesn't show up in 'xen list'21:38
eucaand there are no errors in the error log21:38
eucaand it's not in /usr/local/eucalyptus/admin/21:38
eucai.e the folder is there, but there are no files21:38
eucaand on the second try, only kernel and kernel-digest were copied to the NC21:39
eucahm, apparently it failed to delete  /usr/local/eucalyptus//eucalyptus/cache/eki-457115F8/kernel-staging21:42
eucai'm deleting the cache and retrying21:43
eucanope21:47
eucait's not running it21:47
eucaand I can't find an error in nc.log21:47
eucanothing in xend.log21:49
euca:/21:50
=== dendrobates is now known as dendro-afk

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