Ask Your Question
0

Instance failed to get DHCP ipaddress

asked 2014-04-15 08:19:49 -0500

asekaran gravatar image

updated 2014-04-15 12:30:35 -0500

Hi,

I have created the controller, compute and neutron node.

Configured Single Flat Network whn i assign ipaddress to the OVS bridge for external network, I'm not able to ping to the external router. Have checked all the configuration it seems to be good.

Please help me on what is creating issue.

on Neutron node:-

# ovs-vsctl show
2ec96ef1-ba09-4a31-8d0f-a0d18c3b30c5
    Bridge "br-eth1"
        Port "phy-br-eth1"
            Interface "phy-br-eth1"
        Port "eth1"
            Interface "eth1"
        Port "br-eth1"
            Interface "br-eth1"
                type: internal
    Bridge br-int
        Port "tap3c3f713a-0c"
            tag: 1
            Interface "tap3c3f713a-0c"
                type: internal
        Port "int-br-eth1"
            Interface "int-br-eth1"
        Port br-int
            Interface br-int
                type: internal
    ovs_version: "1.10.2"

# ovs-ofctl show br-eth1
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000e41f13b6adaa
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(eth1): addr:e4:1f:13:b6:ad:aa
     config:     PORT_DOWN
     state:      LINK_DOWN
     current:    COPPER AUTO_NEG
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD AUTO_NEG
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG
     speed: 0 Mbps now, 1000 Mbps max
 4(phy-br-eth1): addr:02:d1:d8:83:17:be
     config:     0
     state:      0
     current:    10GB-FD COPPER
     speed: 10000 Mbps now, 0 Mbps max
 LOCAL(br-eth1): addr:e4:1f:13:b6:ad:aa
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0


# neutron agent-list 
+--------------------------------------+--------------------+----------+-------+----------------+
| id                                   | agent_type         | host     | alive | admin_state_up |
+--------------------------------------+--------------------+----------+-------+----------------+
| 232b26cb-3735-4643-b0fa-4e31a14f5252 | Open vSwitch agent | compute1 | :-)   | True           |
| 61710f33-d7f2-40cc-96ae-24a679afe9ab | DHCP agent         | neutron  | :-)   | True           |
| 87729cf7-884d-489b-a5bb-f4caa6145621 | Open vSwitch agent | neutron  | :-)   | True           |
| dfecc6f0-2ed4-4f05-9713-4e7ab93a964c | Open vSwitch agent | compute2 | :-)   | True           |
+--------------------------------------+--------------------+----------+-------+----------------+

# neutron dhcp-agent-list-hosting-net sharednet1
+--------------------------------------+---------+----------------+-------+
| id                                   | host    | admin_state_up | alive |
+--------------------------------------+---------+----------------+-------+
| 61710f33-d7f2-40cc-96ae-24a679afe9ab | neutron | True           | :-)   |
+--------------------------------------+---------+----------------+-------+

log files:-

# dhcp-agent.log
2014-04-15 18:41:41.972 30425 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 366, in spawn_process
2014-04-15 18:41:41.972 30425 TRACE neutron.agent.dhcp_agent     utils.execute(cmd, self.root_helper)
2014-04-15 18:41:41.972 30425 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 62, in execute
2014-04-15 18:41:41.972 30425 TRACE neutron.agent.dhcp_agent     raise RuntimeError(m)
2014-04-15 18:41:41.972 30425 TRACE neutron.agent.dhcp_agent RuntimeError: 

# openvswitch-agent.log
2014-04-15 11:57:42.965 1242 ERROR neutron.openstack.common.rpc.common [-] AMQP server on controller:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 1 seconds.

# server.log
2014-04-15 17:49:03.943 31146 TRACE neutron.service RuntimeError: Unable to load quantum from configuration file /etc/neutron/api-paste.ini.
2014-04-15 17:49:03.943 31146 TRACE neutron.service

Compute Node Logs

