Skip to main content

OpenStack configure file comparator.

Project description

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

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

oslo.config.comparator-0.3.1.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file oslo.config.comparator-0.3.1.tar.gz.

File metadata

  • Download URL: oslo.config.comparator-0.3.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for oslo.config.comparator-0.3.1.tar.gz
Algorithm Hash digest
SHA256 06f5107187068a231e5ffd6b96bcfdfd80ec631317b88ae0b151ef2fc46e09ef
MD5 98b947ddac19ae84788afe40c88016fa
BLAKE2b-256 7f4b4f9b1654624bfe239abd2c7f9bd6b2a7ca631b6f4b3ae3a28b6089095133

See more details on using hashes here.

Supported by

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