Migrate DHCP agents from compute hosts to network controller nodes

Solution In Progress - Updated -

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

  1. Copy and paste the /etc/neutron/plugin.ini file from the compute host to the controller hosts
  2. Copy the /etc/neutron/metadata_agent.ini` file from the compute host to the controller hosts
  3. Copy the /etc/neutron/dhcp_agent.ini file from the compute host to the controller hosts
  4. Copy the /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini file from the compute host to the controller hosts
  5. In /etc/neutron/dhcp_agent.ini add :

    enable_isolated_metadata = True
    enable_metadata_network = True
    
  6. In `/etc/neutron/metadata_agent.ini add:

    metadata_workers = 32
    
  7. Stop neutron-dhcp-agent on all computes

  8. Stop neutron-metadata-agent on all computes
  9. 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
    
  10. Start neutron-dhcp-agent on the controller

  11. Start neutron-metadata-agent on the controller
  12. Restart openvswitch service everywhere
  13. Restart neutron-openvswitch-agent service everywhere
  14. 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

  1. 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