Home  >  Blog  >   OpenStack  > 

Testing OpenStack Object Storage

Rating: 4
  1. Share:
OpenStack Articles

The OpenStack Object Store is a facility that lets applications store and retrieves binary objects using the RESTful methods of the Swift API — this scales better than OS-level access to block storage and conventional file systems.

OpenStack Object Storage can be installed either on one server or multi-server for development or testing purposes, a multiple-server installation enables the higher availability and redundancy you want in a production distributed object storage system. Accounts, containers, and objects in the Object Storage system can be managed.

To know more details about its installation procedure, refer to Installing OpenStack Object Storage
We are now ready to test our installation of OpenStack Object Storage, and we can achieve this in a couple of ways—by using curl and using the swift command-line utility.

If you would like to become an OpenStack  Certified professional, then visit Mindmajix - A Global online training platform:" OpenStack Certification Training Course ". This course will help you to achieve excellence in this domain.

Get ready for Testing OpenStack Object Storage

Ensure that you are logged in to your swift virtual machine. To accomplish this, run:

In this recipe, we will use the swift command to test connectivity with OpenStack Object Storage.

MindMajix YouTube Channel

Using a swift command to test OpenStack Object Storage

The swift client is the command-line interface (CLI) for the Object Storage service API and its extensions. The Swift engine is the default back-end for the Object Store and is also used by Glance for storing images in HA deployments.
Rather than seeing the web service output, we can use the command-line tool swift (previously known as st) to ensure that we have a working setup. Note that the output matches the reply headers seen when queried using curl.
swift -A -U service:swift -K swift -V 2.0 stat
You should see the following output:
Account: AUTH_test
Containers: 0
Objects: 0
Bytes: 0
Accept-Ranges: bytes

Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers

OpenStack Object Storage is a web service, so we can use traditional command-line web clients to troubleshoot and verify our OpenStack Object Storage installation. This becomes very useful for debugging OpenStack Object Storage at this low level, just as you would debug any web service.
The swift command uses the credentials, we supplied while building the proxy-server. conf. In turn, this command authenticates us against the keystone and then lists the statistics of that container.

Join our newsletter

Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!

Course Schedule
OpenStack TrainingDec 10 to Dec 25
OpenStack TrainingDec 13 to Dec 28
OpenStack TrainingDec 17 to Jan 01
OpenStack TrainingDec 20 to Jan 04
Last updated: 06 December 2022
About Author
Ravindra Savaram

Ravindra Savaram is a Content Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

Recommended Courses

1 /15