Skip to content

Commit 8893ace

Browse files
authored
Merge branch 'apache:main' into s390x_cloudstack_simulator_support
2 parents 89054ea + 5bf869c commit 8893ace

File tree

1,166 files changed

+7720
-7013
lines changed

Some content is hidden

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

1,166 files changed

+7720
-7013
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ private Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, fin
175175
try {
176176
is.close();
177177
} catch (final IOException e) {
178-
logger.warn("Exception when closing , console proxy address : {}", proxyManagementIp);
178+
logger.warn("Exception when closing , console proxy address: {}", proxyManagementIp);
179179
success = false;
180180
}
181181
}
182182
} catch (final IOException e) {
183-
logger.warn("Unable to open console proxy command port url, console proxy address : {}", proxyManagementIp);
183+
logger.warn("Unable to open console proxy command port url, console proxy address: {}", proxyManagementIp);
184184
success = false;
185185
}
186186

api/src/main/java/com/cloud/agent/api/storage/OVFHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ private DatadiskTO generateDiskTO(OVFFile file, OVFDisk disk, String ovfParentPa
277277
if (StringUtils.isNotBlank(path)) {
278278
File f = new File(path);
279279
if (!f.exists() || f.isDirectory()) {
280-
logger.error("One of the attached disk or iso does not exists {}", path);
281-
throw new InternalErrorException("One of the attached disk or iso as stated on OVF does not exists " + path);
280+
logger.error("One of the attached disk or ISOs does not exists {}", path);
281+
throw new InternalErrorException("One of the attached disk or ISOs as stated on OVF does not exists " + path);
282282
}
283283
}
284284
Long capacity = disk != null ? disk._capacity : file._size;
@@ -541,7 +541,7 @@ private void matchNicsToNets(Map<String, OVFNetworkTO> nets, Node systemElement)
541541
nicCount++;
542542
String name = e.getTextContent(); // should be in our nets
543543
if(nets.get(name) == null) {
544-
logger.info("Found a nic definition without a network definition by name {}, adding it to the list.", name);
544+
logger.info("Found a NIC definition without a Network definition by name {}, adding it to the list.", name);
545545
nets.put(name, new OVFNetworkTO());
546546
}
547547
OVFNetworkTO thisNet = nets.get(name);
@@ -617,7 +617,7 @@ private Map<String, OVFNetworkTO> getNetworksFromDocumentTree(Document doc) {
617617

618618
nets.put(networkName,network);
619619
}
620-
logger.trace("Found {} networks in template", nets.size());
620+
logger.trace("Found {} Networks in Template", nets.size());
621621
return nets;
622622
}
623623

api/src/main/java/com/cloud/api/commands/ListRecurringSnapshotScheduleCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public class ListRecurringSnapshotScheduleCmd extends BaseListCmd {
3535
//////////////// API parameters /////////////////////
3636
/////////////////////////////////////////////////////
3737

38-
@Parameter(name = ApiConstants.SNAPSHOT_POLICY_ID, type = CommandType.LONG, description = "lists recurring snapshots by snapshot policy ID")
38+
@Parameter(name = ApiConstants.SNAPSHOT_POLICY_ID, type = CommandType.LONG, description = "Lists recurring Snapshots by Snapshot policy ID")
3939
private Long snapshotPolicyId;
4040

41-
@Parameter(name = ApiConstants.VOLUME_ID, type = CommandType.LONG, required = true, description = "list recurring snapshots by volume ID")
41+
@Parameter(name = ApiConstants.VOLUME_ID, type = CommandType.LONG, required = true, description = "List recurring Snapshots by volume ID")
4242
private Long volumeId;
4343

4444
/////////////////////////////////////////////////////

api/src/main/java/com/cloud/deploy/DeploymentClusterPlanner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ public interface DeploymentClusterPlanner extends DeploymentPlanner {
6262
"vm.allocation.algorithm",
6363
"Advanced",
6464
"random",
65-
"Order in which hosts within a cluster will be considered for VM allocation. The value can be 'random', 'firstfit', 'userdispersing', 'userconcentratedpod_random', 'userconcentratedpod_firstfit', or 'firstfitleastconsumed'.",
65+
"Order in which hosts within a cluster will be considered for VM allocation. The value can be 'random', 'firstfit', 'userdispersing', or 'firstfitleastconsumed'.",
6666
true,
6767
ConfigKey.Scope.Global, null, null, null, null, null,
6868
ConfigKey.Kind.Select,
69-
"random,firstfit,userdispersing,userconcentratedpod_random,userconcentratedpod_firstfit,firstfitleastconsumed");
69+
"random,firstfit,userdispersing,firstfitleastconsumed");
7070

