
Ubuntu Cloud Documentation Deploying Production Grade OpenStack with MAAS, Juju and Landscape This documentation has been created to describe best practice in deploying a Production Grade installation of OpenStack using current Canonical technologies, including bare metal provisioning using MAAS, service orchestration with Juju and system management with Landscape. This documentation is divided into four main topics: 1. Installing the MAAS Metal As A Service software 2. Installing Juju and configuring it to work with MAAS 3. Using Juju to deploy OpenStack 4. Deploying Landscape to manage your OpenStack cloud Once you have an up and running OpenStack deployment, you should also read our Administration Guide which details common tasks for maintenance and scaling of your service. Legal notices This documentation is copyright of Canonical Limited. You are welcome to display on your computer, download and print this documentation or to use the hard copy provided to you for personal, education and non-commercial use only. You must retain copyright, trademark and other notices unaltered on any copies or printouts you make. Any trademarks, logos and service marks displayed in this document are property of their owners, whether Canonical or third parties. This documentation is provided on an “as is” basis, without warranty of any kind, either express or implied. Your use of this documentation is at your own risk. Canonical disclaims all warranties and liability that may result directly or indirectly from the use of this documentation. © 2014 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd. Installing the MAAS software Scope of this documentation This document provides instructions on how to install the Metal As A Service (MAAS) software. It has been prepared alongside guides for installing Juju, OpenStack and Landscape as part of a production grade cloud environment. MAAS itself may be used in different ways and you can find documentation for this on the main MAAS website [MAAS docs]. For the purposes of this documentation, the following assumptions have been made: You have sufficient, appropriate node hardware You will be using Juju to assign workloads to MAAS You will be configuring the cluster network to be controlled entirely by MAAS (i.e. DNS and DHCP) If you have a compatible power-management system, any additional hardware required is also installed(e.g. IPMI network). Introducing MAAS Metal as a Service – MAAS – lets you treat physical servers like virtual machines in the cloud. Rather than having to manage each server individually, MAAS turns your bare metal into an elastic cloud-like resource. What does that mean in practice? Tell MAAS about the machines you want it to manage and it will boot them, check the hardware’s okay, and have them waiting for when you need them. You can then pull nodes up, tear them down and redeploy them at will; just as you can with virtual machines in the cloud. When you’re ready to deploy a service, MAAS gives Juju the nodes it needs to power that service. It’s as simple as that: no need to manually provision, check and, afterwards, clean-up. As your needs change, you can easily scale services up or down. Need more power for your Hadoop cluster for a few hours? Simply tear down one of your Nova compute nodes and redeploy it to Hadoop. When you’re done, it’s just as easy to give the node back to Nova. MAAS is ideal where you want the flexibility of the cloud, and the hassle-free power of Juju charms, but you need to deploy to bare metal. Installing MAAS from the Cloud Archive The Ubuntu Cloud Archive is a repository made especially to provide users with the most up to date, stable versions of MAAS, Juju and other tools. It is highly recommended to keep your software up to date: sudo apt-get update There are several packages that comprise a MAAS install. These are: maas-region-controller: Which comprises the 'control' part of the software, including the web-based user interface, the API server and the main database. maas-cluster-controller: This includes the software required to manage a cluster of nodes, including managing DHCP and boot images. maas-dns: This is a customised DNS service that MAAS can use locally to manage DNS for all the connected nodes. mass-dhcp: As for DNS, there is a DHCP service to enable MAAS to correctly enlist nodes and assign IP addresses. The DHCP setup is critical for the correct PXE booting of nodes. As a convenience, there is also a maas metapackage, which will install all these components If you need to separate these services or want to deploy an additional cluster controller, you should install the corresponding packages individually. Installing the packages Running the command: sudo apt-get install maas ...will initiate installation of all the components of MAAS. The maas-dhcp and maas-dns packages should be installed by default. Once the installation is complete, the web-based interface for MAAS will start. In many cases, your MAAS controller will have several NICs. By default, all the services will initiate using the first discovered controller (i.e. usually eth0) Before you login to the server for the first time, you should create a superuser account. Create a superuser account Once MAAS is installed, you'll need to create an administrator account: sudo maas-region-admin createsuperuser Running this command will prompt for a username, an email address and a password for the admin user. You may also use a different username for your administrator account, but "root" is a common convention and easy to remember. You can run this command again for any further administrator accounts you may wish to create, but you need at least one. Import the boot images MAAS will check for and download new Ubuntu images once a week. However, you'll need to download them manually the first time. To do this you should connect to the MAAS web interface using a web browser. Use the URL: http://172.18.100.1/MAAS/ You should substitute in the IP address of the server where you have installed the MAAS software. If there are several possible networks, by default it will be on whichever one is assigned to the eth0 device. You should see a login screen like this: Enter the username and password you specified for the admin account. When you have successfully logged in you should see the main MAAS page: Either click on the link displayed in the warning at the top, or on the 'Cluster' tab in the menu to get to the cluster configuration screen. The initial cluster is automatically added to MAAS when you install it, but it has no associated images for booting nodes with yet. Click on the button to begin the download of suitable boot images. Importing the boot images can take some time, depending on the available network connection. This page does not dynamically refresh, so you can refresh it manually to determine when the boot images have been imported. Login to the server To check that everything is working properly, you should try and login to the server now. Both the error messages should have gone (it can take a few minutes for the boot image files to register) and you can see that there are currently 0 nodes attached to this controller. Configure switches on the network Some switches use Spanning-Tree Protocol (STP) to negotiate a loop-free path through a root bridge. While scanning, it can make each port wait up to 50 seconds before data is allowed to be sent on the port. This delay in turn can cause problems with some applications/protocols such as PXE, DHCP and DNS, of which MAAS makes extensive use. To alleviate this problem, you should enable Portfast for Cisco switches or its equivalent on other vendor equipment, which enables the ports to come up almost immediately. Add an additional cluster Whilst it is certainly possible to run MAAS with just one cluster controller for all the nodes, in the interests of easier maintenance, uprades and stability, it is desirable to have at least two operational clusters. Each cluster needs a controller node. Install Ubuntu on this node and then follow a similar setup proceedure to install the cluster controller software: sudo apt-get update sudo apt-get install maas-cluster-controller sudo apt-get install maas-dhcp maas-dns Once the cluster software is installed, it is useful to run: sudo dpkg-reconfigure maas-cluster-controller This will enable you to make sure the cluster controller agent is pointed at the correct address for the MAAS master controller. Configure additional Cluster Controller(s) Cluster acceptance When you install your first cluster controller on the same system as the region controller, it will be automatically accepted by default (but not yet configured, see below). Any other cluster controllers you set up will show up in the user interface as “pending,” until you manually accept them into the MAAS. To accept a cluster controller, click on the "Clusters" tab at the top of the MAAS web interface: You should see that the text at the top of the page indicates a pending cluster. Click on that text to get to the Cluster acceptance screen. Here you can change the cluster’s name as it appears in the UI, its DNS zone, and its status. Accepting the cluster changes its status from “pending” to “accepted.” Now that the cluster controller is accepted, you can configure one or more of its network interfaces to be managed by MAAS. This will enable the cluster controller to manage nodes attached to those networks.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages10 Page
-
File Size-