summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhagyashris <bhagyashri.shewale@nttdata.com>2018-03-06 13:03:02 +0530
committerbhagyashris <bhagyashri.shewale@nttdata.com>2018-03-09 12:23:24 +0530
commitf8736b39af7c4bbd7022f2eb398f0a2344729ad9 (patch)
tree469da8c857e6708c55c4e75720f33b356652cab5
parent449947b209d62b11b0104e798d9e38c721dac7d9 (diff)
Introduce db sync check feature
Lite-spec for a dry-run option for db upgrades in glance-manage. This spec is moved from /specs/untargeted/glance/lite-spec-db-sync-check.rst to /specs/queens/implemented/glance/lite-spec-db-sync-check.rst because it was implemented by change I1e0b02d615690f65a17b4ccfe4e4a72cc9e15ada Change-Id: Ice1ab9657e236d969df50016a3b47a893e6aff0c
Notes
Notes (review): Code-Review+2: Abhishek Kekane <akekane@redhat.com> Code-Review+2: Brian Rosmaita <rosmaita.fossdev@gmail.com> Workflow+1: Brian Rosmaita <rosmaita.fossdev@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 09 Mar 2018 10:28:14 +0000 Reviewed-on: https://review.openstack.org/546096 Project: openstack/glance-specs Branch: refs/heads/master
-rw-r--r--doc/source/_extra/.htaccess1
-rw-r--r--doc/test/redirect-tests.txt1
-rw-r--r--specs/queens/implemented/glance/lite-spec-db-sync-check.rst (renamed from specs/untargeted/glance/lite-spec-db-sync-check.rst)56
3 files changed, 32 insertions, 26 deletions
diff --git a/doc/source/_extra/.htaccess b/doc/source/_extra/.htaccess
index c277bb5..69bab3d 100644
--- a/doc/source/_extra/.htaccess
+++ b/doc/source/_extra/.htaccess
@@ -9,3 +9,4 @@ Redirect 301 /specs/queens/approved/glance/remove-registry-v1.html /specs/rocky/
9Redirect 301 /specs/queens/approved/glance/remove-v1.html /specs/rocky/approved/glance/remove-v1.html 9Redirect 301 /specs/queens/approved/glance/remove-v1.html /specs/rocky/approved/glance/remove-v1.html
10Redirect 301 /specs/mitaka/approved/image-import/image-import-refactor.html /specs/rocky/approved/glance/image-import/image-import-refactor.html 10Redirect 301 /specs/mitaka/approved/image-import/image-import-refactor.html /specs/rocky/approved/glance/image-import/image-import-refactor.html
11Redirect 301 /specs/queens/approved/python-glanceclient/no-schema-validation.html /specs/untargeted/python-glanceclient/no-schema-validation.html 11Redirect 301 /specs/queens/approved/python-glanceclient/no-schema-validation.html /specs/untargeted/python-glanceclient/no-schema-validation.html
12Redirect 301 /specs/untargeted/glance/lite-spec-db-sync-check.html /specs/queens/implemented/glance/lite-spec-db-sync-check.html
diff --git a/doc/test/redirect-tests.txt b/doc/test/redirect-tests.txt
index bbe1f03..2f4505c 100644
--- a/doc/test/redirect-tests.txt
+++ b/doc/test/redirect-tests.txt
@@ -10,3 +10,4 @@
10/specs/queens/approved/glance/remove-v1.html 301 /specs/rocky/approved/glance/remove-v1.html 10/specs/queens/approved/glance/remove-v1.html 301 /specs/rocky/approved/glance/remove-v1.html
11/specs/mitaka/approved/image-import/image-import-refactor.html 301 /specs/rocky/approved/glance/image-import/image-import-refactor.html 11/specs/mitaka/approved/image-import/image-import-refactor.html 301 /specs/rocky/approved/glance/image-import/image-import-refactor.html
12/specs/queens/approved/python-glanceclient/no-schema-validation.html 301 /specs/untargeted/python-glanceclient/no-schema-validation.html 12/specs/queens/approved/python-glanceclient/no-schema-validation.html 301 /specs/untargeted/python-glanceclient/no-schema-validation.html
13/specs/untargeted/glance/lite-spec-db-sync-check.html 301 /specs/queens/implemented/glance/lite-spec-db-sync-check.html
diff --git a/specs/untargeted/glance/lite-spec-db-sync-check.rst b/specs/queens/implemented/glance/lite-spec-db-sync-check.rst
index eff9c9a..5c97bcb 100644
--- a/specs/untargeted/glance/lite-spec-db-sync-check.rst
+++ b/specs/queens/implemented/glance/lite-spec-db-sync-check.rst
@@ -1,26 +1,30 @@
1Lite Spec: Introduce db sync --check feature 1==========================================
2-------------------------------------------- 2Spec Lite: Introduce db sync check feature
3 3==========================================
4:problem: It is very hard for automation of deploy and upgrade operations to 4
5 know if there are db migrations pending. It requires the automation 5:problem: It is very hard for automation of deploy and upgrade operations to
6 to know what the latest version is, and compare that to the output 6 know if there are db migrations pending. It requires the automation
7 of a command to check the current version, then interpret the 7 to know what the latest version is, and compare that to the output
8 potential difference somehow. 8 of a command to check the current version, then interpret the
9 9 potential difference somehow.
10:solution: Similar to the linked feature added to Keystone's manage command, 10
11 Glance should support an operation which enumerates any outstanding 11:solution: Similar to the linked feature added to Keystone's manage command,
12 db upgrade operations and provide a distinct return code based on 12 Glance should support an operation which enumerates any outstanding
13 that status. Each expand, migrate, and contract operation required 13 db upgrade operations and provide user friendly message based on
14 to upgrade the db should be listed in the proper order of execution 14 that status. Each expand, migrate, and contract operation required
15 in the response. For consistency with Keystone, this may be 15 to upgrade the db should be listed in the proper order of execution
16 implemented by using a ``--check`` option. When this option is 16 in the response.
17 present no db upgrades would be performed but potential operations 17 This may be implemented by using a ``glance-manage db check`` option.
18 would be reported, acting similar to the pattern of a dry-run. 18 When this option is present no db upgrades would be performed
19 19 but potential operations would be reported, acting similar to the
20:impacts: Introduces new option to the db sync operation in glance-manage. 20 pattern of a dry-run.
21 21
22:timeline: Expected to be merged within the Pike time frame. 22:impacts: Introduces new option to the db sync operation in glance-manage.
23 23
24:link: https://bugs.launchpad.net/keystone/+bug/1642212 24:timeline: Queens RC-1
25 25
26:assignee: Open 26:link: https://bugs.launchpad.net/keystone/+bug/1642212
27
28:reviewers: rosmaita, abhishekk, jokke
29
30:assignee: bhagyashris \ No newline at end of file