def teardown_module(module):
    with marathon_on_marathon() as client:
        try:
            common.clean_up_marathon(client=client)
        except Exception:
            pass

    uninstall_package_and_wait('marathon')
    delete_zk_node('universe/marathon-user')

    # Remove everything from root marathon
    common.clean_up_marathon()
def teardown_module(module):
    with marathon_on_marathon() as client:
        try:
            common.clean_up_marathon(client=client)
        except Exception:
            pass

    uninstall_package_and_wait('marathon')
    delete_zk_node('universe/marathon-user')

    # Remove everything from root marathon
    common.clean_up_marathon()
Пример #3
0
def delete_persistent_data(role, zk_node):
    """ Deletes any persistent data associated with the specified role, and zk node.

        :param role: the mesos role to delete, or None to omit this
        :type role: str
        :param zk_node: the zookeeper node to be deleted, or None to skip this deletion
        :type zk_node: str
    """
    if role:
        destroy_volumes(role)
        unreserve_resources(role)

    if zk_node:
        delete_zk_node(zk_node)
Пример #4
0
def delete_persistent_data(role, zk_node):
    """ Deletes any persistent data associated with the specified role, and zk node.

        :param role: the mesos role to delete, or None to omit this
        :type role: str
        :param zk_node: the zookeeper node to be deleted, or None to skip this deletion
        :type zk_node: str
    """
    if role:
        destroy_volumes(role)
        unreserve_resources(role)

    if zk_node:
        delete_zk_node(zk_node)