teuthology.nuke package

Submodules

teuthology.nuke.actions module

teuthology.nuke.actions.check_console(hostname)
teuthology.nuke.actions.clear_firewall(ctx)

Remove any iptables rules created by teuthology. These rules are identified by containing a comment with ‘teuthology’ in it. Non-teuthology firewall rules are unaffected.

teuthology.nuke.actions.dpkg_configure(ctx)
teuthology.nuke.actions.kill_hadoop(ctx)
teuthology.nuke.actions.kill_valgrind(ctx)
teuthology.nuke.actions.reboot(ctx, remotes)
teuthology.nuke.actions.remove_ceph_data(ctx)
teuthology.nuke.actions.remove_ceph_packages(ctx)

remove ceph and ceph dependent packages by force force is needed since the node’s repo might have changed and in many cases autocorrect will not work due to missing packages due to repo changes

teuthology.nuke.actions.remove_configuration_files(ctx)

Goes through a list of commonly used configuration files used for testing that should not be left behind.

For example, sometimes ceph-deploy may be configured via ~/.cephdeploy.conf to alter how it handles installation by specifying a default section in its config with custom locations.

teuthology.nuke.actions.remove_installed_packages(ctx)
teuthology.nuke.actions.remove_osd_mounts(ctx)

unmount any osd data mounts (scratch disks)

teuthology.nuke.actions.remove_osd_tmpfs(ctx)

unmount tmpfs mounts

teuthology.nuke.actions.remove_testing_tree(ctx)
teuthology.nuke.actions.remove_yum_timedhosts(ctx)
teuthology.nuke.actions.reset_syslog_dir(ctx)
teuthology.nuke.actions.shutdown_daemons(ctx)
teuthology.nuke.actions.stale_kernel_mount(remote)
teuthology.nuke.actions.synch_clocks(remotes)
teuthology.nuke.actions.undo_multipath(ctx)

Undo any multipath device mappings created, an remove the packages/daemon that manages them so they don’t come back unless specifically requested by the test.

teuthology.nuke.actions.unlock_firmware_repo(ctx)

Module contents

teuthology.nuke.main(args)
teuthology.nuke.nuke(ctx, should_unlock, sync_clocks=True, reboot_all=True, noipmi=False)
teuthology.nuke.nuke_helper(ctx, should_unlock)
teuthology.nuke.nuke_one(ctx, target, should_unlock, synch_clocks, reboot_all, check_locks, noipmi)
teuthology.nuke.openstack_delete_volume(id)
teuthology.nuke.openstack_remove_again()

Volumes and servers with REMOVE-ME in the name are leftover that failed to be removed. It is not uncommon for a failed removal to succeed later on.

teuthology.nuke.openstack_volume_id(volume)
teuthology.nuke.openstack_volume_name(volume)
teuthology.nuke.stale_openstack(ctx)
teuthology.nuke.stale_openstack_instances(ctx, instances, locked_nodes)
teuthology.nuke.stale_openstack_nodes(ctx, instances, locked_nodes)
teuthology.nuke.stale_openstack_volumes(ctx, volumes)