Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 318 trang
THÔNG TIN TÀI LIỆU
Cấu trúc
Cover
Copyright
Credits
About the Author
About the Reviewers
www.PacktPub.com
Table of Contents
Preface
Chapter 1: Starting OpenStack Compute
Introduction
Creating a sandbox environment
with VirtualBox
Installing OpenStack Compute packages
Configuring database services
Configuring OpenStack Compute
Stopping and starting Nova services
Creating a cloudadmin account and project
Installation of command line-tools
Uploading a sample machine image
Launching your first cloud instance
Terminating your instance
Chapter 2: Administering OpenStack Compute
Introduction
Creating and modifying user accounts
Managing security groups
Creating and managing keypairs
Using public cloud images
Alternative upload method using euca2ools
Creating custom Windows images
Creating custom CentOS images
Chapter 3: Keystone OpenStack Identity Service
Introduction
Installing OpenStack Identity Service
Configuring roles
Creating tenants
Adding users
Defining service endpoints
Configuring the service tenant and
service users
Configuring OpenStack Image Service to use OpenStack Identity Service
Configuring OpenStack Compute to use OpenStack Identity Service
Using OpenStack Compute with OpenStack Identity Service
Chapter 4: Installing OpenStack Storage
Introduction
Creating an OpenStack Storage sandbox environment
Installing the OpenStack Storage services
Configuring storage
Configuring replication
Configuring OpenStack Storage Service
Configuring the OpenStack Storage
proxy server
Configuring Account Server
Configuring Container Server
Configuring Object Server
Making the Object, Account, and
Container rings
Stopping and starting OpenStack Storage
Testing OpenStack Storage
Setting up SSL access
Configuring OpenStack Storage with OpenStack Identity Service
Chapter 5: Using OpenStack Storage
Introduction
Installing the swift client tool
Creating containers
Uploading objects
Uploading large objects
Listing containers and objects
Downloading objects
Deleting containers and objects
Using OpenStack Storage ACLs
Chapter 6: Administering OpenStack Storage
Introduction
Preparing drives for OpenStack Storage
Managing the OpenStack Storage cluster with swift-init
Checking cluster health
OpenStack Storage benchmarking
Managing capacity
Removing nodes from a cluster
Detecting and replacing failed hard drives
Collecting usage statistics
Chapter 7: Glance OpenStack Image Service
Introduction
Installing OpenStack Image Service
Configuring OpenStack Image Service
with MySQL
Configuring OpenStack Compute with OpenStack Image Service
Configuring OpenStack Image Service with OpenStack Storage
Managing images with OpenStack
Image Service
Registering a remotely stored image
Chapter 8: Nova Volumes
Introduction
Configuring nova-volume services
Configuring OpenStack Compute for
nova-volume
Creating volumes
Attaching volumes to instances
Detaching volumes from an instance
Deleting volumes
Chapter 9: Horizon OpenStack Dashboard
Introduction
Installing OpenStack Dashboard
Keypair management in OpenStack Dashboard
Security group management by using OpenStack Dashboard
Launching instances by using
OpenStack Dashboard
Terminating instances by using OpenStack Dashboard
Connecting to instances by using
OpenStack Dashboard and VNC
Adding new tenants by using
OpenStack Dashboard
User management by using OpenStack Dashboard
Chapter 10: OpenStack Networking
Introduction
Configuring Flat networking
Configuring Flat networking with DHCP
Configuring VLAN Manager networking
Configuring per-project (tenant) IP ranges
Automatically assigning fixed networks
to tenants
Modifying a tenant's fixed network
Manually associating floating IPs
to instances
Manually disassociating floating IPs
from instances
Automatically assigning floating IPs
Chapter 11: In the Datacenter
Introduction
Installing MAAS for bare-metal provisioning
Using MAAS for bare-metal provisioning
of hosts
Installing and configuring Juju
Installing OpenStack services using Juju
Increasing OpenStack Compute capacity
MySQL clustering using Galera
Configuring HA Proxy for MySQL Galera
load balancing
Increasing resilience of OpenStack services
Bonding network interfaces for redundancy
Chapter 12: Monitoring
Introduction
Monitoring Compute services with Munin
Monitoring instances using Munin
and Collectd
Monitoring the storage service using
StatsD/Graphite
Monitoring MySQL with Hyperic
Chapter 13: Troubleshooting
Introduction
Checking OpenStack Compute Services
Understanding logging
Troubleshooting OpenStack
Compute Services
Troubleshooting OpenStack Storage Service
Troubleshooting OpenStack Authentication
Submitting bug reports
Getting help from the community
Index
Index
Nội dung
[...]... your own environments OpenStack Cloud Computing Cookbook gives you clear, step-by-step instructions to install and run your own private cloud successfully It is full of practical and applicable recipes that enable you to use the latest capabilities of OpenStack and implement them Preface What this book covers Chapter 1, Starting OpenStack Compute, teaches you how to set up and use OpenStack Compute running... an admin user which we will call openstack as follows: sudo nova-manage user admin openstack 2 We then assign the openstack user to the cloudadmin role as follows: sudo nova-manage role add openstack cloudadmin 3 Once we have that role assigned, which is appropriate for this section to run as the cloudadmin role, we can create a project for this user that we will call cookbook We do this as follows:... http://uec-images.ubuntu.com/releases/precise/release/ubuntu12.04-server-cloudimg-i386.tar.gz 2 Once downloaded, we need to install the cloud- utils package that provides tools to upload images to our OpenStack Compute environment: sudo apt-get update sudo apt-get -y install cloud- utils 3 We can then proceed to upload this to our OpenStack Compute installation using the cloud- publish-tarball command provided by the cloud- utils package cloud- publish-tarball... be authorized Cloud instances rely on keypairs for access The following commands will create a keypair named openstack: To create our keypair using euca2ools, use the following commands: euca-add-keypair openstack > openstack. pem chmod 0600 *.pem 5 To create your keypair using Nova Client, use the following commands: nova keypair-add openstack > openstack. pem chmod 0600.pem 21 Starting OpenStack Compute... Administering OpenStack Compute, teaches you how to manage user accounts and security groups as well as how to deal with cloud images to run in an OpenStack environment Chapter 3, Keystone OpenStack Identity Service, takes you through installation and configuration of Keystone, which underpins all of the other OpenStack services Chapter 4, Installing OpenStack Storage, teaches you how to configure and use OpenStack. .. to be present for a cloud instance to work (as in the previous example) but sometimes you may come across cloud images that have these See also ff The Using public cloud images recipe in Chapter 2, Administering OpenStack Compute Launching your first cloud instance Now that we have a running OpenStack Compute environment and a machine image to use, its now time to spin up our first cloud instance! This... a running OpenStack Compute environment, it's time to upload an image for us to use An image is a machine template, which is cloned when we spin up new cloud instances Images used in Amazon, known as AMIs (or Amazon Machine Images) can often be used in OpenStack For this next section, we will use an Ubuntu Enterprise Cloud image, which can be used in both Amazon and our OpenStack Compute cloud instance... Terminating your instance Starting OpenStack Compute Introduction OpenStack Compute, also known as Nova, is the compute component of the open source cloud operating system, OpenStack It is the component that allows you to run multiple instances of virtual machines on any number of hosts running the OpenStack Compute service, allowing you to create a highly scalable and redundant cloud environment The open... Hard Drive VBoxManage storagectl openstack1 name "SATA Controller" add sata controller IntelAHCI hostiocache on bootable on VBoxManage createhd filename openstack1 .vdi size 20480 VBoxManage storageattach openstack1 storagectl "SATA Controller" port 0 device 0 type hdd medium openstack1 .vdi 3 We are now ready to power on our OpenStack1 node Do this by selecting OpenStack1 Virtual Machine and... our OpenStack Compute environment This is an ideal way to start working with OpenStack within a small development environment such as our sandbox For larger, production ready environments, Keystone is used, which is covered in Chapter 6, Administering OpenStack Storage The cloudadmin account group is the equivalent of the root user on a Unix/Linux host It has access to all aspects of your Nova cloud . class="bi x0 y0 w0 h0" alt=""
OpenStack Cloud
Computing Cookbook
Over 100 recipes to successfully set up and manage your
OpenStack cloud environments with. 67
Conguring OpenStack Image Service to use OpenStack Identity Service 70
Conguring OpenStack Compute to use OpenStack Identity Service 72
Using OpenStack