If you want to use the 10.04 Ubuntu Enterprise Cloud images that are readily available at http://uec-images.ubuntu.com/releases/10.04/release/, you may run into delays with booting. Any server that does not have nova-api running on it needs this iptables entry so that UEC images can get metadata info. On compute nodes, configure the iptables with this next step:
# iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $NOVA_API_IP:8773
-----openstack-bounces+gongysh=cn.ibm....@lists.launchpad.net wrote: -----
# iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $NOVA_API_IP:8773
To: openstack <openstack@lists.launchpad.net>
From: Pierre Amadio <pierre.ama...@canonical.com>
Sent by: openstack-bounces+gongysh=cn.ibm....@lists.launchpad.net
Date: 03/28/2012 11:01PM
Subject: Re: [Openstack] problem ssh-ing into vms
Hi there !
> | 2012-03-28 13:11:29,162 - DataSourceEc2.py[WARNING]: 'http://169.254.169.254' failed: url error [[Errno 111] Connection refused]
> | 2012-03-28 13:11:35,174 - DataSourceEc2.py[CRITICAL]: giving up on md after 105 seconds
>
> The instance was unable to connect to the metadata service to get your
> public keys and put them into the instance. The Ubuntu images have an
> annoyance, in that if it can't get to the MD it doesn't even generate ssh
> server keys, so the ssh server just drops you immediately.
>
> But your real problem is that the guests can't see the host.
>
Thanks, this helped a lot.
The vm was on a node running nova-compute and nova-network only.
Turned out the metadata service was available after i have started
nova-api on top of that.
I though nova-api was not needed on boxes running nova-compute ? (i have
it running on a "manager" node that do not launch vms).
Was my assumption wrong or is there something special to do to have the
metadata service available without running nova-api ?
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp