openstack-manuals/doc/install-guide-rst/source/swift-verify.rst
Christian Berendt 24395ba8d2 [install-guide] migrate section swift to RST
Implements: blueprint installguide-liberty

Change-Id: I45743e259ae4318a68c8ae64d2757671954ad0b1
2015-08-05 10:21:56 -04:00

1.3 KiB

Verify operation

This section describes how to verify operation of the Object Storage service.

Note

The swift client requires the -V 3 parameter to use the Identity version 3 API.

Note

Perform these steps on the controller node.

  1. Source the demo credentials:

    $ source demo-openrc.sh
  2. Show the service status:

    $ swift -V 3 stat
    Account: AUTH_c75cafb58f5049b8a976506737210756
         Containers: 0
            Objects: 0
              Bytes: 0
    X-Put-Timestamp: 1429736713.92936
        X-Timestamp: 1429736713.92936
         X-Trans-Id: txdea07add01ca4dbdb49a2-0055380d09
       Content-Type: text/plain; charset=utf-8
  3. Upload a test file:

    $ swift -V 3 upload demo-container1 FILE
    FILE

    Replace FILE with the name of a local file to upload to the demo-container1 container.

  4. List containers:

    $ swift -V 3 list
    demo-container1
  5. Download a test file:

    $ swift -V 3 download demo-container1 FILE
    FILE [auth 0.295s, headers 0.339s, total 0.339s, 0.005 MB/s]

    Replace FILE with the name of the file uploaded to the demo-container1 container.