projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KVM: Add auxiliary functions to handle tap devices
[ganeti-local]
/
lib
/
cmdlib.py
diff --git
a/lib/cmdlib.py
b/lib/cmdlib.py
index
010f1ac
..
8bd6d64
100644
(file)
--- a/
lib/cmdlib.py
+++ b/
lib/cmdlib.py
@@
-3295,7
+3295,7
@@
class LUOobCommand(NoHooksLU):
-class LUDiagnoseOS(NoHooksLU):
+class LUOsDiagnose(NoHooksLU):
"""Logical unit for OS diagnose/query.
"""
"""Logical unit for OS diagnose/query.
"""
@@
-3429,7
+3429,7
@@
class LUDiagnoseOS(NoHooksLU):
return output
return output
-class LURemoveNode(LogicalUnit):
+class LUNodeRemove(LogicalUnit):
"""Logical unit for removing a node.
"""
"""Logical unit for removing a node.
"""
@@
-3598,7
+3598,7
@@
class _NodeQuery(_QueryBase):
oob_support, lu.cfg.GetClusterInfo())
oob_support, lu.cfg.GetClusterInfo())
-class LUQueryNodes(NoHooksLU):
+class LUNodeQuery(NoHooksLU):
"""Logical unit for querying nodes.
"""
"""Logical unit for querying nodes.
"""
@@
-3616,7
+3616,7
@@
class LUQueryNodes(NoHooksLU):
return self.nq.OldStyleQuery(self)
return self.nq.OldStyleQuery(self)
-class LUQueryNodeVolumes(NoHooksLU):
+class LUNodeQueryvols(NoHooksLU):
"""Logical unit for getting volumes on node(s).
"""
"""Logical unit for getting volumes on node(s).
"""
@@
-3694,7
+3694,7
@@
class LUQueryNodeVolumes(NoHooksLU):
return output
return output
-class LUQueryNodeStorage(NoHooksLU):
+class LUNodeQueryStorage(NoHooksLU):
"""Logical unit for getting information on storage units on node(s).
"""
"""Logical unit for getting information on storage units on node(s).
"""
@@
-3887,7
+3887,7
@@
class LUQueryFields(NoHooksLU):
return self.qcls.FieldsQuery(self.op.fields)
return self.qcls.FieldsQuery(self.op.fields)
-class LUModifyNodeStorage(NoHooksLU):
+class LUNodeModifyStorage(NoHooksLU):
"""Logical unit for modifying a storage volume on a node.
"""
"""Logical unit for modifying a storage volume on a node.
"""
@@
-3929,7
+3929,7
@@
class LUModifyNodeStorage(NoHooksLU):
(self.op.name, self.op.node_name))
(self.op.name, self.op.node_name))
-class LUAddNode(LogicalUnit):
+class LUNodeAdd(LogicalUnit):
"""Logical unit for adding node to the cluster.
"""
"""Logical unit for adding node to the cluster.
"""
@@
-4191,7
+4191,7
@@
class LUAddNode(LogicalUnit):
self.context.AddNode(new_node, self.proc.GetECId())
self.context.AddNode(new_node, self.proc.GetECId())
-class LUSetNodeParams(LogicalUnit):
+class LUNodeSetParams(LogicalUnit):
"""Modifies the parameters of a node.
@cvar _F2R: a dictionary from tuples of flags (mc, drained, offline)
"""Modifies the parameters of a node.
@cvar _F2R: a dictionary from tuples of flags (mc, drained, offline)
@@
-4484,7
+4484,7
@@
class LUSetNodeParams(LogicalUnit):
return result
return result
-class LUPowercycleNode(NoHooksLU):
+class LUNodePowercycle(NoHooksLU):
"""Powercycles a node.
"""
"""Powercycles a node.
"""
@@
-4948,7
+4948,7
@@
def _CheckNodesFreeDiskOnVG(lu, nodenames, vg, requested):
errors.ECODE_NORES)
errors.ECODE_NORES)
-class LUStartupInstance(LogicalUnit):
+class LUInstanceStartup(LogicalUnit):
"""Starts an instance.
"""
"""Starts an instance.
"""
@@
-5124,7
+5124,7
@@
class LUInstanceReboot(LogicalUnit):
self.cfg.MarkInstanceUp(instance.name)
self.cfg.MarkInstanceUp(instance.name)
-class LUShutdownInstance(LogicalUnit):
+class LUInstanceShutdown(LogicalUnit):
"""Shutdown an instance.
"""
"""Shutdown an instance.
"""
@@
-5912,7
+5912,7
@@
class LUInstanceMove(LogicalUnit):
(instance.name, target_node, msg))
(instance.name, target_node, msg))
-class LUMigrateNode(LogicalUnit):
+class LUNodeMigrate(LogicalUnit):
"""Migrate all instances from a node.
"""
"""Migrate all instances from a node.
"""
@@
-6608,7
+6608,7
@@
def _CreateDisks(lu, instance, to_skip=None, target_node=None):
" node %s" % (file_storage_dir, pnode))
# Note: this needs to be kept in sync with adding of disks in
" node %s" % (file_storage_dir, pnode))
# Note: this needs to be kept in sync with adding of disks in
- # LUSetInstanceParams
+ # LUInstanceSetParams
for idx, device in enumerate(instance.disks):
if to_skip and idx in to_skip:
continue
for idx, device in enumerate(instance.disks):
if to_skip and idx in to_skip:
continue
@@
-8545,7
+8545,7
@@
class LURepairNodeStorage(NoHooksLU):
(self.op.name, self.op.node_name))
(self.op.name, self.op.node_name))
-class LUNodeEvacuationStrategy(NoHooksLU):
+class LUNodeEvacStrategy(NoHooksLU):
"""Computes the node evacuation strategy.
"""
"""Computes the node evacuation strategy.
"""
@@
-8839,7
+8839,7
@@
class LUInstanceQueryData(NoHooksLU):
return result
return result
-class LUSetInstanceParams(LogicalUnit):
+class LUInstanceSetParams(LogicalUnit):
"""Modifies an instances's parameters.
"""
"""Modifies an instances's parameters.
"""
@@
-10414,7
+10414,7
@@
class TagsLU(NoHooksLU): # pylint: disable-msg=W0223
str(self.op.kind), errors.ECODE_INVAL)
str(self.op.kind), errors.ECODE_INVAL)
-class LUGetTags(TagsLU):
+class LUTagsGet(TagsLU):
"""Returns the tags of a given object.
"""
"""Returns the tags of a given object.
"""
@@
-10433,7
+10433,7
@@
class LUGetTags(TagsLU):
return list(self.target.GetTags())
return list(self.target.GetTags())
-class LUSearchTags(NoHooksLU):
+class LUTagsSearch(NoHooksLU):
"""Searches the tags for a given pattern.
"""
"""Searches the tags for a given pattern.
"""
@@
-10472,7
+10472,7
@@
class LUSearchTags(NoHooksLU):
return results
return results
-class LUAddTags(TagsLU):
+class LUTagsSet(TagsLU):
"""Sets a tag on a given object.
"""
"""Sets a tag on a given object.
"""
@@
-10500,7
+10500,7
@@
class LUAddTags(TagsLU):
self.cfg.Update(self.target, feedback_fn)
self.cfg.Update(self.target, feedback_fn)
-class LUDelTags(TagsLU):
+class LUTagsDel(TagsLU):
"""Delete a list of tags from a given object.
"""
"""Delete a list of tags from a given object.
"""
@@
-10582,7
+10582,7
@@
class LUTestDelay(NoHooksLU):
self._TestDelay()
self._TestDelay()
-class LUTestJobqueue(NoHooksLU):
+class LUTestJqueue(NoHooksLU):
"""Utility LU to test some aspects of the job queue.
"""
"""Utility LU to test some aspects of the job queue.
"""