Ask Your Question
0

In DVR integration, can DHCP agent running on controller node?

asked 2020-04-14 00:18:22 -0500

Deepak bagai gravatar image

Hi Team, I have installed layer-3 agent on compute node and while checking network agent list showing DHCP agent running in controller node. in http://openstack.org page i can see DHCP agent running on compute nodes only. Please confirm if need to install DHCP in compute also, as in DVR document in openstack page DHCP installation not mentioned ? compuet logs as below.

root@compute0:/home/user# openstack network agent list +--------------------------------------+--------------------+-------------+-------------------+-------+-------+---------------------------+ | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | +--------------------------------------+--------------------+-------------+-------------------+-------+-------+---------------------------+ | 0cc24304-1d9f-4cf9-b9b7-1724749b5d23 | Metadata agent | controller3 | None | :-) | UP | neutron-metadata-agent | | 12fc8a78-6405-47ae-8e64-d3e21d1d162b | DHCP agent | controller3 | nova | :-) | UP | neutron-dhcp-agent | | 651eb8c4-0ad3-4b4d-9687-ed1663c2bc21 | Metadata agent | compute0 | None | :-) | UP | neutron-metadata-agent | | 6e4d16e6-eac5-4f05-b53b-68adb0c533ee | L3 agent | compute0 | nova | :-) | UP | neutron-l3-agent | | 7c24610b-f31d-4589-86d6-18e21b785745 | Open vSwitch agent | compute0 | None | :-) | UP | neutron-openvswitch-agent | | e1f0e558-5938-4ba2-a372-5661ab103085 | L3 agent | controller3 | nova | :-) | UP | neutron-l3-agent | | fad6fd12-1830-4080-8905-a577fdb9c3ae | Open vSwitch agent | controller3 | None | :-) | UP | neutron-openvswitch-agent | +--------------------------------------+--------------------+-------------+-------------------+-------+-------+---------------------------+ root@compute0:/home/user#

http://openstack.org DVR document page log

openstack network agent list +--------------------------------------+--------------------+----------+-------------------+-------+-------+---------------------------+ | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | +--------------------------------------+--------------------+----------+-------------------+-------+-------+---------------------------+ | 05d980f2-a4fc-4815-91e7-a7f7e118c0db | L3 agent | compute1 | nova | True | UP | neutron-l3-agent | | 1236bbcb-e0ba-48a9-80fc-81202ca4fa51 | Metadata agent | compute2 | | True | UP | neutron-metadata-agent | | 2a2e9a90-51b8-4163-a7d6-3e199ba2374b | L3 agent | compute2 | nova | True | UP | neutron-l3-agent | | 457d6898-b373-4bb3-b41f-59345dcfb5c5 | Open vSwitch agent | compute2 | | True | UP | neutron-openvswitch-agent | | 513caa68-0391-4e53-a530-082e2c23e819 | Linux bridge agent | compute1 | | True | UP | neutron-linuxbridge-agent | | 71f15e84-bc47-4c2a-b9fb-317840b2d753 | DHCP agent | compute2 | nova | True | UP | neutron-dhcp-agent | | 8805b962-de95-4e40-bdc2-7a0add7521e8 | L3 agent | network1 | nova | True | UP | neutron-l3-agent | | a33cac5a-0266-48f6-9cac-4cef4f8b0358 | Open vSwitch agent | network1 | | True | UP | neutron-openvswitch-agent | | a6c69690-e7f7-4e56-9831-1282753e5007 | Metadata agent | compute1 | | True | UP | neutron-metadata-agent | | af11f22f-a9f4-404f-9fd8-cd7ad55c0f68 | DHCP agent | compute1 | nova | True | UP | neutron-dhcp-agent | | bcfc977b-ec0e-4ba9-be62-9489b4b0e6f1 | Open vSwitch agent | compute1 | | True | UP | neutron-openvswitch-agent | +--------------------------------------+----------

Refrence link :- https://docs.openstack.org/ocata/networking-guide/deploy-ovs-ha-dvr.html (https://docs.openstack.org/ocata/netw...)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2020-04-14 05:57:07 -0500

Deepak bagai gravatar image
  • In compute i am not getting any output of ip netns, please confirm if any other configuration required. in http://openstack.org page of DVR one of the step is Verify network operation to check ip netns ,On each compute node, verify creation of a second qdhcp namespace.

  • logs :-

    root@compute0:/home/user# ip netns root@compute0:/home/user# root@controller3:/home/user# ip netns snat-1a97ab5b-6456-4089-9380-b1b6d35daf09 (id: 6) fip-7e7f6a3f-21ae-4ca1-8fe7-338ba1ce65bb (id: 5) qrouter-1a97ab5b-6456-4089-9380-b1b6d35daf09 (id: 4) qdhcp-38bec638-4b9b-4e71-9c9e-0f473a7f6da3 (id: 1) qdhcp-b889704e-b7af-4439-8b04-e202f4b3d05d (id: 3) qrouter-2b6bdb6d-31b2-4f01-ac9b-59e284227a32 (id: 2) qdhcp-7e7f6a3f-21ae-4ca1-8fe7-338ba1ce65bb (id: 0)


On http://openstack.org page ip netns command on compute node showing qdhcp. # ip netns

  • qdhcp-8b868082-e312-4110-8627-298109d4401c qdhcp-8fbc13ca-cfe0-4b8a-993b-e33f37ba66d1

edit flag offensive delete link more

Comments

Please don't answer your question by writing another question. Instead, either update your question or ask a new one.

Also, please use formatting to make your question more readable.

Bernd Bausch gravatar imageBernd Bausch ( 2020-04-14 08:39:45 -0500 )edit
0

answered 2020-04-14 01:50:32 -0500

updated 2020-04-14 01:50:59 -0500

DHCP agents are separate from L3 agents. You can run DHCP agents anywhere without special configuration. When they are deployed on several nodes, for example controllers and compute nodes, you will have automatic high availability thanks to the design of the protocol, but it is not a requirement.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-04-14 00:18:22 -0500

Seen: 48 times

Last updated: Apr 14 '20