Cannot log into instance when network_manager=FlatManager

Bug #702778 reported by guanxiaohua2k6
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

If I set network_manager to FlatManager, I can start a new instance, but cannot log into it.

The result of the euca-run-instances is something like the followings:
{{{
RESERVATION r-sw4pptr7 IRT
INSTANCE i-00000001 ami-qzt0fqao 10.0.0.2 10.0.0.2 running mykey (IRT, ubuntu7) 0 m1.tiny 2011-01-14 08:06:22 nova
}}}

And nova.conf is as followings:
ubuntu7 = 192.168.32.202
{{{
--sql_connection=mysql://root:nova@ubuntu7/nova
--s3_host=ubuntu7
--rabbit_host=192.168.32.202
--cc_host=192.168.32.202
--ec2_url=http://192.168.32.202:8773/services/Cloud

--daemonize=1

--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge

--FAKE_subdomain=ec2

--ca_path=/var/lib/nova/CA
--keys_path=/var/lib/nova/keys
--networks_path=/var/lib/nova/networks
--instances_path=/var/lib/nova/instances
--images_path=/var/lib/nova/images
--buckets_path=/var/lib/nova/buckets

--libvirt_type=kvm

--network_manager=nova.network.manager.FlatManager

--vlan_interface=eth0

--logdir=/var/log/nova
--verbose
--volume_group=ubuntu7
--fixed_range=192.168.2.64/26
--network_size=64
}}}

The last part of euca-get-console-output's output is as followings:
{{{
Jan 14 08:08:30 ttylinux_host authpriv.info dropbear[267]: Running in background
############ debug end ##############
cloud-setup: failed to read iid from metadata. tried 30
stty: \/dev\/console
sshd is already running.
stty: \/dev\/console
startup inetd [ OK ]
stty: \/dev\/console
startup crond [ OK ]
wget: can't connect to remote host (169.254.169.254): No route to host
cloud-userdata: failed to read instance id
===== cloud-final: system completely up in 127.97 seconds ====
wget: can't connect to remote host (169.254.169.254): No route to host
wget: can't connect to remote host (169.254.169.254): No route to host
wget: can't connect to remote host (169.254.169.254): No route to host
  instance-id:
  public-ipv4:
  local-ipv4 :
=> First-Boot Sequence:
setting shared object cache [running ldconfig] [ OK ]
}}}

And /etc/network/interfaces is as followings:
{{{
auto lo
iface lo inet loopback

auto br100
iface br100 inet dhcp
          bridge_ports eth0
          bridge_stp off
          bridge_maxwait 0
          bridge_fd 0
}}}

Does anybody has some ideas about this problem?

Revision history for this message
Jordan Rinke (jordanrinke) wrote :

That console output looks like what happens when an EC2 image is used on OpenStack, it is trying to get it's metadata. Is this an image you created or did it come from somewhere else? Images for EC2 use will require some modification to run properly.

Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) wrote :

The package version: 2011.1~bzr562-0ubuntu0ppa1~maverick1

The image file is downloaded from http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz

Revision history for this message
Thierry Carrez (ttx) wrote :

This image is for use in Ubuntu's UEC, it requires a metadata service. For that to work in FlatManager mode, metadata forwarding must be handled by the gateway, and since nova does not do any setup in this mode, it must be done manually. Requests to 169.254.169.254 port 80 will need to be forwarded to the api server.

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.