Skip to content

Commit 8f3ab41

Browse files
committed
resolve merge conflict
2 parents 11740db + b17808b commit 8f3ab41

File tree

299 files changed

+18928
-1699
lines changed

Some content is hidden

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

299 files changed

+18928
-1699
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ jobs:
237237
238238
- name: Install Python dependencies
239239
run: |
240-
python3 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycrypto mock flask netaddr pylint pycodestyle six astroid pynose
240+
python3 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycryptodome mock flask netaddr pylint pycodestyle six astroid pynose
241241
242242
- name: Install jacoco dependencies
243243
run: |

agent/conf/agent.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,3 +441,9 @@ iscsi.session.cleanup.enabled=false
441441

442442
# Wait(in seconds) during agent reconnections. When no value is set then default value of 5s will be used
443443
#backoff.seconds=
444+
445+
# Timeout (in seconds) to wait for the snapshot reversion to complete.
446+
# revert.snapshot.timeout=10800
447+
448+
# Timeout (in seconds) to wait for the incremental snapshot to complete.
449+
# incremental.snapshot.timeout=10800

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,16 @@ public Property<Integer> getWorkers() {
818818
*/
819819
public static final Property<Integer> SSL_HANDSHAKE_TIMEOUT = new Property<>("ssl.handshake.timeout", 30, Integer.class);
820820

821+
/**
822+
* Timeout (in seconds) to wait for the incremental snapshot to complete.
823+
* */
824+
public static final Property<Integer> INCREMENTAL_SNAPSHOT_TIMEOUT = new Property<>("incremental.snapshot.timeout", 10800);
825+
826+
/**
827+
* Timeout (in seconds) to wait for the snapshot reversion to complete.
828+
* */
829+
public static final Property<Integer> REVERT_SNAPSHOT_TIMEOUT = new Property<>("revert.snapshot.timeout", 10800);
830+
821831
public static class Property <T>{
822832
private String name;
823833
private T defaultValue;

api/src/main/java/com/cloud/configuration/ConfigurationService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,12 @@ public interface ConfigurationService {
201201
* TODO
202202
* @param allocationState
203203
* TODO
204+
* @param storageAccessGroups
204205
* @return the new pod if successful, null otherwise
205206
* @throws
206207
* @throws
207208
*/
208-
Pod createPod(long zoneId, String name, String startIp, String endIp, String gateway, String netmask, String allocationState);
209+
Pod createPod(long zoneId, String name, String startIp, String endIp, String gateway, String netmask, String allocationState, List<String> storageAccessGroups);
209210

210211
/**
211212
* Creates a mutual exclusive IP range in the pod with same gateway, netmask.

api/src/main/java/com/cloud/dc/Pod.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ public interface Pod extends InfrastructureEntity, Grouping, Identity, InternalI
4343
AllocationState getAllocationState();
4444

4545
boolean getExternalDhcp();
46+
47+
String getStorageAccessGroups();
4648
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ 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/volume 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', 'userconcentratedpod_random', 'userconcentratedpod_firstfit', or 'firstfitleastconsumed'.",
6666
true,
6767
ConfigKey.Scope.Global, null, null, null, null, null,
6868
ConfigKey.Kind.Select,

api/src/main/java/com/cloud/event/EventTypes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ public class EventTypes {
465465
public static final String EVENT_ENABLE_PRIMARY_STORAGE = "ENABLE.PS";
466466
public static final String EVENT_DISABLE_PRIMARY_STORAGE = "DISABLE.PS";
467467
public static final String EVENT_SYNC_STORAGE_POOL = "SYNC.STORAGE.POOL";
468+
public static final String EVENT_CONFIGURE_STORAGE_ACCESS = "CONFIGURE.STORAGE.ACCESS";
468469
public static final String EVENT_CHANGE_STORAGE_POOL_SCOPE = "CHANGE.STORAGE.POOL.SCOPE";
469470

470471
// VPN

api/src/main/java/com/cloud/host/Host.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,6 @@ public static String[] toStrings(Host.Type... types) {
213213
ResourceState getResourceState();
214214

215215
CPU.CPUArch getArch();
216+
217+
String getStorageAccessGroups();
216218
}

api/src/main/java/com/cloud/org/Cluster.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ public static enum ClusterType {
4141
ManagedState getManagedState();
4242

4343
CPU.CPUArch getArch();
44+
45+
String getStorageAccessGroups();
4446
}

api/src/main/java/com/cloud/resource/ResourceService.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,11 @@ public interface ResourceService {
9595

9696
boolean releaseHostReservation(Long hostId);
9797

98+
void updatePodStorageAccessGroups(long podId, List<String> newStorageAccessGroups);
99+
100+
void updateZoneStorageAccessGroups(long zoneId, List<String> newStorageAccessGroups);
101+
102+
void updateClusterStorageAccessGroups(Long clusterId, List<String> newStorageAccessGroups);
103+
104+
void updateHostStorageAccessGroups(Long hostId, List<String> newStorageAccessGroups);
98105
}

0 commit comments

Comments
 (0)