/srv/irclogs.ubuntu.com/2010/08/19/#ubuntu-cloud.txt

=== zul_ is now known as zul
=== SpamapS_ is now known as SpamapS
patrickwHi, I have a question about hostnames for nodes in 10.04.  My nodes are getting hostnames like "ip-172-19-1-2" but /etc/hosts doesn't list this name.  Do I need to enable (or rather, NOT disable) the cloud dns to work around this?17:24
smoserpatrickw, you're seeing bug https://bugs.launchpad.net/ubuntu/+source/eucalyptus/+bug/47535417:38
uvirtbotLaunchpad bug 475354 in eucalyptus "Hostname not set correctly on UEC cloud due to IP address in local-hostname manifest data (DNS)" [Undecided,Fix committed]17:38
_mup_Bug #475354: Hostname not set correctly on UEC cloud due to IP address in local-hostname manifest data (DNS) <amd64> <apport-bug> <verification-done> <Eucalyptus:Fix Committed by chris-grze> <cloud-init (Ubuntu):Fix Released by smoser> <ec2-init (Ubuntu):Fix Released> <eucalyptus (Ubuntu):Fix Released> <cloud-init (Ubuntu Lucid):Fix Released by smoser> <ec2-init (Ubuntu Lucid):Fix Released> <eucalyptus (Ubuntu Lucid):Fix Released> <cloud-init (17:38
_mup_Bug #475354: Hostname not set correctly on UEC cloud due to IP address in local-hostname manifest data (DNS) <amd64> <apport-bug> <verification-done> <Eucalyptus:Fix Committed by chris-grze> <cloud-init (Ubuntu):Fix Released by smoser> <ec2-init (Ubuntu):Fix Released> <eucalyptus (Ubuntu):Fix Released> <cloud-init (Ubuntu Lucid):Fix Released by smoser> <ec2-init (Ubuntu Lucid):Fix Released> <eucalyptus (Ubuntu Lucid):Fix Released> <cloud-init (17:38
uvirtbotLaunchpad bug 475354 in eucalyptus "Hostname not set correctly on UEC cloud due to IP address in local-hostname manifest data (DNS)" [Undecided,Fix committed] https://launchpad.net/bugs/47535417:38
_mup_Bug #475354: Hostname not set correctly on UEC cloud due to IP address in local-hostname manifest data (DNS) <amd64> <apport-bug> <verification-done> <Eucalyptus:Fix Committed by chris-grze> <cloud-init (Ubuntu):Fix Released by smoser> <ec2-init (Ubuntu):Fix Released> <eucalyptus (Ubuntu):Fix Released> <cloud-init (Ubuntu Lucid):Fix Released by smoser> <ec2-init (Ubuntu Lucid):Fix Released> <eucalyptus (Ubuntu Lucid):Fix Released> <cloud-init (17:39
_mup_Bug #475354: Hostname not set correctly on UEC cloud due to IP address in local-hostname manifest data (DNS) <amd64> <apport-bug> <verification-done> <Eucalyptus:Fix Committed by chris-grze> <cloud-init (Ubuntu):Fix Released by smoser> <ec2-init (Ubuntu):Fix Released> <eucalyptus (Ubuntu):Fix Released> <cloud-init (Ubuntu Lucid):Fix Released by smoser> <ec2-init (Ubuntu Lucid):Fix Released> <eucalyptus (Ubuntu Lucid):Fix Released> <cloud-init (17:39
smoserwow, _mup_ that was a bit excessive, don't you think ?17:39
patrickwI had researched that bug, but it seemed different, though related.  I'm not getting a hostname in the form of an dotted IP, but rather "ip-W-X-Y-Z", which was I guess the resolution of the bug.  But my machine doesn't resolve that name to an IP...  I guess I have to enable cloud DNS and reconfigure my CC to use it for dns?17:55
patrickwActually, I seem to be getting "euca-W-X-Y-Z" now that I enabled cloud DNS17:56
smoserpatrickw, and euca-W-X-Y-Z should be reverse resolvealbe, right ?18:49
MatthewMI'm attempting to build a private cloud for testing. Haven't had success in starting virtual server instances yet.19:39
MatthewMShould eucalyptus-nc-publication be installed and running on the frontend controller? It is not currently.19:41
patrickwsmoser, W.X.Y.Z does not reverse resolve.  At any rate, I don't have control of our DNS servers and doing all this DNS stuff just so a machine knows it's own IP seems kind of nuts... shouldn't something just stick the name into /etc/hosts automatically?19:47
smoserpatrickw, there are reasons that we dont do that in the instance.19:48
smoseri have to dig to come up with what that is, but it caused issues.19:48
patrickwsmoser, at any rate, I may be able to work around my problem by specifying "localhost" as the host name to my application.  I've been messing with the euca DNS but my instances don't get a domainname and I don't need to open any *more* cans of worms at this point.  :)19:50
smoseryeah, dns is scary to poke at.19:50
smoserpatrickw, you can very easily modify /etc/hosts on your own in a user-data script or something19:50
patrickwsmoser, I was thinking about that, but avoiding scripting that up and just massaging the app I'm trying to run seems a simpler option for the short run19:52
patrickwthough I have been shaking the rust off of my bash skills while working on this project.  :)19:53
smoserpatrickw, well, it might look something like this:19:59
smoserip=$(wget -qO - "${md}/local-ipv4") ; hn=$(wget -qO - "${md}/local-hostname"); echo "ip=${ip} hn=${hn}"; echo "${ip} ${hn}" | sudo tee -a /etc/hosts19:59
smoseryou pass that into user-data with a header of '#!/bin/sh' and it will probably work (or be close to it, i didn't test)19:59
smoseroops20:00
smosermd=http://169.254.169.254/latest/meta-data20:00
smoserforgot that part20:00
patrickwsmoser, damn, thanks, I'll save that for later...  I may add plain old $(hostname) to the final echo also, as what you did apparently is picking up "eucalyptus.internal" as the domain.20:17
smoserfwiw, you can dump all metadata with this nice one-liner:20:18
smoserpython -c 'import boto.utils, pprint; pprint.pprint(boto.utils.get_instance_metadata())'20:18
MatthewMI think my problem is that I don't have any storage volumes configured. I'll be following https://help.ubuntu.com/community/UEC/StorageController to see if I can get this working.20:20
patrickwsmoser, awesome, that will come in very handy.  I probably would have tried poking around in /proc or trying to hack the address out of ifconfig...  brand new to euca, that web interface will be useful20:28
patrickwMatthew, you don't need to use a storage controller just to get VMs running20:41
MatthewMpatrickw: I wonder what I'm doing wrong, then. What log files would I look at to determine why VMs are terminating?20:52
patrickwMatthewM: there is some info on this page http://open.eucalyptus.com/wiki/EucalyptusTroubleshooting_v1.621:05
MatthewMpatrickw: thanks21:05
=== ]oestewart is now known as joestewart|afk
=== A-Tuin_ is now known as A-Tuin
MatthewMgetting frustrated. I'm following the documentation to the letter, but instances still terminate. Got one to actually show "running" for about 20 seconds. I got excited, but then it termintated too.23:02
MatthewMI'm not sure what to try next.23:02
MatthewMDid anyone else have this problem when starting out?23:03
hazmatMatthewM, i did23:37
hazmatMatthewM, i did eventually solve, but i ended up tailing the log files on the compute node and cluster controller, some copious output results.. i think in one case i had a bad image, and in the other my networking wasn't correct23:38
MatthewMhazmat: Thanks. I appreciate that.23:39
MatthewMhazmat: Do you remember what the networking problem was? The installer should communicate and set up everything automatically, right?23:39
hazmatMatthewM, i didn't have my networking setup properly, and then i tried to switch it from bridge to system, but i didn't realize the cluster controller was keeping cached state, so i needed to perform some command to clear out its instance state and reload them from its config files, this was about 9 months ago, i think the installer has gotten better.. but i haven't really done much with uec/euca since i got it setup to te23:41
hazmatst out.23:41
hazmatthe log file output is a bit copious but it did have some pointers23:42
hazmatbut i had to tail from both the node controller and the cc to get an idea of the interaction23:42
hazmatMatthewM, you might be able to use ec2-get-console-output to see things from the perspective of inside the instance, if it was successfully running23:43
MatthewMhazmat: I only got it to be "running" for a few seconds. Thanks for your suggestions. I'll give it a try again soon.23:44
niemeyerHey cloudy people23:59

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