reboot, remove_osd_mounts, remove_osd_tmpfs, kill_hadoop,
remove_kernel_mounts, remove_ceph_packages, synch_clocks,
remove_configuration_files, undo_multipath, reset_syslog_dir,
- remove_testing_tree, remove_yum_timedhosts, kill_valgrind,
+ remove_ceph_data, remove_testing_tree, remove_yum_timedhosts,
+ kill_valgrind,
)
log = logging.getLogger(__name__)
undo_multipath(ctx)
log.info('Resetting syslog output locations...')
reset_syslog_dir(ctx)
- log.info('Clearing filesystem of test data...')
+ remove_ceph_data(ctx)
remove_testing_tree(ctx)
log.info('Filesystem cleared.')
remove_yum_timedhosts(ctx)
)
)
install_task.remove_sources(ctx, conf)
+
+
+def remove_ceph_data(ctx):
+ log.info("Removing ceph data...")
+ ctx.cluster.run(
+ args=[
+ 'sudo', 'rm', '-rf', '/etc/ceph',
+ ],
+ )
install_task.purge_data(ctx)
def remove_testing_tree(ctx):
+ log.info('Clearing filesystem of test data...')
ctx.cluster.run(
- args=[
- 'sudo', 'rm', '-rf', get_testdir(ctx),
- # just for old time's sake
- run.Raw('&&'),
- 'sudo', 'rm', '-rf', '/tmp/cephtest',
- run.Raw('&&'),
- 'sudo', 'rm', '-rf', '/home/ubuntu/cephtest',
- run.Raw('&&'),
- 'sudo', 'rm', '-rf', '/etc/ceph',
- ],
- )
+ args=[
+ 'sudo', 'rm', '-rf', get_testdir(ctx),
+ # just for old time's sake
+ run.Raw('&&'),
+ 'sudo', 'rm', '-rf', '/tmp/cephtest',
+ run.Raw('&&'),
+ 'sudo', 'rm', '-rf', '/home/ubuntu/cephtest',
+ ],
+ )
def remove_configuration_files(ctx):