From c1be8a41d984aa88addfeaea2dc3c2392bfa2dcd Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Fri, 9 Oct 2020 11:50:48 +1300 Subject: Support database version image tags for creating instance Change-Id: If6ffacb5bab1aa5ffc51dd5678bd110c0beeb51d --- doc/source/admin/datastore.rst | 21 ++++++++++++++++++--- doc/source/install/verify.rst | 4 +++- 2 files changed, 21 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/source/admin/datastore.rst b/doc/source/admin/datastore.rst index d98fdef4..59e2b26d 100644 --- a/doc/source/admin/datastore.rst +++ b/doc/source/admin/datastore.rst @@ -60,8 +60,8 @@ To create a datastore version: .. code-block:: console openstack datastore version create 5.7.29 mysql mysql "" \ - --image-tags trove,mysql \ - --active --default + --image-tags trove,mysql \ + --active --default #. Load validation rules for configuration groups @@ -121,4 +121,19 @@ version for testing purpose, to do that: .. code-block:: console - $ openstack datastore version --disable + $ openstack datastore version set --disable + +Replace image ID with tags +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +For datastore versions what are created using image ID, it's easy to switch to +image tags without affecting the existing instances. New instances will be +created by the image ID (the most recently uploaded) that getting from Glance +using image tags. To do that, as the cloud admin user: + + .. code-block:: console + + $ openstack datastore version set --image-tags trove,mysql + +Ignoring ``--image`` means removing the image ID from the datastore version if +it's associated. diff --git a/doc/source/install/verify.rst b/doc/source/install/verify.rst index a607ee58..3fd0960a 100644 --- a/doc/source/install/verify.rst +++ b/doc/source/install/verify.rst @@ -33,7 +33,9 @@ Verify operation of the Database service. .. code-block:: console - $ openstack datastore version create 5.7.29 mysql mysql "" trove,mysql --active --default + $ openstack datastore version create 5.7.29 mysql mysql "" \ + --image-tags trove,mysql \ + --active --default #. Create a database `instance `_. -- cgit v1.2.1