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()
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()
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()