Ask Your Question
1

neutron dhcp issues

asked 2014-09-15 04:06:21 -0500

Qiang gravatar image

updated 2014-09-15 11:41:11 -0500

lafada gravatar image

We have installed Openstack with Neutron on Ubuntu 14.04, including 3 nodes: Controller,compute,network. It's working when I created the first 3 subnet; however, it is not working for the 4th, 5th subnet:


root@network:/var/log/neutron# neutron net-list
+--------------------------------------+-----------+-----------------------------------------------------+
| id                                   | name      | subnets                                             |
+--------------------------------------+-----------+-----------------------------------------------------+
| 064d9cc0-d760-45f0-88d5-a619b993ceea | demo-net  | 617b58b0-a417-4ced-a99c-15f6561d4c86 192.168.1.0/24 |
| 10ac84fa-2a2d-4f22-9f14-1e4296ff1de2 | zq-net    | af2e059e-513c-4da7-85c3-d5037bf2e8da 192.168.3.0/24 |
| 6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2 | ma-net | 68b23179-6bfe-4aae-af76-416813091fb4 192.168.2.0/24 |
| 88548550-bcda-43a7-a754-45a1b25467f5 | ext-net   | a8cf1ad5-7d28-478d-824f-24bd47f9bb2c 10.11.90.0/24  |
| 8a4ed74a-80fd-451b-9978-e7f6114342e8 | mtt-net   | 01023532-6254-48dc-af58-50a7d0cf445c 172.16.10.0/24 |
| b10fbab6-19fc-44ab-9754-13e48ed982f8 | ts-net   | 1ad65cbd-5680-4e50-b901-0de5fd4d92a9 192.168.4.0/24 |
+--------------

root@network:/var/log/neutron# ip netns
qrouter-5d1bf816-0faf-41c9-93cf-f0d55fade535
qrouter-83f00a66-c05e-4d99-b61f-08bc4fdbd52a
qrouter-bc4766c4-2e6a-47d9-920f-a8064d9dc992
qrouter-febfa164-1125-431d-a281-cd94eda3bdb6
qdhcp-6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2
qdhcp-10ac84fa-2a2d-4f22-9f14-1e4296ff1de2
qdhcp-064d9cc0-d760-45f0-88d5-a619b993ceea

root@network:/var/log/neutron# ps -ef|grep dns
libvirt+  2799     1  0 Aug18 ?        00:00:03 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf
root      4453  1327  0 16:56 pts/0    00:00:00 grep --color=auto dns
nobody   16043     1  0 Sep04 ?        00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tap657a6777-2b --except-interface=lo --pid-file=/var/lib/neutron/dhcp/10ac84fa-2a2d-4f22-9f14-1e4296ff1de2/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/10ac84fa-2a2d-4f22-9f14-1e4296ff1de2/host --addn-hosts=/var/lib/neutron/dhcp/10ac84fa-2a2d-4f22-9f14-1e4296ff1de2/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/10ac84fa-2a2d-4f22-9f14-1e4296ff1de2/opts --leasefile-ro --dhcp-range=set:tag0,192.168.3.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
nobody   16046     1  0 Sep04 ?        00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tapec09b16c-71 --except-interface=lo --pid-file=/var/lib/neutron/dhcp/6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2/host --addn-hosts=/var/lib/neutron/dhcp/6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2/opts --leasefile-ro --dhcp-range=set:tag0,192.168.2.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
nobody   16048     1  0 Sep04 ?        00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tap5e5b3d3a-a2 --except-interface=lo --pid-file=/var/lib/neutron/dhcp/064d9cc0-d760-45f0-88d5-a619b993ceea/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/064d9cc0-d760-45f0-88d5-a619b993ceea/host --addn-hosts=/var/lib/neutron/dhcp/064d9cc0-d760-45f0-88d5-a619b993ceea/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/064d9cc0-d760-45f0-88d5-a619b993ceea/opts --leasefile-ro --dhcp-range=set:tag0,192.168.1.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
root@network:/var/log/neutron#

Why we can't see the following when we executed: ip netns: qdhcp-8a4ed74a-80fd-451b-9978-e7f6114342e8 qdhcp-b10fbab6-19fc-44ab-9754-13e48ed982f8 why we can see the first 3 subnet qdhcp-uuid ?


