Mindmajix

Installing the swift client tool

In order to operate our OpenStack Object Storage environment, we need to install an appropriate tool on our client. Swift ships with the swift tool, is one such component that allows us to upload, download, and modify files in our OpenStack Object Storage environment.

Getting ready..

To begin with, ensure you are logged into computer or server where we can install the swift client and has access to our OpenStack environment on the host address 172.16.0.0/16. The following instructions describes the installation procedure for the Ubuntu Operating System.

We will be using OpenStack Object Storage, authenticating against the OpenStack Identity Service, Keystone. Its configuration can be read from Configuring OpenStack Object Storage with OpenStack Identity Service.

How to do it…

We download and install the swift client conveniently from the Ubuntu repositories using the familiar utility as follows:

  • Installation of the swift client is done by installing the swift package as well as acquiring the python libraries for the OpenStack Identity Service, Keystone. We do this as follows:

sudo apt-get update

sudo apt-get -y install python-swiftclient python-keystone

  • No further configuration is required. To test that you have successfully installed swift and can connect to your OpenStack Object Storage server, issue the following command:

swift -V 2.0 -A http://172.16.0.200:5000/v2.0/ \ -U cookbook:demo -K openstack stat

  • This will bring back statistics about our OpenStack Object Storage environment to which a demo user, who is a member of the cookbook tenant, has access. An example is shown in the below screenshot:

Screenshot_110

How it works…

The swift client package is easily installed under Ubuntu and it requires no further configuration after downloading, as all parameters needed to communicate with OpenStack Object Storage use the command line.

Tip

When contacting that OpenStack Object Storage which uses the OpenStack Identity Service authentication, you can configure your client to communicate to OpenStack Identity Server, not OpenStack Object Storage Proxy Server.

http://docs.openstack.org/cli-reference/common/cli_install_openstack_command_line_clients.html


0 Responses on Installing the swift client tool"

Leave a Message

Your email address will not be published. Required fields are marked *

Copy Rights Reserved © Mindmajix.com All rights reserved. Disclaimer.
Course Adviser

Fill your details, course adviser will reach you.