Extreme Networks Openstack Plugin 2.0 Installation Guide Copyright © 2014 Extreme Networks
Total Page:16
File Type:pdf, Size:1020Kb
Extreme Networks OpenStack Plugin 2.0 Installation Guide Copyright © 2014 Extreme Networks AccessAdapt, Alpine, Altitude, BlackDiamond, Direct Attach, EPICenter, ExtremeWorks Essentials, Ethernet Everywhere, Extreme Enabled, Extreme Ethernet Everywhere, Extreme Networks, Extreme Standby Router Protocol, Extreme Turbodrive, Extreme Velocity, ExtremeWare, ExtremeWorks, ExtremeXOS, Go Purple Extreme Solution, ExtremeXOS ScreenPlay, ReachNXT, Ridgeline, Sentriant, ServiceWatch, Summit, SummitStack, Triumph, Unified Access Architecture, Unified Access RF Manager, UniStack, XNV, the Extreme Networks logo, the Alpine logo, the BlackDiamond logo, the Extreme Turbodrive logo, the Summit logos, and the Powered by ExtremeXOS logo are trademarks or registered trademarks of Extreme Networks, Inc. or its subsidiaries in the United States and/or other countries. sFlow is the property of InMon Corporation. iBooks is property of Apple, Inc. Specifications are subject to change without notice. All other registered trademarks, trademarks, and service marks are property of their respective owners. For additional information on Extreme Networks trademarks, please see: http:// www.extremenetworks.com/company/legal/trademarks/. 120873-00 Rev 2 Table of Contents Chapter 1: Prerequisites 4 Software Requirements 4 Hardware Requirements 4 OpenStack Requirements 5 Chapter 2: Reference Topology 6 Reference Topology Setup 6 Chapter 3: Installing Ubuntu 12.04 LTS on the Hosts 10 Installing Ubuntu 12.04 LTS on the Hosts 10 Chapter 4: Preparing the Servers and Switches 12 Updating the Servers 12 Setting up the Ethernet Port for the Management Interface 12 Chapter 5: Installing OpenStack Plugin 2.0 on the Servers 13 Downloading and Preparing OpenStack 13 Installing OpenStack on the OSController 13 Installing OpenStack on the OSHosts 16 Chapter 6: Configuring Extreme Networks Switches 19 Configuring Control and TOR Switches 19 Configuring the TOR1 Switch 19 Configuring the TOR2 Switch 20 Configuring the Control 1 Switch 20 Configuring the Control 2 Switch 20 Chapter 7: Starting and Stopping Extreme Networks OpenStack 22 Starting and Stopping Extreme Networks OpenStack 22 Modifying the Devstack localrc Parameters 23 Starting OpenStack on OSController 24 Starting OpenStack on OSHost1 and OSHost2 25 Verifying the OSController and OSHosts 25 Populating the Topology Database 26 Configuring the Network Fabric—LAG/MLAG 31 Shutting Down OpenStack on All Servers 33 Logs 33 Chapter 8: Managing Tenants and Virtual Machines 35 Creating Tenants 35 Creating Tenants Using Python Script and Configuration File (L3 Agent) 35 Creating Tenants Using Python Script and Configuration File (Virtual Routers) 37 Verifying TOR Switch Configuration after Tenant Creation (L3 Agent) 40 Verifying TOR Switch Configuration after Tenant Creation (Virtual Routers) 42 Creating Tenant Virtual Machine Instances 44 Migrating Tenant Virtual Machine Instances (Live Migration) 50 Deleting Tenant Virtual Machine Instances 51 Chapter 9: Resetting the Testbed 53 Appendix A: Glossary 54 Extreme Networks OpenStack Plugin 2.0 Installation Guide 3 1 Prerequisites Software Requirements Hardware Requirements OpenStack Requirements This chapter explains the prerequisites for installing the Extreme Networks OpenStack Plugin 2.0. Software Requirements You need the following software installed: • Extreme Networks' ExtremeXOS operating system release 15.3.2 or 15.3.3 ( www.extremenetworks.com/products/extreme-xos.aspx). • Extreme Networks OpenStack Plugin 2.0 software package (request download package from Extreme Networks). • Ubuntu 12.04 LTS (Precise) image with KVM (www.ubuntu.com/download). Hardware Requirements You need the following hardware if you want to install the reference topology setup (see Reference Topology Setup on page 6): • OSController (OpenStack Cloud Controller with Quantum Server and Network Host; main server)— 64-bit x86 processor, 8GB RAM (minimum), 7 NICs • OSHost1, OSHost2 (OpenStack compute hosts; hosts VMs only)—64-bit x86 processor, 8GB RAM (minimum), 7 NICs • TOR1, TOR2—Extreme Networks switch (recommended: Summit X460, X480, or X670) We support any switch running ExtremeXOS release 15.3.2 or 15.3.3: Stackable Switches • Summit X670 (www.extremenetworks.com/product/summit-x670-series) • Summit X480 (http://www.extremenetworks.com/product/summit-x480-series) • Summit X460 (http://www.extremenetworks.com/product/summit-x460-series) Chassis-Based Switches • BlackDiamond X8 (http://www.extremenetworks.com/product/blackdiamond-x-series) • BlackDiamond 8800 (http://www.extremenetworks.com/product/blackdiamond-8800-series) Prerequisites OpenStack Requirements OpenStack requirements are available at: http://docs.openstack.org/grizzly/openstack-ops/content/index.html. Extreme Networks OpenStack Plugin 2.0 Installation Guide 5 2 Reference Topology Reference Topology Setup Reference Topology Setup The reference topology setup consists of three servers: one controller (OSController) and two compute nodes (OSHost1 and OSHost2); two control switches (CTRL1 and CTRL2); and two "top of rack" switches (TOR1 and TOR2). This setup uses redundancy where possible; for the servers this means that bonding is used to connect to the TOR switches, as well as the control switches. There are distinct networks for data, storage, control, and management—each using its own set of NICs, or in the case of the management port, a single NIC. The control network is not the management network. In the following setup, OpenStack services are behind the control network IP. Figure 1: Complete Reference Topology Setup Reference Topology Control network (in red) is used for exchanging control messages between the OpenStack components (servers) and ExtremeXOS switches. Management network (in blue) is used for out-of-band access. It requires Internet access during installation, but can run through a SNAT layer. It can use any routable subnet. Data network (in purple) is used for data traffic from the tenant VMs on the servers. It is also used for DHCP request/reply between tenant VMs and per-tenant DHCP/NAT server on the controller. It is also used for tenant data traffic to/from public/external network through per-tenant gateway on the controller. Storage network (in green) is used for storage traffic from the tenant VMs on the servers. Figure 2: Complete Reference Topology Setup with Border Gateways The following four figures show in isolation each of the logical networks (data, storage, control, and management) within the reference topology. Extreme Networks OpenStack Plugin 2.0 Installation Guide 7 Reference Topology Figure 3: Control Network Figure 4: Data Network Extreme Networks OpenStack Plugin 2.0 Installation Guide 8 Reference Topology Figure 5: Storage Network Extreme Networks OpenStack Plugin 2.0 Installation Guide 9 3 Installing Ubuntu 12.04 LTS on the Hosts Installing Ubuntu 12.04 LTS on the Hosts Installing Ubuntu 12.04 LTS on the Hosts The Extreme Networks OpenStack software package is based on DevStack (http://devstack.org), which assumes a specific version of Ubuntu—12.04 LTS (Precise) for this release. To download and install the Ubuntu Server on the hosts (controller and compute nodes): 1 Go to www.ubuntu.com/download/server and download Ubuntu Server 12.04.3 LTS 64-bit (ubuntu-12.04.3-server-amd64.iso). For specific instructions, see the Ubuntu Installation Guide. 2 Load the image on a CD-ROM or USB memory stick. 3 Boot the system from the CD-ROM or USB memory stick. 4 On the Language screen, select the language for the install. 5 On the Ubuntu screen, select Install Ubuntu Server. 6 On the Select a language screen, select the language for the installation text and for the installed program. 7 On the Select your location screen, select your country. 8 On the Configure the keyboard screen, select: • Yes—Installation program attempts to detect your keyboard layout. Go to Step 9 on page 10. • No—Choose your keyboard layout from a list: a Select the country of origin for the keyboard from the list. b Select the layout for the keyboard from the list. 9 On the Configure the network screen, enter a hostname (for example, OSController, OSHost1, or OSHost2). Important It is recommended that you use the naming convention "OSController", "OSHost1", and "OSHost2" to make it easier to follow the rest of the procedures in this Installation Guide. However, you may use whatever naming convention you prefer, but you must be consistent. OpenStack uses hostnames for communication, and several files (hosts files, configuration files, etc.) depend on consistent use of hostnames. 10 On the Set up users and passwords screen, type: • stack for the user • stack for the username • stack for the password Installing Ubuntu 12.04 LTS on the Hosts 11 On the Set up users and passwords screen, re-type the user password to verify it. 12 On the Set up users and passwords screen, select yes when you are warned that the password consists of less than eight characters. 13 On the Set up users and passwords screen, select no when prompted to encrypt your home directory. 14 On the Configure the clock screen, select your time zone. 15 On the Partition disks screen, select Guided - user entire disk and set up LVM. 16 On the Partition disks screen, select the disk to partition. 17 On the Partition disks screen, select yes to confirm that you want to write the changes to disk and configure LVM. 18 On the Partition disks screen, select Continue to accept the maximum amount for the volume group for guided partitioning (21.2 GB). 19 On the Partition