from .actions import (
check_console, clear_firewall, shutdown_daemons, remove_installed_packages,
reboot, remove_osd_mounts, remove_osd_tmpfs, kill_hadoop,
- remove_kernel_mounts, remove_ceph_packages, synch_clocks,
+ remove_ceph_packages, synch_clocks,
unlock_firmware_repo, remove_configuration_files, undo_multipath,
reset_syslog_dir, remove_ceph_data, remove_testing_tree,
remove_yum_timedhosts, kill_valgrind,
remove_osd_mounts(ctx)
remove_osd_tmpfs(ctx)
kill_hadoop(ctx)
- remove_kernel_mounts(ctx)
remove_ceph_packages(ctx)
synch_clocks(remotes)
unlock_firmware_repo(ctx)
)
-def remove_kernel_mounts(ctx):
- """
- properly we should be able to just do a forced unmount,
- but that doesn't seem to be working, so you should reboot instead
- """
- log.info("Removing kernel mounts...")
- ctx.cluster.run(
- args=[
- 'grep', 'ceph', '/etc/mtab', run.Raw('|'),
- 'grep', '-o', "on /.* type", run.Raw('|'),
- 'grep', '-o', "/.* ", run.Raw('|'),
- 'xargs', '-r',
- 'sudo', 'umount', '-f', run.Raw(';'),
- ],
- check_status=False,
- timeout=60
- )
-
-
def remove_osd_mounts(ctx):
"""
unmount any osd data mounts (scratch disks)