O'Reilly logo

OpenStack Cloud Computing Cookbook by Kevin Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required