Installing the swift client tool - Openstack

  • (4.0)
  • | 979 Ratings

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 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.

To gain in-depth knowledge and be on par with practical experience, then explore  OpenStack Training course.

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 -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:


Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers!  Download Now!

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.


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.

Related Pages:
Openstack Tutorial

Interview Questions:
Openstack Interview Questions

Subscribe For Free Demo

Free Demo for Corporate & Online Trainings. Protection Status