Beispiel #1
0
 def __init__(self, env, verbose=False):
     RATesterScenarioComponent.__init__(self, env, verbose)
     # we re-use the CTS' stonith-* params as configuration
     # of fencing. Only, we adapt the content to our needs.
     if self.Env["stonith-type"] == "fence_xvm":
         self.Env["stonith-params"] = ""
     elif self.Env["stonith-type"] == "external/ssh":
         self.Env["stonith-type"] = "fence_virsh"
         self.Env["stonith-params"] = "ipaddr=$(ip route | grep default | awk '{print $3}') secure=1 login=%s identity_file=/root/.ssh/fence-key "%os.environ["USERNAME"]
Beispiel #2
0
 def __init__(self, environment, verbose=False):
     RATesterScenarioComponent.__init__(self, environment, verbose)