Hung-Wei Chiu | 77c969e | 2020-10-23 18:13:07 +0000 | [diff] [blame] | 1 | .. |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Charles Chan | 4a10722 | 2020-10-30 17:23:48 -0700 | [diff] [blame] | 5 | Hardware Installation |
| 6 | ===================== |
Hung-Wei Chiu | 77c969e | 2020-10-23 18:13:07 +0000 | [diff] [blame] | 7 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 8 | Once the hardware has been ordered, the installation can be planned and |
| 9 | implemented. This document describes the installation of the servers and |
| 10 | software. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 11 | |
| 12 | Installation of the fabric switch hardware is covered in :ref:`OS Installation |
| 13 | - Switches <switch-install>`. |
| 14 | |
| 15 | Installation of the radio hardware is covered in :ref:`eNB Installation |
| 16 | <enb-installation>`. |
| 17 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 18 | Site Bookkeeping |
| 19 | ---------------- |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 20 | |
| 21 | The following items need to be added to `NetBox |
| 22 | <https://netbox.readthedocs.io/en/stable>`_ to describe each edge site: |
| 23 | |
| 24 | 1. Add a Site for the edge (if one doesn't already exist), which has the |
| 25 | physical location and contact information for the edge. |
| 26 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 27 | 2. Add equipment Racks to the Site (if they don't already exist). |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 28 | |
| 29 | 3. Add a Tenant for the edge (who owns/manages it), assigned to the ``Pronto`` |
| 30 | or ``Aether`` Tenant Group. |
| 31 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 32 | 4. Add a VRF (Routing Table) for the edge site. This is usually just the name |
| 33 | of the site. Make sure that ``Enforce unique space`` is checked, so that IP |
| 34 | addresses within the VRF are forced to be unique, and that the Tenant Group |
| 35 | and Tenant are set. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 36 | |
| 37 | 5. Add a VLAN Group to the edge site, which groups the site's VLANs and |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 38 | requires that they have a unique VLAN number. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 39 | |
| 40 | 6. Add VLANs for the edge site. These should be assigned a VLAN Group, the |
| 41 | Site, and Tenant. |
| 42 | |
| 43 | There can be multiple of the same VLAN in NetBox (VLANs are layer 2, and |
| 44 | local to the site), but not within the VLAN group. |
| 45 | |
| 46 | The minimal list of VLANs: |
| 47 | |
| 48 | * ADMIN 1 |
| 49 | * UPLINK 10 |
| 50 | * MGMT 800 |
| 51 | * FAB 801 |
| 52 | |
| 53 | If you have multiple deployments at a site using the same management server, |
| 54 | add additional VLANs incremented by 10 for the MGMT/FAB - for example: |
| 55 | |
| 56 | * DEVMGMT 810 |
| 57 | * DEVFAB 801 |
| 58 | |
| 59 | 7. Add IP Prefixes for the site. This should have the Tenant and VRF assigned. |
| 60 | |
| 61 | All edge IP prefixes fit into a ``/22`` sized block. |
| 62 | |
| 63 | The description of the Prefix contains the DNS suffix for all Devices that |
| 64 | have IP addresses within this Prefix. The full DNS names are generated by |
| 65 | combining the first ``<devname>`` component of the Device names with this |
| 66 | suffix. |
| 67 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 68 | An examples using the ``10.0.0.0/22`` block. There are 4 edge |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 69 | prefixes, with the following purposes: |
| 70 | |
| 71 | * ``10.0.0.0/25`` |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 72 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 73 | * Has the Server BMC/LOM and Management Switch |
| 74 | * Assign the ADMIN 1 VLAN |
| 75 | * Set the description to ``admin.<deployment>.<site>.aetherproject.net`` (or |
| 76 | ``prontoproject.net``). |
| 77 | |
| 78 | * ``10.0.0.128/25`` |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 79 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 80 | * Has the Server Management plane, Fabric Switch Management/BMC |
| 81 | * Assign MGMT 800 VLAN |
| 82 | * Set the description to ``<deployment>.<site>.aetherproject.net`` (or |
| 83 | ``prontoproject.net``). |
| 84 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 85 | * ``10.0.1.0/25`` |
| 86 | |
| 87 | * IP addresses of the qsfp0 port of the Compute Nodes to Fabric switches, devices |
| 88 | connected to the Fabric like the eNB |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 89 | * Assign FAB 801 VLAN |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 90 | * Set the description to ``fab1.<deployment>.<site>.aetherproject.net`` (or |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 91 | ``prontoproject.net``). |
| 92 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 93 | * ``10.0.1.128/25`` |
| 94 | |
| 95 | * IP addresses of the qsfp1 port of the Compute Nodes to fabric switches |
| 96 | * Assign FAB 801 VLAN |
| 97 | * Set the description to ``fab2.<deployment>.<site>.aetherproject.net`` (or |
| 98 | ``prontoproject.net``). |
| 99 | |
| 100 | Additionally, these edge prefixes are used for Kubernetes but don't need to |
| 101 | be created in NetBox: |
| 102 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 103 | * ``10.0.2.0/24`` |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 104 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 105 | * Kubernetes Pod IP's |
| 106 | |
| 107 | * ``10.0.3.0/24`` |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 108 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 109 | * Kubernetes Cluster IP's |
| 110 | |
| 111 | 8. Add Devices to the site, for each piece of equipment. These are named with a |
| 112 | scheme similar to the DNS names used for the pod, given in this format:: |
| 113 | |
| 114 | <devname>.<deployment>.<site> |
| 115 | |
| 116 | Examples:: |
| 117 | |
| 118 | mgmtserver1.ops1.tucson |
| 119 | node1.stage1.menlo |
| 120 | |
| 121 | Note that these names are transformed into DNS names using the Prefixes, and |
| 122 | may have additional components - ``admin`` or ``fabric`` may be added after |
| 123 | the ``<devname>`` for devices on those networks. |
| 124 | |
| 125 | Set the following fields when creating a device: |
| 126 | |
| 127 | * Site |
| 128 | * Tenant |
| 129 | * Rack & Rack Position |
| 130 | * Serial number |
| 131 | |
| 132 | If a specific Device Type doesn't exist for the device, it must be created, |
| 133 | which is detailed in the NetBox documentation, or ask the OPs team for help. |
| 134 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 135 | See `Rackmount of Equipment`_ below for guidance on how equipment should be |
| 136 | mounted in the Rack. |
| 137 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 138 | 9. Add Services to the management server: |
| 139 | |
| 140 | * name: ``dns`` |
| 141 | protocol: UDP |
| 142 | port: 53 |
| 143 | |
| 144 | * name: ``tftp`` |
| 145 | protocol: UDP |
| 146 | port: 69 |
| 147 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 148 | These are used by the DHCP and DNS config to know which servers offer |
| 149 | DNS or TFTP service. |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 150 | |
| 151 | 10. Set the MAC address for the physical interfaces on the device. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 152 | |
| 153 | You may also need to add physical network interfaces if aren't already |
| 154 | created by the Device Type. An example would be if additional add-in |
| 155 | network cards were installed. |
| 156 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 157 | 11. Add any virtual interfaces to the Devices. When creating a virtual |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 158 | interface, it should have it's ``label`` field set to the physical network |
| 159 | interface that it is assigned |
| 160 | |
| 161 | These are needed are two cases for the Pronto deployment: |
| 162 | |
| 163 | 1. On the Management Server, there should bet (at least) two VLAN |
| 164 | interfaces created attached to the ``eno2`` network port, which |
| 165 | are used to provide connectivity to the management plane and fabric. |
| 166 | These should be named ``<name of vlan><vlan ID>``, so the MGMT 800 VLAN |
| 167 | would become a virtual interface named ``mgmt800``, with the label |
| 168 | ``eno2``. |
| 169 | |
| 170 | 2. On the Fabric switches, the ``eth0`` port is shared between the OpenBMC |
| 171 | interface and the ONIE/ONL installation. Add a ``bmc`` virtual |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 172 | interface with a label of ``eth0`` on each fabric switch, and check the |
| 173 | ``OOB Management`` checkbox. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 174 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 175 | 12. Create IP addresses for the physical and virtual interfaces. These should |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 176 | have the Tenant and VRF set. |
| 177 | |
| 178 | The Management Server should always have the first IP address in each |
| 179 | range, and they should be incremental, in this order. Examples are given as |
| 180 | if there was a single instance of each device - adding additional devices |
| 181 | would increment the later IP addresses. |
| 182 | |
| 183 | * Management Server |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 184 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 185 | * ``eno1`` - site provided public IP address, or blank if DHCP |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 186 | provided |
| 187 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 188 | * ``eno2`` - 10.0.0.1/25 (first of ADMIN) - set as primary IP |
| 189 | * ``bmc`` - 10.0.0.2/25 (next of ADMIN) |
| 190 | * ``mgmt800`` - 10.0.0.129/25 (first of MGMT) |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 191 | * ``fab801`` - 10.0.1.1/25 (first of FAB) |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 192 | |
| 193 | * Management Switch |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 194 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 195 | * ``gbe1`` - 10.0.0.3/25 (next of ADMIN) - set as primary IP |
| 196 | |
| 197 | * Fabric Switch |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 198 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 199 | * ``eth0`` - 10.0.0.130/25 (next of MGMT), set as primary IP |
| 200 | * ``bmc`` - 10.0.0.131/25 |
| 201 | |
| 202 | * Compute Server |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 203 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 204 | * ``eth0`` - 10.0.0.132/25 (next of MGMT), set as primary IP |
| 205 | * ``bmc`` - 10.0.0.4/25 (next of ADMIN) |
| 206 | * ``qsfp0`` - 10.0.1.2/25 (next of FAB) |
| 207 | * ``qsfp1`` - 10.0.1.3/25 |
| 208 | |
| 209 | * Other Fabric devices (eNB, etc.) |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 210 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 211 | * ``eth0`` or other primary interface - 10.0.1.4/25 (next of FAB) |
| 212 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 213 | 13. Add DHCP ranges to the IP Prefixes for IP's that aren't reserved. These are |
| 214 | done like any other IP Address, but with the ``Status`` field is set to |
| 215 | ``DHCP``, and they'll consume the entire range of IP addresses given in the |
| 216 | CIDR mask. |
| 217 | |
| 218 | For example ``10.0.0.32/27`` as a DHCP block would take up 1/4 of the ADMIN |
| 219 | prefix. |
| 220 | |
Zack Williams | e8cb121 | 2020-12-03 09:48:58 -0700 | [diff] [blame] | 221 | 14. Add router IP reservations to the IP Prefix for both Fabric prefixes. These |
| 222 | are IP addresses that: |
| 223 | |
| 224 | - Have the last usable address in range (in a ``/25``, this would be |
| 225 | ``.126`` or ``.254``) |
| 226 | |
| 227 | - Have a ``Status`` of ``Reserved``, and the VRF, Tenant Group, and Tenant |
| 228 | set. |
| 229 | |
| 230 | - The Description must start with the word ``router``, such as: ``router |
| 231 | for for leaf1 Fabric`` |
| 232 | |
| 233 | 15. Add Cables between physical interfaces on the devices |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 234 | |
| 235 | TODO: Explain the cabling topology |
| 236 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 237 | Rackmount of Equipment |
| 238 | ---------------------- |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 239 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 240 | Most of the Pronto equipment has a 19" rackmount form factor. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 241 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 242 | Guidelines for mounting this equipment: |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 243 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 244 | - The EdgeCore Wedge Switches have a front-to-back (aka "port-to-power") fan |
| 245 | configuration, so hot air exhaust is out the back of the switch near the |
| 246 | power inlets, away from the 32 QSFP network ports on the front of the switch. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 247 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 248 | - The full-depth 1U and 2U Supermicro servers also have front-to-back airflow |
| 249 | but have most of their ports on the rear of the device. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 250 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 251 | - Airflow through the rack should be in one direction to avoid heat being |
| 252 | pulled from one device into another. This means that to connect the QSFP |
| 253 | network ports from the servers to the switches, cabling should be routed |
| 254 | through the rack from front (switch) to back (server). Empty rack spaces |
| 255 | should be reserved for this purpose. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 256 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 257 | - The short-depth management HP Switch and 1U Supermicro servers should be |
| 258 | mounted on the rear of the rack. They both don't generate an appreciable |
| 259 | amount of heat, so the airflow direction isn't a significant factor in |
| 260 | racking them. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 261 | |
| 262 | Inventory |
| 263 | --------- |
| 264 | |
| 265 | Once equipment arrives, any device needs to be recorded in inventory if it: |
| 266 | |
| 267 | 1. Connects to the network (has a MAC address) |
| 268 | 2. Has a serial number |
| 269 | 3. Isn't a subcomponent (disk, add-in card, linecard, etc.) of a larger device. |
| 270 | |
| 271 | The following information should be recorded for every device: |
| 272 | |
| 273 | - Manufacturer |
| 274 | - Model |
| 275 | - Serial Number |
| 276 | - MAC address (for the primary and any management/BMC/IPMI interfaces) |
| 277 | |
| 278 | This information should be be added to the corresponding Devices ONF NetBox |
| 279 | instance. The accuracy of this information is very important as it is used in |
| 280 | bootstrapping the systems. |
| 281 | |
| 282 | Once inventory has been completed, let the Infra team know, and the pxeboot |
| 283 | configuration will be generated to have the OS preseed files corresponding to the |
| 284 | new servers based on their serial numbers. |
| 285 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 286 | Cabling and Network Topology |
| 287 | ---------------------------- |
| 288 | |
| 289 | TODO: Add diagrams of network here, and cabling plan |
| 290 | |
| 291 | Management Switch Bootstrap |
| 292 | --------------------------- |
| 293 | |
| 294 | TODO: Add instructions for bootstrapping management switch, from document that |
| 295 | has the linked config file. |
| 296 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 297 | Software Bootstrap |
| 298 | ------------------ |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 299 | |
| 300 | Management Server Bootstrap |
| 301 | """"""""""""""""""""""""""" |
| 302 | |
| 303 | The management server is bootstrapped into a customized version of the standard |
| 304 | Ubuntu 18.04 OS installer. |
| 305 | |
| 306 | The `iPXE boot firmware <https://ipxe.org/>`_. is used to start this process |
| 307 | and is built using the steps detailed in the `ipxe-build |
| 308 | <https://gerrit.opencord.org/plugins/gitiles/ipxe-build>`_. repo, which |
| 309 | generates both USB and PXE chainloadable boot images. |
| 310 | |
| 311 | Once a system has been started using these images started, these images will |
| 312 | download a customized script from an external webserver to continue the boot |
| 313 | process. This iPXE to webserver connection is secured with mutual TLS |
| 314 | authentication, enforced by the nginx webserver. |
| 315 | |
| 316 | The iPXE scripts are created by the `pxeboot |
| 317 | <https://gerrit.opencord.org/plugins/gitiles/ansible/role/pxeboot>`_ role, |
| 318 | which creates both a boot menu, downloads the appropriate binaries for |
| 319 | bootstrapping an OS installation, and creates per-node installation preseed files. |
| 320 | |
| 321 | The preseed files contain configuration steps to install the OS from the |
| 322 | upstream Ubuntu repos, as well as customization of packages and creating the |
| 323 | ``onfadmin`` user. |
| 324 | |
| 325 | TODO: convert instructions for bootstrapping the management server with iPXE here. |
| 326 | |
| 327 | Once the OS is installed on the management server, Ansible is used to remotely |
| 328 | install software on the management server. |
| 329 | |
| 330 | To checkout the ONF ansible repo and enter the virtualenv with the tooling:: |
| 331 | |
| 332 | mkdir infra |
| 333 | cd infra |
| 334 | repo init -u ssh://<your gerrit username>@gerrit.opencord.org:29418/infra-manifest |
| 335 | repo sync |
| 336 | cd ansible |
| 337 | make galaxy |
| 338 | source venv_onfansible/bin/activate |
| 339 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 340 | Obtain the ``undionly.kpxe`` iPXE artifact for bootstrapping the compute |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 341 | servers, and put it in the ``playbook/files`` directory. |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 342 | |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 343 | Next, create an inventory file to access the NetBox API. An example is given |
| 344 | in ``inventory/example-netbox.yml`` - duplicate this file and modify it. Fill |
| 345 | in the ``api_endpoint`` address and ``token`` with an API key you get out of |
| 346 | the NetBox instance. List the IP Prefixes used by the site in the |
| 347 | ``ip_prefixes`` list. |
| 348 | |
| 349 | Next, run the ``scripts/netbox_edgeconfig.py`` to generate a host_vars file for |
| 350 | the management server. Assuming that the management server in the edge is |
| 351 | named ``mgmtserver1.stage1.menlo``, you'd run:: |
| 352 | |
| 353 | python scripts/netbox_edgeconfig.py inventory/my-netbox.yml > inventory/host_vars/mgmtserver1.stage1.menlo.yml |
| 354 | |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 355 | One manual change needs to be made to this output - edit the |
| 356 | ``inventory/host_vars/mgmtserver1.stage1.menlo.yml`` file and add the following |
Zack Williams | e8cb121 | 2020-12-03 09:48:58 -0700 | [diff] [blame] | 357 | to the bottom of the file, replacing the IP addresses with the management |
| 358 | server IP address for each segment. |
| 359 | |
| 360 | In the case of the Fabric that has two leaves and IP ranges, add the Management |
| 361 | server IP address used for the leaf that it is connected to, and then add a |
| 362 | route for the other IP address range for the non-Management-connected leaf that |
| 363 | is via the Fabric router address in that range. |
| 364 | |
| 365 | This configures the `netplan <https://netplan.io>`_ on the management server, |
| 366 | and will be automated away soon:: |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 367 | |
| 368 | # added manually |
| 369 | netprep_netplan: |
| 370 | ethernets: |
| 371 | eno2: |
| 372 | addresses: |
| 373 | - 10.0.0.1/25 |
| 374 | vlans: |
| 375 | mgmt800: |
| 376 | id: 800 |
| 377 | link: eno2 |
| 378 | addresses: |
| 379 | - 10.0.0.129/25 |
| 380 | fabr801: |
| 381 | id: 801 |
| 382 | link: eno2 |
| 383 | addresses: |
Zack Williams | e8cb121 | 2020-12-03 09:48:58 -0700 | [diff] [blame] | 384 | - 10.0.1.129/25 |
| 385 | routes: |
| 386 | - to: 10.0.1.0/25 |
| 387 | via: 10.0.1.254 |
| 388 | weight: 100 |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 389 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 390 | Using the ``inventory/example-aether.ini`` as a template, create an |
| 391 | :doc:`ansible inventory <ansible:user_guide/intro_inventory>` file for the |
| 392 | site. Change the device names, IP addresses, and ``onfadmin`` password to match |
| 393 | the ones for this site. The management server's configuration is in the |
| 394 | ``[aethermgmt]`` and corresponding ``[aethermgmt:vars]`` section. |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 395 | |
| 396 | Then, to configure a management server, run:: |
| 397 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 398 | ansible-playbook -i inventory/sitename.ini playbooks/aethermgmt-playbook.yml |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 399 | |
| 400 | This installs software with the following functionality: |
| 401 | |
| 402 | - VLANs on second Ethernet port to provide connectivity to the rest of the pod. |
| 403 | - Firewall with NAT for routing traffic |
| 404 | - DHCP and TFTP for bootstrapping servers and switches |
| 405 | - DNS for host naming and identification |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 406 | - HTTP server for serving files used for bootstrapping switches |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 407 | - Downloads the Tofino switch image |
| 408 | - Creates user accounts for administrative access |
Zack Williams | 34c30e5 | 2020-11-16 10:55:00 -0700 | [diff] [blame] | 409 | |
| 410 | Compute Server Bootstrap |
| 411 | """""""""""""""""""""""" |
| 412 | |
| 413 | Once the management server has finished installation, it will be set to offer |
| 414 | the same iPXE bootstrap file to the computer. |
| 415 | |
| 416 | Each node will be booted, and when iPXE loads select the ``Ubuntu 18.04 |
| 417 | Installer (fully automatic)`` option. |
Zack Williams | a7c170f | 2020-11-25 12:59:49 -0700 | [diff] [blame] | 418 | |
| 419 | The nodes can be controlled remotely via their BMC management interfaces - if |
| 420 | the BMC is at ``10.0.0.3`` a remote user can SSH into them with:: |
| 421 | |
| 422 | ssh -L 2443:10.0.0.3:443 onfadmin@<mgmt server ip> |
| 423 | |
| 424 | And then use their web browser to access the BMC at:: |
| 425 | |
| 426 | https://localhost:2443 |
| 427 | |
| 428 | The default BMC credentials for the Pronto nodes are:: |
| 429 | |
| 430 | login: ADMIN |
| 431 | password: Admin123 |
| 432 | |
Zack Williams | 9026f53 | 2020-11-30 11:34:32 -0700 | [diff] [blame] | 433 | The BMC will also list all of the MAC addresses for the network interfaces |
| 434 | (including BMC) that are built into the logic board of the system. Add-in |
| 435 | network cards like the 40GbE ones used in compute servers aren't listed. |
| 436 | |
| 437 | To prepare the compute nodes, software must be installed on them. As they |
| 438 | can't be accessed directly from your local system, a :ref:`jump host |
| 439 | <ansible:use_ssh_jump_hosts>` configuration is added, so the SSH connection |
| 440 | goes through the management server to the compute systems behind it. Doing this |
| 441 | requires a few steps: |
| 442 | |
| 443 | First, configure SSH to use Agent forwarding - create or edit your |
| 444 | ``~/.ssh/config`` file and add the following lines:: |
| 445 | |
| 446 | Host <management server IP> |
| 447 | ForwardAgent yes |
| 448 | |
| 449 | Then try to login to the management server, then the compute node:: |
| 450 | |
| 451 | $ ssh onfadmin@<management server IP> |
| 452 | Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-54-generic x86_64) |
| 453 | ... |
| 454 | onfadmin@mgmtserver1:~$ ssh onfadmin@10.0.0.138 |
| 455 | Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-54-generic x86_64) |
| 456 | ... |
| 457 | onfadmin@node2:~$ |
| 458 | |
| 459 | Being able to login to the compute nodes from the management node means that |
| 460 | SSH Agent forwarding is working correctly. |
| 461 | |
| 462 | Verify that your inventory (Created earlier from the |
| 463 | ``inventory/example-aether.ini`` file) includes an ``[aethercompute]`` section |
| 464 | that has all the names and IP addresses of the compute nodes in it. |
| 465 | |
| 466 | Then run a ping test:: |
| 467 | |
| 468 | ansible -i inventory/sitename.ini -m ping aethercompute |
| 469 | |
| 470 | It may ask you about authorized keys - answer ``yes`` for each host to trust the keys:: |
| 471 | |
| 472 | The authenticity of host '10.0.0.138 (<no hostip for proxy command>)' can't be established. |
| 473 | ECDSA key fingerprint is SHA256:... |
| 474 | Are you sure you want to continue connecting (yes/no/[fingerprint])? yes |
| 475 | |
| 476 | You should then see a success message for each host:: |
| 477 | |
| 478 | node1.stage1.menlo | SUCCESS => { |
| 479 | "changed": false, |
| 480 | "ping": "pong" |
| 481 | } |
| 482 | node2.stage1.menlo | SUCCESS => { |
| 483 | "changed": false, |
| 484 | "ping": "pong" |
| 485 | } |
| 486 | ... |
| 487 | |
| 488 | Once you've seen this, run the playbook to install the prerequisites (Terraform |
| 489 | user, Docker):: |
| 490 | |
| 491 | ansible-playbook -i inventory/sitename.ini playbooks/aethercompute-playbook.yml |
| 492 | |
| 493 | Note that Docker is quite large and may take a few minutes for installation |
| 494 | depending on internet connectivity. |
| 495 | |
| 496 | Now that these compute nodes have been brought up, the rest of the installation |
| 497 | can continue. |