Skip to content

Commit 8cf31ee

Browse files
authored
Merge pull request #1 from apache/master
2 parents 8903647 + e107f9a commit 8cf31ee

File tree

324 files changed

+8001
-3008
lines changed

Some content is hidden

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

324 files changed

+8001
-3008
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ env:
164164

165165
- TESTS="component/test_project_usage
166166
component/test_protocol_number_security_group
167+
component/test_public_ip
167168
component/test_resource_limits"
168169

169170
- TESTS="component/test_regions_accounts

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ Mailing lists:
8181
- [Issues Mailing List](mailto:issues-subscribe@cloudstack.apache.org)
8282
- [Marketing Mailing List](mailto:marketing-subscribe@cloudstack.apache.org)
8383

84-
IRC, join us on irc.freenode.net on:
85-
- `#cloudstack`: General Apache CloudStack conversation and end user support
86-
- `#cloudstack-dev`: Development discussions
87-
88-
Report and/or check bugs on [JIRA](https://issues.apache.org/jira/browse/CLOUDSTACK) and check our
84+
Report and/or check bugs on [Github](https://github.com/apache/cloudstack/issues) and check our
8985
developer [page](http://cloudstack.apache.org/developers.html) for contributing code.
9086

9187
## News and Events

api/src/main/java/com/cloud/network/VirtualNetworkApplianceService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import com.cloud.network.router.VirtualRouter;
2828
import com.cloud.user.Account;
2929
import com.cloud.utils.Pair;
30+
import com.cloud.vm.Nic;
3031

3132
public interface VirtualNetworkApplianceService {
3233
/**
@@ -75,4 +76,6 @@ public interface VirtualNetworkApplianceService {
7576
* @return
7677
*/
7778
Pair<Boolean, String> performRouterHealthChecks(long routerId);
79+
80+
<T extends VirtualRouter> void collectNetworkStatistics(T router, Nic nic);
7881
}

api/src/main/java/com/cloud/vm/VmDetailConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public interface VmDetailConstants {
2121
String CPU_CORE_PER_SOCKET = "cpu.corespersocket";
2222
String ROOT_DISK_SIZE = "rootdisksize";
2323
String BOOT_MODE = "boot.mode";
24+
String NAME_ON_HYPERVISOR= "nameonhypervisor";
2425

2526
// VMware specific
2627
String NIC_ADAPTER = "nicAdapter";

api/src/main/java/com/cloud/vm/snapshot/VMSnapshot.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public String getDescription() {
5959
s_fsm.addTransition(Error, Event.ExpungeRequested, Expunging);
6060
s_fsm.addTransition(Expunging, Event.ExpungeRequested, Expunging);
6161
s_fsm.addTransition(Expunging, Event.OperationSucceeded, Removed);
62+
s_fsm.addTransition(Expunging, Event.OperationFailed, Error);
6263
}
6364
}
6465

api/src/main/java/org/apache/cloudstack/api/ApiServerService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,4 @@ public ResponseObject loginUser(HttpSession session, String username, String pas
4242
public String handleRequest(Map<String, Object[]> params, String responseType, StringBuilder auditTrailSb) throws ServerApiException;
4343

4444
public Class<?> getCmdClass(String cmdName);
45-
46-
public boolean isValidApiName(String apiName);
4745
}

api/src/main/java/org/apache/cloudstack/api/command/admin/acl/ImportRoleCmd.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ public List<Map<String, Object>> getRules() {
9494
if (Strings.isNullOrEmpty(rule)) {
9595
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Empty rule provided in rules param");
9696
}
97-
if (!rule.contains("*") && !_apiServer.isValidApiName(rule)) {
98-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Invalid api name: " + rule + " provided in rules param");
99-
}
10097
ruleDetails.put(ApiConstants.RULE, new Rule(rule));
10198

10299
String permission = detail.get(ApiConstants.PERMISSION);

api/src/main/java/org/apache/cloudstack/api/command/admin/usage/ListUsageRecordsCmd.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ public class ListUsageRecordsCmd extends BaseListCmd {
8585
@Parameter(name = ApiConstants.OLD_FORMAT, type = CommandType.BOOLEAN, description = "Flag to enable description rendered in old format which uses internal database IDs instead of UUIDs. False by default.")
8686
private Boolean oldFormat;
8787

88+
@Parameter(name = ApiConstants.IS_RECURSIVE, type = CommandType.BOOLEAN,
89+
description = "Specify if usage records should be fetched recursively per domain. If an account id is passed, records will be limited to that account.",
90+
since = "4.15")
91+
private Boolean recursive = false;
92+
8893
/////////////////////////////////////////////////////
8994
/////////////////// Accessors ///////////////////////
9095
/////////////////////////////////////////////////////
@@ -153,6 +158,10 @@ public boolean getOldFormat() {
153158
return oldFormat != null && oldFormat;
154159
}
155160

161+
public Boolean isRecursive() {
162+
return recursive;
163+
}
164+
156165
/////////////////////////////////////////////////////
157166
/////////////// API Implementation///////////////////
158167
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/response/HostForMigrationResponse.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
import java.util.Date;
2020

21-
import com.google.gson.annotations.SerializedName;
22-
2321
import org.apache.cloudstack.api.ApiConstants;
2422
import org.apache.cloudstack.api.BaseResponse;
2523
import org.apache.cloudstack.api.EntityReference;
@@ -28,6 +26,7 @@
2826
import com.cloud.host.Status;
2927
import com.cloud.hypervisor.Hypervisor.HypervisorType;
3028
import com.cloud.serializer.Param;
29+
import com.google.gson.annotations.SerializedName;
3130

3231
@EntityReference(value = Host.class)
3332
public class HostForMigrationResponse extends BaseResponse {
@@ -452,6 +451,10 @@ public void setHypervisorVersion(String hypervisorVersion) {
452451
this.hypervisorVersion = hypervisorVersion;
453452
}
454453

454+
public Boolean getHaHost() {
455+
return haHost;
456+
}
457+
455458
public void setHaHost(Boolean haHost) {
456459
this.haHost = haHost;
457460
}

api/src/main/java/org/apache/cloudstack/api/response/UserVmResponse.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public class UserVmResponse extends BaseResponseWithTagInformation implements Co
209209
private Long memoryKBs;
210210

211211
@SerializedName("memoryintfreekbs")
212-
@Param(description = "the internal memory thats free in vm")
212+
@Param(description = "the internal memory that's free in vm or zero if it can not be calculated")
213213
private Long memoryIntFreeKBs;
214214

215215
@SerializedName("memorytargetkbs")
@@ -270,9 +270,9 @@ public class UserVmResponse extends BaseResponseWithTagInformation implements Co
270270
@Param(description = "Vm details in key/value pairs.", since = "4.2.1")
271271
private Map details;
272272

273-
@SerializedName("readonlyuidetails")
274-
@Param(description = "List of UI read-only Vm details as comma separated string.", since = "4.13.0")
275-
private String readOnlyUIDetails;
273+
@SerializedName("readonlydetails")
274+
@Param(description = "List of read-only Vm details as comma separated string.", since = "4.16.0")
275+
private String readOnlyDetails;
276276

277277
@SerializedName(ApiConstants.SSH_KEYPAIR)
278278
@Param(description = "ssh key-pair")
@@ -854,8 +854,8 @@ public void setDetails(Map details) {
854854
this.details = details;
855855
}
856856

857-
public void setReadOnlyUIDetails(String readOnlyUIDetails) {
858-
this.readOnlyUIDetails = readOnlyUIDetails;
857+
public void setReadOnlyDetails(String readOnlyDetails) {
858+
this.readOnlyDetails = readOnlyDetails;
859859
}
860860

861861
public void setOsTypeId(String osTypeId) {
@@ -878,8 +878,8 @@ public Map getDetails() {
878878
return details;
879879
}
880880

881-
public String getReadOnlyUIDetails() {
882-
return readOnlyUIDetails;
881+
public String getReadOnlyDetails() {
882+
return readOnlyDetails;
883883
}
884884

885885
public Boolean getDynamicallyScalable() {

0 commit comments

Comments
 (0)