]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/verify: set compression type=random
authorCasey Bodley <cbodley@redhat.com>
Thu, 28 Apr 2016 17:59:30 +0000 (13:59 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 6 Dec 2016 15:46:35 +0000 (10:46 -0500)
instead of adding each compression type to the matrix for the rgw/verify
suite, use the new 'random' compression type to get test coverage of
the various compression plugins

this adds an 'rgw compression type' option to the client config, and later
adds that to the zone placement config

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

index bc1e82e9b86e0fd792421e386ae5e83e3c454fe1..ed696bff5c0be96f5082984e98ea73b55973e44f 100644 (file)
@@ -3,5 +3,6 @@ overrides:
     conf:
       client:
         debug rgw: 20
+        rgw compression type: random
   rgw:
     frontend: civetweb
index 3c8d8dec77a385d228225fe858b86f4e22e0246d..df69ed285af32e3dcc5a6fd2e52019d18ea5c5ca 100644 (file)
@@ -494,11 +494,13 @@ def extract_zone_info(ctx, client, client_config):
     index_pool = '.' + region + '.' + zone + '.' + 'index_pool'
     data_pool = '.' + region + '.' + zone + '.' + 'data_pool'
     data_extra_pool = '.' + region + '.' + zone + '.' + 'data_extra_pool'
+    compression_type = ceph_config.get('rgw compression type', '')
 
     zone_info['placement_pools'] = [{'key': 'default_placement',
                                      'val': {'index_pool': index_pool,
                                              'data_pool': data_pool,
-                                             'data_extra_pool': data_extra_pool}
+                                             'data_extra_pool': data_extra_pool,
+                                             'compression': compression_type}
                                      }]
 
     # these keys are meant for the zones argument in the region info.  We