tree: 4387142ab8a91835fc59a16eb7f471f718d035e1 [path history] [tgz]
  1. .gitignore
  2. .jujuignore
  3. CONTRIBUTING.md
  4. LICENSE
  5. README.md
  6. actions.yaml
  7. charmcraft.yaml
  8. config.yaml
  9. metadata.yaml
  10. pyproject.toml
  11. requirements.txt
  12. src/
  13. tests/
  14. tox.ini
installers/charm/osm-update-db-operator/README.md

OSM Update DB Operator

code style

Description

Charm used to update the OSM databases during an OSM upgrade process. To be used you should have an instance of OSM running that you may want to upgrade

Usage

Deploy the charm (locally)

juju add-model update-db
juju deploy osm-update-db-operator --series focal

Set MongoDB and MySQL URIs:

juju config osm-update-db-operator mysql-uri=<mysql_uri>
juju config osm-update-db-operator mongodb-uri=<mongodb_uri>

Updating the databases

In case we want to update both databases, we need to run the following command:

juju run-action osm-update-db-operator/0 update-db current-version=<Number_of_current_version> target-version=<Number_of_target_version>
# Example:
juju run-action osm-update-db-operator/0 update-db current-version=9 target-version=10

In case only you just want to update MongoDB, then we can use a flag 'mongodb-only=True':

juju run-action osm-update-db-operator/0 update-db current-version=9 target-version=10 mongodb-only=True

In case only you just want to update MySQL database, then we can use a flag 'mysql-only=True':

juju run-action osm-update-db-operator/0 update-db current-version=9 target-version=10 mysql-only=True

You can check if the update of the database was properly done checking the result of the command:

juju show-action-output <Number_of_the_action>

Fixes for bugs

Updates de database to apply the changes needed to fix a bug. You need to specify the bug number. Example:

juju run-action osm-update-db-operator/0 apply-patch bug-number=1837

Contributing

Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and CONTRIBUTING.md for developer guidance.