Esempio n. 1
0
 def stop_database(self):
     logger.info('Stopping Greenplum Database')
     cmd = GpStop('Stop Greenplum Databse')
     cmd.run()
     if cmd.get_results().rc != 0:
         logger.error('Failed to stop Greenplum Database.')
         cmd.validate()
Esempio n. 2
0
 def stop_database(self): 
     logger.info('Stopping Greenplum Database')
     cmd = GpStop('Stop Greenplum Databse')
     cmd.run()
     if cmd.get_results().rc != 0:
         logger.error('Failed to stop Greenplum Database.')
         cmd.validate()
Esempio n. 3
0
 def stop_master_only(self):
     logger.info('Stopping Greenplum Database in master only mode')
     cmd = GpStop('Stop Greenplum Database in master only mode', masterOnly=True)
     cmd.run()
     if cmd.get_results().rc != 0:
         logger.error('Failed to stop Greenplum Database in master only mode.')
         cmd.validate()
Esempio n. 4
0
 def stop_master_only(self):
     logger.info('Stopping Greenplum Database in master only mode')
     cmd = GpStop('Stop Greenplum Database in master only mode',
                  masterOnly=True)
     cmd.run()
     if cmd.get_results().rc != 0:
         logger.error(
             'Failed to stop Greenplum Database in master only mode.')
         cmd.validate()