Skip to content

Commit f027c64

Browse files
authored
Merge branch 'apache:main' into main
2 parents 6f3efbe + 5385783 commit f027c64

File tree

134 files changed

+5238
-522
lines changed

Some content is hidden

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

134 files changed

+5238
-522
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ updates:
2626
directory: "/" # Location of package manifests
2727
schedule:
2828
interval: "daily"
29+
cooldown:
30+
default-days: 7

.github/workflows/stale.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
stale-issue-message: 'This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.'
3434
stale-pr-message: 'This PR is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.'
3535
close-issue-message: 'This issue was closed because it has been stale for 120 days with no activity.'
36-
close-pr-message: 'This PR was closed because it has been stale for 120 days with no activity.'
36+
close-pr-message: 'This PR was closed because it has been stale for 240 days with no activity.'
3737
stale-issue-label: 'no-issue-activity'
3838
stale-pr-label: 'no-pr-activity'
3939
days-before-stale: 120
40+
days-before-close: -1
41+
days-before-pr-close: 240
4042
exempt-issue-labels: 'gsoc,good-first-issue,long-term-plan'
4143
exempt-pr-labels: 'status:ready-for-merge,status:needs-testing,status:on-hold'

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ repos:
6262
- .github/workflows/license-templates/LICENSE.txt
6363
- --fuzzy-match-generates-todo
6464
exclude: ^(CHANGES|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE)\.md$|^ui/docs/(full|smoke)-test-plan\.template\.md$
65+
- id: insert-license
66+
name: add license for all properties files
67+
description: automatically adds a licence header to all properties files that don't have a license header
68+
files: \.properties$
69+
args:
70+
- --comment-style
71+
- '|#|'
72+
- --license-filepath
73+
- .github/workflows/license-templates/LICENSE.txt
74+
- --fuzzy-match-generates-todo
6575
- id: insert-license
6676
name: add license for all Shell files
6777
description: automatically adds a licence header to all Shell files that don't have a license header

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public interface VmDetailConstants {
5555
String NIC_MULTIQUEUE_NUMBER = "nic.multiqueue.number";
5656
String NIC_PACKED_VIRTQUEUES_ENABLED = "nic.packed.virtqueues.enabled";
5757

58+
// KVM specific, disk controllers
59+
String KVM_SKIP_FORCE_DISK_CONTROLLER = "skip.force.disk.controller";
60+
5861
// Mac OSX guest specific (internal)
5962
String SMC_PRESENT = "smc.present";
6063
String FIRMWARE = "firmware";

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ public class ApiConstants {
375375
public static final String MAC_ADDRESS = "macaddress";
376376
public static final String MAC_ADDRESSES = "macaddresses";
377377
public static final String MANUAL_UPGRADE = "manualupgrade";
378+
public static final String MATCH_TYPE = "matchtype";
378379
public static final String MAX = "max";
379380
public static final String MAX_SNAPS = "maxsnaps";
380381
public static final String MAX_BACKUPS = "maxbackups";

api/src/main/java/org/apache/cloudstack/api/command/admin/user/DisableUserCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ public long getEntityOwnerId() {
7878

7979
@Override
8080
public String getEventDescription() {
81-
return "disabling user: " + getId();
81+
return "disabling user: " + this._uuidMgr.getUuid(User.class, getId());
8282
}
8383

8484
@Override
8585
public void execute() {
86-
CallContext.current().setEventDetails("UserId: " + getId());
86+
CallContext.current().setEventDetails("User ID: " + this._uuidMgr.getUuid(User.class, getId()));
8787
UserAccount user = _regionService.disableUser(this);
8888

8989
if (user != null) {

api/src/main/java/org/apache/cloudstack/api/command/user/backup/CreateBackupCmd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import javax.inject.Inject;
2121

22+
import com.cloud.vm.VirtualMachine;
2223
import org.apache.cloudstack.acl.RoleType;
2324
import org.apache.cloudstack.api.APICommand;
2425
import org.apache.cloudstack.api.ApiCommandResourceType;
@@ -138,7 +139,8 @@ public String getEventType() {
138139

139140
@Override
140141
public String getEventDescription() {
141-
return "Creating backup for Instance " + vmId;
142+
String vmUuid = _uuidMgr.getUuid(VirtualMachine.class, getVmId());
143+
return "Creating backup for Instance " + vmUuid;
142144
}
143145

144146
@Override

api/src/main/java/org/apache/cloudstack/api/command/user/backup/CreateBackupScheduleCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.apache.cloudstack.api.BaseCmd;
2727
import org.apache.cloudstack.api.Parameter;
2828
import org.apache.cloudstack.api.ServerApiException;
29-
import org.apache.cloudstack.api.response.BackupResponse;
3029
import org.apache.cloudstack.api.response.BackupScheduleResponse;
3130
import org.apache.cloudstack.api.response.UserVmResponse;
3231
import org.apache.cloudstack.backup.BackupManager;
@@ -38,7 +37,7 @@
3837

3938
@APICommand(name = "createBackupSchedule",
4039
description = "Creates a User-defined Instance backup schedule",
41-
responseObject = BackupResponse.class, since = "4.14.0",
40+
responseObject = BackupScheduleResponse.class, since = "4.14.0",
4241
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
4342
public class CreateBackupScheduleCmd extends BaseCmd {
4443

api/src/main/java/org/apache/cloudstack/api/command/user/backup/DeleteBackupCmd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.apache.cloudstack.api.ServerApiException;
2929
import org.apache.cloudstack.api.response.BackupResponse;
3030
import org.apache.cloudstack.api.response.SuccessResponse;
31+
import org.apache.cloudstack.backup.Backup;
3132
import org.apache.cloudstack.backup.BackupManager;
3233
import org.apache.cloudstack.context.CallContext;
3334
import org.apache.commons.lang3.BooleanUtils;
@@ -111,6 +112,7 @@ public String getEventType() {
111112

112113
@Override
113114
public String getEventDescription() {
114-
return "Deleting backup ID " + backupId;
115+
String backupUuid = _uuidMgr.getUuid(Backup.class, getId());
116+
return "Deleting backup ID " + backupUuid;
115117
}
116118
}

api/src/main/java/org/apache/cloudstack/api/command/user/backup/RestoreBackupCmd.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.apache.cloudstack.api.ServerApiException;
2929
import org.apache.cloudstack.api.response.SuccessResponse;
3030
import org.apache.cloudstack.api.response.BackupResponse;
31+
import org.apache.cloudstack.backup.Backup;
3132
import org.apache.cloudstack.backup.BackupManager;
3233
import org.apache.cloudstack.context.CallContext;
3334

@@ -99,6 +100,7 @@ public String getEventType() {
99100

100101
@Override
101102
public String getEventDescription() {
102-
return "Restoring Instance from backup: " + backupId;
103+
String backupUuid = _uuidMgr.getUuid(Backup.class, getBackupId());
104+
return "Restoring Instance from backup: " + backupUuid;
103105
}
104106
}

0 commit comments

Comments
 (0)