Book Image

OpenStack Cloud Computing Cookbook

By : Kevin Jackson
Book Image

OpenStack Cloud Computing Cookbook

By: Kevin Jackson

Overview of this book

<p>OpenStack is an open Source cloud operating stack born from Rackspace and NASA which is now a global success, developed and supported by scores of people around the globe and backed by some of the leading players in the cloud space today.<br /><br /><em>OpenStack Cloud Computing Cookbook</em> will show you exactly how to install the components that are required to make up a private cloud environment. You will learn how to set up an environment that you manage, just as you would do with AWS or Rackspace.<br /><br />The Cookbook starts by configuring Nova (Compute) and Swift (Storage) in a safe, virtual environment that builds on through the book, to provisioning and managing OpenStack in the Datacenter.<br /><br />From Installing Nova in a Virtual Environment to installing OpenStack in the Datacenter, from understanding logging to securing your OpenStack environment, whatever level of experience or interest you have with OpenStack there are recipes that guide you through the journey. Installation steps cover Compute, Swift, Keystone, Nova Volumes, Glance and Horizon.<br /><br /><em>OpenStack Cloud Computing Cookbook</em> gives you clear step-by-step instructions to installing and running 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.</p>
Table of Contents (20 chapters)
OpenStack Cloud Computing Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using OpenStack Storage ACLs


ACLs allow us to have greater control over individual objects and containers without requiring full read/write access to a particular container.

Getting ready

Log in to a computer that has the keystone and swift clients available.

How to do it...

Carry out the following steps:

We will first create an account in our OpenStack Identity Server that is only a Member in the cookbook tenant. We will call this user, user.

export ENDPOINT=172.16.0.1
export SERVICE_TOKEN=ADMIN
export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0

# First get TENANT_ID related to our 'cookbook' tenant
TENANT_ID=$(tenant-list | awk ' / cookbook / {print $2}')

# We then create the user specifying the TENANT_ID 
keystone user-create --name user --tenant_id $TENANT_ID --pass openstack --email user@localhost --enabled true
# We get this new user's ID
USER_ID=$(keystone user-list | awk ' / user / {print $2}')

# We get the ID of the 'Member' role
ROLE_ID=$(keystone role-list | awk ' / Member...