Test Swift access
Swift access can be verified via the swift command line client. The
man swift command provides more information on available command line
options.
To install the swift client, run the following command:
sudo yum install python-setuptools
sudo easy_install pip
sudo pip install --upgrade setuptools
sudo pip install --upgrade python-swiftclient
To test swift access, run the following command:
Syntax
# swift -A http://IP_ADDRESS:PORT/auth/1.0 -U testuser:swift -K 'SWIFT_SECRET_KEY' list
Replace IP_ADDRESS with the public IP address of the gateway server and
SWIFT_SECRET_KEY with its value from the output of the radosgw-admin key
create command issued for the swift user. Replace PORT with the
port number you are using with Beast. If you do not replace the port, it will default to port
80.
For example:
swift -A http://10.10.143.116:80/auth/1.0 -U testuser:swift -K '244+fz2gSqoHwR3lYtSbIyomyPHf3i7rgSJrF/IA' list
The output should be:
my-new-bucket