7171
/**
7272
* This is called to determine list of possible clusters where a virtual

api/src/main/java/com/cloud/deploy/DeploymentPlanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public interface DeploymentPlanner extends Adapter {
7070
boolean canHandle(VirtualMachineProfile vm, DeploymentPlan plan, ExcludeList avoid);
7171

7272
public enum AllocationAlgorithm {
73-
random, firstfit, userdispersing, userconcentratedpod_random, userconcentratedpod_firstfit;
73+
random, firstfit, userdispersing;
7474
}
7575

7676
public enum PlannerResourceUsage {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface Ipv6Service extends PluggableService, Configurable {
4545
static final ConfigKey<Boolean> Ipv6OfferingCreationEnabled = new ConfigKey<Boolean>("Advanced", Boolean.class,
4646
"ipv6.offering.enabled",
4747
"false",
48-
"Indicates whether creation of IPv6 network/VPC offering is enabled or not.",
48+
"Indicates whether creation of IPv6 Network/VPC offering is enabled or not.",
4949
true);
5050

5151
static final ConfigKey<Integer> Ipv6PrefixSubnetCleanupInterval = new ConfigKey<Integer>("Advanced", Integer.class,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ enum Event {
325325

326326
public enum State {
327327

328-
Allocated("Indicates the network configuration is in allocated but not setup"), Setup("Indicates the network configuration is setup"), Implementing(
329-
"Indicates the network configuration is being implemented"), Implemented("Indicates the network configuration is in use"), Shutdown(
330-
"Indicates the network configuration is being destroyed"), Destroy("Indicates that the network is destroyed");
328+
Allocated("Indicates the Network configuration is in allocated but not setup"), Setup("Indicates the Network configuration is setup"), Implementing(
329+
"Indicates the Network configuration is being implemented"), Implemented("Indicates the Network configuration is in use"), Shutdown(
330+
"Indicates the Network configuration is being destroyed"), Destroy("Indicates that the Network is destroyed");
331331

332332
protected static final StateMachine2<State, Network.Event, Network> s_fsm = new StateMachine2<State, Network.Event, Network>();
333333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public interface NetworkService {
8181
true, ConfigKey.Scope.Zone);
8282

8383
public static final ConfigKey<Boolean> AllowUsersToSpecifyVRMtu = new ConfigKey<>("Advanced", Boolean.class,
84-
"allow.end.users.to.specify.vr.mtu", "false", "Allow end users to specify VR MTU",
84+
"allow.end.users.to.specify.vr.mtu", "false", "Allow end Users to specify VR MTU",
8585
true, ConfigKey.Scope.Zone);
8686

8787
List<? extends Network> getIsolatedNetworksOwnedByAccountInZone(long zoneId, Account owner);

api/src/main/java/com/cloud/network/as/AutoScaleVmGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static State fromValue(String state) {
4343
} else if (state.equalsIgnoreCase("scaling")) {
4444
return SCALING;
4545
} else {
46-
throw new IllegalArgumentException("Unexpected AutoScale VM group state : " + state);
46+
throw new IllegalArgumentException("Unexpected AutoScale Instance group state : " + state);
4747
}
4848
}
4949
}

api/src/main/java/com/cloud/user/AccountService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.apache.cloudstack.acl.SecurityChecker.AccessType;
2626
import org.apache.cloudstack.api.command.admin.account.CreateAccountCmd;
2727
import org.apache.cloudstack.api.command.admin.user.GetUserKeysCmd;
28-
import org.apache.cloudstack.api.command.admin.user.RegisterCmd;
28+
import org.apache.cloudstack.api.command.admin.user.RegisterUserKeyCmd;
2929
import org.apache.cloudstack.api.command.admin.user.UpdateUserCmd;
3030

3131
import com.cloud.dc.DataCenter;
@@ -95,7 +95,7 @@ User createUser(String userName, String password, String firstName, String lastN
9595

9696
void markUserRegistered(long userId);
9797

98-
public String[] createApiKeyAndSecretKey(RegisterCmd cmd);
98+
public String[] createApiKeyAndSecretKey(RegisterUserKeyCmd cmd);
9999

100100
public String[] createApiKeyAndSecretKey(final long userId);
101101

0 commit comments

Comments
 (0)