Skip to content

Commit b6c354a

Browse files
committed
Merge branch 'master' into ui-vm-affinity
2 parents e907a08 + f66b9b5 commit b6c354a

140 files changed

Lines changed: 4041 additions & 1373 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎agent/src/com/cloud/agent/AgentShell.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@
3838

3939
import javax.naming.ConfigurationException;
4040

41-
import org.apache.commons.beanutils.PropertyUtils;
4241
import org.apache.commons.httpclient.HttpClient;
4342
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
4443
import org.apache.commons.httpclient.methods.GetMethod;
4544
import org.apache.log4j.Logger;
46-
import org.apache.log4j.PropertyConfigurator;
4745
import org.apache.log4j.xml.DOMConfigurator;
4846

4947
import com.cloud.agent.Agent.ExitStatus;
@@ -373,6 +371,7 @@ protected boolean parseCommand(final String[] args)
373371
throw new ConfigurationException("Unable to find the guid");
374372
}
375373
_guid = UUID.randomUUID().toString();
374+
_properties.setProperty("guid", _guid);
376375
}
377376

378377
return true;

‎agent/src/com/cloud/agent/resource/consoleproxy/ConsoleProxyResource.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ public boolean configure(String name, Map<String, Object> params)
235235
if (_eth1ip != null) {
236236
params.put("private.network.device", "eth1");
237237
} else {
238-
s_logger.warn("WARNING: eth1ip parameter is not found!");
238+
s_logger.info("eth1ip parameter has not been configured, assuming that we are not inside a system vm");
239239
}
240240

241241
String eth2ip = (String) params.get("eth2ip");
242242
if (eth2ip != null) {
243243
params.put("public.network.device", "eth2");
244244
} else {
245-
s_logger.warn("WARNING: eth2ip parameter is not found!");
245+
s_logger.info("eth2ip parameter is not found, assuming that we are not inside a system vm");
246246
}
247247

248248
super.configure(name, params);

‎api/src/com/cloud/agent/api/to/FirewallRuleTO.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import com.cloud.network.rules.FirewallRule;
2525
import com.cloud.network.rules.FirewallRule.State;
26+
import com.cloud.network.rules.FirewallRule.TrafficType;
2627
import com.cloud.utils.net.NetUtils;
2728

2829
/**
@@ -109,6 +110,11 @@ public FirewallRuleTO(FirewallRule rule, String srcVlanTag, String srcIp, Firewa
109110
this(rule.getId(),srcVlanTag, srcIp, rule.getProtocol(), rule.getSourcePortStart(), rule.getSourcePortEnd(), revokeState, alreadyAdded, purpose,rule.getSourceCidrList(),rule.getIcmpType(),rule.getIcmpCode());
110111
}
111112

113+
public FirewallRuleTO(FirewallRule rule, String guestVlanTag, FirewallRule.TrafficType trafficType) {
114+
this(rule.getId(), guestVlanTag, null, rule.getProtocol(), rule.getSourcePortStart(), rule.getSourcePortEnd(), rule.getState()==State.Revoke, rule.getState()==State.Active, rule.getPurpose(), rule.getSourceCidrList(), rule.getIcmpType(), rule.getIcmpCode());
115+
this.trafficType = trafficType;
116+
}
117+
112118
public FirewallRule.TrafficType getTrafficType(){
113119
return trafficType;
114120
}

‎api/src/com/cloud/api/commands/CreatePrivateNetworkCmd.java‎

Lines changed: 0 additions & 197 deletions
This file was deleted.

‎api/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java‎

Lines changed: 0 additions & 93 deletions
This file was deleted.

‎api/src/com/cloud/offering/NetworkOffering.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public enum State {
4646
public final static String SystemPrivateGatewayNetworkOffering = "System-Private-Gateway-Network-Offering";
4747

4848
public final static String DefaultSharedNetworkOfferingWithSGService = "DefaultSharedNetworkOfferingWithSGService";
49+
public final static String QuickCloudNoServices = "QuickCloudNoServices";
4950
public final static String DefaultIsolatedNetworkOfferingWithSourceNatService = "DefaultIsolatedNetworkOfferingWithSourceNatService";
5051
public final static String OvsIsolatedNetworkOfferingWithSourceNatService = "OvsIsolatedNetworkOfferingWithSourceNatService";
5152
public final static String DefaultSharedNetworkOffering = "DefaultSharedNetworkOffering";

‎api/src/org/apache/cloudstack/api/BaseCmd.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.apache.log4j.Logger;
3333

3434
import com.cloud.configuration.ConfigurationService;
35-
import com.cloud.consoleproxy.ConsoleProxyService;
3635
import com.cloud.dao.EntityManager;
3736
import com.cloud.domain.Domain;
3837
import com.cloud.exception.ConcurrentOperationException;
@@ -109,7 +108,6 @@ public enum CommandType {
109108
@Inject public TemplateService _templateService;
110109
@Inject public SecurityGroupService _securityGroupService;
111110
@Inject public SnapshotService _snapshotService;
112-
@Inject public ConsoleProxyService _consoleProxyService;
113111
@Inject public VpcVirtualNetworkApplianceService _routerService;
114112
@Inject public ResponseGenerator _responseGenerator;
115113
@Inject public EntityManager _entityMgr;

‎api/src/org/apache/cloudstack/api/command/user/vmsnapshot/CreateVMSnapshotCmd.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import com.cloud.uservm.UserVm;
3535
import com.cloud.vm.snapshot.VMSnapshot;
3636

37-
@APICommand(name = "createVMSnapshot", description = "Creates snapshot for a vm.", responseObject = VMSnapshotResponse.class)
37+
@APICommand(name = "createVMSnapshot", description = "Creates snapshot for a vm.", responseObject = VMSnapshotResponse.class, since="4.2.0")
3838
public class CreateVMSnapshotCmd extends BaseAsyncCreateCmd {
3939

4040
public static final Logger s_logger = Logger

‎api/src/org/apache/cloudstack/api/command/user/vmsnapshot/DeleteVMSnapshotCmd.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import com.cloud.user.UserContext;
3333
import com.cloud.vm.snapshot.VMSnapshot;
3434

35-
@APICommand(name="deleteVMSnapshot", description = "Deletes a vmsnapshot.", responseObject = SuccessResponse.class)
35+
@APICommand(name="deleteVMSnapshot", description = "Deletes a vmsnapshot.", responseObject = SuccessResponse.class, since="4.2.0")
3636
public class DeleteVMSnapshotCmd extends BaseAsyncCmd {
3737
public static final Logger s_logger = Logger
3838
.getLogger(DeleteVMSnapshotCmd.class.getName());

0 commit comments

Comments
 (0)