root / lib / cmdlib / __init__.py @ 814386b7
History | View | Annotate | Download (4 kB)
1 |
#
|
---|---|
2 |
#
|
3 |
|
4 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
|
5 |
#
|
6 |
# This program is free software; you can redistribute it and/or modify
|
7 |
# it under the terms of the GNU General Public License as published by
|
8 |
# the Free Software Foundation; either version 2 of the License, or
|
9 |
# (at your option) any later version.
|
10 |
#
|
11 |
# This program is distributed in the hope that it will be useful, but
|
12 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 |
# General Public License for more details.
|
15 |
#
|
16 |
# You should have received a copy of the GNU General Public License
|
17 |
# along with this program; if not, write to the Free Software
|
18 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
19 |
# 02110-1301, USA.
|
20 |
|
21 |
|
22 |
"""Module implementing the master-side code."""
|
23 |
|
24 |
# pylint: disable=W0201,C0302
|
25 |
|
26 |
# W0201 since most LU attributes are defined in CheckPrereq or similar
|
27 |
# functions
|
28 |
|
29 |
# C0302: since we have waaaay too many lines in this module
|
30 |
|
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, \ |
63 |
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, \ |
79 |
LURestrictedCommand
|
80 |
from ganeti.cmdlib.test import LUTestDelay, LUTestJqueue, LUTestAllocator |