← Back to team overview

openstack team mailing list archive

Re: Instance can't reach dhcp or metadata

 

Hi Nicolas,

    You need another interface ( say eth1 UP & running ) .   Configure br100 to use eth1 .



typically your configuration will look like the below ..



/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
        iface lo inet loopback

# The primary network interface
allow-hotplug eth0
        iface eth0 inet dhcp

auto eth1

auto br100
        iface br100 inet static
        bridge_ports   eth1
        address 10.0.0.1
        netmask 255.255.255.0
        bridge_stp off
        bridge_fd 0



nova.conf will have the following lines too..


--fixed_range=10.0.0.0/24
--network_size=256
--network_manager=nova.network.manager.FlatManager
--flat_interface=eth1
--flat_injected=False
--public_interface=eth0





Meena Raja
Consultant
__________________________________________
WIPRO TECHNOLOGIES
No 53/1 Ganapa Towers ,Near Madivala Police Station , Hosur Main Road ,Bangalore-560068
Hand Phone : +91-9880549725 | Desk : +91-80-39912554 |Fax No: +91-80-25502160
Email : raja.meena@xxxxxxxxx | Website : www.wipro.com
________________________________
From: openstack-bounces+raja.meena=wipro.com@xxxxxxxxxxxxxxxxxxx [openstack-bounces+raja.meena=wipro.com@xxxxxxxxxxxxxxxxxxx] on behalf of Nicolas de BONFILS [ndebonfils@xxxxxxxxx]
Sent: Monday, April 09, 2012 3:57 PM
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: [Openstack] Instance can't reach dhcp or metadata

Hi stackers,

I got, using devstack, openstack running. I can launch instance correctly (as seen in horizon state) but the instance can't reach the dhcp or the metadata.

Here the topology (as it should be, but I maybe need to configured otherwise in the conf) of my server (one box only) :

  *   router : 192.168.23.1
  *   server
     *   ip : 192.168.23.5 (with dhcp but always the same)
     *   interface with external (network and internet) : eth0
     *   interface for openvswitch bridge : br100
     *   interface for nova/quantum/melange bridge : br100
  *   openstack
     *   glance with file backend
     *   quantum and melange for networking
     *   openvswitch as plugin

You can find all the config files and log here : https://gist.github.com/2342747.
And networking info below.

Any tips, or pointing misconfiguration will be very appreciated.

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
        iface lo inet loopback

# The primary network interface
allow-hotplug eth0
        iface eth0 inet dhcp

auto br100
        iface br100 inet static
        address 10.0.0.1
        netmask 255.255.255.0
        bridge_stp off
        bridge_fd 0

ip addr show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8<http://127.0.0.1/8> scope host lo
    inet 169.254.169.254/32<http://169.254.169.254/32> scope link lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ipddp0: <BROADCAST,MULTICAST,NOARP> mtu 585 qdisc noop state DOWN qlen 1000
    link/ip/ddp 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether f4:XX:04:10:XX:XX brd ff:ff:ff:ff:ff:ff
    inet 192.168.23.5/24<http://192.168.23.5/24> brd 192.168.23.255 scope global eth0
    inet6 XX:e35:XX:dce0:XX:4ff:fe10:675b/64 scope global dynamic
       valid_lft 86091sec preferred_lft 86091sec
    inet6 XX::f66d:XX:fe10:XX/64 scope link
       valid_lft forever preferred_lft forever
18: tap9cec6d69-f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
    link/ether 12:23:4b:e3:3e:e7 brd ff:ff:ff:ff:ff:ff
19: tapba4b75d8-10: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
    link/ether ce:40:f0:7c:48:b1 brd ff:ff:ff:ff:ff:ff
20: tap828bc57f-57: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
    link/ether 52:69:4a:f4:45:d7 brd ff:ff:ff:ff:ff:ff
23: br100: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether f2:a9:d2:11:8b:49 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24<http://10.0.0.1/24> brd 10.0.0.255 scope global br100
    inet6 fe80::f0a9:d2ff:fe11:8b49/64 scope link
       valid_lft forever preferred_lft forever
24: tapcf8c4c18-f3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
    link/ether d2:9f:4e:cf:ce:fa brd ff:ff:ff:ff:ff:ff
25: tap60c76595-d6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
    link/ether 76:90:ce:a4:25:6c brd ff:ff:ff:ff:ff:ff
26: tap34019134-5f: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 500
    link/ether 2e:4f:bc:16:07:71 brd ff:ff:ff:ff:ff:ff
31: tap90748d8d-5d: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 500
    link/ether 26:45:91:52:12:bd brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2445:91ff:fe52:12bd/64 scope link
       valid_lft forever preferred_lft forever
32: tapf937eb70-ff: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 500
    link/ether 42:4e:31:c3:77:ba brd ff:ff:ff:ff:ff:ff
    inet6 fe80::404e:31ff:fec3:77ba/64 scope link
       valid_lft forever preferred_lft forever
33: tap010cac48-f4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 500
    link/ether b6:3e:1c:ee:ca:45 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::b43e:1cff:feee:ca45/64 scope link
       valid_lft forever preferred_lft forever

nova-manage service list

Binary           Host                                 Zone             Status     State Updated_At
nova-compute     192.168.23.5                    nova             enabled    :-)   2012-04-09 11:12:33
nova-network     192.168.23.5                    nova             enabled    :-)   2012-04-09 11:12:32
nova-volume      192.168.23.5                    nova             enabled    :-)   2012-04-09 11:12:32
nova-scheduler   192.168.23.5                    nova             enabled    :-)   2012-04-09 11:12:32
nova-cert        192.168.23.5                   nova             enabled    :-)   2012-04-09 11:12:32
nova-consoleauth 192.168.23.5                    nova             enabled    :-)   2012-04-09 11:12:31

brctl show

bridge name     bridge id               STP enabled     interfaces


Thanks,

---
Nicolas


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com

Follow ups

References