Skip to content

Commit 73f383c

Browse files
committed
CLOUDSTACK-5432:sync vm and storage commands on mgt server for kvm
Conflicts: engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java server/src/com/cloud/hypervisor/KVMGuru.java
1 parent c171142 commit 73f383c

12 files changed

Lines changed: 79 additions & 9 deletions

File tree

‎core/src/org/apache/cloudstack/storage/command/AttachCommand.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
public final class AttachCommand extends Command implements StorageSubSystemCommand {
2525
private DiskTO disk;
2626
private String vmName;
27+
private boolean inSeq = false;
2728

2829
public AttachCommand(DiskTO disk, String vmName) {
2930
super();
@@ -51,4 +52,9 @@ public String getVmName() {
5152
public void setVmName(String vmName) {
5253
this.vmName = vmName;
5354
}
55+
56+
@Override
57+
public void setExecuteInSequence(boolean inSeq) {
58+
this.inSeq = inSeq;
59+
}
5460
}

‎core/src/org/apache/cloudstack/storage/command/AttachPrimaryDataStoreCmd.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
import com.cloud.agent.api.Command;
2222

2323
public final class AttachPrimaryDataStoreCmd extends Command implements StorageSubSystemCommand {
24+
@Override
25+
public void setExecuteInSequence(boolean inSeq) {
26+
27+
}
28+
2429
private final String dataStore;
2530

2631
public AttachPrimaryDataStoreCmd(String uri) {

‎core/src/org/apache/cloudstack/storage/command/CopyCommand.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,8 @@ public Map<String, String> getOptions() {
7878
return options;
7979
}
8080

81+
@Override
82+
public void setExecuteInSequence(boolean inSeq) {
83+
this.executeInSequence = inSeq;
84+
}
8185
}

‎core/src/org/apache/cloudstack/storage/command/CreateObjectCommand.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ public DataTO getData() {
4242
return this.data;
4343
}
4444

45+
@Override
46+
public void setExecuteInSequence(boolean inSeq) {
47+
48+
}
4549
}

‎core/src/org/apache/cloudstack/storage/command/CreatePrimaryDataStoreCmd.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ public boolean executeInSequence() {
3535
return false;
3636
}
3737

38+
@Override
39+
public void setExecuteInSequence(boolean inSeq) {
40+
41+
}
3842
}

‎core/src/org/apache/cloudstack/storage/command/DeleteCommand.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ public DataTO getData() {
4242
return this.data;
4343
}
4444

45+
@Override
46+
public void setExecuteInSequence(boolean inSeq) {
47+
48+
}
4549
}

‎core/src/org/apache/cloudstack/storage/command/DettachCommand.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,9 @@ public void setStoragePort(int storagePort) {
8787
public int getStoragePort() {
8888
return _storagePort;
8989
}
90+
91+
@Override
92+
public void setExecuteInSequence(boolean inSeq) {
93+
94+
}
9095
}

‎core/src/org/apache/cloudstack/storage/command/ForgetObjectCmd.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ public DataTO getDataTO() {
3636
public boolean executeInSequence() {
3737
return false;
3838
}
39+
40+
@Override
41+
public void setExecuteInSequence(boolean inSeq) {
42+
43+
}
3944
}

‎core/src/org/apache/cloudstack/storage/command/IntroduceObjectCmd.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ public DataTO getDataTO() {
3636
public boolean executeInSequence() {
3737
return false;
3838
}
39+
40+
@Override
41+
public void setExecuteInSequence(boolean inSeq) {
42+
43+
}
3944
}

‎core/src/org/apache/cloudstack/storage/command/StorageSubSystemCommand.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
package org.apache.cloudstack.storage.command;
2020

2121
public interface StorageSubSystemCommand {
22-
22+
void setExecuteInSequence(boolean inSeq);
2323
}

0 commit comments

Comments
 (0)