Skip to content

Commit ffb8b91

Browse files
Merge branch '4.22'
2 parents 8c2a030 + f5778ea commit ffb8b91

File tree

16 files changed

+1104
-401
lines changed

16 files changed

+1104
-401
lines changed

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3586,8 +3586,9 @@ public void reallyRun() {
35863586
final HashMap<Long, Long> stillFree = new HashMap<>();
35873587

35883588
final List<Long> networkIds = _networksDao.findNetworksToGarbageCollect();
3589-
final int netGcWait = NumbersUtil.parseInt(_configDao.getValue(NetworkGcWait.key()), 60);
3590-
logger.info("NetworkGarbageCollector uses '{}' seconds for GC interval.", netGcWait);
3589+
final int netGcWait = NetworkGcWait.value();
3590+
final int netGcInterval = NetworkGcInterval.value();
3591+
logger.info("NetworkGarbageCollector uses '{}' seconds for GC wait and '{}' seconds for GC interval.", netGcWait, netGcInterval);
35913592

35923593
for (final Long networkId : networkIds) {
35933594
if (!_networkModel.isNetworkReadyForGc(networkId)) {
@@ -4908,10 +4909,10 @@ public String getConfigComponentName() {
49084909
return NetworkOrchestrationService.class.getSimpleName();
49094910
}
49104911

4911-
public static final ConfigKey<Integer> NetworkGcWait = new ConfigKey<>(Integer.class, "network.gc.wait", "Advanced", "600",
4912-
"Time (in seconds) to wait before shutting down a network that's not in used", false, Scope.Global, null);
4913-
public static final ConfigKey<Integer> NetworkGcInterval = new ConfigKey<>(Integer.class, "network.gc.interval", "Advanced", "600",
4914-
"Seconds to wait before checking for networks to shutdown", true, Scope.Global, null);
4912+
public static final ConfigKey<Integer> NetworkGcWait = new ConfigKey<Integer>(Integer.class, "network.gc.wait", "Advanced", "600",
4913+
"Time (in seconds) to wait before shutting down a network that's not in used", true, Scope.Global, null);
4914+
public static final ConfigKey<Integer> NetworkGcInterval = new ConfigKey<Integer>(Integer.class, "network.gc.interval", "Advanced", "600",
4915+
"Seconds to wait before checking for networks to shutdown", false, Scope.Global, null);
49154916

49164917
@Override
49174918
public ConfigKey<?>[] getConfigKeys() {

engine/schema/src/main/java/com/cloud/network/dao/PhysicalNetworkTrafficTypeDaoImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ public String getNetworkTag(long physicalNetworkId, TrafficType trafficType, Hyp
137137
}
138138

139139
sc.setParameters("physicalNetworkId", physicalNetworkId);
140-
sc.setParameters("trafficType", trafficType);
140+
if (trafficType != null) {
141+
sc.setParameters("trafficType", trafficType);
142+
}
141143
List<String> tag = customSearch(sc, null);
142144

143145
return tag.size() == 0 ? null : tag.get(0);

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public LibvirtVMDef.InterfaceDef plug(NicTO nic, String guestOsType, String nicA
236236
String brName = createVnetBr(vNetId, trafficLabel, protocol);
237237
intf.defBridgeNet(brName, null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter), networkRateKBps);
238238
} else {
239-
String brName = createVnetBr(vNetId, _bridges.get("private"), protocol);
239+
String brName = createVnetBr(vNetId, _bridges.get("guest"), protocol);
240240
intf.defBridgeNet(brName, null, nic.getMac(), getGuestNicModel(guestOsType, nicAdapter), networkRateKBps);
241241
}
242242
} else {

plugins/storage/volume/linstor/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ All notable changes to Linstor CloudStack plugin will be documented in this file
2424
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2525
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2626

27+
## [2026-01-17]
28+
29+
### Added
30+
31+
- Support live migrate from other primary storage
32+
2733
## [2025-12-18]
2834

2935
### Changed

0 commit comments

Comments
 (0)