Repository navigation
Commit 6da46f7
committed
Remove agent commands that the management server stopped sending
These commands belong to the storage model that predates the storage
subsystem introduced in 4.2. Nothing in the management server creates
or subclasses any of them any more, so the handlers in every hypervisor
resource were unreachable:
AttachIsoCommand, BackupSnapshotCommand, CheckConsoleProxyLoadCommand,
WatchConsoleProxyLoadCommand, CheckStorageAvailabilityCommand,
CreateCommand, CreatePrivateTemplateFromSnapshotCommand,
CreatePrivateTemplateFromVolumeCommand, CreateVolumeFromSnapshotCommand,
ManageSnapshotCommand, PrimaryStorageDownloadCommand,
RebootRouterCommand, UpgradeSnapshotCommand
Removed with them:
- the Answer classes only they produced: AttachIsoAnswer,
BackupSnapshotAnswer, CreateAnswer, CreateVolumeFromSnapshotAnswer,
ManageSnapshotAnswer, CreatePrivateTemplateAnswer.
PrimaryStorageDownloadAnswer stays, the KVM storage processor still
uses it as a plain failure answer.
- the XenServer wrappers and the VMware, simulator and console proxy
handlers, the corresponding VmwareStorageManager and mock manager
methods, and the dispatch branches that routed to them.
- the execute(PrimaryStorageDownloadCommand) method of the
StoragePoolResource interface and the CreateCommand entry in
AgentAttache's list of commands refused while connecting.
- the unit tests in core, XenServer, Hyper-V and KVM that built these
commands.
- the ManagedNFS storage pool type. Its only adaptor was removed
earlier and no code has ever created a pool of that type.
Not touched: the ovm and ovm3 plugins, which are not part of the build
and still reference these classes; the Hyper-V .NET agent, which has its
own C# handlers for CreateCommand and PrimaryStorageDownloadCommand;
and log messages and configuration descriptions that merely mention the
old command names.
The vmware plugin needs the non redistributable vSphere SDK to compile,
which is not available in this build environment; its changes were
reviewed but not compiled.1 parent cc2fd2d commit 6da46f7
52 files changed
Lines changed: 11 additions & 3646 deletions
File tree
- agent/src/main/java/com/cloud/agent/resource/consoleproxy
- api/src
- main/java/com/cloud/storage
- test/java/com/cloud/storage
- core/src
- main/java/com/cloud
- agent/api
- proxy
- storage
- storage/resource
- test/java/org/apache/cloudstack/api/agent/test
- engine/orchestration/src/main/java/com/cloud/agent/manager
- plugins/hypervisors
- hyperv/src/test/java/com/cloud/hypervisor/hyperv/test
- kvm/src
- main/java/com/cloud/hypervisor/kvm
- resource
- storage
- test/java/com/cloud/hypervisor/kvm/resource
- simulator/src/main/java/com/cloud/agent/manager
- vmware/src/main/java/com/cloud
- hypervisor
- guru
- vmware
- manager
- resource
- storage/resource
- xenserver/src
- main/java/com/cloud/hypervisor/xenserver/resource/wrapper/xenbase
- test/java/com/cloud/hypervisor/xenserver/resource/wrapper/xenbase
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
28 | | - | |
29 | 24 | | |
30 | 25 | | |
31 | 26 | | |
| |||
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | | - | |
53 | | - | |
54 | 47 | | |
55 | | - | |
56 | 48 | | |
57 | 49 | | |
58 | 50 | | |
| |||
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 89 | + | |
102 | 90 | | |
103 | 91 | | |
104 | 92 | | |
| |||
142 | 130 | | |
143 | 131 | | |
144 | 132 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 133 | | |
191 | 134 | | |
192 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | | - | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments