diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2020-11-26 11:02:24 +1300 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2020-11-26 11:06:55 +1300 |
commit | da2da6969aaf43e57af2356e15742368e527f662 (patch) | |
tree | b7ecfc168224c4c579c13c8bb9ec03fd7d56bd97 /doc | |
parent | 3a3b82452da51cf3cf6fefc729114566f0a3bc25 (diff) | |
download | trove-da2da6969aaf43e57af2356e15742368e527f662.tar.gz |
Support --image-tags for trove-manager datastore_version_update command
image-tags was introduced in commit 1d24b65 but the implementation was
backward incompatible for the CLI `trove-manager datastore_version_update`.
This patch changes that by supporting an optional parameter `--image-tags`.
Change-Id: I583c296f15a453bdfadf10de5c678ac483cbd4dd
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/admin/upgrade.rst | 2 | ||||
-rw-r--r-- | doc/source/cli/trove-manage.rst | 17 |
2 files changed, 10 insertions, 9 deletions
diff --git a/doc/source/admin/upgrade.rst b/doc/source/admin/upgrade.rst index 1e4946ca..757c06fd 100644 --- a/doc/source/admin/upgrade.rst +++ b/doc/source/admin/upgrade.rst @@ -157,7 +157,7 @@ Upgrade Trove services --property hw_rng_model='virtio' \ --tag trove \ -c id -f value) - $ trove-manage datastore_version_update mysql 5.7.29 mysql $imageid "" "" 1 + $ trove-manage datastore_version_update mysql 5.7.29 mysql $imageid "" 1 $ trove-manage db_load_datastore_config_parameters mysql 5.7.29 $stackdir/trove/trove/templates/mysql/validation-rules.json Upgrade Trove guest agent diff --git a/doc/source/cli/trove-manage.rst b/doc/source/cli/trove-manage.rst index ef2bb8a7..2e890739 100644 --- a/doc/source/cli/trove-manage.rst +++ b/doc/source/cli/trove-manage.rst @@ -200,7 +200,8 @@ trove-manage datastore_version_update usage: trove-manage datastore_version_update [-h] datastore version_name manager - image_id image_tags packages active + image_id packages active + --image-tags <image_tags> Add or update a datastore version. If the datastore version already exists, all values except the datastore name and version will be updated. @@ -219,13 +220,6 @@ all values except the datastore name and version will be updated. ``image_id`` ID of the image used to create an instance of the datastore version. -``image_tags`` - List of image tags separated by comma. If the image ID is not provided - explicitly, the image can be retrieved by the image tags. Multiple image tags - are separated by comma, e.g. trove,mysql. Using image tags is more flexible - than ID especially when new guest image is uploaded to Glance, Trove can pick - up the latest image automatically for creating instances. - ``packages`` Packages required by the datastore version that are installed on the guest image. @@ -239,6 +233,13 @@ all values except the datastore name and version will be updated. ``-h, --help`` show this help message and exit +``--image-tags`` + List of image tags separated by comma. If the image ID is not provided + explicitly, the image can be retrieved by the image tags. Multiple image tags + are separated by comma, e.g. trove,mysql. Using image tags is more flexible + than ID especially when new guest image is uploaded to Glance, Trove can pick + up the latest image automatically for creating instances. + trove-manage db_downgrade ~~~~~~~~~~~~~~~~~~~~~~~~~ |