dhcp_agent.ini

dhcp agent 相关的配置信息。包括与 neutron 的同步状态的频率、超时、驱动信息等。

需要注意的是,这些 ini 文件内容多为注释掉的默认值的情况,是自动从代码中提取的。

  1. hcp.Dnsmasq
  2. # Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and
  3. # iproute2 package that supports namespaces).
  4. # use_namespaces = True
  5. # The DHCP server can assist with providing metadata support on isolated
  6. # networks. Setting this value to True will cause the DHCP server to append
  7. # specific host routes to the DHCP request. The metadata service will only
  8. # be activated when the subnet does not contain any router port. The guest
  9. # instance must be configured to request host routes via DHCP (Option 121).
  10. # enable_isolated_metadata = False
  11. # Allows for serving metadata requests coming from a dedicated metadata
  12. # access network whose cidr is 169.254.169.254/16 (or larger prefix), and
  13. # is connected to a Neutron router from which the VMs send metadata
  14. # request. In this case DHCP Option 121 will not be injected in VMs, as
  15. # they will be able to reach 169.254.169.254 through a router.
  16. # This option requires enable_isolated_metadata = True
  17. # enable_metadata_network = False
  18. # Number of threads to use during sync process. Should not exceed connection
  19. # pool size configured on server.
  20. # num_sync_threads = 4
  21. # Location to store DHCP server config files
  22. # dhcp_confs = $state_path/dhcp
  23. # Domain to use for building the hostnames
  24. # dhcp_domain = openstacklocal
  25. # Override the default dnsmasq settings with this file
  26. # dnsmasq_config_file =
  27. # Comma-separated list of DNS servers which will be used by dnsmasq
  28. # as forwarders.
  29. # dnsmasq_dns_servers =
  30. # Limit number of leases to prevent a denial-of-service.
  31. # dnsmasq_lease_max = 16777216
  32. # Location to DHCP lease relay UNIX domain socket
  33. # dhcp_lease_relay_socket = $state_path/dhcp/lease_relay
  34. # Use broadcast in DHCP replies
  35. # dhcp_broadcast_reply = False
  36. # Location of Metadata Proxy UNIX domain socket
  37. # metadata_proxy_socket = $state_path/metadata_proxy
  38. # dhcp_delete_namespaces, which is false by default, can be set to True if
  39. # namespaces can be deleted cleanly on the host running the dhcp agent.
  40. # Do not enable this until you understand the problem with the Linux iproute
  41. # utility mentioned in https://bugs.launchpad.net/neutron/+bug/1052535 and
  42. # you are sure that your version of iproute does not suffer from the problem.
  43. # If True, namespaces will be deleted when a dhcp server is disabled.
  44. # dhcp_delete_namespaces = False
  45. # Timeout for ovs-vsctl commands.
  46. # If the timeout expires, ovs commands will fail with ALARMCLOCK error.
  47. # ovs_vsctl_timeout = 10