]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/barbican: sync barbican db and secret stores
authorTobias Urdin <tobias.urdin@binero.se>
Wed, 21 Sep 2022 09:24:34 +0000 (09:24 +0000)
committerShilpa Jagannath <smanjara@redhat.com>
Mon, 6 Feb 2023 08:14:58 +0000 (03:14 -0500)
Signed-off-by: Tobias Urdin <tobias.urdin@binero.se>
(cherry picked from commit 7c460bd2fbd36a18c1f9d8b546f094fbd34ff4c8)

qa/tasks/barbican.py

index baab61ba43a57e2256445c3f4349a44aaa684afe..7e2b77a42f1e4e63b209aaff053338921698190d 100644 (file)
@@ -179,6 +179,14 @@ def create_barbican_conf(ctx, cclient):
                          'echo -n -e "[DEFAULT]\nhost_href=' + barbican_url + '\n" ' + \
                          '>barbican.conf'])
 
+    log.info("run barbican db upgrade")
+    config_path = get_barbican_dir(ctx) + '/barbican.conf'
+    run_in_barbican_venv(ctx, cclient, ['barbican-manage', '--config-file', config_path,
+                                        'db', 'upgrade'])
+    log.info("run barbican db sync_secret_stores")
+    run_in_barbican_venv(ctx, cclient, ['barbican-manage', '--config-file', config_path,
+                                        'db', 'sync_secret_stores'])
+
 @contextlib.contextmanager
 def configure_barbican(ctx, config):
     """