In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install openstack havana neutron. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Neutron dhcp agent is mainly responsible for providing dhcp services in openstack. In the H version of openstack, neutron dhcp agent supports multi host deployment.
016.jpg (93.66 KB, download times: 0)
Download the attachment and save it to the album
2014-4-6 upload at 17:37
Dhcp agent communicates with Neutron-Server through Message Queue. Three message queues are mainly used, and q-plugin is the queue used to send messages from agent to neutron-server.
When dhcp agent starts, it reports its own information to neutron-server, and neutron-server stores this information in DB so that it can be used later to create a network and bind the network to agent to make decisions.
The dhcp agent information is stored in the agents table of the neutron database, as in the following example:
| | c341d3c4-15a8-45bf-bffe-36cef5488928 | DHCP agent | neutron-dhcp-agent | dhcp_agent | ci91szcmp001.webex.com | 1 | 2014-02-11 08:30:03 | 2014-02-11 09:32:03 | 2014-02-20 05:44:42 | NULL | {"subnets": 2, "use_namespaces": true, "dhcp_lease_duration": 86400, "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq", "networks": 2, "ports": 26} |
| | 9bdcbaf8-43fa-44b1-a7df-ea1c86bd6cd1 | DHCP agent | neutron-dhcp-agent | dhcp_agent | ci91szcmp002.webex.com | 1 | 2014-02-11 08:26:34 | 2014-02-11 09:32:28 | 2014-02-20 05:44:39 | NULL | {"subnets": 2, "use_namespaces": true, "dhcp_lease_duration": 86400, "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq", "networks": 2, "ports": 26} |
When dhcp agent starts, it will also actively sync status, send messages through q-plugin queue to neutron-server to get all the network/subnet/port information bound to this agent, and configure the correct namespace,dhcp server interface and dnsmasq according to this information.
The agent and network binding relationships are stored in networkdhcpagentbindings:
Mysql > select * from networkdhcpagentbindings
+-+
| | network_id | dhcp_agent_id |
+-+
| | 218203a4-bc92-4c0e-a245-654e0e3ccefe | 9bdcbaf8-43fa-44b1-a7df-ea1c86bd6cd1 | |
| | 52aba766-fdba-4776-ac09-462bf6da40d5 | 9bdcbaf8-43fa-44b1-a7df-ea1c86bd6cd1 | |
| | 218203a4-bc92-4c0e-a245-654e0e3ccefe | c341d3c4-15a8-45bf-bffe-36cef5488928 | |
| | 52aba766-fdba-4776-ac09-462bf6da40d5 | c341d3c4-15a8-45bf-bffe-36cef5488928 | |
+-+
4 rows in set (0.00 sec)
The network, subnet and port information are stored in the networks,subnets and ports tables of the database, respectively. Dhcp agent needs to get this information to generate configuration information for dnsmasq and store it in the / var/lib/neutron/dhcp/ directory.
When neutron-server needs to add / modify / delete dhcp-related configurations, messages will be sent to the queue dhcp_agent.hostname or dhcp_agent_fanout_id,dhcp agent will be configured for the corresponding dhcp after receiving the message.
Thank you for reading! This is the end of the article on "how to install openstack havana neutron". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.