summaryrefslogtreecommitdiffstats
path: root/ATFCleanup.py
blob: c15f970da42c0a6bf3708474b7bdb464726640ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python

import ATFUtils

def cleanup():
    """
    Description:
        *   Stop Glusterd on all Servers
        *   Stop Glusterd on all Clients
        *   Disconnect all SSH Connections
        *   Remove all Logger File Handlers

    Parameters:
        None

    Returns: 0
    """

    ATFUtils.stopserversglusterd()    
    ATFUtils.stopclientsglusterd()
    ATFUtils.SshObj.closeall()
    ATFUtils.LogObj.remove_detaillog_handler('ATF_LOG')
    
    return 0