# ovs-vswitchd.log
2014-04-15T12:21:55Z|00027|dpif|WARN|system@ovs-system: failed to add tap3e0449dd-48 as port: No such device
2014-04-15T12:21:57Z|00028|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tapc27371bf-bd failed: No such device
2014-04-15T12:21:57Z|00029|dpif|WARN|system@ovs-system: failed to add tapc27371bf-bd as port: No such device
2014-04-15T12:21:57Z|00030|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device tap419119a5-c2 failed: No such device

Controller Node Logs

# server.log
2014-04-15 17:49:22.865 5710 WARNING neutron.api.extensions ...
(more)
edit retag flag offensive close merge delete

Comments

Your network logs seem to be filled with issues. Make sure you have the database/rpc information correct in the configuration files(net node). Try doing a restart of the services on the network node. Make sure that you can connect to qpid/rabbit from the network node, as well as the db.

mpetason gravatar imagempetason ( 2014-04-15 14:27:53 -0500 )edit

I have checked all the database/rpc information is correct and tried restarting all services on neutron still facing same issue

Thanks

asekaran gravatar imageasekaran ( 2014-04-16 00:26:29 -0500 )edit

You may want to post your DHCP config file. Or any other relevant files. Modifying the security group for your tenant probably won't fix the issue.

mpetason gravatar imagempetason ( 2014-04-16 14:27:03 -0500 )edit

DHCP config file

root@neutron:~# vi /etc/neutron/dhcp_agent.ini [DEFAULT]

Show debugging output in log (sets DEBUG log level output)

debug = False

The DHCP agent will resync its state with Neutron to recover from any

transient notification or rpc errors. The interval is number of

seconds between attempts.

resync_interval = 5

The DHCP agent requires an interface driver be set. Choose the one that best

matches your plugin.

interface_driver =

Example of interface_driver option for OVS based plugins(OVS, Ryu, NEC, NVP,

BigSwitch/Floodlight)

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

Use veth for an OVS interface or not.

Support kernels with limited namespace support

(e.g. RHEL 6.5) so long as ovs_use_veth is set to True.

ovs_use_veth = False

Example of interface_driver option for LinuxBridge

interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver

The agent can use other DHCP drivers. Dnsmasq is the simplest and requires

no ...

(more)
asekaran gravatar imageasekaran ( 2014-04-17 11:41:37 -0500 )edit

Nova Config file

root@compute1:~# vi /etc/nova/nova.conf [DEFAULT] network_api_class=nova.network.neutronv2.api.API neutron_url=http://controller:9696 neutron_auth_strategy=keystone neutron_admin_tenant_name=service neutron_admin_username=neutron neutron_admin_password=NEUTRON_PASS neutron_admin_auth_url=http://controller:35357/v2.0 linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver=nova.virt.firewall.NoopFirewallDriver security_group_api=neutron auth_strategy=keystone rpc_backend = nova.rpc.impl_kombu rabbit_host = controller rabbit_port = 5672 rabbit_userid = guest rabbit_password = RABBIT_PASS my_ip=10.37.39.76 vnc_enabled=True vncserver_listen=0.0.0.0 vncserver_proxyclient_address=10.37.39.76 novncproxy_base_url=http://controller:6080/vnc_auto.html glance_host=controller dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge logdir=/var/log/nova state_path=/var/lib/nova lock_path=/var/lock/nova force_dhcp_release=True iscsi_helper=tgtadm libvirt_use_virtio_for_bridges=True connection_type=libvirt root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf verbose=True ec2_private_dns_show_ip=True api_paste_config=/etc/nova/api-paste.ini volumes_path=/var/lib/nova/volumes enabled_apis=ec2,osapi_compute,metadata [database] connection = mysql://nova:NOVA_DBPASS@controller/nova

asekaran gravatar imageasekaran ( 2014-04-17 11:42:35 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-04-15 10:02:27 -0500

SGPJ gravatar image

In security group; add all icmp, tcp, dns & ssh rule for default group. This should solve issue. Thanks.

edit flag offensive delete link more

Comments

Let me know add rule for nova or neutron? Thanks

asekaran gravatar imageasekaran ( 2014-04-16 00:25:34 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-15 08:19:49 -0500

Seen: 1,678 times

Last updated: Apr 15 '14