Skip to main content

imgsync will download sync images from several distribution repositories and send them to an OpenStack Image service (Glance).

Project description

# OpenStack Glance Image Synchronization tool

This application will download images from the official distribution repository, and upload them to OpenStack Glance. It is possible to define custom properties and prefixes for all the synced images.

## Available distribution repositories

Currently the following images repositories are supported:

### CentOS

### Debian

### Ubuntu

## Installation

Install it via PyPI:

pip install imgsync

Or install it from the repo:

git clone https://github.com/alvarolopez/imgsync pip install imgsync

## Configuration

Copy /etc/imgsync/imgsync.conf.sample into /etc/imgsync/imgsync.conf and adjust it your your needs. Take into account the following:

  • You need to configure your OpenStack Keystone authentication under the [keystone_auth] section. The user should be able to publicize images in your glance deployment (check your policy file).

  • You can define a prefix to be used for all the distribution names with the prefix option.

  • Additionally you can add some custom image properties, using the properties option, that can be repeated multiple times for multiple properties.

  • The list of images to be downloaded is configured via the distributions option.

  • CentOS distributions define additional options to allow the download of all the published images, or just the latest one. This is configured in the [centos6] and [centos6] sections. This is not possible for Debian and Ubuntu.

### Image properties

imgsync sets a property source=imgsync to all the images that donwloaded and synced. This way we can identify if an image is uploaded into glance by us or by anyone else. This property is hardcoded and cannot be reconfigured or replaced by something else. Other properties set by imgsync are are stored with the imgsync.prefix (like imgsync.sha256 or imgsync.sha512)

Nevertheless, it is also possible to define additional properties in the form “key=value” via the properties option in the configuration file (you can specify this option several times).

Therefore, it is important that you configure glance to enable the proper [policy protection rules](https://docs.openstack.org/developer/glance/property-protections.html) so that only the configured user is able to write those properties (i.e. at least source, imgsync.sha512 and imgsync.sha256). Moreover, you need to configure nova to exclude those properties when nova creates and uploads an snapshot to glance, via the non_inheritable_image_properties option in your /etc/nova/nova.conf configuration file (again, at least add source, imgsync.sha512 and imgsync.sha256).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgsync-1.1.2.tar.gz (16.3 kB view details)

Uploaded Source

Built Distributions

imgsync-1.1.2-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

imgsync-1.1.2-py2-none-any.whl (22.1 kB view details)

Uploaded Python 2

File details

Details for the file imgsync-1.1.2.tar.gz.

File metadata

  • Download URL: imgsync-1.1.2.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for imgsync-1.1.2.tar.gz
Algorithm Hash digest
SHA256 e6a251434a4f07afbbe9f0ebdf23b5b4a376a89d4b5f3e3ec69d9f5811945141
MD5 fbd6d5f393a4c60028243cf623ccf26a
BLAKE2b-256 14bfe741a0cc2912767bb17f4fa8357fd2da79c33485ecb146eed6a80fa1d3b3

See more details on using hashes here.

File details

Details for the file imgsync-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: imgsync-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for imgsync-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ccf0bdc3536d7a57319fa049730369d919101756e94f56548f65dab2d208720
MD5 776a7006326327dca7a313e38c82e09e
BLAKE2b-256 a703fc63c5e52207c46e0eecf27cec5a88a51f0792b422a1bc236924881a60fe

See more details on using hashes here.

File details

Details for the file imgsync-1.1.2-py2-none-any.whl.

File metadata

  • Download URL: imgsync-1.1.2-py2-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for imgsync-1.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 2af92024f65649370214b44af86dd61d5d46c7144062486af10cb0c63eaa1567
MD5 51579b54972290edf5524850a8397842
BLAKE2b-256 3613f3db8bc19c3848fc55347e34fd77e3c171b768cb56d69e569ead74e95920

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page