Chapter 4. Configuring the overcloud
Now that you have configured the undercloud, you can configure the remaining overcloud leaf networks. You accomplish this with a series of configuration files. Afterwards, you deploy the overcloud and the resulting deployment has multiple sets of networks with routing available.
4.1. Creating a network data file Copy linkLink copied to clipboard!
To define the leaf networks, you create a network data file, which contain a YAML formatted list of each composable network and its attributes. The default network data is located on the undercloud at /usr/share/openstack-tripleo-heat-templates/network_data.yaml
.
Procedure
Create a new
network_data_spine_leaf.yaml
file in yourstack
user’s local directory. Use the defaultnetwork_data
file as a basis:cp /usr/share/openstack-tripleo-heat-templates/network_data.yaml /home/stack/network_data_spine_leaf.yaml
$ cp /usr/share/openstack-tripleo-heat-templates/network_data.yaml /home/stack/network_data_spine_leaf.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the
network_data_spine_leaf.yaml
file, create a YAML list to define each network and leaf network as a composable network item. For example, the Internal API network and its leaf networks are defined using the following syntax:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
You do not define the Control Plane networks in the network data file since the undercloud has already created these networks. However, you need to manually set the parameters so that the overcloud can configure its NICs accordingly.
Define vip: true
for the networks that contain the Controller-based services. In this example, InternalApi
contains these services.
See Appendix A, Example network_data file for a full example with all composable networks.
4.2. Creating a roles data file Copy linkLink copied to clipboard!
This section demonstrates how to define each composable role for each leaf and attach the composable networks to each respective role.
Procedure
Create a custom
roles
director in yourstack
user’s local directory:mkdir ~/roles
$ mkdir ~/roles
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the default Controller, Compute, and Ceph Storage roles from the director’s core template collection to the
~/roles
directory. Rename the files for Leaf 1:cp /usr/share/openstack-tripleo-heat-templates/roles/Controller.yaml ~/roles/Controller.yaml cp /usr/share/openstack-tripleo-heat-templates/roles/Compute.yaml ~/roles/Compute1.yaml cp /usr/share/openstack-tripleo-heat-templates/roles/CephStorage.yaml ~/roles/CephStorage1.yaml
$ cp /usr/share/openstack-tripleo-heat-templates/roles/Controller.yaml ~/roles/Controller.yaml $ cp /usr/share/openstack-tripleo-heat-templates/roles/Compute.yaml ~/roles/Compute1.yaml $ cp /usr/share/openstack-tripleo-heat-templates/roles/CephStorage.yaml ~/roles/CephStorage1.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
Compute1.yaml
file:vi ~/roles/Compute1.yaml
$ vi ~/roles/Compute1.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
name
,networks
, andHostnameFormatDefault
parameters in this file so that they align with the Leaf 1 specific parameters. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Save this file.
Edit the
CephStorage1.yaml
file:vi ~/roles/CephStorage1.yaml
$ vi ~/roles/CephStorage1.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
name
andnetworks
parameters in this file so that they align with the Leaf 1 specific parameters. In addition, add theHostnameFormatDefault
parameter and define the Leaf 1 hostname for our Ceph Storage nodes. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Save this file.
Copy the Leaf 1 Compute and Ceph Storage files as a basis for your Leaf 2 and Leaf 3 files:
cp ~/roles/Compute1.yaml ~/roles/Compute2.yaml cp ~/roles/Compute1.yaml ~/roles/Compute3.yaml cp ~/roles/CephStorage1.yaml ~/roles/CephStorage2.yaml cp ~/roles/CephStorage1.yaml ~/roles/CephStorage3.yaml
$ cp ~/roles/Compute1.yaml ~/roles/Compute2.yaml $ cp ~/roles/Compute1.yaml ~/roles/Compute3.yaml $ cp ~/roles/CephStorage1.yaml ~/roles/CephStorage2.yaml $ cp ~/roles/CephStorage1.yaml ~/roles/CephStorage3.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
name
,networks
, andHostnameFormatDefault
parameters in the Leaf 2 and Leaf 3 files so that they align with the respective Leaf network parameters. For example, the parameters in the Leaf 2 Compute file have the following values:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Leaf 2 Ceph Storage parameters have the following values:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow When your roles are ready, generate the full roles data file using the following command:
openstack overcloud roles generate --roles-path ~/roles -o roles_data_spine_leaf.yaml Controller Compute1 Compute2 Compute3 CephStorage1 CephStorage2 CephStorage3
$ openstack overcloud roles generate --roles-path ~/roles -o roles_data_spine_leaf.yaml Controller Compute1 Compute2 Compute3 CephStorage1 CephStorage2 CephStorage3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This creates a full
roles_data_spine_leaf.yaml
file that includes all the custom roles for each respective leaf network.
See Appendix C, Example roles_data file for a full example of this file.
Each role has its own NIC configuration. Before configuring the spine-leaf configuration, you need to create a base set of NIC templates to suit your current NIC configuration.
4.3. Creating a custom NIC Configuration Copy linkLink copied to clipboard!
Each role requires its own NIC configuration. Create a copy of the base set of NIC templates and modify them to suit your current NIC configuration.
Procedure
Change to the core Heat template directory:
cd /usr/share/openstack-tripleo-heat-templates
$ cd /usr/share/openstack-tripleo-heat-templates
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Render the Jinja2 templates using the
tools/process-templates.py
script, your customnetwork_data
file, and customroles_data
file:tools/process-templates.py -n /home/stack/network_data_spine_leaf.yaml \ -r /home/stack/roles_data_spine_leaf.yaml \ -o /home/stack/openstack-tripleo-heat-templates-spine-leaf
$ tools/process-templates.py -n /home/stack/network_data_spine_leaf.yaml \ -r /home/stack/roles_data_spine_leaf.yaml \ -o /home/stack/openstack-tripleo-heat-templates-spine-leaf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change to the home directory:
cd /home/stack
$ cd /home/stack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the content from one of the default NIC templates to use as a basis for your spine-leaf templates. For example, copy the
single-nic-vlans
:cp -r openstack-tripleo-heat-templates-spine-leaf/network/config/single-nic-vlans/* \ /home/stack/templates/spine-leaf-nics/.
$ cp -r openstack-tripleo-heat-templates-spine-leaf/network/config/single-nic-vlans/* \ /home/stack/templates/spine-leaf-nics/.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the rendered template directory:
rm -rf openstack-tripleo-heat-templates-spine-leaf
$ rm -rf openstack-tripleo-heat-templates-spine-leaf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Resources
- See "Custom Network Interface Templates" in the Advanced Overcloud Customization guide for more information on customizing your NIC templates.
4.4. Editing custom Controller NIC configuration Copy linkLink copied to clipboard!
The rendered template contains most of the content that is necessary to suit the spine-leaf configuration. However, some additional configuration changes are required. Follow this procedure to modify the YAML structure for Controller nodes on Leaf0.
Procedure
Change to your custom NIC directory:
cd ~/templates/spine-leaf-nics/
$ cd ~/templates/spine-leaf-nics/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit the template for
controller0.yaml
. Scroll to the
ControlPlaneSubnetCidr
andControlPlaneDefaultRoute
parameters in theparameters
section. These parameters resemble the following snippet:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Modify these parameters to suit Leaf0:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Scroll to the
EC2MetadataIp
parameter in theparameters
section. This parameter resembles the following snippet:EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Modify this parameter to suit Leaf0:
Leaf0EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Leaf0EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Scroll to the network configuration section. This section looks like the following example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the location of the script to the absolute path:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the
network_config
section, define the control plane / provisioning interface. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note that the parameters used in this case are specific to Leaf0:
ControlPlane0SubnetCidr
,Leaf0EC2MetadataIp
, andControlPlane0DefaultRoute
. Also note the use of the CIDR for Leaf0 on the provisioning network (192.168.10.0/24), which is used as a route.Each VLAN in the
members
section contains the relevant Leaf0 parameters. For example, the Storage network VLAN information should appear similar to the following snippet:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a section to define parameters for routing. This includes the supernet route (
StorageSupernet
in this case) and the leaf default route (Storage0InterfaceDefaultRoute
in this case):Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the routes for the VLAN structure for the following Controller networks:
Storage
,StorageMgmt
,InternalApi
, andTenant
.- Save this file.
4.5. Creating custom Compute NIC configurations Copy linkLink copied to clipboard!
This procedure creates a YAML structure for Compute nodes on Leaf0, Leaf1, and Leaf2.
Procedure
Change to your custom NIC directory:
cd ~/templates/spine-leaf-nics/
$ cd ~/templates/spine-leaf-nics/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit the template for
compute0.yaml
. Scroll to the
ControlPlaneSubnetCidr
andControlPlaneDefaultRoute
parameters in theparameters
section. These parameters resemble the following snippet:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Modify these parameters to suit Leaf0:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Scroll to the
EC2MetadataIp
parameter in theparameters
section. This parameter resembles the following snippet:EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Modify this parameter to suit Leaf0:
Leaf0EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Leaf0EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Scroll to the network configuration section. This section resembles the following snippet:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the location of the script to the absolute path:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the
network_config
section, define the control plane / provisioning interface. For exampleCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that the parameters used in this case are specific to Leaf0:
ControlPlane0SubnetCidr
,Leaf0EC2MetadataIp
, andControlPlane0DefaultRoute
. Also note the use of the CIDR for Leaf0 on the provisioning network (192.168.10.0/24), which is used as a route.Each VLAN in the
members
section should contain the relevant Leaf0 parameters. For example, the Storage network VLAN information should appear similar to the following snippet:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a section to define parameters for routing. This includes the supernet route (
StorageSupernet
in this case) and the leaf default route (Storage0InterfaceDefaultRoute
in this case):Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a VLAN structure for the following Controller networks:
Storage
,InternalApi
, andTenant
.- Save this file.
Edit
compute1.yaml
and perform the same steps. The following is the list of changes:-
Change
ControlPlaneSubnetCidr
toControlPlane1SubnetCidr
. -
Change
ControlPlaneDefaultRoute
toControlPlane1DefaultRoute
. -
Change
EC2MetadataIp
toLeaf1EC2MetadataIp
. -
Change the network configuration script from
../../scripts/run-os-net-config.sh
to/usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
. - Modifying the control plane / provisioning interface to use the Leaf1 parameters.
- Modifying each VLAN to include the Leaf1 routes.
Save this file when complete.
-
Change
Edit
compute2.yaml
and perform the same steps. The following is the list of changes:-
Change
ControlPlaneSubnetCidr
toControlPlane2SubnetCidr
. -
Change
ControlPlaneDefaultRoute
toControlPlane2DefaultRoute
. -
Change
EC2MetadataIp
toLeaf2EC2MetadataIp
. -
Change the network configuration script from
../../scripts/run-os-net-config.sh
to/usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
. - Modify the control plane / provisioning interface to use the Leaf2 parameters.
- Modifying each VLAN to include the Leaf2 routes.
Save this file when complete.
-
Change
4.6. Creating custom Ceph Storage NIC configurations Copy linkLink copied to clipboard!
This procedure creates a YAML structure for Ceph Storage nodes on Leaf0, Leaf1, and Leaf2.
Procedure
Change to your custom NIC directory:
cd ~/templates/spine-leaf-nics/
$ cd ~/templates/spine-leaf-nics/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Scroll to the
ControlPlaneSubnetCidr
andControlPlaneDefaultRoute
parameters in theparameters
section. These parameters resemble the following snippet:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Modify these parameters to suit Leaf0:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Scroll to the
EC2MetadataIp
parameter in theparameters
section. This parameter resembles the following snippet:EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Modify this parameter to suit Leaf0:
Leaf0EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Leaf0EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Scroll to the network configuration section. This section resembles the following snippet:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the location of the script to the absolute path:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the
network_config
section, define the control plane / provisioning interface. For exampleCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that the parameters used in this case are specific to Leaf0:
ControlPlane0SubnetCidr
,Leaf0EC2MetadataIp
, andControlPlane0DefaultRoute
. Also note the use of the CIDR for Leaf0 on the provisioning network (192.168.10.0/24), which is used as a route.Each VLAN in the
members
section contains the relevant Leaf0 parameters.For example, the Storage network VLAN information should appear similar to the following snippet:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a section to define parameters for routing. This includes the supernet route (
StorageSupernet
in this case) and the leaf default route (Storage0InterfaceDefaultRoute
in this case):Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add a VLAN structure for the following Controller networks:
Storage
,StorageMgmt
.- Save this file.
Edit
ceph-storage1.yaml
and perform the same steps. The following is the list of changes:-
Change
ControlPlaneSubnetCidr
toControlPlane1SubnetCidr
. -
Change
ControlPlaneDefaultRoute
toControlPlane1DefaultRoute
. -
Change
EC2MetadataIp
toLeaf1EC2MetadataIp
. -
Change the network configuration script from
../../scripts/run-os-net-config.sh
to/usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
. - Modify the control plane / provisioning interface to use the Leaf1 parameters.
- Modify each VLAN to include the Leaf1 routes.
Save this file when complete.
-
Change
Edit
ceph-storage2.yaml
and perform the same steps. The following is the list of changes:-
Change
ControlPlaneSubnetCidr
toControlPlane2SubnetCidr
. -
Change
ControlPlaneDefaultRoute
toControlPlane2DefaultRoute
. -
Change
EC2MetadataIp
toLeaf2EC2MetadataIp
. -
Change the network configuration script from
../../scripts/run-os-net-config.sh
to/usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
. - Modify the control plane / provisioning interface to use the Leaf2 parameters.
- Modify each VLAN to include the Leaf2 routes.
Save this file when complete.
-
Change
4.7. Creating a network environment file Copy linkLink copied to clipboard!
This procedure creates a basic network environment file for use later.
Procedure
-
Create a
network-environment.yaml
file in your stack user’stemplates
directory. Add the following sections to the environment file:
resource_registry: parameter_defaults:
resource_registry: parameter_defaults:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note the following:
-
The
resource_registry
will map networking resources to their respective NIC templates. -
The
parameter_defaults
will define additional networking parameters relevant to your configuration.
-
The
The next couple of sections add details to your network environment file to configure certain aspects of the spine leaf architecture. Once complete, you include this file with your openstack overcloud deploy
command.
4.8. Mapping network resources to NIC templates Copy linkLink copied to clipboard!
This procedure maps the relevant resources for network configurations to their respective NIC templates.
Procedure
-
Edit your
network-environment.yaml
file. Add the resource mappings to your
resource_registry
. The resource names take the following format:OS::TripleO::[ROLE]::Net::SoftwareConfig: [NIC TEMPLATE]
OS::TripleO::[ROLE]::Net::SoftwareConfig: [NIC TEMPLATE]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For this guide’s scenario, the
resource_registry
includes the following resource mappings:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Save the
network-environment.yaml
file.
4.9. Spine leaf routing Copy linkLink copied to clipboard!
Each role requires routes on each isolated network, pointing to the other subnets used for the same function. So when a Compute1 node contacts a controller on the InternalApi
VIP, the traffic should target the InternalApi1
interface through the InternalApi1
gateway. As a result, the return traffic from the controller to the InternalApi1
network should go through the InternalApi
network gateway.
The supernet routes apply to all isolated networks on each role to avoid sending traffic through the default gateway, which by default is the Control Plane network on non-controllers, and the External network on the controllers.
You need to configure these routes on the isolated networks because Red Hat Enterprise Linux by default implements strict reverse path filtering on inbound traffic. If an API is listening on the Internal API interface and a request comes in to that API, it only accepts the request if the return path route is on the Internal API interface. If the server is listening on the Internal API network but the return path to the client is through the Control Plane, then the server drops the requests due to the reverse path filter.
This following diagram shows an attempt to route traffic through the control plane, which will not succeed. The return route from the router to the controller node does not match the interface where the VIP is listening, so the packet is dropped. 192.168.24.0/24
is directly connected to the controller, so it is considered local to the Control Plane network.
Figure 4.1. Routed traffic through Control Plane
For comparison, this diagram shows routing running through the Internal API networks:
Figure 4.2. Routed traffic through Internal API
4.10. Assigning routes for composable networks Copy linkLink copied to clipboard!
This procedure defines the routing for the leaf networks.
Procedure
-
Edit your
network-environment.yaml
file. Add the supernet route parameters to the
parameter_defaults
section. Each isolated network should have a supernet route applied. For example:parameter_defaults: StorageSupernet: 172.16.0.0/16 StorageMgmtSupernet: 172.17.0.0/16 InternalApiSupernet: 172.18.0.0/16 TenantSupernet: 172.19.0.0/16
parameter_defaults: StorageSupernet: 172.16.0.0/16 StorageMgmtSupernet: 172.17.0.0/16 InternalApiSupernet: 172.18.0.0/16 TenantSupernet: 172.19.0.0/16
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe network interface templates should contain the supernet parameters for each network. For example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add
ServiceNetMap HostnameResolveNetwork
parameters to theparameter_defaults
section to provide each node in a leaf with a list of hostnames to use to resolve other leaf nodes. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Compute nodes use the leaf’s Internal API network and the Ceph Storage nodes use the leaf’s Storage network.
Add the following
ExtraConfig
settings to theparameter_defaults
section to address routing for specific components on Compute and Ceph Storage nodes:Expand Table 4.1. Compute ExtraConfig parameters Parameter Set to this value nova::compute::libvirt::vncserver_listen
IP address that the VNC servers listen to.
nova::compute::vncserver_proxyclient_address
IP address of the server running the VNC proxy client.
neutron::agents::ml2::ovs::local_ip
IP address for OpenStack Networking (neutron) tunnel endpoints.
cold_migration_ssh_inbound_addr
Local IP address for cold migration SSH connections.
live_migration_ssh_inbound_addr
Local IP address for live migration SSH connections.
nova::migration::libvirt::live_migration_inbound_addr
IP address used for live migration traffic.
NoteIf using SSL/TLS, prepend the network name with "fqdn_" to ensure the certificate is checked against the FQDN.
nova::my_ip
IP address of the Compute (nova) service on the host.
tripleo::profile::base::database::mysql::client::mysql_client_bind_address
IP address of the database client. In this case, it is the
mysql
client on the Compute nodes.Expand Table 4.2. CephAnsibleExtraConfig parameters Parameter Set to this value public_network
Comma-separated list of all the storage networks that contain Ceph nodes (one per leaf), for example, 172.16.0.0/24,172.16.1.0/24,172.16.2.0/24
cluster_network
Comma-separated list of the storage management networks that contain Ceph nodes (one per leaf), for example, 172.17.0.0/24,172.17.1.0/24,172.17.2.0/24
For example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.11. Setting control plane parameters Copy linkLink copied to clipboard!
You usually define networking details for isolated spine-leaf networks using a network_data
file. The exception is the control plane network, which the undercloud created. However, the overcloud requires access to the control plane for each leaf. This requires some additional parameters, which you define in your network-environment.yaml
file. For example, the following snippet is from an example NIC template for the Controller role on Leaf0
In this instance, we need to define the IP, subnet, metadata IP, and default route for the respective Control Plane network on Leaf 0.
Procedure
-
Edit your
network-environment.yaml
file. In the
parameter_defaults
section:Add the mapping to the main control plane subnet:
parameter_defaults: ... ControlPlaneSubnet: leaf0
parameter_defaults: ... ControlPlaneSubnet: leaf0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the control plane subnet mapping for each spine-leaf network:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the control plane routes for each leaf:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The default route parameters are typically the IP address set for the
gateway
of each provisioning subnet. Refer to yourundercloud.conf
file for this information.Add the parameters for the EC2 metadata IPs:
parameter_defaults: ... Leaf0EC2MetadataIp: 192.168.10.1 Leaf1EC2MetadataIp: 192.168.11.1 Leaf2EC2MetadataIp: 192.168.12.1
parameter_defaults: ... Leaf0EC2MetadataIp: 192.168.10.1 Leaf1EC2MetadataIp: 192.168.11.1 Leaf2EC2MetadataIp: 192.168.12.1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow These act as routes through the control plane for the EC2 metadata service (169.254.169.254/32) and you should typically set these to the respective
gateway
for each leaf on the provisioning network.
-
Save the
network-environment.yaml
file.
4.12. Deploying a spine-leaf enabled overcloud Copy linkLink copied to clipboard!
All our files are now ready for our deployment. This section provides a review of each file and the deployment command:
Procedure
Review the
/home/stack/template/network_data_spine_leaf.yaml
file and ensure it contains each network for each leaf.NoteThere is currently no validation performed for the network subnet and
allocation_pools
values. Be certain you have defined these consistently and there is no conflict with existing networks.-
Review the NIC templates contained in
~/templates/spine-leaf-nics/
and ensure the interfaces for each role on each leaf are correctly defined. -
Review the
network-environment.yaml
environment file and ensure it contains all custom parameters that fall outside control of the network data file. This includes routes, control plane parameters, and aresource_registry
section that references the custom NIC templates for each role. -
Review the
/home/stack/templates/roles_data_spine_leaf.yaml
values and ensure you have defined a role for each leaf. - Check the `/home/stack/templates/nodes_data.yaml file and ensure all roles have an assigned flavor and a node count. Check also that all nodes for each leaf are correctly tagged.
Run the
openstack overcloud deploy
command to apply the spine leaf configuration. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
The
network-isolation.yaml
is the rendered name of the Jinja2 file in the same location (network-isolation.j2.yaml
). Include this file to ensure the director isolates each networks to its correct leaf. This ensures the networks are created dynamically during the overcloud creation process. -
Include the
network-environment.yaml
file after thenetwork-isolation.yaml
and other network-based environment files. This ensures any parameters and resources defined withinnetwork-environment.yaml
override the same parameters and resources previously defined in other environment files. - Add any additional environment files. For example, an environment file with your container image locations or Ceph cluster configuration.
-
The
- Wait until the spine-leaf enabled overcloud deploys.