]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: use config overrides for 'testing' kms backend
authorCasey Bodley <cbodley@redhat.com>
Tue, 15 Oct 2019 15:07:35 +0000 (11:07 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 15 Oct 2019 15:30:15 +0000 (11:30 -0400)
and configure the 'testing' backend for the rgw/verify suite

Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/suites/rgw/crypt/2-kms/testing.yaml
qa/suites/rgw/verify/overrides.yaml
qa/tasks/rgw.py

index 73799c633f26074160d723a4fc8a7d90429c63ac..e02f9caad99d125b64cb3445def3fa8a8065957f 100644 (file)
@@ -1,4 +1,6 @@
 overrides:
-  rgw:
-    client.0:
-      use-testing-role: client.0
+  ceph:
+    conf:
+      client:
+        rgw crypt s3 kms backend: testing
+        rgw crypt s3 kms encryption_keys: testkey-1=YmluCmJvb3N0CmJvb3N0LWJ1aWxkCmNlcGguY29uZgo= testkey-2=aWIKTWFrZWZpbGUKbWFuCm91dApzcmMKVGVzdGluZwo=
index 8b0b5cff0a35918dbfb9acbc2fb8e4225f5d6990..12d32becaca0f26ee0db73fff7500b4a899f20c8 100644 (file)
@@ -3,6 +3,7 @@ overrides:
     conf:
       client:
         debug rgw: 20
+        rgw crypt s3 kms backend: testing
         rgw crypt s3 kms encryption keys: testkey-1=YmluCmJvb3N0CmJvb3N0LWJ1aWxkCmNlcGguY29uZgo= testkey-2=aWIKTWFrZWZpbGUKbWFuCm91dApzcmMKVGVzdGluZwo=
         rgw crypt require ssl: false
   rgw:
index b3a1c3164cc4026ec47a616bdd09e86af7d5d633..f5648733a64b619e055e62a033fb3e61bbcef237 100644 (file)
@@ -115,7 +115,6 @@ def start_rgw(ctx, config, clients):
 
 
         vault_role = client_config.get('use-vault-role', None)
-        testing_role = client_config.get('use-testing-role', None)
         barbican_role = client_config.get('use-barbican-role', None)
 
         token_path = teuthology.get_testdir(ctx) + '/vault-token'
@@ -155,11 +154,6 @@ def start_rgw(ctx, config, clients):
                 '--rgw_crypt_vault_addr', "{}:{}".format(*ctx.vault.endpoints[vault_role]),
                 '--rgw_crypt_vault_token_file', token_path
             ])
-        elif testing_role is not None:
-            rgw_cmd.extend([
-                '--rgw_crypt_s3_kms_backend', 'testing',
-                '--rgw_crypt_s3_kms_encryption_keys', 'testkey-1=YmluCmJvb3N0CmJvb3N0LWJ1aWxkCmNlcGguY29uZgo= testkey-2=aWIKTWFrZWZpbGUKbWFuCm91dApzcmMKVGVzdGluZwo='
-            ])
 
         rgw_cmd.extend([
             '--foreground',