bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,700 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,701 |
def BuildHooksEnv(self): """Build hooks env. | def BuildHooksEnv(self): """Build hooks env. | 449,702 |
def BuildHooksEnv(self): """Build hooks env. | def BuildHooksEnv(self): """Build hooks env. | 449,703 |
def BuildHooksEnv(self): """Build hooks env. | def BuildHooksEnv(self): """Build hooks env. | 449,704 |
def BuildHooksEnv(self): """Build hooks env. | def BuildHooksEnv(self): """Build hooks env. | 449,705 |
def _HandleReply(self, up): """Handle a single confd reply, and decide whether to filter it. | def _HandleReply(self, up): """Handle a single confd reply, and decide whether to filter it. | 449,706 |
def acquire(self, names, timeout=None, shared=0, test_notify=None): """Acquire a set of resource locks. | def acquire(self, names, timeout=None, shared=0, test_notify=None): """Acquire a set of resource locks. | 449,707 |
def __acquire_inner(self, names, want_all, shared, timeout_fn, test_notify): """Inner logic for acquiring a number of locks. | def __acquire_inner(self, names, want_all, shared, timeout_fn, test_notify): """Inner logic for acquiring a number of locks. | 449,708 |
def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | 449,709 |
def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | 449,710 |
def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | 449,711 |
def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision) | def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision) | 449,712 |
def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision) | def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision) | 449,713 |
def testErrors(self): self.assertRaises(errors.TypeEnforcementError, self._fdt, {'a': 'astring'}) self.assertRaises(errors.TypeEnforcementError, self._fdt, {'c': True}) self.assertRaises(errors.TypeEnforcementError, self._fdt, {'d': 'astring'}) self.assertRaises(errors.TypeEnforcementError, self._fdt, {'d': '4 L'}) | def testErrors(self): self.assertRaises(errors.TypeEnforcementError, self._fdt, {'a': 'astring'}) self.assertRaises(errors.TypeEnforcementError, self._fdt, {'c': True}) self.assertRaises(errors.TypeEnforcementError, self._fdt, {'d': 'astring'}) self.assertRaises(errors.TypeEnforcementError, self._fdt, {'d': '4 L'}) | 449,714 |
def SetupNodeDaemon(cluster_name, node, ssh_key_check): """Add a node to the cluster. This function must be called before the actual opcode, and will ssh to the remote node, copy the needed files, and start ganeti-noded, allowing the master to do the rest via normal rpc calls. @param cluster_name: the cluster name @p... | def SetupNodeDaemon(cluster_name, node, ssh_key_check): """Add a node to the cluster. This function must be called before the actual opcode, and will ssh to the remote node, copy the needed files, and start ganeti-noded, allowing the master to do the rest via normal rpc calls. @param cluster_name: the cluster name @p... | 449,715 |
def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | 449,716 |
def __setstate__(self, state): """Generic unserializer. | def __setstate__(self, state): """Generic unserializer. | 449,717 |
def _ParseAsn1Generalizedtime(value): """Parses an ASN1 GENERALIZEDTIME timestamp as used by pyOpenSSL. @type value: string @param value: ASN1 GENERALIZEDTIME timestamp """ m = _ANS1_TIME_REGEX.match(value) if m: # We have an offset asn1time = m.group(1) hours = int(m.group(2)) minutes = int(m.group(3)) utcoffset = (... | def _ParseAsn1Generalizedtime(value): """Parses an ASN1 GENERALIZEDTIME timestamp as used by pyOpenSSL. @type value: string @param value: ASN1 GENERALIZEDTIME timestamp """ m = _ASN1_TIME_REGEX.match(value) if m: # We have an offset asn1time = m.group(1) hours = int(m.group(2)) minutes = int(m.group(3)) utcoffset = (... | 449,718 |
def _GetWantedNodes(lu, nodes): """Returns list of checked and expanded node names. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type nodes: list @param nodes: list of node names or None for all nodes @rtype: list @return: the list of nodes, sorted @raise errors.ProgrammerError: if ... | def _GetWantedNodes(lu, nodes): """Returns list of checked and expanded node names. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type nodes: list @param nodes: list of node names or None for all nodes @rtype: list @return: the list of nodes, sorted @raise errors.ProgrammerError: if ... | 449,719 |
def Recv(self): """Try to receive a message from the socket. | def Recv(self): """Try to receive a message from the socket. | 449,720 |
def TestInstanceConvertDisk(instance, snode): """gnt-instance modify -t""" master = qa_config.GetMasterNode() cmd = ['gnt-instance', 'modify', '-t', 'plain', instance['name']] AssertEqual(StartSSH(master['primary'], utils.ShellQuoteArgs(cmd)).wait(), 0) cmd = ['gnt-instance', 'modify', '-t', 'drbd', '-n', snode, instan... | def TestInstanceConvertDisk(instance, snode): """gnt-instance modify -t""" master = qa_config.GetMasterNode() cmd = ['gnt-instance', 'modify', '-t', 'plain', instance['name']] AssertEqual(StartSSH(master['primary'], utils.ShellQuoteArgs(cmd)).wait(), 0) cmd = ['gnt-instance', 'modify', '-t', 'drbd', '-n', snode['primar... | 449,721 |
def GetOnlineNodes(nodes, cl=None, nowarn=False): """Returns the names of online nodes. This function will also log a warning on stderr with the names of the online nodes. @param nodes: if not empty, use only this subset of nodes (minus the offline ones) @param cl: if not None, luxi client to use @type nowarn: boolea... | def GetOnlineNodes(nodes, cl=None, nowarn=False, secondary_ips=False, filter_master=False): """Returns the names of online nodes. This function will also log a warning on stderr with the names of the online nodes. @param nodes: if not empty, use only this subset of nodes (minus the offline ones) @param cl: if not Non... | 449,722 |
def GetOnlineNodes(nodes, cl=None, nowarn=False): """Returns the names of online nodes. This function will also log a warning on stderr with the names of the online nodes. @param nodes: if not empty, use only this subset of nodes (minus the offline ones) @param cl: if not None, luxi client to use @type nowarn: boolea... | def GetOnlineNodes(nodes, cl=None, nowarn=False): """Returns the names of online nodes. This function will also log a warning on stderr with the names of the online nodes. @param nodes: if not empty, use only this subset of nodes (minus the offline ones) @param cl: if not None, luxi client to use @type nowarn: boolea... | 449,723 |
def GetOnlineNodes(nodes, cl=None, nowarn=False): """Returns the names of online nodes. This function will also log a warning on stderr with the names of the online nodes. @param nodes: if not empty, use only this subset of nodes (minus the offline ones) @param cl: if not None, luxi client to use @type nowarn: boolea... | def GetOnlineNodes(nodes, cl=None, nowarn=False): """Returns the names of online nodes. This function will also log a warning on stderr with the names of the online nodes. @param nodes: if not empty, use only this subset of nodes (minus the offline ones) @param cl: if not None, luxi client to use @type nowarn: boolea... | 449,724 |
def SimpleFillND(self, ndparams): """Fill a given ndparams dict with defaults. | def SimpleFillND(self, ndparams): """Fill a given ndparams dict with defaults. | 449,725 |
def MigrateInstance(self, instance, target, live): """Migrate an instance to a target node. | def MigrateInstance(self, instance, target, live): """Migrate an instance to a target node. | 449,726 |
def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | def _GenerateKVMRuntime(self, instance, block_devices): """Generate KVM information to start an instance. | 449,727 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,728 |
def GenerateSelfSignedSslCert(filename, common_name=constants.X509_CERT_CN, validity=constants.X509_CERT_DEFAULT_VALIDITY): """Legacy function to generate self-signed X509 certificate. @type filename = str @param filename = path to write certificate to @type common_name: string @param common_name: commonName value @ty... | def GenerateSelfSignedSslCert(filename, common_name=constants.X509_CERT_CN, validity=constants.X509_CERT_DEFAULT_VALIDITY): """Legacy function to generate self-signed X509 certificate. @type filename: str @param filename: path to write certificate to @type common_name: string @param common_name: commonName value @type... | 449,729 |
def _CheckOSParams(lu, required, nodenames, osname, osparams): """OS parameters validation. @type lu: L{LogicalUnit} @param lu: the logical unit for which we check @type required: boolean @param required: whether the validation should fail if the OS is not found @type nodenames: list @param nodenames: the list of node... | def _CheckOSParams(lu, required, nodenames, osname, osparams): """OS parameters validation. @type lu: L{LogicalUnit} @param lu: the logical unit for which we check @type required: boolean @param required: whether the validation should fail if the OS is not found @type nodenames: list @param nodenames: the list of node... | 449,730 |
def HooksCallBack(self, phase, hooks_results, feedback_fn, lu_result): """Analyze the post-hooks' result | def HooksCallBack(self, phase, hooks_results, feedback_fn, lu_result): """Analyze the post-hooks' result | 449,731 |
def _CheckInstance(): new_info = self.GetInstanceInfo(instance.name) | def _CheckInstance(): new_info = self.GetInstanceInfo(instance.name) | 449,732 |
def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | def _GetVolumeInfo(lvm_cmd, fields): """Returns LVM Volumen infos using lvm_cmd @param lvm_cmd: Should be one of "pvs", "vgs" or "lvs" @param fields: Fields to return @return: A list of dicts each with the parsed fields """ if not fields: raise errors.ProgrammerError("No fields specified") sep = "|" cmd = [lvm_cmd, ... | 449,733 |
def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | 449,734 |
def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | 449,735 |
def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | 449,736 |
def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | 449,737 |
def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | def GetPVInfo(vg_names, filter_allocatable=True): """Get the free space info for PVs in a volume group. | 449,738 |
def Snapshot(self, size): """Create a snapshot copy of an lvm block device. | def Snapshot(self, size): """Create a snapshot copy of an lvm block device. | 449,739 |
def _VerifyNode(self, ninfo, nresult): """Perform some basic validation on data returned from a node. | def _VerifyNode(self, ninfo, nresult): """Perform some basic validation on data returned from a node. | 449,740 |
def testGetJobs(self): self.rapi.AddResponse("[ { \"id\": \"123\", \"uri\": \"\/2\/jobs\/123\" }," " { \"id\": \"124\", \"uri\": \"\2\/jobs\/124\" } ]") self.assertEqual([123, 124], self.client.GetJobs()) self.assertHandler(rlib2.R_2_jobs) | def testGetJobs(self): self.rapi.AddResponse('[ { "id": "123", "uri": "\\/2\\/jobs\\/123" },' ' { "id": "124", "uri": "\\/2\\/jobs\\/124" } ]') self.assertEqual([123, 124], self.client.GetJobs()) self.assertHandler(rlib2.R_2_jobs) | 449,741 |
def _ParseArgs(argv, commands, aliases): """Parser for the command line arguments. This function parses the arguments and returns the function which must be executed together with its (modified) arguments. @param argv: the command line @param commands: dictionary with special contents, see the design doc for cmdline ... | def _ParseArgs(argv, commands, aliases): """Parser for the command line arguments. This function parses the arguments and returns the function which must be executed together with its (modified) arguments. @param argv: the command line @param commands: dictionary with special contents, see the design doc for cmdline ... | 449,742 |
def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | 449,743 |
def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | 449,744 |
def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | def Exec(self, feedback_fn): """Verify integrity of cluster, performing various test on nodes. | 449,745 |
def PUT(self): """Deactivate disks for an instance. | def PUT(self): """Deactivate disks for an instance. | 449,746 |
def parse_dev(dev): if '(' in dev: return dev.split('(')[0] else: return dev | def parse_dev(dev): return dev.split('(')[0] def handle_dev(dev): return [parse_dev(x) for x in dev.split(",")] def map_line(line): line = [v.strip() for v in line] return [{'name': line[0], 'size': line[1], 'dev': dev, 'vg': line[3]} for dev in handle_dev(line[2])] all_devs = [] for line in result.stdout.splitlines... | 449,747 |
def parse_dev(dev): if '(' in dev: return dev.split('(')[0] else: return dev | def parse_dev(dev): if '(' in dev: return dev.split('(')[0] else: return dev | 449,748 |
def _WriteConfig(self, destination=None, feedback_fn=None): """Write the configuration data to persistent storage. | def _WriteConfig(self, destination=None, feedback_fn=None): """Write the configuration data to persistent storage. | 449,749 |
def _CheckHVParams(lu, nodenames, hvname, hvparams): """Hypervisor parameter validation. This function abstract the hypervisor parameter validation to be used in both instance create and instance modify. @type lu: L{LogicalUnit} @param lu: the logical unit for which we check @type nodenames: list @param nodenames: th... | def _CheckHVParams(lu, nodenames, hvname, hvparams): """Hypervisor parameter validation. This function abstract the hypervisor parameter validation to be used in both instance create and instance modify. @type lu: L{LogicalUnit} @param lu: the logical unit for which we check @type nodenames: list @param nodenames: th... | 449,750 |
def CheckArguments(self): """Check arguments. | def CheckArguments(self): """Check arguments. | 449,751 |
def CheckArguments(self): """Check arguments. | def CheckArguments(self): """Check arguments. | 449,752 |
def CheckArguments(self): """Check arguments. | def CheckArguments(self): """Check arguments. | 449,753 |
def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | 449,754 |
def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | 449,755 |
def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | 449,756 |
def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | 449,757 |
def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | 449,758 |
def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | 449,759 |
def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | def _ExecuteKVMRuntime(self, instance, kvm_runtime, incoming=None): """Execute a KVM cmd, after completing it with some last minute data | 449,760 |
def testTimeoutKill(self): cmd = "trap '' TERM; read < %s" % self.fifo_file timeout = 0.2 strcmd = utils.ShellQuoteArgs(["/bin/sh", "-c", cmd]) out, err, status, ta = utils._RunCmdPipe(strcmd, {}, True, "/", False, timeout, _linger_timeout=0.2) self.assert_(status < 0) self.assertEqual(-status, signal.SIGKILL) | def testTimeoutKill(self): cmd = ["/bin/sh", "-c", "trap '' TERM; read < %s" % self.fifo_file] timeout = 0.2 strcmd = utils.ShellQuoteArgs(["/bin/sh", "-c", cmd]) out, err, status, ta = utils._RunCmdPipe(strcmd, {}, True, "/", False, timeout, _linger_timeout=0.2) self.assert_(status < 0) self.assertEqual(-status, signa... | 449,761 |
def testTimeoutKill(self): cmd = "trap '' TERM; read < %s" % self.fifo_file timeout = 0.2 strcmd = utils.ShellQuoteArgs(["/bin/sh", "-c", cmd]) out, err, status, ta = utils._RunCmdPipe(strcmd, {}, True, "/", False, timeout, _linger_timeout=0.2) self.assert_(status < 0) self.assertEqual(-status, signal.SIGKILL) | def testTimeoutKill(self): cmd = "trap '' TERM; read < %s" % self.fifo_file timeout = 0.2 out, err, status, ta = utils._RunCmdPipe(cmd, {}, False, "/", False, timeout, _linger_timeout=0.2) self.assert_(status < 0) self.assertEqual(-status, signal.SIGKILL) | 449,762 |
def RunTask(self, job): # pylint: disable-msg=W0221 """Job executor. | def RunTask(self, job): # pylint: disable-msg=W0221 """Job executor. | 449,763 |
def RunTask(self, job): # pylint: disable-msg=W0221 """Job executor. | def RunTask(self, job): # pylint: disable-msg=W0221 """Job executor. | 449,764 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,765 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,766 |
def _VerifyNPlusOneMemory(self, node_image, instance_cfg): """Verify N+1 Memory Resilience. | def _VerifyNPlusOneMemory(self, node_image, instance_cfg): """Verify N+1 Memory Resilience. | 449,767 |
def handleError(self, record): """Handle errors which occur during an emit() call. | def handleError(self, record): """Handle errors which occur during an emit() call. | 449,768 |
def CheckArguments(self): """Check arguments. | def CheckArguments(self): """Check arguments. | 449,769 |
def process_IN_IGNORED(self, event): # Since we monitor a single file rather than the directory it resides in, # when that file is replaced with another one (which is what happens when # utils.WriteFile, the most normal way of updating files in ganeti, is # called) we're going to receive an IN_IGNORED event from inotif... | def process_IN_IGNORED(self, event): # Since we monitor a single file rather than the directory it resides in, # when that file is replaced with another one (which is what happens when # utils.WriteFile, the most normal way of updating files in ganeti, is # called) we're going to receive an IN_IGNORED event from inotif... | 449,770 |
def process_IN_MODIFY(self, event): # This gets called when the monitored file is modified. Note that this # doesn't usually happen in Ganeti, as most of the time we're just # replacing any file with a new one, at filesystem level, rather than # actually changing it. (see utils.WriteFile) logging.debug("Received 'modif... | def process_IN_MODIFY(self, event): # This gets called when the monitored file is modified. Note that this # doesn't usually happen in Ganeti, as most of the time we're just # replacing any file with a new one, at filesystem level, rather than # actually changing it. (see utils.WriteFile) logging.debug("Received 'modif... | 449,771 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,772 |
def _WriteConfigFile(cls, instance, block_devices): """Write the Xen config file for the instance. | def _WriteConfigFile(cls, instance, block_devices): """Write the Xen config file for the instance. | 449,773 |
def _WriteConfigFile(cls, instance, block_devices): """Create a Xen 3.1 HVM config file. | def _WriteConfigFile(cls, instance, block_devices): """Create a Xen 3.1 HVM config file. | 449,774 |
def _SendRequest(self, method, path, query, content): """Sends an HTTP request. | def _SendRequest(self, method, path, query, content): """Sends an HTTP request. | 449,775 |
def _ExpandAndLockInstance(self): """Helper function to expand and lock an instance. | def _ExpandAndLockInstance(self): """Helper function to expand and lock an instance. | 449,776 |
def _GetWantedNodes(lu, nodes): """Returns list of checked and expanded node names. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type nodes: list @param nodes: list of node names or None for all nodes @rtype: list @return: the list of nodes, sorted @raise errors.OpProgrammerError: i... | def _GetWantedNodes(lu, nodes): """Returns list of checked and expanded node names. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type nodes: list @param nodes: list of node names or None for all nodes @rtype: list @return: the list of nodes, sorted @raise errors.OpProgrammerError: i... | 449,777 |
def _GetWantedInstances(lu, instances): """Returns list of checked and expanded instance names. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type instances: list @param instances: list of instance names or None for all instances @rtype: list @return: the list of instances, sorted @r... | def _GetWantedInstances(lu, instances): """Returns list of checked and expanded instance names. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type instances: list @param instances: list of instance names or None for all instances @rtype: list @return: the list of instances, sorted @r... | 449,778 |
def ExpandNames(self): if not isinstance(self.op.instances, list): raise errors.OpPrereqError("Invalid argument type 'instances'", errors.ECODE_INVAL) | def ExpandNames(self): if not isinstance(self.op.instances, list): raise errors.OpPrereqError("Invalid argument type 'instances'", errors.ECODE_INVAL) | 449,779 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,780 |
def CheckArguments(self): node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_NOENT) | def CheckArguments(self): node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_NOENT) | 449,781 |
def CheckArguments(self): node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_INVAL) self.op.node_name = node_name _CheckBooleanOpField(self.op, 'master_candidate') _CheckBooleanOpField(self.op, 'offline') _Ch... | def CheckArguments(self): self.op.node_name = _ExpandNodeName(self.cfg, self.op.node_name) _CheckBooleanOpField(self.op, 'master_candidate') _CheckBooleanOpField(self.op, 'offline') _CheckBooleanOpField(self.op, 'drained') all_mods = [self.op.offline, self.op.master_candidate, self.op.drained] if all_mods.count(None) =... | 449,782 |
def CheckArguments(self): node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_NOENT) self.op.node_name = node_name if node_name == self.cfg.GetMasterNode() and not self.op.force: raise errors.OpPrereqError("Th... | def CheckArguments(self): self.op.node_name = _ExpandNodeName(self.cfg, self.op.node_name) if self.op.node_name == self.cfg.GetMasterNode() and not self.op.force: raise errors.OpPrereqError("The node is the master and the force" " parameter was not set", errors.ECODE_INVAL) | 449,783 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,784 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,785 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,786 |
def ExpandNames(self): self._ExpandAndLockInstance() target_node = self.cfg.ExpandNodeName(self.op.target_node) if target_node is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.target_node, errors.ECODE_NOENT) self.op.target_node = target_node self.needed_locks[locking.LEVEL_NODE] = [target_node] self... | def ExpandNames(self): self._ExpandAndLockInstance() target_node = _ExpandNodeName(self.cfg, self.op.target_node) self.op.target_node = target_node self.needed_locks[locking.LEVEL_NODE] = [target_node] self.recalculate_locks[locking.LEVEL_NODE] = constants.LOCKS_APPEND | 449,787 |
def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | 449,788 |
def CheckPrereq(self): """Check prerequisites. | def CheckPrereq(self): """Check prerequisites. | 449,789 |
def _ExpandNode(self, node): """Expands and checks one node name. | def _ExpandNode(self, node): """Expands and checks one node name. | 449,790 |
def ExpandNames(self): """ExpandNames for CreateInstance. | def ExpandNames(self): """ExpandNames for CreateInstance. | 449,791 |
def ExpandNames(self): """ExpandNames for CreateInstance. | def ExpandNames(self): """ExpandNames for CreateInstance. | 449,792 |
def ExpandNames(self): """ExpandNames for CreateInstance. | def ExpandNames(self): """ExpandNames for CreateInstance. | 449,793 |
def ExpandNames(self): self._ExpandAndLockInstance() | def ExpandNames(self): self._ExpandAndLockInstance() | 449,794 |
def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | 449,795 |
def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | 449,796 |
def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | def ExpandNames(self): self.op.node_name = self.cfg.ExpandNodeName(self.op.node_name) if self.op.node_name is None: raise errors.OpPrereqError("Node '%s' not known" % self.op.node_name, errors.ECODE_NOENT) | 449,797 |
def CheckArguments(self): node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_NOENT) | def CheckArguments(self): node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_NOENT) | 449,798 |
def ExpandNames(self): self.needed_locks = {} self.share_locks = dict.fromkeys(locking.LEVELS, 1) | def ExpandNames(self): self.needed_locks = {} self.share_locks = dict.fromkeys(locking.LEVELS, 1) | 449,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.