]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc: remove generate_caps 969/head
authorJohn Spray <john.spray@redhat.com>
Wed, 19 Oct 2016 12:07:48 +0000 (13:07 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 19 Oct 2016 12:07:48 +0000 (13:07 +0100)
This is moved to ceph-qa-suite.

Fixes: http://tracker.ceph.com/issues/17614
Signed-off-by: John Spray <john.spray@redhat.com>
teuthology/misc.py

index 7fad219c9b3af701eb4ac3c5a3d2f0d22b2949ca..e2946d64650b7dac168a79fa4f60bca665cecb54 100644 (file)
@@ -291,34 +291,6 @@ def get_mons(roles, ips):
     return mons
 
 
-def generate_caps(type_):
-    """
-    Each call will return the next capability for each system type
-    (essentially a subset of possible role values).  Valid types are osd,
-    mds and client.
-    """
-    defaults = dict(
-        osd=dict(
-            mon='allow *',
-            osd='allow *',
-        ),
-        mds=dict(
-            mon='allow *',
-            osd='allow *',
-            mds='allow',
-        ),
-        client=dict(
-            mon='allow rw',
-            osd='allow rwx',
-            mds='allow',
-        ),
-    )
-    for subsystem, capability in defaults[type_].items():
-        yield '--cap'
-        yield subsystem
-        yield capability
-
-
 def skeleton_config(ctx, roles, ips, cluster='ceph'):
     """
     Returns a ConfigObj that is prefilled with a skeleton config.