Skip to main content

Overview

Whenever you have to upgrade your OpenStack clusters, you have to rewrite your config files like nova.conf, cinder.conf, neutron.conf, etc.

Although oslo.config.generator helps you generate new config files automatically, there is no feature to migrate existed config data to newly generated config.

This program deals with the tedious task that compares the old config to new config line by line, and updates the config value old config had.

Features

  • Check two OpenStack configuration files. It shows set of attributes which are categorized to 5 types. This distinction is based on the old config file and commented attributes which means to have default value does not appear.

    • Added Newly added attributes. Old config does not have these attributes.

    • Removed Removed attributes. Old config had but new config does not have.

    • Unchanged Unchanged attributes. Both of new and old config have.

    • Changed Changed attributes. Group or name is changed at new release.

    • Ambiguous Ambiguous attributes. These attributes are changed but cannot be categorized since the name is duplicated.

  • Upgrade new config file with new contents based on existed config file. It fills out the new config file with the old config data which belongs to Changed and Unchanged attributes. Note that Ambigouos attributes should be treated by manual.

Installation

pip3 install oslo.config.comparator

Usage

  • Check two OpenStack configuration files.

    oslo-config-comparator check [FILE1] [FILE2] (-v)
    • FILE1 Base config file which has old data.

    • FILE2 New config file which generated by oslo-config-generator.

    • -v Show datails.

  • Upgrade new config file with new contents based on existed config file.

    oslo-config-comparator upgrade [FILE1] [FILE2] (-o OUTPUT)
    • -o OUTPUT File to be written. Defaults to stdout.

Limitation

  • It only parses “key = value” formatted string, so if the config file has template engine syntax such as Jinja, ruby ERB, additional content surrounding the attributes must be written manually.

Licenses

MIT

Release files for oslo.config.comparator 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oslo.config.comparator 0.3.1
File Size Uploaded
oslo.config.comparator-0.3.1.tar.gz 6.0 kB Details

Release files / oslo.config.comparator-0.3.1.tar.gz

Download URL oslo.config.comparator-0.3.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
06f5107187068a231e5ffd6b96bcfdfd80ec631317b88ae0b151ef2fc46e09ef
BLAKE2b-256 checksum
How to use checksums
7f4b4f9b1654624bfe239abd2c7f9bd6b2a7ca631b6f4b3ae3a28b6089095133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page