Skip to content

Commit 4642dd7

Browse files
committed
knib -> kboss
native -> internal
1 parent 0d38d85 commit 4642dd7

72 files changed

Lines changed: 866 additions & 865 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/conf/agent.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ iscsi.session.cleanup.enabled=false
458458
# Instance conversion VIRT_V2V_TMPDIR env var
459459
#convert.instance.env.virtv2v.tmpdir=
460460

461-
# Timeout (in seconds) for QCOW2 delta merge operations, mainly used for classic volume snapshots, disk-only VM snapshots on file-based storage, and the KNIB plugin.
461+
# Timeout (in seconds) for QCOW2 delta merge operations, mainly used for classic volume snapshots, disk-only VM snapshots on file-based storage, and the KBOSS plugin.
462462
# If a value of 0 or less is informed, the default will be used.
463463
# qcow2.delta.merge.timeout=259200
464464

agent/src/main/java/com/cloud/agent/properties/AgentProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public class AgentProperties{
156156
public static final Property<Integer> CMDS_TIMEOUT = new Property<>("cmds.timeout", 7200);
157157

158158
/**
159-
* The timeout (in seconds) for QCOW2 delta merge operations, mainly used for classic volume snapshots, disk-only VM snapshots on file-based storage, and the KNIB plugin.
159+
* The timeout (in seconds) for QCOW2 delta merge operations, mainly used for classic volume snapshots, disk-only VM snapshots on file-based storage, and the KBOSS plugin.
160160
* If a value of 0 or less is informed, the default will be used.<br>
161161
* This configuration is only considered if libvirt.events.enabled is also true. <br>
162162
* Data type: Integer.<br>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public interface VmDetailConstants {
131131
String CLOUDSTACK_VM_DETAILS = "cloudstack.vm.details";
132132
String CLOUDSTACK_VLAN = "cloudstack.vlan";
133133

134-
// KNIB specific
134+
// KBOSS specific
135135
String LINKED_VOLUMES_SECONDARY_STORAGE_UUIDS = "linkedVolumesSecondaryStorageUuids";
136136
String VALIDATION_COMMAND = "backupValidationCommand";
137137
String VALIDATION_COMMAND_ARGUMENTS = "backupValidationCommandArguments";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ public class ApiConstants {
13741374

13751375
public static final String PARAMETER_DESCRIPTION_ISOLATED_BACKUPS = "Whether the backup will be isolated, defaults to false. " +
13761376
"Isolated backups are always created as full backups in independent chains. Therefore, they will never depend on any existing backup chain " +
1377-
"and no backup chain will depend on them. Currently only supported for the KNIB provider.";
1377+
"and no backup chain will depend on them. Currently only supported for the KBOSS provider.";
13781378

13791379
public static final String CSS = "css";
13801380

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.apache.cloudstack.api.response.BackupResponse;
3333
import org.apache.cloudstack.api.response.ExtractResponse;
3434
import org.apache.cloudstack.backup.Backup;
35-
import org.apache.cloudstack.backup.NativeBackupService;
35+
import org.apache.cloudstack.backup.InternalBackupService;
3636

3737
import javax.inject.Inject;
3838

@@ -42,7 +42,7 @@
4242
public class DownloadValidationScreenshotCmd extends BaseAsyncCmd {
4343

4444
@Inject
45-
private NativeBackupService nativeBackupService;
45+
private InternalBackupService internalBackupService;
4646

4747
/////////////////////////////////////////////////////
4848
//////////////// API parameters /////////////////////
@@ -78,7 +78,7 @@ public String getEventDescription() {
7878
@Override
7979
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException,
8080
NetworkRuleConflictException {
81-
ExtractResponse response = nativeBackupService.downloadScreenshot(getBackupId());
81+
ExtractResponse response = internalBackupService.downloadScreenshot(getBackupId());
8282
response.setResponseName(getCommandName());
8383
response.setObjectName(getCommandName());
8484
this.setResponseObject(response);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.apache.cloudstack.api.ServerApiException;
3232
import org.apache.cloudstack.api.response.SuccessResponse;
3333
import org.apache.cloudstack.api.response.VirtualMachineResponse;
34-
import org.apache.cloudstack.backup.NativeBackupService;
34+
import org.apache.cloudstack.backup.InternalBackupService;
3535

3636
import javax.inject.Inject;
3737

@@ -40,7 +40,7 @@
4040
responseHasSensitiveInfo = false)
4141
public class FinishBackupChainCmd extends BaseCmd {
4242
@Inject
43-
private NativeBackupService nativeBackupService;
43+
private InternalBackupService internalBackupService;
4444

4545
/////////////////////////////////////////////////////
4646
//////////////// API parameters /////////////////////
@@ -66,7 +66,7 @@ public Long getVmId() {
6666
@Override
6767
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException,
6868
NetworkRuleConflictException {
69-
boolean result = nativeBackupService.finishBackupChain(getVmId());
69+
boolean result = internalBackupService.finishBackupChain(getVmId());
7070
SuccessResponse response = new SuccessResponse();
7171
response.setSuccess(result);
7272
response.setResponseName(getCommandName());

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ public class RestoreBackupCmd extends BaseAsyncCmd {
6262
private Long backupId;
6363

6464
@Parameter(name = ApiConstants.QUICK_RESTORE, type = CommandType.BOOLEAN, entityType = BackupResponse.class, description = "Whether to use the quick restore process or not. " +
65-
"Currently this parameter is only supported by the KNIB provider.", since = "4.23.0")
65+
"Currently this parameter is only supported by the KBOSS provider.", since = "4.23.0")
6666
private Boolean quickRestore;
6767

6868
@Parameter(name = ApiConstants.HOST_ID, type = CommandType.UUID, entityType = HostResponse.class, description = "If quickrestore is true, which host to start the VM on;" +
69-
" otherwise, ignored. Currently this parameter is only supported by the KNIB provider.", since = "4.23.0")
69+
" otherwise, ignored. Currently this parameter is only supported by the KBOSS provider.", since = "4.23.0")
7070
private Long hostId;
7171

7272
/////////////////////////////////////////////////////

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ public class RestoreVolumeFromBackupAndAttachToVMCmd extends BaseAsyncCmd {
7575
private Long vmId;
7676

7777
@Parameter(name = ApiConstants.QUICK_RESTORE, type = CommandType.BOOLEAN, description = "Whether to use the quick restore process or not. " +
78-
"Currently this parameter is only supported by the KNIB provider.", since = "4.23.0")
78+
"Currently this parameter is only supported by the KBOSS provider.", since = "4.23.0")
7979
private Boolean quickRestore;
8080

8181
@Parameter(name = ApiConstants.HOST_ID, type = CommandType.UUID, entityType = HostResponse.class, description = "If quickrestore is true, which host to start the VM on;" +
82-
" otherwise, ignored. Currently this parameter is only supported by the KNIB provider.", since = "4.23.0")
82+
" otherwise, ignored. Currently this parameter is only supported by the KBOSS provider.", since = "4.23.0")
8383
private Long hostId;
8484

8585
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/api/command/user/vm/CreateVMFromBackupCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class CreateVMFromBackupCmd extends BaseDeployVMCmd {
7171
private Boolean preserveIp;
7272

7373
@Parameter(name = ApiConstants.QUICK_RESTORE, type = CommandType.BOOLEAN, entityType = BackupResponse.class, description = "Whether to use the quick restore process or not. " +
74-
"Currently this parameter is only supported by the KNIB provider.", since = "4.23.0")
74+
"Currently this parameter is only supported by the KBOSS provider.", since = "4.23.0")
7575
private Boolean quickRestore;
7676

7777
/////////////////////////////////////////////////////

api/src/main/java/org/apache/cloudstack/backup/BackupManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public interface BackupManager extends BackupService, Configurable, PluggableSer
5959
ConfigKey<String> BackupProviderPlugin = new ValidatedConfigKey<>("Advanced", String.class,
6060
"backup.framework.provider.plugin",
6161
"dummy",
62-
"The backup and recovery provider plugin. Valid plugin values: dummy, veeam, networker, nas and knib",
62+
"The backup and recovery provider plugin. Valid plugin values: dummy, veeam, networker, nas and kboss",
6363
true, ConfigKey.Scope.Zone, BackupFrameworkEnabled.key(), value -> validateBackupProviderConfig((String)value));
6464

6565
ConfigKey<Long> BackupSyncPollingInterval = new ConfigKey<>("Advanced", Long.class,
@@ -141,7 +141,7 @@ public interface BackupManager extends BackupService, Configurable, PluggableSer
141141
BackupOffering importBackupOffering(final ImportBackupOfferingCmd cmd);
142142

143143
/**
144-
* Add a new Backup and Recovery policy to CloudStack. Currently only supported for KNIB.
144+
* Add a new Backup and Recovery policy to CloudStack. Currently only supported for KBOSS.
145145
* @param cmd import backup offering cmd
146146
*/
147147
BackupOffering createBackupOffering(final CreateBackupOfferingCmd cmd);
@@ -270,7 +270,7 @@ static void validateBackupProviderConfig(String value) {
270270
if (value != null && (value.contains(",") || value.trim().contains(" "))) {
271271
throw new IllegalArgumentException("Multiple backup provider plugins are not supported. Please provide a single plugin value.");
272272
}
273-
List<String> validPlugins = List.of("dummy", "veeam", "networker", "nas", "knib");
273+
List<String> validPlugins = List.of("dummy", "veeam", "networker", "nas", "kboss");
274274
if (value != null && !validPlugins.contains(value)) {
275275
throw new IllegalArgumentException("Invalid backup provider plugin: " + value + ". Valid plugin values are: " + String.join(", ", validPlugins));
276276
}

0 commit comments

Comments
 (0)