Skip to content

Commit c79ab57

Browse files
committed
Revert "CLOUDSTACK-6967: Initial OVM3 drop"
This reverts commit 8a485b9.
1 parent be02897 commit c79ab57

35 files changed

Lines changed: 47 additions & 353 deletions

api/src/com/cloud/hypervisor/Hypervisor.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public static enum HypervisorType {
3131
BareMetal,
3232
Simulator,
3333
Ovm,
34-
Ovm3,
3534
LXC,
3635

3736
Any; /*If you don't care about the hypervisor type*/
@@ -58,8 +57,6 @@ public static HypervisorType getType(String hypervisor) {
5857
return HypervisorType.Simulator;
5958
} else if (hypervisor.equalsIgnoreCase("Ovm")) {
6059
return HypervisorType.Ovm;
61-
} else if (hypervisor.equalsIgnoreCase("Ovm3")) {
62-
return HypervisorType.Ovm3;
6360
} else if (hypervisor.equalsIgnoreCase("LXC")) {
6461
return HypervisorType.LXC;
6562
} else if (hypervisor.equalsIgnoreCase("Any")) {
@@ -84,8 +81,6 @@ public static ImageFormat getSupportedImageFormat(HypervisorType hyperType) {
8481
return ImageFormat.OVA;
8582
} else if (hyperType == HypervisorType.Ovm) {
8683
return ImageFormat.RAW;
87-
} else if (hyperType == HypervisorType.Ovm3) {
88-
return ImageFormat.RAW;
8984
} else {
9085
return null;
9186
}

api/src/com/cloud/network/NetworkService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ Pair<List<? extends PhysicalNetworkServiceProvider>, Integer> listNetworkService
111111
long findPhysicalNetworkId(long zoneId, String tag, TrafficType trafficType);
112112

113113
PhysicalNetworkTrafficType addTrafficTypeToPhysicalNetwork(Long physicalNetworkId, String trafficType, String isolationMethod, String xenLabel, String kvmLabel, String vmwareLabel,
114-
String simulatorLabel, String vlan, String hypervLabel, String ovm3Label);
114+
String simulatorLabel, String vlan, String hypervLabel);
115115

116116
PhysicalNetworkTrafficType getPhysicalNetworkTrafficType(Long id);
117117

118-
PhysicalNetworkTrafficType updatePhysicalNetworkTrafficType(Long id, String xenLabel, String kvmLabel, String vmwareLabel, String hypervLabel, String ovm3Label);
118+
PhysicalNetworkTrafficType updatePhysicalNetworkTrafficType(Long id, String xenLabel, String kvmLabel, String vmwareLabel, String hypervLabel);
119119

120120
boolean deletePhysicalNetworkTrafficType(Long id);
121121

api/src/com/cloud/network/PhysicalNetworkTrafficType.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,4 @@ public interface PhysicalNetworkTrafficType extends InternalIdentity, Identity {
3939
String getSimulatorNetworkLabel();
4040

4141
String getHypervNetworkLabel();
42-
43-
String getOvm3NetworkLabel();
4442
}

api/src/org/apache/cloudstack/api/ApiConstants.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ public class ApiConstants {
379379
public static final String LOCAL_STORAGE_ENABLED = "localstorageenabled";
380380
public static final String GUEST_IP_TYPE = "guestiptype";
381381
public static final String XENSERVER_NETWORK_LABEL = "xenservernetworklabel";
382-
public static final String OVM3_NETWORK_LABEL = "ovm3networklabel";
383382
public static final String KVM_NETWORK_LABEL = "kvmnetworklabel";
384383
public static final String VMWARE_NETWORK_LABEL = "vmwarenetworklabel";
385384
public static final String HYPERV_NETWORK_LABEL = "hypervnetworklabel";
@@ -462,9 +461,6 @@ public class ApiConstants {
462461
public static final String VSM_CONFIG_MODE = "vsmconfigmode";
463462
public static final String VSM_CONFIG_STATE = "vsmconfigstate";
464463
public static final String VSM_DEVICE_STATE = "vsmdevicestate";
465-
public static final String OVM3_POOL = "ovm3pool";
466-
public static final String OVM3_CLUSTER = "ovm3cluster";
467-
public static final String OVM3_VIP = "ovm3vip";
468464
public static final String VCENTER = "vcenter";
469465
public static final String ADD_VSM_FLAG = "addvsmflag";
470466
public static final String END_POINT = "endpoint";

api/src/org/apache/cloudstack/api/command/admin/cluster/AddClusterCmd.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class AddClusterCmd extends BaseCmd {
6666
@Parameter(name = ApiConstants.HYPERVISOR,
6767
type = CommandType.STRING,
6868
required = true,
69-
description = "hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator,Ovm3")
69+
description = "hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator")
7070
private String hypervisor;
7171

7272
@Parameter(name = ApiConstants.CLUSTER_TYPE, type = CommandType.STRING, required = true, description = "type of the cluster: CloudManaged, ExternalManaged")
@@ -75,22 +75,6 @@ public class AddClusterCmd extends BaseCmd {
7575
@Parameter(name = ApiConstants.ALLOCATION_STATE, type = CommandType.STRING, description = "Allocation state of this cluster for allocation of new resources")
7676
private String allocationState;
7777

78-
@Parameter(name = ApiConstants.OVM3_POOL, type = CommandType.STRING, required = false, description = "Ovm3 native pooling enabled for cluster")
79-
private String ovm3pool;
80-
@Parameter(name = ApiConstants.OVM3_CLUSTER, type = CommandType.STRING, required = false, description = "Ovm3 native OCFS2 clustering enabled for cluster")
81-
private String ovm3cluster;
82-
@Parameter(name = ApiConstants.OVM3_VIP, type = CommandType.STRING, required = false, description = "Ovm3 vip to use for pool (and cluster)")
83-
private String ovm3vip;
84-
public String getOvm3Pool() {
85-
return ovm3pool;
86-
}
87-
public String getOvm3Cluster() {
88-
return ovm3cluster;
89-
}
90-
public String getOvm3Vip() {
91-
return ovm3vip;
92-
}
93-
9478
@Parameter(name = ApiConstants.VSM_USERNAME, type = CommandType.STRING, required = false, description = "the username for the VSM associated with this cluster")
9579
private String vsmusername;
9680

api/src/org/apache/cloudstack/api/command/admin/usage/AddTrafficTypeCmd.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ public class AddTrafficTypeCmd extends BaseAsyncCreateCmd {
6565
description = "The network name label of the physical device dedicated to this traffic on a KVM host")
6666
private String kvmLabel;
6767

68-
@Parameter(name = ApiConstants.OVM3_NETWORK_LABEL,
69-
type = CommandType.STRING,
70-
description = "The network name of the physical device dedicated to this traffic on an OVM3 host")
71-
private String ovm3Label;
72-
7368
@Parameter(name = ApiConstants.VMWARE_NETWORK_LABEL,
7469
type = CommandType.STRING,
7570
description = "The network name label of the physical device dedicated to this traffic on a VMware host")
@@ -107,10 +102,6 @@ public String getKvmLabel() {
107102
return kvmLabel;
108103
}
109104

110-
public String getOvm3Label() {
111-
return ovm3Label;
112-
}
113-
114105
public String getVmwareLabel() {
115106
return vmwareLabel;
116107
}
@@ -171,7 +162,7 @@ public void execute() {
171162
public void create() throws ResourceAllocationException {
172163
PhysicalNetworkTrafficType result =
173164
_networkService.addTrafficTypeToPhysicalNetwork(getPhysicalNetworkId(), getTrafficType(), getIsolationMethod(), getXenLabel(), getKvmLabel(), getVmwareLabel(),
174-
getSimulatorLabel(), getVlan(), getHypervLabel(), getOvm3Label());
165+
getSimulatorLabel(), getVlan(), getHypervLabel());
175166
if (result != null) {
176167
setEntityId(result.getId());
177168
setEntityUuid(result.getUuid());

api/src/org/apache/cloudstack/api/command/admin/usage/UpdateTrafficTypeCmd.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ public class UpdateTrafficTypeCmd extends BaseAsyncCmd {
5555
description = "The network name label of the physical device dedicated to this traffic on a KVM host")
5656
private String kvmLabel;
5757

58-
@Parameter(name = ApiConstants.OVM3_NETWORK_LABEL,
59-
type = CommandType.STRING,
60-
description = "The network name of the physical device dedicated to this traffic on an OVM3 host")
61-
private String ovm3Label;
62-
6358
@Parameter(name = ApiConstants.VMWARE_NETWORK_LABEL,
6459
type = CommandType.STRING,
6560
description = "The network name label of the physical device dedicated to this traffic on a VMware host")
@@ -86,10 +81,6 @@ public String getKvmLabel() {
8681
return kvmLabel;
8782
}
8883

89-
public String getOvm3Label() {
90-
return ovm3Label;
91-
}
92-
9384
public String getVmwareLabel() {
9485
return vmwareLabel;
9586
}
@@ -114,7 +105,7 @@ public long getEntityOwnerId() {
114105

115106
@Override
116107
public void execute() {
117-
PhysicalNetworkTrafficType result = _networkService.updatePhysicalNetworkTrafficType(getId(), getXenLabel(), getKvmLabel(), getVmwareLabel(), getHypervLabel(), getOvm3Label());
108+
PhysicalNetworkTrafficType result = _networkService.updatePhysicalNetworkTrafficType(getId(), getXenLabel(), getKvmLabel(), getVmwareLabel(), getHypervLabel());
118109
if (result != null) {
119110
TrafficTypeResponse response = _responseGenerator.createTrafficTypeResponse(result);
120111
response.setResponseName(getCommandName());

api/src/org/apache/cloudstack/api/response/ClusterResponse.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ public class ClusterResponse extends BaseResponse {
8282
@Param(description = "The memory overcommit ratio of the cluster")
8383
private String memoryovercommitratio;
8484

85-
@SerializedName("ovm3vip")
86-
@Param(description = "Ovm3 VIP to use for pooling and/or clustering")
87-
private String ovm3vip;
88-
8985
public String getId() {
9086
return id;
9187
}
@@ -189,12 +185,4 @@ public void setMemoryOvercommitRatio(String memoryovercommitratio) {
189185
public String getMemoryOvercommitRatio() {
190186
return memoryovercommitratio;
191187
}
192-
193-
public void setOvm3Vip(String ovm3vip) {
194-
this.ovm3vip = ovm3vip;
195-
}
196-
197-
public String getOvm3Vip() {
198-
return ovm3vip;
199-
}
200188
}

api/src/org/apache/cloudstack/api/response/TrafficTypeResponse.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ public class TrafficTypeResponse extends BaseResponse {
4848
@Param(description = "The network name label of the physical device dedicated to this traffic on a KVM host")
4949
private String kvmNetworkLabel;
5050

51-
@SerializedName(ApiConstants.OVM3_NETWORK_LABEL)
52-
@Param(description = "The network name of the physical device dedicated to this traffic on an OVM3 host")
53-
private String ovm3NetworkLabel;
54-
5551
@SerializedName(ApiConstants.VMWARE_NETWORK_LABEL)
5652
@Param(description = "The network name label of the physical device dedicated to this traffic on a VMware host")
5753
private String vmwareNetworkLabel;
@@ -97,10 +93,6 @@ public String getKvmLabel() {
9793
return kvmNetworkLabel;
9894
}
9995

100-
public String getOvm3Label() {
101-
return ovm3NetworkLabel;
102-
}
103-
10496
public String getHypervLabel() {
10597
return hypervNetworkLabel;
10698
}
@@ -117,10 +109,6 @@ public void setKvmLabel(String kvmLabel) {
117109
this.kvmNetworkLabel = kvmLabel;
118110
}
119111

120-
public void setOvm3Label(String ovm3Label) {
121-
this.ovm3NetworkLabel = ovm3Label;
122-
}
123-
124112
public void setVmwareLabel(String vmwareNetworkLabel) {
125113
this.vmwareNetworkLabel = vmwareNetworkLabel;
126114
}

client/WEB-INF/classes/resources/messages.properties

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,6 @@ label.affinity.groups=Affinity Groups
378378
label.affinity=Affinity
379379
label.agent.password=Agent Password
380380
label.agent.username=Agent Username
381-
label.agent.port=Agent Port
382-
label.ovm3.vip=Master Vip IP
383-
label.ovm3.pool=Native Pooling
384-
label.ovm3.cluster=Native Clustering
385381
label.agree=Agree
386382
label.alert=Alert
387383
label.algorithm=Algorithm

0 commit comments

Comments
 (0)