Juju Charm - Glance
Go to file
Corey Bryant 74e10c82d4 Add defaults for openstack-origin-git config option
openstack-origin-git currently only supports YAML that specifies
the git repositories to deploy from.

This adds support for default openstack-origin-git values. The
default values supported are: icehouse, kilo, liberty, mitaka,
and master.  For example: openstack-origin-git=master.

Change-Id: I17eebbe81053233c60687acf453b17109110993f
2016-06-20 09:07:33 -04:00
actions Enhanced pause and resume for maintenance mode 2016-03-18 10:18:56 +00:00
charmhelpers Add defaults for openstack-origin-git config option 2016-06-20 09:07:33 -04:00
hooks Add defaults for openstack-origin-git config option 2016-06-20 09:07:33 -04:00
scripts Sync scripts/. 2013-04-09 11:30:47 -07:00
templates Add systemd init support for deploy from source 2016-06-08 18:41:29 +00:00
tests Switch to using charm-store for amulet tests 2016-06-17 11:43:57 +01:00
unit_tests Add support for glance-api-ready relation flag 2016-06-16 17:26:11 +01:00
.coveragerc Move charmhelpers to separate dir. 2015-08-25 15:26:22 +03:00
.gitignore Enhanced pause and resume for maintenance mode 2016-03-18 10:18:56 +00:00
.gitreview Add gitreview prior to migration to openstack 2016-02-24 21:53:30 +00: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
.testr.conf Add support for lint and testing using tox 2015-09-14 15:12:33 +01:00
Makefile Use tox in Makefile targets 2016-03-15 20:12:40 -07:00
README.md Add defaults for openstack-origin-git config option 2016-06-20 09:07:33 -04:00
actions.yaml Expand description. 2015-08-28 09:58:27 +03:00
charm-helpers-hooks.yaml Add defaults for openstack-origin-git config option 2016-06-20 09:07:33 -04:00
charm-helpers-tests.yaml Move charm-helpers.yaml to charm-helpers-hooks.yaml, add charm-helpers-tests.yaml, update Makefile sync target. 2014-06-24 19:54:45 +00:00
config.yaml Add defaults for openstack-origin-git config option 2016-06-20 09:07:33 -04:00
copyright copyright: Update date. 2012-06-19 16:05:29 -07:00
hardening.yaml Add hardening support 2016-03-29 14:26:51 +01:00
icon.svg Update icon.svg 2013-10-23 13:14:56 -07:00
metadata.yaml Add Juju Network Space support 2016-03-31 09:27:33 +01:00
requirements.txt Charmhelper sync before 1604 testing 2016-04-13 08:35:27 +00:00
revision incr revision 2014-03-07 09:29:37 -05:00
setup.cfg [yolanda] Add postgresql support 2014-03-31 12:29:37 +01:00
test-requirements.txt Update to charm-tools >= 2.0.0 2016-03-23 09:30:17 +00:00
tox.ini Update to charm-tools >= 2.0.0 2016-03-23 09:30:17 +00: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.

Glance metering

In order to do Glance metering with Ceilometer, an AMQP relation is required e.g.

juju deploy glance
juju deploy rabbitmq-server
juju deploy ceilometer-agent
...
juju add-relation glance rabbitmq-server
juju add-relation glance ceilometer-agent
...

Network Space support

This charm supports the use of Juju Network Spaces, allowing the charm to be bound to network space configurations managed directly by Juju. This is only supported with Juju 2.0 and above.

API endpoints can be bound to distinct network spaces supporting the network separation of public, internal and admin endpoints.

Access to the underlying MySQL instance can also be bound to a specific space using the shared-db relation.

To use this feature, use the --bind option when deploying the charm:

juju deploy glance --bind "public=public-space internal=internal-space admin=admin-space shared-db=internal-space"

alternatively these can also be provided as part of a juju native bundle configuration:

glance:
  charm: cs:xenial/glance
  num_units: 1
  bindings:
    public: public-space
    admin: admin-space
    internal: internal-space
    shared-db: internal-space

NOTE: Spaces must be configured in the underlying provider prior to attempting to use them.

NOTE: Existing deployments using os-*-network configuration options will continue to function; these options are preferred over any network space binding provided if set.

Contact Information

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