Ask Your Question
0

Neutron DHCP agent not assigning IP to VMs

asked 2014-04-13 02:43:05 -0500

Nikita Rogovoy gravatar image

I've installed OpenStack Havana on Debian Wheezy and when it came to networking I've ran into some issue. The networking between VMs is working, routers are working too. I'm using Neutron + DHCP agent based on dnsmasq. I'm able to ping DHCP agent IP from a VM, but VMs are no being able to get IP address from it. When VM sending discover request, DHCP server is able to get it, but in syslog appearing: openstack dnsmasq-dhcp[4949]: DHCPDISCOVER(tapdf109fab-93) fa:16:3e:7e:1e:58 no address available

I've read lots of forums about this message, tried killing dnsmasq then restarting DHCP agent, updating dnsmasq to latest version and nothing worked.

How to solve this problem?

edit retag flag offensive close merge delete

Comments

What is your output for

[root@dfw02 ~(keystone_admin)]$ neutron subnet-list
+--------------------------------------+------+----------------+----------------------------------------------------+
| id                                   | name | cidr           | allocation_pools                                   |
+--------------------------------------+------+----------------+----------------------------------------------------+
| 9e0d457b-c4c4-45cf-84e2-4ac7550f3b06 |      | 40.0.0.0/24    | {"start": "40.0.0.2", "end": "40.0.0.254"}         |
| f30e5a16-a055-4388-a6ea-91ee142efc3d |      | 192.168.1.0/24 | {"start": "192.168.1.100", "end": "192.168.1.200"} |
+--------------------------------------+------+----------------+----------------------------------------------------+
[root@dfw02 ~(keystone_admin)]$ neutron router-list
+--------------------------------------+---------+-----------------------------------------------------------------------------+
| id                                   | name    | external_gateway_info                                                       |
+--------------------------------------+---------+-----------------------------------------------------------------------------+
| 86b3008c-297f-4301-9bdc-766b839785f1 | router2 | {"network_id": "780ce2f3-2e6e-4881-bbac-857813f9a8e0", "enable_snat": true} |
--------------------------------------------------------------------------------------------------------------------------------
[root@dfw02 ~(keystone_admin)]$ neutron router-port-list 86b3008c-297f-4301-9bdc-766b839785f1
Next
[root@dallas1 ~(keystone_admin)]$ ip netns list
qrouter-cb80b040-f13f-4a67-a39e-353b1c873a0d
qdhcp-166d9651-d299-47df-a5a1-b368e87b612f

Then what is output of
[root@dallas1 ~(keystone_admin)]$ ip netns exec qdhcp-166d9651-d299-47df-a5a1-b368e87b612f netstat -na
with your value of qhcp-xxxxx-xxxx-xxxx
dbaxps gravatar imagedbaxps ( 2014-04-13 03:04:25 -0500 )edit

neutron subnet-list

+--------------------------------------+-------+------------+-------------------------------------------+
| id                                   | name  | cidr       | allocation_pools                          |
+--------------------------------------+-------+------------+-------------------------------------------+
| 048c3e59-2e09-4c91-a5e3-847d88800a71 | test3 | 2.2.2.0/24 | {"start": "2.2.2.1", "end": "2.2.2.20"}   |
| 51e5f5a6-261e-40fb-b3cb-ecb0642cf45b | test1 | 1.1.1.0/24 | {"start": "1.1.1.1", "end": "1.1.1.49"}   |
|                                      |       |            | {"start": "1.1.1.51", "end": "1.1.1.254"} |
| 88be5e1c-ccb2-4f56-be0e-6a490f0ac369 | test2 | 5.5.5.0/24 | {"start": "5.5.5.1", "end": "5.5.5.49"}   |
|                                      |       |            | {"start": "5.5.5.51", "end": "5.5.5.254"} |
+--------------------------------------+-------+------------+-------------------------------------------+

neutron router-list

+--------------------------------------+-------------+-----------------------+
| id                                   | name        | external_gateway_info |
+--------------------------------------+-------------+-----------------------+
| 52902b3a-357d-450a-803f-1b61446878ba | test-router | null                  |
+--------------------------------------+-------------+-----------------------+

neutron router-port-list 52902b3a-357d-450a-803f-1b61446878ba

+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                       |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| 10155992-da81-4121-9270-7e1ee3fb9639 |      | fa:16:3e:46:bd:f5 | {"subnet_id": "88be5e1c-ccb2-4f56-be0e-6a490f0ac369", "ip_address": "5.5.5.50"} |
| 7804f839-8d2d-4c5f-8f38-17a4cd543fb1 |      | fa:16:3e:4a:7a:13 | {"subnet_id": "51e5f5a6-261e-40fb-b3cb-ecb0642cf45b", "ip_address": "1.1.1.50"} |
| afcf5731-1a84-4298-8900-a64bb24a9c7a |      | fa:16:3e:e2:6d:de | {"subnet_id": "048c3e59-2e09-4c91-a5e3-847d88800a71", "ip_address": "2.2.2.50"} |     +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+

ip netns list

qdhcp-439294f5-0b30-4581-a5a0-7a2df26e4f09
qdhcp-e1633986-6715-4b10-8fde-4c237e885ae1
qdhcp-51ad367b-85a6-4620-9e42-483cf55afb4d
qrouter-52902b3a-357d-450a-803f-1b61446878ba

ip netns exec qdhcp-e1633986-6715-4b10-8fde-4c237e885ae1 netstat -na

Active Internet connections ...
(more)
Nikita Rogovoy gravatar imageNikita Rogovoy ( 2014-04-13 03:36:53 -0500 )edit

Please check whether you have added appropriate security rules in security group. For testing purpose, on Guest VM, manually try to add IP address and do ping test.

SGPJ gravatar imageSGPJ ( 2014-04-13 04:03:59 -0500 )edit

Well, with the default security group it's impossible to ping VM from host machine. Created a test VM and a security group, allowing all traffic in both directions. It still couldn't get address from DHCP (server received request however and still "No address available"), so I configured static IP and was able to ping it from host. So I guess it's not a security group misconfiguration.

Nikita Rogovoy gravatar imageNikita Rogovoy ( 2014-04-13 04:44:36 -0500 )edit

I would not expect entry like tcp 0 0 169.254.169.254:53 0.0.0.0:* LISTEN to show up on netns qdhcp-e1633986-6715-4b10-8fde-4c237e885ae1 Router doesn't have external network attached. Could you run:-

    $ ip netns exec  qrouter-52902b3a-357d-450a-803f-1b61446878ba  iptables -L -t nat | grep 169
    $ ip netns exec  qdhcp-e1633986-6715-4b10-8fde-4c237e885ae1   iptables -L -t nat | grep 169
dbaxps gravatar imagedbaxps ( 2014-04-13 05:27:25 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-14 09:15:38 -0500

dbaxps gravatar image

updated 2014-04-15 23:50:58 -0500

If you running AIO ( all in one) . It takes 10-15 min on Fedora 20 or CentOS 6.5.
$ packstack --allinone
That's it.
Only if Debian 7 is a case then "YES" it is a pain.
Devstack on Ubuntu 13.X I believe won't cause problems, I guess so ;)

edit flag offensive delete link more

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-13 02:43:05 -0500

Seen: 1,897 times

Last updated: Apr 15 '14