Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Instance unable to get ip from dhcp. (Havana with neutron gre)

Hello, I have used RDO packstack to deploy Openstack Havana with neutron gre configuraton on 3 hosts (CentOS 6.5) , 1 control node and 2 compute nodes, everything seems fine, except the instance can't get dhcp ip.

Starting network... udhcpc (v1.20.1) started Sending discover... Sending discover... Sending discover... No lease, failing WARN: /etc/rc3.d/S40-network failed cirros-ds 'net' up at 181.54 checking http://169.254.169.254/2009-04-04/instance-id failed 1/20: up 181.57. request failed failed 2/20: up 183.74. request failed

nova-manage service list

Binary Host Zone Status State Updated_At nova-consoleauth control-node internal enabled :-) 2014-04-25 22:05:03 nova-scheduler control-node internal enabled :-) 2014-04-25 22:05:03 nova-conductor control-node internal enabled :-) 2014-04-25 22:05:06 nova-cert control-node internal enabled :-) 2014-04-25 22:05:03 nova-compute compute-node1 nova enabled :-) 2014-04-25 22:05:05 nova-compute compute-node1 nova enabled :-) 2014-04-25 22:05:05

neutron agent-list

+--------------------------------------+--------------------+-----------------------------+-------+----------------+ | id | agent_type | host | alive | admin_state_up | +--------------------------------------+--------------------+-----------------------------+-------+----------------+ | 7d5bf9e0-aa05-4783-b7d8-ee0df7359021 | Open vSwitch agent | compute-node2 | :-) | True | | 148caf87-d303-424d-b117-1bbe9b6f3727 | Open vSwitch agent | compute-node1 | :-) | True | | cf29a952-cede-4e13-9e5d-0610689cd8da | Open vSwitch agent | control-node | :-) | True | | df83bba5-8039-4766-8b70-3ce7ff5544f7 | L3 agent | control-node | :-) | True | | f8732e04-707a-4ae1-8331-b520c7c8b65f | DHCP agent | control-node | :-) | True | +--------------------------------------+--------------------+-----------------------------+-------+----------------+

ip netns

qdhcp-18a57ea1-0023-4102-a39b-9b8e86feb1d8

ip netns exec qdhcp-18a57ea1-0023-4102-a39b-9b8e86feb1d8 ip a

14: 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 scope host lo 15: ns-cd9933c9-4a: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:e2:5d:f7 brd ff:ff:ff:ff:ff:ff inet 192.168.8.3/24 brd 192.168.8.255 scope global ns-cd9933c9-4a inet 169.254.169.254/16 brd 169.254.255.255 scope global ns-cd9933c9-4a

ovs-vsctl show | grep cd9933c9-4a

    Port "tapcd9933c9-4a"
        Interface "tapcd9933c9-4a"

ovs-vsctl show

245fb0d2-daae-4794-9f97-c7ba84cc68bd Bridge br-int Port int-br-ex Interface int-br-ex Port "tapcd9933c9-4a" tag: 2 Interface "tapcd9933c9-4a" Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port br-int Interface br-int type: internal Bridge br-ex Port br-ex Interface br-ex type: internal Port "eth0" Interface "eth0" Port phy-br-ex Interface phy-br-ex Bridge br-tun Port "gre-2" Interface "gre-2" type: gre options: {in_key=flow, local_ip="192.168.0.121", out_key=flow, remote_ip="192.168.0.126"} Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port "gre-1" Interface "gre-1" type: gre options: {in_key=flow, local_ip="192.168.0.121", out_key=flow, remote_ip="192.168.0.125"} ovs_version: "1.11.0"

Instance unable to get ip from dhcp. (Havana with neutron gre)

Hello, I have used RDO packstack to deploy Openstack Havana with neutron gre configuraton on 3 hosts (CentOS 6.5) , 1 control node and 2 compute nodes, everything seems fine, except the instance can't get dhcp ip.

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
WARN: /etc/rc3.d/S40-network failed
cirros-ds 'net' up at 181.54
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 181.57. request failed
failed 2/20: up 183.74. request failed

failed

# nova-manage service list

list Binary Host Zone Status State Updated_At nova-consoleauth control-node internal enabled :-) 2014-04-25 22:05:03 nova-scheduler control-node internal enabled :-) 2014-04-25 22:05:03 nova-conductor control-node internal enabled :-) 2014-04-25 22:05:06 nova-cert control-node internal enabled :-) 2014-04-25 22:05:03 nova-compute compute-node1 nova enabled :-) 2014-04-25 22:05:05 nova-compute compute-node1 nova enabled :-) 2014-04-25 22:05:05

22:05:05

# neutron agent-list

agent-list +--------------------------------------+--------------------+-----------------------------+-------+----------------+ | id | agent_type | host | alive | admin_state_up | +--------------------------------------+--------------------+-----------------------------+-------+----------------+ | 7d5bf9e0-aa05-4783-b7d8-ee0df7359021 | Open vSwitch agent | compute-node2 | :-) | True | | 148caf87-d303-424d-b117-1bbe9b6f3727 | Open vSwitch agent | compute-node1 | :-) | True | | cf29a952-cede-4e13-9e5d-0610689cd8da | Open vSwitch agent | control-node | :-) | True | | df83bba5-8039-4766-8b70-3ce7ff5544f7 | L3 agent | control-node | :-) | True | | f8732e04-707a-4ae1-8331-b520c7c8b65f | DHCP agent | control-node | :-) | True | +--------------------------------------+--------------------+-----------------------------+-------+----------------+

+--------------------------------------+--------------------+-----------------------------+-------+----------------+ # ip netns qdhcp-18a57ea1-0023-4102-a39b-9b8e86feb1d8

ip netns

qdhcp-18a57ea1-0023-4102-a39b-9b8e86feb1d8

# ip netns exec qdhcp-18a57ea1-0023-4102-a39b-9b8e86feb1d8 ip a

a 14: lo: <loopback,up,lower_up> <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 scope host lo 15: ns-cd9933c9-4a: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:e2:5d:f7 brd ff:ff:ff:ff:ff:ff inet 192.168.8.3/24 brd 192.168.8.255 scope global ns-cd9933c9-4a inet 169.254.169.254/16 brd 169.254.255.255 scope global ns-cd9933c9-4a

ns-cd9933c9-4a # ovs-vsctl show | grep cd9933c9-4a

cd9933c9-4a
        Port "tapcd9933c9-4a"
         Interface "tapcd9933c9-4a"
# ovs-vsctl show

ovs-vsctl show

245fb0d2-daae-4794-9f97-c7ba84cc68bd Bridge br-int Port int-br-ex Interface int-br-ex Port "tapcd9933c9-4a" tag: 2 Interface "tapcd9933c9-4a" Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port br-int Interface br-int type: internal Bridge br-ex Port br-ex Interface br-ex type: internal Port "eth0" Interface "eth0" Port phy-br-ex Interface phy-br-ex Bridge br-tun Port "gre-2" Interface "gre-2" type: gre options: {in_key=flow, local_ip="192.168.0.121", out_key=flow, remote_ip="192.168.0.126"} Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port "gre-1" Interface "gre-1" type: gre options: {in_key=flow, local_ip="192.168.0.121", out_key=flow, remote_ip="192.168.0.125"} ovs_version: "1.11.0"

"1.11.0"