openstack-manuals/doc/install-guide/source/swift-verify.rst
Matthew Kassawara 5eb78aad48 [install] Liberty updates for swift
Update swift configuration for Liberty. Includes moving
basic host configuration of object storage nodes to
environment section. Also addresses some consistency
issues, mostly from the RST conversion.

Changes and testing specific to distribution packages
primarily involve Ubuntu. Other distributions may require
additional patches.

Change-Id: I00c9f9fbc3700ebf0423a4c1ac92ff6863852df6
Implements: blueprint installguide-liberty
2015-10-07 16:37:24 -06:00

1.7 KiB

Verify operation

Verify operation of the Object Storage service.

Note

Perform these steps on the controller node.

  1. In each client environment script, configure the Object Storage service client to use the Identity API version 3:

    $ echo "export OS_AUTH_VERSION=3" \
      | tee -a admin-openrc.sh demo-openrc.sh
  2. Source the demo credentials:

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

    $ swift stat
                            Account: AUTH_ed0b60bf607743088218b0a533d5943f
                         Containers: 0
                            Objects: 0
                              Bytes: 0
    Containers in policy "policy-0": 0
       Objects in policy "policy-0": 0
         Bytes in policy "policy-0": 0
        X-Account-Project-Domain-Id: default
                        X-Timestamp: 1444143887.71539
                         X-Trans-Id: tx1396aeaf17254e94beb34-0056143bde
                       Content-Type: text/plain; charset=utf-8
                      Accept-Ranges: bytes
  4. Upload a test file:

    $ swift upload container1 FILE
    FILE

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

  5. List containers:

    $ swift list
    container1
  6. Download a test file:

    $ swift download 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 container1 container.