Skip to content

Commit 0f0d800

Browse files
authored
Merge branch 'main' into feature-ui-logs
2 parents 71482c5 + 5385783 commit 0f0d800

File tree

93 files changed

+923
-393
lines changed

Some content is hidden

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

93 files changed

+923
-393
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/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/repository/AddBackupRepositoryCmd.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.apache.cloudstack.api.command.user.backup.repository;
1919

20+
import com.cloud.utils.StringUtils;
2021
import org.apache.cloudstack.acl.RoleType;
2122
import org.apache.cloudstack.api.APICommand;
2223
import org.apache.cloudstack.api.ApiConstants;
@@ -100,7 +101,7 @@ public String getProvider() {
100101
}
101102

102103
public String getMountOptions() {
103-
return mountOptions == null ? "" : mountOptions;
104+
return StringUtils.isBlank(mountOptions) ? "" : mountOptions;
104105
}
105106

106107
public Long getZoneId() {

api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CopySnapshotCmd.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ public class CopySnapshotCmd extends BaseAsyncCmd implements UserCmd {
9797
"The snapshot will always be made available in the zone in which the volume is present. Currently supported for StorPool only")
9898
protected List<Long> storagePoolIds;
9999

100-
@Parameter (name = ApiConstants.USE_STORAGE_REPLICATION, type=CommandType.BOOLEAN, required = false, since = "4.21.0", description = "This parameter enables the option the snapshot to be copied to supported primary storage")
100+
@Parameter (name = ApiConstants.USE_STORAGE_REPLICATION,
101+
type=CommandType.BOOLEAN,
102+
since = "4.21.0",
103+
description = "Enables the snapshot to be copied to the supported primary storages when the config 'use.storage.replication' is set to true for the storage or globally. " +
104+
"This is supported only for StorPool storage for now.")
101105
protected Boolean useStorageReplication;
102106

103107
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotCmd.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ public class CreateSnapshotCmd extends BaseAsyncCreateCmd {
112112
since = "4.21.0")
113113
protected List<Long> storagePoolIds;
114114

115-
@Parameter (name = ApiConstants.USE_STORAGE_REPLICATION, type=CommandType.BOOLEAN, required = false, description = "This parameter enables the option the snapshot to be copied to supported primary storage")
115+
@Parameter (name = ApiConstants.USE_STORAGE_REPLICATION,
116+
type=CommandType.BOOLEAN,
117+
description = "Enables the snapshot to be copied to the supported primary storages when the config 'use.storage.replication' is set to true for the storage or globally. " +
118+
"This is supported only for StorPool storage for now.")
116119
protected Boolean useStorageReplication;
117120

118121
private String syncObjectType = BaseAsyncCmd.snapshotHostSyncObject;

api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotPolicyCmd.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ public class CreateSnapshotPolicyCmd extends BaseCmd {
9494
since = "4.21.0")
9595
protected List<Long> storagePoolIds;
9696

97-
@Parameter (name = ApiConstants.USE_STORAGE_REPLICATION, type=CommandType.BOOLEAN, required = false, since = "4.21.0", description = "This parameter enables the option the snapshot to be copied to supported primary storage")
97+
@Parameter (name = ApiConstants.USE_STORAGE_REPLICATION,
98+
type=CommandType.BOOLEAN,
99+
since = "4.21.0",
100+
description = "Enables the snapshot to be copied to the supported primary storages when the config 'use.storage.replication' is set to true for the storage or globally. " +
101+
"This is supported only for StorPool storage for now.")
98102
protected Boolean useStorageReplication;
99103
/////////////////////////////////////////////////////
100104
/////////////////// Accessors ///////////////////////

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ public class BackupRepositoryResponse extends BaseResponse {
5757
@Param(description = "backup type")
5858
private String type;
5959

60+
@SerializedName(ApiConstants.MOUNT_OPTIONS)
61+
@Param(description = "mount options", since = "4.22.1")
62+
private String mountOptions;
63+
6064
@SerializedName(ApiConstants.CAPACITY_BYTES)
6165
@Param(description = "capacity of the backup repository")
6266
private Long capacityBytes;
@@ -128,6 +132,14 @@ public void setType(String type) {
128132
this.type = type;
129133
}
130134

135+
public String getMountOptions() {
136+
return mountOptions;
137+
}
138+
139+
public void setMountOptions(String mountOptions) {
140+
this.mountOptions = mountOptions;
141+
}
142+
131143
public Long getCapacityBytes() {
132144
return capacityBytes;
133145
}

0 commit comments

Comments
 (0)