Skip to content
Juju Charm - Glance Simplestreams Sync
Python Other
  1. Python 99.6%
  2. Other 0.4%
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
actions Update tox, requirements, add initial func tests framework Apr 6, 2018
charmhelpers Sync charm/ceph helpers, tox, and requirements Oct 1, 2019
files Merge "Add custom_properties config option" Dec 3, 2019
hooks Add custom_properties config option Dec 2, 2019
lib Update tox, requirements, add initial func tests framework Apr 6, 2018
templates Merge "Add custom_properties config option" Dec 3, 2019
tests Switch functional smoke test to bionic-train Oct 22, 2019
unit_tests Add custom_properties config option Dec 2, 2019
.gitignore Update series metadata, test combos and readme Apr 10, 2018
.gitreview OpenDev Migration Patch Apr 19, 2019
.stestr.conf Replace ostestr with stestr in testing framework. Mar 7, 2019
.zuul.yaml Add Python 3 Train unit tests Jul 30, 2019
HACKING.md Add doc pointing contributors to charm-guide Jul 16, 2019
LICENSE Relicense to Apache2 May 8, 2018
Makefile Migrate from Amulet to Zaza Sep 12, 2019
README.md Add ssl_ca option to enable to gss Jan 11, 2019
charm-helpers-hooks.yaml Sync charm/ceph helpers, tox, and requirements Oct 1, 2019
config.yaml Add custom_properties config option Dec 2, 2019
copyright Update copyright date May 8, 2018
metadata.yaml Migrate from Amulet to Zaza Sep 12, 2019
requirements.txt Sync charm/ceph helpers, tox, and requirements Oct 1, 2019
setup.cfg Initial baseline from bzr Apr 10, 2017
test-requirements.txt Sync charm/ceph helpers, tox, and requirements Oct 1, 2019
tox.ini Sync charm/ceph helpers, tox, and requirements Oct 1, 2019

README.md

Known Issues

https://bugs.launchpad.net/charm-glance-simplestreams-sync

Overview

This charm provides a service that syncs your OpenStack cloud's available OS images in OpenStack Glance with the available images from a set of simplestreams mirrors, by default using cloud-images.ubuntu.com.

It will create a user named 'image-stream' in the 'services' tenant. If swift is enabled, glance will store its images in swift using the image-stream username.

It can optionally also store simplestreams metadata into Swift for future use by juju. If enabled, it publishes the URL for that metadata as the endpoints of a new OpenStack service called 'product-streams'. If using Swift is not enabled, the product-streams service will still exist, but nothing will respond to requests to its endpoints.

The charm installs a cron job that repeatedly checks the status of related services and begins syncing image data from your configured mirrors as soon as all services are in place.

It can be deployed at any time, and upon deploy (or changing the 'run' config setting), it will attempt to contact keystone and glance and start a sync every minute until a successful sync occurs.

Requirements

This charm requires a relation to keystone. It also requires a running glance instance, but not a direct relation to glance. It connects to glance via its endpoint as published in keystone.

Usage

juju deploy glance-simplestreams-sync [--config optional-config.yaml]
juju add-relation keystone glance-simplestreams-sync

Configuration

The charm has the following configuration variables:

run

run is a boolean that enables or disables the sync cron script. It is True by default, and changing it from False to True will schedule an immediate attempt to sync images.

use_swift

use_swift is a boolean that determines whether or not to store data in swift and publish the path to product metadata via the 'product-streams' endpoint.

NOTE Changing the value will only affect the next sync, and does not currently remove an existing product-streams service or delete potentially stale product data.

frequency

frequency is a string, and must be one of 'hourly', 'daily', 'weekly'. It controls how often the sync cron job is run - it is used to link the script into /etc/cron.$frequency.

region

region is the OpenStack region in which the product-streams endpoint will be created.

mirror_list

mirror_list is a yaml-formatted list of options to be passed to Simplestreams. It defaults to settings for downloading images from cloud-images.ubuntu.com, and is not yet tested with other mirror locations. If you have set up your own Simplestreams mirror, you should be able to set the necessary configuration values.

ssl_ca

This is used, optionally, to verify the certificates when in ssl mode for keystone and glance. This should be provided as a base64 encoded PEM certificate.

You can’t perform that action at this time.