]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/kms/kmip - rgw / kmip test integration.
authorMarcus Watts <mwatts@redhat.com>
Tue, 3 Nov 2020 23:17:28 +0000 (18:17 -0500)
committerMarcus Watts <mwatts@redhat.com>
Thu, 4 Mar 2021 00:14:10 +0000 (19:14 -0500)
Pass endpoint configuration from pykmip to radosgw at runtime.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
qa/tasks/rgw.py

index 220165661819df089e689dd5942857c384255581..d45fe6e03fd572382ff888e0ea9e3b7ac76b1aa9 100644 (file)
@@ -112,6 +112,7 @@ def start_rgw(ctx, config, clients):
 
         vault_role = client_config.get('use-vault-role', None)
         barbican_role = client_config.get('use-barbican-role', None)
+        pykmip_role = client_config.get('use-pykmip-role', None)
 
         token_path = teuthology.get_testdir(ctx) + '/vault-token'
         if barbican_role is not None:
@@ -142,6 +143,12 @@ def start_rgw(ctx, config, clients):
                 '--rgw_crypt_vault_addr', "{}:{}".format(*ctx.vault.endpoints[vault_role]),
                 '--rgw_crypt_vault_token_file', token_path
             ])
+        elif pykmip_role is not None:
+            if not hasattr(ctx, 'pykmip'):
+                raise ConfigError('rgw must run after the pykmip task')
+            rgw_cmd.extend([
+                '--rgw_crypt_kmip_addr', "{}:{}".format(*ctx.pykmip.endpoints[pykmip_role]),
+            ])
 
         rgw_cmd.extend([
             '--foreground',