Why we can't see the dnsmasq for the subnet 192.168.4.0/24 and 192.168.4.0/24 ? Why we can see the dnsmasq for the 3 first subnets ?

We tried to reboot the neutron service, it didn't help. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-15 04:37:43 -0500

Qiang gravatar image

updated 2014-09-15 11:55:14 -0500

larsks gravatar image

I think I have found the solution:

root@network:/etc/neutron# neutron dhcp-agent-list-hosting-net demo-net
+--------------------------------------+------------+----------------+-------+
| id                                   | host       | admin_state_up | alive |
+--------------------------------------+------------+----------------+-------+
| 675c5d91-1250-4982-8ce4-b346443ba827 | controller | True           | :-)   |
| d6e9c48b-b3e3-419d-8d3d-3fde3cb2cf5d | network    | True           | :-)   |
+--------------------------------------+------------+----------------+-------+

root@network:/etc/neutron# neutron net-list-on-dhcp-agent d6e9c48b-b3e3-419d-8d3d-3fde3cb2cf5d
+--------------------------------------+-----------+-----------------------------------------------------+
| id                                   | name      | subnets                                             |
+--------------------------------------+-----------+-----------------------------------------------------+
| 064d9cc0-d760-45f0-88d5-a619b993ceea | demo-net  | 617b58b0-a417-4ced-a99c-15f6561d4c86 192.168.1.0/24 |
| 10ac84fa-2a2d-4f22-9f14-1e4296ff1de2 | zq-net    | af2e059e-513c-4da7-85c3-d5037bf2e8da 192.168.3.0/24 |
| 6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2 | sigma-net | 68b23179-6bfe-4aae-af76-416813091fb4 192.168.2.0/24 |
+--------------------------------------+-----------+--------------------------------------------

root@network:/etc/neutron# neutron agent-show d6e9c48b-b3e3-419d-8d3d-3fde3cb2cf5d
+---------------------+----------------------------------------------------------+
| Field               | Value                                                    |
+---------------------+----------------------------------------------------------+
| admin_state_up      | True                                                     |
| agent_type          | DHCP agent                                               |
| alive               | True                                                     |
| binary              | neutron-dhcp-agent                                       |
| configurations      | {                                                        |
|                     |      "subnets": 3,                                       |
|                     |      "use_namespaces": true,                             |
|                     |      "dhcp_lease_duration": 86400,                       |
|                     |      "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq",  |
|                     |      "networks": 3,                                      |
|                     |      "ports": 13                                         |
|                     | }                                                        |
| created_at          | 2014-07-06 02:33:14                                      |
| description         |                                                          |
| heartbeat_timestamp | 2014-09-15 09:23:51                                      |
| host                | network                                                  |
| id                  | d6e9c48b-b3e3-419d-8d3d-3fde3cb2cf5d                     |
| started_at          | 2014-09-04 02:45:57                                      |
| topic               | dhcp_agent                                               |
+---------------------+----------------------------------------------------------+

root@network:
root@network:/etc/neutron# neutron dhcp-agent-network-add d6e9c48b-b3e3-419d-8d3d-3fde3cb2cf5d mtt-net
Added network mtt-net to DHCP agent
root@network:/etc/neutron#

root@network:/etc/neutron# ip netns
qdhcp-8a4ed74a-80fd-451b-9978-e7f6114342e8
qrouter-5d1bf816-0faf-41c9-93cf-f0d55fade535
qrouter-83f00a66-c05e-4d99-b61f-08bc4fdbd52a
qrouter-bc4766c4-2e6a-47d9-920f-a8064d9dc992
qrouter-febfa164-1125-431d-a281-cd94eda3bdb6
qdhcp-6b98c5f8-2bbf-4fbc-818c-6b73a825bbc2
qdhcp-10ac84fa-2a2d-4f22-9f14-1e4296ff1de2
qdhcp-064d9cc0-d760-45f0-88d5-a619b993ceea
root@network:

Why need to manually execute the command: neutron dhcp-agent-network-add d6e9c48b-b3e3-419d-8d3d-3fde3cb2cf5d mtt-net ????

Why can't create it automatically ? Thanks.

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-09-15 04:06:21 -0500

Seen: 843 times

Last updated: Sep 15 '14