Juju Charm - Glance
Go to file
Liam Young 2c2d514713 [gnuoy,trivial] Pre-release charmhelper sync 2015-04-23 15:52:07 +01:00
actions Move config_changed into try block 2015-04-15 16:29:59 +00:00
hooks [gnuoy,trivial] Pre-release charmhelper sync 2015-04-23 15:52:07 +01:00
scripts Sync scripts/. 2013-04-09 11:30:47 -07:00
templates Switch to using charm-helper templates for keystone authtoken 2015-03-25 09:25:38 +00:00
tests [gnuoy,trivial] Pre-release charmhelper sync 2015-04-23 15:52:07 +01:00
unit_tests Tidy lint 2015-04-21 16:33:15 +01:00
.bzrignore Deploy from source 2015-04-01 16:48:59 +00:00
.coveragerc really add coveragerc 2013-08-14 18:56:40 -04:00
.project Add missing files 2013-10-22 16:15:28 -07:00
.pydevproject Add missing files 2013-10-22 16:15:28 -07:00
Makefile auto Makefile test target (amulet): bump juju test timeout to 2700s (same value as the juju-deployer default). Also remove explicit test names, which will cause all +x files in ./tests to be executed (as bundletester does by default). 2015-04-16 21:32:02 +00:00
README.md Overall refresh to current install from source approach 2015-03-21 01:36:16 +00:00
actions.yaml Overall refresh to current install from source approach 2015-03-21 01:36:16 +00:00
charm-helpers-hooks.yaml Overall refresh to current install from source approach 2015-03-21 01:36:16 +00:00
charm-helpers-tests.yaml Overall refresh to current install from source approach 2015-03-21 01:36:16 +00:00
config.yaml Deploy from source 2015-04-01 16:48:59 +00:00
copyright copyright: Update date. 2012-06-19 16:05:29 -07:00
icon.svg Update icon.svg 2013-10-23 13:14:56 -07:00
metadata.yaml [bradm] initial nrpe checks 2014-10-29 22:30:35 -05:00
revision adding postgresql support 2014-03-26 09:21:15 +01:00
setup.cfg [yolanda] Add postgresql support 2014-03-31 12:29:37 +01:00

README.md

Overview

This charm provides the Glance image service for OpenStack. It is intended to be used alongside the other OpenStack components, starting with the Essex release in Ubuntu 12.04.

Usage

Glance may be deployed in a number of ways. This charm focuses on 3 main configurations. All require the existence of the other core OpenStack services deployed via Juju charms, specifically: mysql, keystone and nova-cloud-controller. The following assumes these services have already been deployed.

Local Storage

In this configuration, Glance uses the local storage available on the server to store image data:

juju deploy glance
juju add-relation glance keystone
juju add-relation glance mysql
juju add-relation glance nova-cloud-controller

Swift backed storage

Glance can also use Swift Object storage for image storage. Swift is often deployed as part of an OpenStack cloud and provides increased resilience and scale when compared to using local disk storage. This configuration assumes that you have already deployed Swift using the swift-proxy and swift-storage charms:

juju deploy glance
juju add-relation glance keystone
juju add-relation glance mysql
juju add-relation glance nova-cloud-controller
juju add-relation glance swift-proxy

This configuration can be used to support Glance in HA/Scale-out deployments.

Ceph backed storage

In this configuration, Glance uses Ceph based object storage to provide scalable, resilient storage of images. This configuration assumes that you have already deployed Ceph using the ceph charm:

juju deploy glance
juju add-relation glance keystone
juju add-relation glance mysql
juju add-relation glance nova-cloud-controller
juju add-relation glance ceph

This configuration can also be used to support Glance in HA/Scale-out deployments.

Glance HA/Scale-out

The Glance charm can also be used in a HA/scale-out configuration using the hacluster charm:

juju deploy -n 3 glance
juju deploy hacluster haglance
juju set glance vip=<virtual IP address to access glance over>
juju add-relation glance haglance
juju add-relation glance mysql
juju add-relation glance keystone
juju add-relation glance nova-cloud-controller
juju add-relation glance ceph|swift-proxy

In this configuration, 3 service units host the Glance image service; API requests are load balanced across all 3 service units via the configured virtual IP address (which is also registered into Keystone as the endpoint for Glance).

Note that Glance in this configuration must be used with either Ceph or Swift providing backing image storage.

Deploying from source

The minimum openstack-origin-git config required to deploy from source is:

openstack-origin-git: "repositories: - {name: requirements, repository: 'git://git.openstack.org/openstack/requirements', branch: stable/juno} - {name: glance, repository: 'git://git.openstack.org/openstack/glance', branch: stable/juno}"

Note that there are only two 'name' values the charm knows about: 'requirements' and 'glance'. These repositories must correspond to these 'name' values. Additionally, the requirements repository must be specified first and the glance repository must be specified last. All other repostories are installed in the order in which they are specified.

The following is a full list of current tip repos (may not be up-to-date):

openstack-origin-git: "repositories: - {name: requirements, repository: 'git://git.openstack.org/openstack/requirements', branch: master} - {name: oslo-concurrency, repository: 'git://git.openstack.org/openstack/oslo.concurrency', branch: master} - {name: oslo-config, repository: 'git://git.openstack.org/openstack/oslo.config', branch: master} - {name: oslo-db, repository: 'git://git.openstack.org/openstack/oslo.db', branch: master} - {name: oslo-i18n, repository: 'git://git.openstack.org/openstack/oslo.i18n', branch: master} - {name: oslo-messaging, repository: 'git://git.openstack.org/openstack/oslo.messaging', branch: master} - {name: oslo-serialization, repository: 'git://git.openstack.org/openstack/oslo.serialization', branch: master} - {name: oslo-utils, repository: 'git://git.openstack.org/openstack/oslo.utils', branch: master} - {name: oslo-vmware, repository: 'git://git.openstack.org/openstack/oslo.vmware', branch: master} - {name: osprofiler, repository: 'git://git.openstack.org/stackforge/osprofiler', branch: master} - {name: pbr, repository: 'git://git.openstack.org/openstack-dev/pbr', branch: master} - {name: python-keystoneclient, repository: 'git://git.openstack.org/openstack/python-keystoneclient', branch: master} - {name: python-swiftclient, repository: 'git://git.openstack.org/openstack/python-swiftclient', branch: master} - {name: sqlalchemy-migrate, repository: 'git://git.openstack.org/stackforge/sqlalchemy-migrate', branch: master} - {name: stevedore, repository: 'git://git.openstack.org/openstack/stevedore', branch: master} - {name: wsme, repository: 'git://git.openstack.org/stackforge/wsme', branch: master} - {name: keystonemiddleware, repository: 'git://git.openstack.org/openstack/keystonemiddleware', branch: master} - {name: glance-store, repository: 'git://git.openstack.org/openstack/glance_store', branch: master} - {name: glance, repository: 'git://git.openstack.org/openstack/glance', branch: master}"

Contact Information

Author: Adam Gandelman adamg@canonical.com Report bugs at: http://bugs.launchpad.net/charms Location: http://jujucharms.com