Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenStack Essentials

You're reading from   OpenStack Essentials Demystify the cloud by building your own private OpenStack cloud

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781783987085
Length 182 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Dan Radez Dan Radez
Author Profile Icon Dan Radez
Dan Radez
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Architecture and Component Overview 2. RDO Installation FREE CHAPTER 3. Identity Management 4. Image Management 5. Network Management 6. Instance Management 7. Block Storage 8. Object Storage 9. Telemetry 10. Orchestration 11. Scaling Horizontally 12. Monitoring 13. Troubleshooting Index

Creating and using object storage


The two main concepts when using Swift are containers and objects. Containers are groups of files that contain objects. Objects are simply files and must exist inside of a container. On the Swift command line, you cannot create an empty container. A container is created when the first object is uploaded to it. Make sure that your keystonerc file is sourced, and start by uploading a file to a container. Let's use the packstack.txt file used for installation as an example file to upload:

control# swift upload my_container packstack.txt
control# swift list
control# swift list my_container

You will notice that the list command is used to list both containers and objects. If you don't pass any arguments to the list command, you will get a list of containers. If you pass a container as an argument, you will get a list of the objects in that container. Next, upload the same file, but use its absolute path to upload it, as follows:

control# swift upload my_container...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image