4.7. Validate the Object Storage Service Installation

After installing and configuring the Block Storage service, perform the following steps to validate it:

Procedure 4.6. Validating the Object Storage Service installation

  1. On your proxy server node, use the openstack-config command to turn on debug level logging:
    # openstack-config --set /etc/swift/proxy-server.conf DEFAULT log_level debug
  2. Set up the shell to access Keystone as the admin user:
    $ source ~/keystonerc_admin
  3. Use the swift list to make sure you can connect to your proxy server:
    $ swift list
          Message from syslogd@example-swift-01 at Jun 14 02:46:00 ...
     135 proxy-server Server reports support for api versions: v3.0, v2.0
  4. Use the swift command to upload some files to your Object Storage Service nodes
    $ head -c 1024 /dev/urandom > data1.file ; swift upload c1 data1.file
    $ head -c 1024 /dev/urandom > data2.file ; swift upload c1 data2.file      
    $ head -c 1024 /dev/urandom > data3.file ; swift upload c1 data3.file
  5. Use the swift command to take a listing of the objects held in your Object Storage Service cluster.
    $ swift list
    $ swift list c1
You have now uploaded 3 files into 1 container. If you check the other storage devices, you will find more .data files, depending on your replica count.
$ find /srv/node/ -type f -name "*data"