MCPcopy Create free account
hub / github.com/ceph/ceph / task

Function task

qa/tasks/ceph.py:1791–2032  ·  view source on GitHub ↗

Set up and tear down a Ceph cluster. For example:: tasks: - ceph: - interactive: You can also specify what branch to run:: tasks: - ceph: branch: foo Or a tag:: tasks: - ceph: tag: v0.42.13 Or

(ctx, config)

Source from the content-addressed store, hash-verified

1789
1790@contextlib.contextmanager
1791def task(ctx, config):
1792 """
1793 Set up and tear down a Ceph cluster.
1794
1795 For example::
1796
1797 tasks:
1798 - ceph:
1799 - interactive:
1800
1801 You can also specify what branch to run::
1802
1803 tasks:
1804 - ceph:
1805 branch: foo
1806
1807 Or a tag::
1808
1809 tasks:
1810 - ceph:
1811 tag: v0.42.13
1812
1813 Or a sha1::
1814
1815 tasks:
1816 - ceph:
1817 sha1: 1376a5ab0c89780eab39ffbbe436f6a6092314ed
1818
1819 Or a local source dir::
1820
1821 tasks:
1822 - ceph:
1823 path: /home/sage/ceph
1824
1825 To capture code coverage data, use::
1826
1827 tasks:
1828 - ceph:
1829 coverage: true
1830
1831 To use btrfs, ext4, or xfs on the target's scratch disks, use::
1832
1833 tasks:
1834 - ceph:
1835 fs: xfs
1836 mkfs_options: [-b,size=65536,-l,logdev=/dev/sdc1]
1837 mount_options: [nobarrier, inode64]
1838
1839 To change the cephfs's default max_mds (1), use::
1840
1841 tasks:
1842 - ceph:
1843 cephfs:
1844 max_mds: 2
1845
1846 To change the max_mds of a specific filesystem, use::
1847
1848 tasks:

Callers

nothing calls this directly

Calls 15

validate_configFunction · 0.85
valgrind_postFunction · 0.85
run_daemonFunction · 0.85
setup_managerFunction · 0.85
healthyFunction · 0.85
osd_scrub_pgsFunction · 0.85
stop_pg_num_changesMethod · 0.80
wait_for_cleanMethod · 0.80
onlyMethod · 0.80
ceph_logFunction · 0.70
ceph_crashFunction · 0.70
clusterFunction · 0.70

Tested by

no test coverage detected