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

Testing OpenStack Storage

We are now ready to test our installation of OpenStack Storage, and we can achieve this in a couple of ways—by using curl and using the swift command-line utility.

Getting ready

For this section, we will log in to our swift1 host.

How to do it...

As OpenStack Storage is a web service, we will use curl to do some basic tests to ensure our services are running as they should. We will perform some basic authentication and connect to our web service using these details.

Using curl to test OpenStack Storage

  1. We first authenticate to our swift proxy server running on port 8080, on our host.
    curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0
    
  2. We should see output similar to the following, ...

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