Exemplo n.º 1
0
 def test_kill_primary(self):
     """
     [feature]: Kills primary gp0 segment
     
     """
     
     newfault = Fault()
     hosts = newfault.get_segment_host(preferred_role='p',content=0) 
     if not newfault.kill_primary_gp0(hosts):
         self.fail("Could not the kill the primary process, cannot proceed further!")
     rtrycnt = 0
     while( not newfault.is_changetracking()):
         tinctest.logger.info("Waiting [%s] for DB to go into CT mode" %rtrycnt)
         rtrycnt = rtrycnt + 1