openstack-manuals/doc/src/docbkx/openstack-compute-admin/aboutcompute.xml

163 lines
12 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
xml:id="ch_introduction-to-openstack-compute">
<title>Introduction to OpenStack Compute</title>
<para>OpenStack Compute gives you a tool to orchestrate a cloud, including running instances,
managing networks, and controlling access to the cloud through users and projects. The
underlying open source project's name is Nova, and it provides the software that can control
an Infrastructure as a Service (IaaS) cloud computing platform. It is similar in scope to
Amazon EC2 and Rackspace Cloud Servers. OpenStack Compute does not include any
virtualization software; rather it defines drivers that interact with underlying
virtualization mechanisms that run on your host operating system, and exposes functionality
over a web-based API.</para>
<section xml:id="hypervisors">
<title>Hypervisors</title>
<para>OpenStack Compute requires a hypervisor and Compute controls the hypervisors through an
API server. The process for selecting a hypervisor usually means prioritizing and making
decisions based on budget and resource constraints as well as the inevitable list of
supported features and required technical specifications. The majority of development is
done with the KVM and Xen-based hypervisors. Refer to <link
xlink:href="http://wiki.openstack.org/HypervisorSupportMatrix"
>http://wiki.openstack.org/HypervisorSupportMatrix</link> for a detailed list of
features and support across the hypervisors. </para>
<para>With OpenStack Compute, you can orchestrate clouds using multiple hypervisors in
different zones. The types of virtualization standards that may be used with Compute
include:</para>
<itemizedlist>
<listitem>
<para><link xlink:href="http://www.linux-kvm.org/page/Main_Page">KVM</link> -
Kernel-based Virtual Machine</para>
</listitem>
<listitem>
<para><link xlink:href="http://lxc.sourceforge.net/">LXC</link> - Linux Containers
(through libvirt)</para>
</listitem>
<listitem>
<para><link xlink:href="http://wiki.qemu.org/Manual">QEMU</link> - Quick
EMUlator</para>
</listitem>
<listitem>
<para><link xlink:href="http://user-mode-linux.sourceforge.net/">UML</link> - User
Mode Linux</para>
</listitem>
<listitem>
<para><link
xlink:href="http://www.vmware.com/products/vsphere-hypervisor/support.html"
>VMWare ESX/ESXi</link> 4.1 update 1</para>
</listitem>
<listitem>
<para><link xlink:href="http://www.xen.org/support/documentation.html">Xen</link> -
XenServer 5.5, Xen Cloud Platform (XCP)</para>
</listitem>
</itemizedlist>
</section>
<section xml:id="users-and-projects">
<title>Users and Projects (Tenants)</title>
<para>The OpenStack Compute system is designed to be used by many different cloud computing
consumers or customers, basically tenants on a shared system, using role-based access
assignments. With the use of the Identity Service, the issuing of a token also issues
the roles assigned to the user, and the Identity Service calls projects tenants. Roles
control the actions that a user is allowed to perform. For example, a user cannot
allocate a public IP without the netadmin or admin role when the system is set up
according to those rules. There are both global roles and per-project (tenant) role
assignments. A user's access to particular images is limited by project, but the access
key and secret key are assigned per user. Key pairs granting access to an instance are
enabled per user, but quotas to control resource consumption across available hardware
resources are per project. </para>
<para>With the "--use_deprecated_auth" flag in place, OpenStack Compute uses a rights
management system that employs a Role-Based Access Control (RBAC) model and supports the
following five roles:</para>
<itemizedlist>
<listitem><para>Cloud Administrator (admin): Global role. Users of this class enjoy complete system access.</para></listitem>
<listitem><para>IT Security (itsec): Global role. This role is limited to IT security personnel. It permits role holders to
quarantine instances on any project.</para></listitem>
<listitem><para>Project Manager (projectmanager): Project role. The default for project owners, this role affords users the
ability to add other users to a project, interact with project images, and
launch and terminate instances.</para></listitem>
<listitem><para>Network Administrator (netadmin): Project role. Users with this role are permitted to allocate and assign
publicly accessible IP addresses as well as create and modify firewall
rules.</para></listitem>
<listitem><para>Developer (developer): Project role. This is a general purpose role that is assigned to users by
default.</para></listitem></itemizedlist>
<para>While the original EC2 API supports users, OpenStack Compute adds the concept of projects, or
tenants if your deployment uses the Identity Service (Keystone). Projects and tenants
are isolated resource containers forming the principal organizational structure within
Nova. They consist of a separate VLAN, volumes, instances, images, keys, and users. A
user can specify which project or tenant he or she wishes to be known as by appending
:project_id to his or her access key. If no project or tenant is specified in the API
request, Compute attempts to use a project with the same id as the user. </para>
<para>For projects (tenants), quota controls are available to limit the: <itemizedlist>
<listitem>
<para>Number of volumes which may be created</para>
</listitem>
<listitem>
<para>Total size of all volumes within a project as measured in GB</para>
</listitem>
<listitem>
<para>Number of instances which may be launched</para>
</listitem>
<listitem>
<para>Number of processor cores which may be allocated</para>
</listitem>
<listitem>
<para>Publicly accessible IP addresses</para>
</listitem>
</itemizedlist></para>
</section><section xml:id="images-and-instances">
<title>Images and Instances</title>
<para>An image is a file containing information about a virtual disk that completely
replicates all information about a working computer at a point in time including
operating system information and file system information. Compute can use certificate
management for decrypting bundled images. With the deprecated auth system, you can use
the euca2ools command-line tools distributed by the Eucalyptus Team for adding,
bundling, and deleting images. When using the Image Service (Keystone), you can use the
nova-client command-line tool for working with images and the glance-client command-line
tool for uploading images to the Image Service. </para>
<para>There are two methods for managing images. Images can be served through the OpenStack
Image Service, a project that is named Glance, or use the nova-objectstore service.
Compute defaults to being configured to use the Image Service. With an OpenStack Image
Service server in place, the Image Service fetches the image on to the host machine and
then OpenStack Compute boots the image from the host machine. To place images into the
service, you would use a REST interface to stream them, and the service, in turn,
streams that into a back end which could be S3, OpenStack Object Storage (which can use
an S3), or the local file system on the server where OpenStack Image Service is
installed.</para>
<para>An instance is a running virtual machine within the cloud. An instance has a life
cycle that is controlled by OpenStack Compute. Compute creates the instances and it is
responsible for building a disk image, launching it, reporting the state, attaching
persistent storage, and terminating it. </para>
</section><section xml:id="system-architecture">
<title>System Architecture</title><para>OpenStack Compute consists of several main components. A "cloud controller" contains many of
these components, and it represents the global state and interacts with all other
components. An API Server acts as the web services front end for the cloud controller.
The compute controller provides compute server resources and typically contains the
compute service, The Object Store component optionally provides storage services. An
auth manager provides authentication and authorization services when used with the
Compute system, or you can use the Identity Service (keystone) as a separate
authentication service. A volume controller provides fast and permanent block-level
storage for the compute servers. A network controller provides virtual networks to
enable compute servers to interact with each other and with the public network. A
scheduler selects the most suitable compute controller to host an instance. </para><para>OpenStack Compute is built on a shared-nothing, messaging-based architecture. You can run all
of the major components on multiple servers including a compute controller, volume
controller, network controller, and object store (or image service). A cloud controller
communicates with the internal object store via HTTP (Hyper Text Transfer Protocol), but
it communicates with a scheduler, network controller, and volume controller via AMQP
(Advanced Message Queue Protocol). To avoid blocking each component while waiting for a
response, OpenStack Compute uses asynchronous calls, with a call-back that gets
triggered when a response is received.</para>
<para>To achieve the shared-nothing property with multiple copies of the same component, OpenStack Compute keeps all the cloud system state in a distributed data store. Updates to system state are written into this store, using atomic transactions when required. Requests for system state are read out of this store. In limited cases, the read results are cached within controllers for short periods of time (for example, the current list of system users.)</para></section>
<section xml:id="storage-and-openstack-compute">
<title>Block Storage and OpenStack Compute</title><para>A volume is a detachable block storage device. You can think of it as a USB hard drive. It
can only be attached to one instance at a time, so it does not work like a SAN. If you
wish to expose the same volume to multiple instances, you will have to use an NFS or
SAMBA share from an existing instance. </para><para>Every instance larger than m1.tiny starts with some local storage (up to 160GB for m1.xlarge).
This storage is currently the second partition on the root drive. </para></section></chapter>