def do(self): from physical.models import DatabaseInfraParameter self.instance.old_port = self.instance.port self.instance.port = 27018 oplogsize = DatabaseInfraParameter.objects.get( databaseinfra=self.infra, parameter__name='oplogSize') script = build_change_oplogsize_script(instance=self.instance, oplogsize=oplogsize.value) self.host.ssh.run_script(script) self.instance.port = self.instance.old_port
def do(self): from physical.models import DatabaseInfraParameter self.instance.old_port = self.instance.port self.instance.port = 27018 oplogsize = DatabaseInfraParameter.objects.get( databaseinfra=self.infra, parameter__name='oplogSize') script = build_change_oplogsize_script(instance=self.instance, oplogsize=oplogsize.value) output = {} return_code = exec_remote_command_host(self.host, script, output) if return_code != 0: raise Exception(str(output)) self.instance.port = self.instance.old_port
def do(self): from physical.models import DatabaseInfraParameter self.instance.old_port = self.instance.port self.instance.port = 27018 oplogsize = DatabaseInfraParameter.objects.get( databaseinfra=self.infra, parameter__name='oplogSize') script = build_change_oplogsize_script( instance=self.instance, oplogsize=oplogsize.value) output = {} return_code = exec_remote_command_host(self.host, script, output) if return_code != 0: raise Exception(str(output)) self.instance.port = self.instance.old_port