Ask Your Question

Revision history [back]

It's difficult to answer your question exactly. Installing Swift is more complicated operation than just entering apt-get install swift. You should find a guide to follow during your installation. Luckily, you'll find plenty of documentation about the topic.

Selected guides

You can chose one of the following:

  • Swift All In One (SAIO): This document guides you through the installation of Swift on a single machine. Great to get yourself familiar with the process.
  • Multinode Server Swift Installation: This document will guide you through a slightly more realistic installation, as Swift is almost never deployed on a single node in production.

I selected these 2, but you can find more if you search through the official documentation website.

Real World installation

The guides I showed you above have great pedagogical value, and will give you a good insight on how Swift works. However, in the real world, you'll rarely install it manually. In good devops fashion (isn't that what all the cool kids say now?), everything will be automated.

  • Devstack: devstack describes itself as "an opinionated Openstack developer's installation". It's a shell script that deploys a minimal openstack on a single machine. Programmers use it to test their patches against, but it won't give you a real idea of what Openstack (or Swift) is like in production.

Note that going through the comments of devstack is a great way to learn how Openstack works

  • Deployment in production will be done with a specialized tool like Chef or Puppet. When dealing with several dozens of disks (if not hundreds!), you don't want to do everything by hand. Virtually every "real world" deployment is done using these tools (or something equivalent).

After installation

Now that you have a working Swift installation, you can accomplish your 2nd (querying Keystone) and 3rd (upload/download files) steps by querying Swift through its API. You can find it thoroughly documented.

If you don't want to write your own Swift client, (or you don't want to go through the joys of hand-writing your HTTP requests with wget or curl), you can use the official Swift client to do this. You'll find it either on PyPI or Github.

To install from PyPI:

$ sudo pip install python-swiftclient

To install from Github

$ git clone https://github.com/openstack/python-swiftclient
$ cd python-swiftclient
$ python setup.py develop

Note that you may want to use a virtualenv, but that's outside the scope of this answer.

You can then read the inline help to discover which commands to launch:

$ swift --help

Finally, note that adding the --debug option to every command will show you in detail the HTTP requests/responses going on between your client and the server. It will (very quickly) become very handy to do so.

It's difficult to answer your question exactly. Installing Swift is more complicated operation than just entering apt-get install swift. You should find a guide to follow during your installation. Luckily, you'll find plenty of documentation about the topic.

Selected guides

You can chose one of the following:

  • Swift All In One (SAIO): This document guides you through the installation of Swift on a single machine. Great to get yourself familiar with the process.
  • Multinode Server Swift Installation: This document will guide you through a slightly more realistic installation, as Swift is almost never deployed on a single node in production.

I selected these 2, but you can find more if you search through the official documentation website.

Real World installation

The guides I showed you above have great pedagogical value, and will give you a good insight on how Swift works. However, in the real world, you'll rarely install it manually. In good devops fashion (isn't that what all the cool kids say now?), everything will be automated.

  • Devstack: devstack describes itself as "an opinionated Openstack developer's installation". It's a shell script that deploys a minimal openstack on a single machine. Programmers use it to test their patches against, but it won't give you a real idea of what Openstack (or Swift) is like in production.

Note that going through the comments of devstack is a great way to learn how Openstack works

  • Deployment in production will be done with a specialized tool like Chef or Puppet. When dealing with several dozens of disks (if not hundreds!), you don't want to do everything by hand. Virtually every "real world" deployment is done using these tools (or something equivalent).

After installation

Now that you have a working Swift installation, you can accomplish your 2nd (querying Keystone) and 3rd (upload/download files) steps by querying Swift through its API. You can find it thoroughly documented.

If you don't want to write your own Swift client, (or you don't want to go through the joys of hand-writing your HTTP requests with wget or curl), you can use the official Swift client to do this. You'll find it either on PyPI or Github.

To install from PyPI:

$ sudo pip install python-swiftclient

To install from Github

$ git clone https://github.com/openstack/python-swiftclient
$ cd python-swiftclient
$ python setup.py develop

Note that you may want to use a virtualenv, but that's outside the scope of this answer.

You can then read the inline help to discover which commands to launch:

$ swift --help

Finally, note that adding the --debug option to every command will show you in detail the HTTP requests/responses going on between your client and the server. It will (very quickly) become very handy to do so.

It's difficult to answer your question exactly. Installing Swift is more complicated operation than just entering apt-get install swift. You should find a guide to follow during your installation. Luckily, you'll find plenty of documentation about the topic.

Selected guides

You can chose one of the following:

  • Swift All In One (SAIO): This document guides you through the installation of Swift on a single machine. Great to get yourself familiar with the process.
  • Multinode Server Swift Installation: This document will guide you through a slightly more realistic installation, as Swift is almost never deployed on a single node in production.

I selected these 2, but you can find more if you search through the official documentation website.

Real World installation

The guides I showed you above have great pedagogical value, and will give you a good insight on how Swift works. However, in the real world, you'll rarely install it manually. In good devops fashion (isn't that what all the cool kids say now?), everything will be automated.

  • Devstack: devstack describes itself as "an opinionated Openstack developer's installation". It's a shell script that deploys a minimal openstack on a single machine. Programmers use it to test their patches against, but it won't give you a real idea of what Openstack (or Swift) is like in production.

Note that going through the comments of devstack is a great way to learn how Openstack works

  • Deployment in production will be done with a specialized tool like Chef or Puppet. When dealing with several dozens of disks (if not hundreds!), you don't want to do everything by hand. Virtually every "real world" deployment is done using these tools (or something equivalent).

After installation

Now that you have a working Swift installation, you can accomplish your 2nd (querying Keystone) and 3rd (upload/download files) steps by querying Swift through its API. You can find it thoroughly documented.

If you don't want to write your own Swift client, (or you don't want to go through the joys of hand-writing your HTTP requests with wget or curl), you can use the official Swift client to do this. You'll find it either on PyPI or Github.

To install from PyPI:

$ sudo pip install python-swiftclient

To install from Github

$ git clone https://github.com/openstack/python-swiftclient
$ cd python-swiftclient
$ python setup.py develop

Note that you may want to use a virtualenv, but that's outside the scope of this answer.

You can then read the inline help to discover which commands to launch:

$ swift --help

Finally, note that adding the --debug option to every command will show you in detail the HTTP requests/responses going on between your client and the server. It will (very quickly) become very handy to do so.

It's difficult to answer your question exactly. Installing Swift is more complicated operation than just entering apt-get install swift. You should find a guide to follow during your installation. Luckily, you'll find plenty of documentation about the topic.

Selected guides

You can chose one of the following:

  • Swift All In One (SAIO): This document guides you through the installation of Swift on a single machine. Great to get yourself familiar with the process.
  • Multinode Server Swift Installation: This document will guide you through a slightly more realistic installation, as Swift is almost never deployed on a single node in production.

I selected these 2, but you can find more if you search through the official documentation website.

Real World installation

The guides I showed you above have great pedagogical value, and will give you a good insight on how Swift works. However, in the real world, you'll rarely install it manually. In good devops fashion (isn't that what all the cool kids say now?), everything will be automated.

  • Devstack: devstack describes itself as "an opinionated Openstack developer's installation". It's a shell script that deploys a minimal openstack on a single machine. Programmers use it to test their patches against, but it won't give you a real idea of what Openstack (or Swift) is like in production.

Note that going through the comments of devstack is a great way to learn how Openstack works

  • Deployment in production will be done with a specialized tool like Chef or Puppet. When dealing with several dozens of disks (if not hundreds!), you don't want to do everything by hand. Virtually every "real world" deployment is done using these tools (or something equivalent).

After installation

Now that you have a working Swift installation, you can accomplish your 2nd (querying Keystone) and 3rd (upload/download files) steps by querying Swift through its API. You can find it thoroughly documented.

If you don't want to write your own Swift client, (or you don't want to go through the joys of hand-writing your HTTP requests with wget or curl), you can use the official Swift client to do this. You'll find it either on PyPI or Github.

To install from PyPI:

$ sudo pip install python-swiftclient

To install from Github

$ git clone https://github.com/openstack/python-swiftclient
$ cd python-swiftclient
$ python setup.py develop

Note that you may want to use a virtualenv, but that's outside the scope of this answer.

You can then read the inline help to discover which commands to launch:

$ swift --help

Finally, note that adding the --debug option to every command will show you in detail the HTTP requests/responses going on between your client and the server. It will (very quickly) become very handy to do so.

click to hide/show revision 5
No.5 Revision

It's difficult to answer your question exactly. Installing Swift is more complicated operation than just entering apt-get install swift. You should find a guide to follow during your installation. Luckily, you'll find plenty of documentation about the topic.

Selected guides

You can chose one of the following:

  • Swift All In One (SAIO): This document guides you through the installation of Swift on a single machine. Great to get yourself familiar with the process.
  • Multinode Server Swift Installation: This document will guide you through a slightly more realistic installation, as Swift is almost never deployed on a single node in production.

I selected these 2, but you can find more if you search through the official documentation website.

Real World installation

The guides I showed you above have great pedagogical value, and will give you a good insight on how Swift works. However, in the real world, you'll rarely install it manually. In good devops fashion (isn't that what all the cool kids say now?), everything will be automated.

  • Devstack: devstack describes itself as "an opinionated Openstack developer's installation". It's a shell script that deploys a minimal openstack on a single machine. Programmers use it to test their patches against, but it won't give you a real idea of what Openstack (or Swift) is like in production.

Note that going through the comments of devstack is a great way to learn how Openstack works

  • Deployment in production will be done with a specialized tool like Chef or Puppet. When dealing with several dozens of disks (if not hundreds!), you don't want to do everything by hand. Virtually every "real world" deployment is done using these tools (or something equivalent).

After installation

Now that you have a working Swift installation, you can accomplish your 2nd (querying Keystone) and 3rd (upload/download files) steps by querying Swift through its API. You can find it thoroughly documented.

If you don't want to write your own Swift client, (or you don't want to go through the joys of hand-writing your HTTP requests with wget or curl), you can use the official Swift client to do this. You'll find it either on PyPI or Github.

To install from PyPI:

$ sudo pip install python-swiftclient

To install from Github

$ git clone https://github.com/openstack/python-swiftclient
$ cd python-swiftclient
$ python setup.py develop

Note that you may want to use a virtualenv, but that's outside the scope of this answer.

You can then read the inline help to discover which commands to launch:

$ swift --help

Finally, note that adding the --debug option to every command will show you in detail the HTTP requests/responses going on between your client and the server. It will (very quickly) become very handy to do so.