Juju Charm - Swift storage
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenDev Sysadmins 381297204c OpenDev Migration Patch 1 month ago
actions Upgrade the charm to py3 runtime 7 months ago
charmhelpers stein: Add swift 2.21.0 1 month ago
files Fix import errors on Nagios check file 1 month ago
hooks Update pre-install hooks to fail on error 3 months ago
lib Upgrade the charm to py3 runtime 7 months ago
templates Fix gid key in swift conf 9 months ago
tests Enable bionic/stein and disco/stein functional tests 1 month ago
unit_tests Fix import errors on Nagios check file 1 month ago
.gitignore Add support for block device encryption 1 year ago
.gitreview OpenDev Migration Patch 1 month ago
.project Resynced helpers 5 years ago
.pydevproject Enable xenial/queens amulet testing 1 year ago
.stestr.conf Replace ostestr with stestr in testing framework. 2 months ago
.zuul.yaml Added tox environment for gathering coverage 2 months ago
LICENSE Re-license charm as Apache-2.0 2 years ago
Makefile Tests dir no longer need copy of charmhelpers 7 months ago
README.md Replace obsolete vanity openstack.org URLs 2 years ago
actions.yaml Action Managed Upgrades 3 years ago
charm-helpers-hooks.yaml Update charm-helpers-hooks.yaml and sync ch 3 months ago
config.yaml Add support for block device encryption 1 year ago
copyright Re-license charm as Apache-2.0 2 years ago
hardening.yaml Add hardening support 3 years ago
icon.svg Update charm icon 1 year ago
metadata.yaml Update series metadata 1 month ago
requirements.txt Update requirements 7 months ago
revision Remove debug. 5 years ago
setup.cfg Add project infomation into setup.cfg 4 months ago
test-requirements.txt Replace ostestr with stestr in testing framework. 2 months ago
tox.ini Replace ostestr with stestr in testing framework. 2 months ago

README.md

Overview

This charm provides the swift-storage component of the OpenStack Swift object storage system. It can be deployed as part of its own standalone storage cluster or it can be integrated with the other OpenStack components, assuming those are also managed by Juju. For Swift to function, you’ll also need to deploy an additional swift-proxy using the cs:precise/swift-proxy charm.

For more information about Swift and its architecture, visit the official project website https://docs.openstack.org/developer/swift.

This charm was developed to support deploying multiple version of Swift on Ubuntu Precise 12.04, as they relate to the release series of OpenStack. That is, OpenStack Essex corresponds to Swift 1.4.8 while OpenStack Folsom shipped 1.7.4. This charm can be used to deploy either (and future) versions of Swift onto an Ubuntu Precise 12.04, making use of the Ubuntu Cloud Archive when needed.

Usage

This charm is quite simple. Its basic function is to get a storage device setup for swift usage, and run the container, object and account services. The deployment workflow for swift using this charm is covered in the README for the swift-proxy charm at cs:precise/swift-proxy. The following are deployment options to take into consideration when deploying swift-storage.

Zone assignment

If the swift-proxy charm is configured for manual zone assignment (recommended), the ‘zone’ option should be set for each swift-storage service being deployed. See the swift-proxy README for more information about zone assignment.

Storage

Swift storage nodes require access to local storage and filesystem. The charm takes a ‘block-device’ config setting that can be used to specify which storage device(s) to use. Options include:

  • 1 or more local block devices (eg, sdb or /dev/sdb). It’s important that this device be the same on all machine units assigned to this service. Multiple block devices should be listed as a space-separated list of device nodes.
  • a path to a local file on the filesystem with the size appended after a pipe, eg “/etc/swift/storagedev1.img|5G”. This will be created if it does not exist and be mapped to a loopback device. Good for development and testing.
  • “guess” can be used to tell the charm to do its best to find a local devices to use. EXPERIMENTAL

Multiple devices can be specified. In all cases, the resulting block device(s) will each be formatted as XFS file system and mounted at /srv/node/$devname.

Installation repository

The ‘openstack-origin’ setting allows Swift to be installed from installation repositories and can be used to setup access to the Ubuntu Cloud Archive to support installing Swift versions more recent than what is shipped with Ubuntu 12.04 (1.4.8). For more information, see config.yaml.