Snap package for Glance
Go to file
Corey Bryant 9954765a70 Use auto-alias for glance-manage
The current snaps now have well-known aliases defined at install time
for commands [1]. This means we can drop the manual alias definition
from snapcraft.yaml and the instructions for setting it up.

When building/installing locally users can still create the alias
with 'snap alias'.

[1] https://forum.snapcraft.io/t/auto-aliases-for-openstack-base-snaps/1146/6

Change-Id: Ib34183ded789775fa76d701bd78a168bccb5fa08
2017-07-11 20:22:14 +00:00
patches Patch (_COMMON) dirs into oslo.config defaults 2017-06-22 00:46:24 +00:00
snap Switch back to strict confinement 2017-06-22 12:16:08 +00:00
.gitignore Add basic tox configuration for building the snap 2016-11-21 11:21:27 +00:00
.gitreview Add misc bits of baseline scaffolding 2016-11-22 15:49:24 +00:00
bindep.txt Switch to classic confinement 2017-03-21 12:32:02 +00:00
CONTRIBUTING.rst Change nova with glance (cut and paste error) 2017-02-16 17:17:32 +01:00
LICENSE Add misc bits of baseline scaffolding 2016-11-22 15:49:24 +00:00
README.md Use auto-alias for glance-manage 2017-07-11 20:22:14 +00:00
requirements.txt Misc updates 2017-01-04 09:18:36 +00:00
snapcraft.yaml Use auto-alias for glance-manage 2017-07-11 20:22:14 +00:00
tox.ini Switch to classic confinement 2017-03-21 12:32:02 +00:00

Glance Snap

This repository contains the source code of the snap for the OpenStack Image service, Glance.

Installing this snap

The glance snap can be installed directly from the snap store:

sudo snap install --edge glance

The glance snap is working towards publication across tracks for OpenStack releases. The edge channel for each track will contain the tip of the OpenStack project's master or stable branch, with the beta, candidate, and stable channels being reserved for released versions. The same version will be published progressively to beta, then candidate, and then stable once CI validation completes for the channel. This should result in an experience such as:

sudo snap install --channel=ocata/stable glance
sudo snap install --channel=pike/edge glance

Configuring glance

The glance snap gets its default configuration from the following $SNAP and $SNAP_COMMON locations:

/snap/glance/current/etc/
└── glance
    ├── glance-api.conf
    ├── glance-manage.conf
    └── glance-registry.conf

/var/snap/glance/common/etc/
└── glance
    └── glance.conf.d
        └── glance-snap.conf

The glance snap supports configuration updates via its $SNAP_COMMON writable area. The default glance configuration can be overridden as follows:

/var/snap/glance/common/etc/
└── glance
    ├── glance.conf.d
    │   ├── glance-snap.conf
    │   ├── database.conf
    │   └── keystone.conf
    ├── glance-api.conf
    ├── glance-manage.conf
    └── glance-registry.conf

The glance configuration can be overridden or augmented by writing configuration snippets to files in the glance.conf.d directory.

Alternatively, glance configuration can be overridden by adding full config files to the glance/ directory. If overriding in this way, you'll need to either point your config at additional config files located in $SNAP, or add those to $SNAP_COMMON as well.

Logging glance

The services for the glance snap will log to its $SNAP_COMMON writable area: /var/snap/glance/common/log.

Restarting glance services

To restart all glance services:

sudo systemctl restart snap.glance.*

or an individual service can be restarted by dropping the wildcard and specifying the full service name.

Building the glance snap

Simply clone this repository and then install and run snapcraft:

git clone https://github.com/openstack/snap-glance
sudo apt install snapcraft
cd snap-glance
snapcraft

Support

Please report any bugs related to this snap at: Launchpad.

Alternatively you can find the OpenStack Snap team in #openstack-snaps on Freenode IRC.