Commit 4ec3074b authored by David Johnson's avatar David Johnson

Add a parameter (default on) for phys hosts to use Designate as resolver.

parent 6ad83539
......@@ -96,7 +96,11 @@ pc.defineParameter("vxlanDataLanCount","Number of VXLAN Data Networks",
longDescription="To use VXLAN networks, you must have at least one flat data network; all tunnels are implemented using the first flat network!",
"Use Designate as physical host nameserver",
longDescription="If using OpenStack Newton or greater, use the Designate nameserver as the primary nameserver for each physical machine. This will allow you to resolve virtual IPs for instances from the physical machines.",
pc.defineParameter("managementLanType","Management Network Type",
advanced=True,longDescription="This profile creates a classic OpenStack setup, where services communicate not over the public network, but over an isolated private management network. By default, that management network is implemented as a VPN hosted on the public network; this allows us to not use up a physical experiment network interface just to host the management network, and leaves that unused interface available for OpenStack data networks. However, if you are using multiplexed Flat networks, you can also make this a Flat network, and it will be multiplexed along with your other flat networks---isolated by VLAN tags. These VLAN tags are internal to CloudLab, and are invisible to OpenStack.")
......@@ -922,6 +926,9 @@ class Parameters(RSpec.Resource):
param = ET.SubElement(el,paramXML)
param.text = "ML2PLUGIN=%s" % (str(params.ml2plugin))
param = ET.SubElement(el,paramXML)
param.text = "USE_DESIGNATE_AS_RESOLVER=%d" % (int(bool(params.useDesignateAsResolver)))
param = ET.SubElement(el,paramXML)
param.text = "EXTRAIMAGEURLS='%s'" % (str(params.extraImageURLs))
......@@ -4026,6 +4026,13 @@ EOF
service_restart neutron-server
if [ "${USE_DESIGNATE_AS_RESOLVER}" = "1" ]; then
outerdomain=`cat /var/emulab/boot/mydomain`
echo nameserver >/etc/resolv.conf
echo nameserver $mynameserver >/etc/resolv.conf
echo search $mydomain $outerdomain
logtend "designate"
......@@ -112,6 +112,11 @@ ML2PLUGIN="openvswitch"
# If set to 1, and if OSRELEASE >= OSNEWTON, the physical machines will
# use the MGMTIP as the primary DNS server (in preference to the real
# control net DNS server). The local domain will also be searched prior
# to the cluster's domain.
# The input OpenStack release, if any, from profile params.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment