Revision 8701dfb0 lib/cmdlib/__init__.py
b/lib/cmdlib/__init__.py | ||
---|---|---|
19 | 19 |
# 02110-1301, USA. |
20 | 20 |
|
21 | 21 |
|
22 |
"""Module implementing the master-side code."""
|
|
22 |
"""Module implementing the master-side code. |
|
23 | 23 |
|
24 |
# pylint: disable=W0201,C0302 |
|
24 |
This file only imports all LU's (and other classes) in order to re-export them |
|
25 |
to clients of cmdlib. |
|
25 | 26 |
|
26 |
# W0201 since most LU attributes are defined in CheckPrereq or similar |
|
27 |
# functions |
|
27 |
""" |
|
28 | 28 |
|
29 |
# C0302: since we have waaaay too many lines in this module |
|
29 |
from ganeti.cmdlib.base import \ |
|
30 |
LogicalUnit, \ |
|
31 |
NoHooksLU, \ |
|
32 |
ResultWithJobs |
|
30 | 33 |
|
31 |
from ganeti.cmdlib.base import ResultWithJobs, LogicalUnit, NoHooksLU, \ |
|
32 |
Tasklet, _QueryBase |
|
33 |
from ganeti.cmdlib.common import INSTANCE_DOWN, INSTANCE_ONLINE, \ |
|
34 |
INSTANCE_NOT_RUNNING, CAN_CHANGE_INSTANCE_OFFLINE, \ |
|
35 |
_ExpandInstanceName, _ExpandItemName, \ |
|
36 |
_ExpandNodeName, _ShareAll, _CheckNodeGroupInstances, _GetWantedNodes, \ |
|
37 |
_GetWantedInstances, _RunPostHook, _RedistributeAncillaryFiles, \ |
|
38 |
_MergeAndVerifyHvState, _MergeAndVerifyDiskState, _GetUpdatedIPolicy, \ |
|
39 |
_ComputeNewInstanceViolations, _GetUpdatedParams, _CheckOSParams, \ |
|
40 |
_CheckHVParams, _AdjustCandidatePool, _CheckNodePVs, \ |
|
41 |
_ComputeIPolicyInstanceViolation, _AnnotateDiskParams, _SupportsOob, \ |
|
42 |
_ComputeIPolicySpecViolation, _GetDefaultIAllocator, \ |
|
43 |
_CheckInstancesNodeGroups, _LoadNodeEvacResult, _MapInstanceDisksToNodes, \ |
|
44 |
_CheckInstanceNodeGroups, _CheckParamsNotGlobal, \ |
|
45 |
_IsExclusiveStorageEnabledNode, _CheckInstanceState, \ |
|
46 |
_CheckIAllocatorOrNode, _FindFaultyInstanceDisks, _CheckNodeOnline |
|
47 |
from ganeti.cmdlib.instance_utils import _AssembleInstanceDisks, \ |
|
48 |
_BuildInstanceHookEnvByObject, _GetClusterDomainSecret, \ |
|
49 |
_CheckNodeNotDrained, _RemoveDisks, _ShutdownInstanceDisks, \ |
|
50 |
_StartInstanceDisks, _RemoveInstance |
|
51 |
|
|
52 |
from ganeti.cmdlib.cluster import LUClusterActivateMasterIp, \ |
|
53 |
LUClusterDeactivateMasterIp, LUClusterConfigQuery, LUClusterDestroy, \ |
|
54 |
LUClusterPostInit, LUClusterQuery, LUClusterRedistConf, LUClusterRename, \ |
|
55 |
LUClusterRepairDiskSizes, LUClusterSetParams, LUClusterVerify, \ |
|
56 |
LUClusterVerifyConfig, LUClusterVerifyGroup, LUClusterVerifyDisks |
|
57 |
from ganeti.cmdlib.group import LUGroupAdd, LUGroupAssignNodes, \ |
|
58 |
LUGroupQuery, LUGroupSetParams, LUGroupRemove, LUGroupRename, \ |
|
59 |
LUGroupEvacuate, LUGroupVerifyDisks |
|
60 |
from ganeti.cmdlib.node import LUNodeAdd, LUNodeSetParams, \ |
|
61 |
LUNodePowercycle, LUNodeEvacuate, LUNodeMigrate, LUNodeModifyStorage, \ |
|
62 |
LUNodeQuery, LUNodeQueryvols, LUNodeQueryStorage, LUNodeRemove, \ |
|
34 |
from ganeti.cmdlib.cluster import \ |
|
35 |
LUClusterActivateMasterIp, \ |
|
36 |
LUClusterDeactivateMasterIp, \ |
|
37 |
LUClusterConfigQuery, \ |
|
38 |
LUClusterDestroy, \ |
|
39 |
LUClusterPostInit, \ |
|
40 |
LUClusterQuery, \ |
|
41 |
LUClusterRedistConf, \ |
|
42 |
LUClusterRename, \ |
|
43 |
LUClusterRepairDiskSizes, \ |
|
44 |
LUClusterSetParams, \ |
|
45 |
LUClusterVerify, \ |
|
46 |
LUClusterVerifyConfig, \ |
|
47 |
LUClusterVerifyGroup, \ |
|
48 |
LUClusterVerifyDisks |
|
49 |
from ganeti.cmdlib.group import \ |
|
50 |
LUGroupAdd, \ |
|
51 |
LUGroupAssignNodes, \ |
|
52 |
LUGroupQuery, \ |
|
53 |
LUGroupSetParams, \ |
|
54 |
LUGroupRemove, \ |
|
55 |
LUGroupRename, \ |
|
56 |
LUGroupEvacuate, \ |
|
57 |
LUGroupVerifyDisks |
|
58 |
from ganeti.cmdlib.node import \ |
|
59 |
LUNodeAdd, \ |
|
60 |
LUNodeSetParams, \ |
|
61 |
LUNodePowercycle, \ |
|
62 |
LUNodeEvacuate, \ |
|
63 |
LUNodeMigrate, \ |
|
64 |
LUNodeModifyStorage, \ |
|
65 |
LUNodeQuery, \ |
|
66 |
LUNodeQueryvols, \ |
|
67 |
LUNodeQueryStorage, \ |
|
68 |
LUNodeRemove, \ |
|
63 | 69 |
LURepairNodeStorage |
64 |
from ganeti.cmdlib.instance import LUInstanceCreate, LUInstanceRename, \ |
|
65 |
LUInstanceRemove, LUInstanceMove, LUInstanceQuery, LUInstanceQueryData, \ |
|
66 |
LUInstanceRecreateDisks, LUInstanceGrowDisk, LUInstanceReplaceDisks, \ |
|
67 |
LUInstanceActivateDisks, LUInstanceDeactivateDisks, LUInstanceStartup, \ |
|
68 |
LUInstanceShutdown, LUInstanceReinstall, LUInstanceReboot, \ |
|
69 |
LUInstanceConsole, LUInstanceFailover, LUInstanceMigrate, \ |
|
70 |
LUInstanceMultiAlloc, LUInstanceSetParams, LUInstanceChangeGroup |
|
71 |
from ganeti.cmdlib.backup import LUBackupQuery, LUBackupPrepare, \ |
|
72 |
LUBackupExport, LUBackupRemove |
|
73 |
from ganeti.cmdlib.query import LUQuery, LUQueryFields |
|
74 |
from ganeti.cmdlib.operating_system import LUOsDiagnose |
|
75 |
from ganeti.cmdlib.tags import LUTagsGet, LUTagsSearch, LUTagsSet, LUTagsDel |
|
76 |
from ganeti.cmdlib.network import LUNetworkAdd, LUNetworkRemove, \ |
|
77 |
LUNetworkSetParams, LUNetworkQuery, LUNetworkConnect, LUNetworkDisconnect |
|
78 |
from ganeti.cmdlib.misc import LUOobCommand, LUExtStorageDiagnose, \ |
|
70 |
from ganeti.cmdlib.instance import \ |
|
71 |
LUInstanceCreate, \ |
|
72 |
LUInstanceRename, \ |
|
73 |
LUInstanceRemove, \ |
|
74 |
LUInstanceMove, \ |
|
75 |
LUInstanceQuery, \ |
|
76 |
LUInstanceQueryData, \ |
|
77 |
LUInstanceStartup, \ |
|
78 |
LUInstanceShutdown, \ |
|
79 |
LUInstanceReinstall, \ |
|
80 |
LUInstanceReboot, \ |
|
81 |
LUInstanceConsole, \ |
|
82 |
LUInstanceFailover, \ |
|
83 |
LUInstanceMigrate, \ |
|
84 |
LUInstanceMultiAlloc, \ |
|
85 |
LUInstanceSetParams, \ |
|
86 |
LUInstanceChangeGroup, \ |
|
87 |
LUInstanceRecreateDisks, \ |
|
88 |
LUInstanceGrowDisk, \ |
|
89 |
LUInstanceReplaceDisks, \ |
|
90 |
LUInstanceActivateDisks, \ |
|
91 |
LUInstanceDeactivateDisks |
|
92 |
from ganeti.cmdlib.backup import \ |
|
93 |
LUBackupQuery, \ |
|
94 |
LUBackupPrepare, \ |
|
95 |
LUBackupExport, \ |
|
96 |
LUBackupRemove |
|
97 |
from ganeti.cmdlib.query import \ |
|
98 |
LUQuery, \ |
|
99 |
LUQueryFields |
|
100 |
from ganeti.cmdlib.operating_system import \ |
|
101 |
LUOsDiagnose |
|
102 |
from ganeti.cmdlib.tags import \ |
|
103 |
LUTagsGet, \ |
|
104 |
LUTagsSearch, \ |
|
105 |
LUTagsSet, \ |
|
106 |
LUTagsDel |
|
107 |
from ganeti.cmdlib.network import \ |
|
108 |
LUNetworkAdd, \ |
|
109 |
LUNetworkRemove, \ |
|
110 |
LUNetworkSetParams, \ |
|
111 |
LUNetworkQuery, \ |
|
112 |
LUNetworkConnect, \ |
|
113 |
LUNetworkDisconnect |
|
114 |
from ganeti.cmdlib.misc import \ |
|
115 |
LUOobCommand, \ |
|
116 |
LUExtStorageDiagnose, \ |
|
79 | 117 |
LURestrictedCommand |
80 |
from ganeti.cmdlib.test import LUTestDelay, LUTestJqueue, LUTestAllocator |
|
118 |
from ganeti.cmdlib.test import \ |
|
119 |
LUTestDelay, \ |
|
120 |
LUTestJqueue, \ |
|
121 |
LUTestAllocator |
Also available in: Unified diff