Issue link: https://read.uberflip.com/i/1334488
Using OpenStack Storage 120 How it works... The swift client is a basic but versatile tool that allows us to do many of the things we want to do with files. Deleting objects and containers is achieved using the following syntax: swift -V 2.0 -A http://keystone_server:5000/v2.0 -U tenant:user -K password delete container {object … } To download all objects from our account (for example, from all containers), we specify the following syntax: swift -V 2.0 -A http://keystone_server:5000/v2.0 -U tenant:user -K password delete –all 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 www.it-ebooks.info

