Migrate DHCP agents from compute hosts to network controller nodes
Environment
- Red Hat OpenStack 6.0 (RHOS)
Issue
-
The DHCP and metadata agents were installed on the compute nodes instead of the network controllers
-
What is the procedure to migrate the agents to the network controller nodes?
Resolution
- Copy and paste the
/etc/neutron/plugin.ini
file from the compute host to the controller hosts - Copy the /etc/neutron/metadata_agent.ini` file from the compute host to the controller hosts
- Copy the
/etc/neutron/dhcp_agent.ini
file from the compute host to the controller hosts - Copy the
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
file from the compute host to the controller hosts -
In
/etc/neutron/dhcp_agent.ini
add :enable_isolated_metadata = True enable_metadata_network = True
-
In `/etc/neutron/metadata_agent.ini add:
metadata_workers = 32
-
Stop neutron-dhcp-agent on all computes
- Stop neutron-metadata-agent on all computes
-
Delete all neutron-dhcp-agents for all networks
neutron dhcp-agent-list-hosting-net 4dc325ed-f141-41d9-8d0a-4f513defacad neutron dhcp-agent-network-remove 1beb99ef-e6f6-4083-8fb6-661f2f61c565 4dc325ed-f141-41d9-8d0a-4f513defacad
-
Start neutron-dhcp-agent on the controller
- Start neutron-metadata-agent on the controller
- Restart openvswitch service everywhere
- Restart neutron-openvswitch-agent service everywhere
- Delete all qdhcp-* namespace on the compute nodes
Root Cause
- Neutron DHCP agent and metadata agent were originally configured on the compute hosts
Diagnostic Steps
-
Are neutron-dhcp-agent and neutron-metadata-agent running on the compute hosts ?
neutron agent-list
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments