Skip to content

Commit 4159405

Browse files
committed
Merge remote-tracking branch 'origin/main' into quota-ui
2 parents 38ec526 + 333973a commit 4159405

423 files changed

Lines changed: 42518 additions & 1556 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.

.asf.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ github:
5858
- GaOrtiga
5959
- bhouse-nexthop
6060

61-
protected_branches:
62-
6361
rulesets:
6462
- name: "Default Branch Protection"
6563
type: branch

.github/CODEOWNERS

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

1818
/plugins/storage/volume/linstor @rp-
1919
/plugins/storage/volume/storpool @slavkap
20-
/plugins/storage/volume/ontap @rajiv1 @sandeeplocharla @piyush5 @suryag
20+
/plugins/storage/volume/ontap @rajiv-jain-netapp @sandeeplocharla @piyush5netapp @suryag1201
2121

2222
.pre-commit-config.yaml @jbampton
2323
/.github/linters/ @jbampton

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717

1818
name: Build
1919
on:
20-
- push
21-
- pull_request
20+
push:
21+
branches:
22+
- main
23+
- 4.22
24+
- 4.20
25+
pull_request:
2226
concurrency:
2327
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2428
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717

1818
name: Simulator CI
1919
on:
20-
- push
21-
- pull_request
20+
push:
21+
branches:
22+
- main
23+
- 4.22
24+
- 4.20
25+
pull_request:
2226
concurrency:
2327
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2428
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

.github/workflows/rat.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717

1818
name: License Check
1919
on:
20-
- push
21-
- pull_request
20+
push:
21+
branches:
22+
- main
23+
- 4.22
24+
- 4.20
25+
pull_request:
2226
concurrency:
2327
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2428
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

.github/workflows/ui.yml

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

1818
name: UI Build
1919

20-
on: [push, pull_request]
20+
on:
21+
push:
22+
branches:
23+
- main
24+
- 4.22
25+
- 4.20
26+
pull_request:
2127

2228
concurrency:
2329
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

agent/conf/agent.properties

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ iscsi.session.cleanup.enabled=false
316316
#vm.migrate.domain.retrieve.timeout=10
317317

318318
# This parameter specifies if the host must be rebooted when something goes wrong with the heartbeat.
319-
#reboot.host.and.alert.management.on.heartbeat.timeout=true
319+
#reboot.host.and.alert.management.on.heartbeat.timeout=false
320320

321321
# Enables manually setting CPU's topology on KVM's VM.
322322
#enable.manually.setting.cpu.topology.on.kvm.vm=true
@@ -372,6 +372,14 @@ iscsi.session.cleanup.enabled=false
372372
# to the directory "/usr/share/cloudstack-common/".
373373
#network.scripts.dir=scripts/vm/network/vnet
374374

375+
# Sets the VXLAN networking mode used, either 'multicast' (default) or 'evpn'.
376+
# The different modes lead to different scripts being executed by the Agent.
377+
# multicast: modifyvxlan.sh
378+
# evpn: modifyvxlan-evpn.sh
379+
# Existing environments using VXLAN can safely switch to the 'evpn' mode as this
380+
# will not break existing functionality.
381+
#network.vxlan.mode=multicast
382+
375383
# Defines the location for storage scripts.
376384
# The path defined in this property is relative.
377385
# To locate the script, ACS first tries to concatenate

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,15 @@ public class AgentProperties{
318318
*/
319319
public static final Property<String> NETWORK_BRIDGE_TYPE = new Property<>("network.bridge.type", "native");
320320

321+
/**
322+
* Sets the VXLAN networking mode used by the BridgeVifDriver.<br>
323+
* Possible values: multicast | evpn <br>
324+
* When set to <code>evpn</code>, the driver will use modifyvxlan-evpn.sh instead of modifyvxlan.sh.<br>
325+
* Data type: String.<br>
326+
* Default value: <code>multicast</code>
327+
*/
328+
public static final Property<String> NETWORK_VXLAN_MODE = new Property<>("network.vxlan.mode", "multicast");
329+
321330
/**
322331
* Sets the driver used to plug and unplug NICs from the bridges.<br>
323332
* A sensible default value will be selected based on the network.bridge.type but can be overridden here.<br>
@@ -607,10 +616,10 @@ public class AgentProperties{
607616
/**
608617
* This parameter specifies if the host must be rebooted when something goes wrong with the heartbeat.<br>
609618
* Data type: Boolean.<br>
610-
* Default value: <code>true</code>
619+
* Default value: <code>false</code>
611620
*/
612621
public static final Property<Boolean> REBOOT_HOST_AND_ALERT_MANAGEMENT_ON_HEARTBEAT_TIMEOUT
613-
= new Property<>("reboot.host.and.alert.management.on.heartbeat.timeout", true);
622+
= new Property<>("reboot.host.and.alert.management.on.heartbeat.timeout", false);
614623

615624
/**
616625
* Enables manually setting CPU's topology on KVM's VM. <br>

api/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
<artifactId>cloud-framework-direct-download</artifactId>
7272
<version>${project.version}</version>
7373
</dependency>
74+
<dependency>
75+
<groupId>org.apache.cloudstack</groupId>
76+
<artifactId>cloud-framework-kms</artifactId>
77+
<version>${project.version}</version>
78+
</dependency>
7479
</dependencies>
7580
<build>
7681
<plugins>

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

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@
3030
import org.apache.cloudstack.backup.BackupRepositoryService;
3131
import org.apache.cloudstack.config.Configuration;
3232
import org.apache.cloudstack.datacenter.DataCenterIpv4GuestSubnet;
33+
import org.apache.cloudstack.dns.DnsRecord;
34+
import org.apache.cloudstack.dns.DnsServer;
35+
import org.apache.cloudstack.dns.DnsZone;
3336
import org.apache.cloudstack.extension.Extension;
3437
import org.apache.cloudstack.extension.ExtensionCustomAction;
3538
import org.apache.cloudstack.gpu.GpuCard;
3639
import org.apache.cloudstack.gpu.GpuDevice;
3740
import org.apache.cloudstack.gpu.VgpuProfile;
3841
import org.apache.cloudstack.ha.HAConfig;
42+
import org.apache.cloudstack.kms.HSMProfile;
43+
import org.apache.cloudstack.kms.KMSKey;
3944
import org.apache.cloudstack.network.BgpPeer;
4045
import org.apache.cloudstack.network.Ipv4GuestSubnetNetworkMap;
4146
import org.apache.cloudstack.quota.QuotaTariff;
@@ -272,6 +277,20 @@ public class EventTypes {
272277
public static final String EVENT_CA_CERTIFICATE_REVOKE = "CA.CERTIFICATE.REVOKE";
273278
public static final String EVENT_CA_CERTIFICATE_PROVISION = "CA.CERTIFICATE.PROVISION";
274279

280+
// KMS (Key Management Service) events
281+
public static final String EVENT_KMS_KEY_WRAP = "KMS.KEY.WRAP";
282+
public static final String EVENT_KMS_KEY_UNWRAP = "KMS.KEY.UNWRAP";
283+
public static final String EVENT_KMS_KEY_CREATE = "KMS.KEY.CREATE";
284+
public static final String EVENT_KMS_KEY_UPDATE = "KMS.KEY.UPDATE";
285+
public static final String EVENT_KMS_KEY_ROTATE = "KMS.KEY.ROTATE";
286+
public static final String EVENT_KMS_KEY_DELETE = "KMS.KEY.DELETE";
287+
public static final String EVENT_VOLUME_MIGRATE_TO_KMS = "VOLUME.MIGRATE.TO.KMS";
288+
289+
// HSM Profile events
290+
public static final String EVENT_HSM_PROFILE_CREATE = "HSM.PROFILE.CREATE";
291+
public static final String EVENT_HSM_PROFILE_UPDATE = "HSM.PROFILE.UPDATE";
292+
public static final String EVENT_HSM_PROFILE_DELETE = "HSM.PROFILE.DELETE";
293+
275294
// Account events
276295
public static final String EVENT_ACCOUNT_ENABLE = "ACCOUNT.ENABLE";
277296
public static final String EVENT_ACCOUNT_DISABLE = "ACCOUNT.DISABLE";
@@ -867,6 +886,17 @@ public class EventTypes {
867886
public static final String EVENT_BACKUP_REPOSITORY_ADD = "BACKUP.REPOSITORY.ADD";
868887
public static final String EVENT_BACKUP_REPOSITORY_UPDATE = "BACKUP.REPOSITORY.UPDATE";
869888

889+
// DNS Framework Events
890+
public static final String EVENT_DNS_SERVER_ADD = "DNS.SERVER.ADD";
891+
public static final String EVENT_DNS_SERVER_UPDATE = "DNS.SERVER.UPDATE";
892+
public static final String EVENT_DNS_SERVER_DELETE = "DNS.SERVER.DELETE";
893+
public static final String EVENT_DNS_ZONE_CREATE = "DNS.ZONE.CREATE";
894+
public static final String EVENT_DNS_ZONE_UPDATE = "DNS.ZONE.UPDATE";
895+
public static final String EVENT_DNS_ZONE_DELETE = "DNS.ZONE.DELETE";
896+
public static final String EVENT_DNS_RECORD_CREATE = "DNS.RECORD.CREATE";
897+
public static final String EVENT_DNS_RECORD_DELETE = "DNS.RECORD.DELETE";
898+
public static final String EVENT_DNS_NAME_COLLISION = "DNS.NAME.COLLISION";
899+
870900
static {
871901

872902
// TODO: need a way to force author adding event types to declare the entity details as well, with out braking
@@ -1020,6 +1050,20 @@ public class EventTypes {
10201050
entityEventDetails.put(EVENT_VOLUME_RECOVER, Volume.class);
10211051
entityEventDetails.put(EVENT_VOLUME_CHANGE_DISK_OFFERING, Volume.class);
10221052

1053+
// KMS Key Events
1054+
entityEventDetails.put(EVENT_KMS_KEY_CREATE, KMSKey.class);
1055+
entityEventDetails.put(EVENT_KMS_KEY_UPDATE, KMSKey.class);
1056+
entityEventDetails.put(EVENT_KMS_KEY_UNWRAP, KMSKey.class);
1057+
entityEventDetails.put(EVENT_KMS_KEY_WRAP, KMSKey.class);
1058+
entityEventDetails.put(EVENT_KMS_KEY_DELETE, KMSKey.class);
1059+
entityEventDetails.put(EVENT_KMS_KEY_ROTATE, KMSKey.class);
1060+
entityEventDetails.put(EVENT_VOLUME_MIGRATE_TO_KMS, KMSKey.class);
1061+
1062+
// HSM Profile Events
1063+
entityEventDetails.put(EVENT_HSM_PROFILE_CREATE, HSMProfile.class);
1064+
entityEventDetails.put(EVENT_HSM_PROFILE_UPDATE, HSMProfile.class);
1065+
entityEventDetails.put(EVENT_HSM_PROFILE_DELETE, HSMProfile.class);
1066+
10231067
// Domains
10241068
entityEventDetails.put(EVENT_DOMAIN_CREATE, Domain.class);
10251069
entityEventDetails.put(EVENT_DOMAIN_DELETE, Domain.class);
@@ -1411,6 +1455,17 @@ public class EventTypes {
14111455
// Backup Repository
14121456
entityEventDetails.put(EVENT_BACKUP_REPOSITORY_ADD, BackupRepositoryService.class);
14131457
entityEventDetails.put(EVENT_BACKUP_REPOSITORY_UPDATE, BackupRepositoryService.class);
1458+
1459+
// DNS Framework Events
1460+
entityEventDetails.put(EVENT_DNS_SERVER_ADD, DnsServer.class);
1461+
entityEventDetails.put(EVENT_DNS_SERVER_UPDATE, DnsServer.class);
1462+
entityEventDetails.put(EVENT_DNS_SERVER_DELETE, DnsServer.class);
1463+
entityEventDetails.put(EVENT_DNS_ZONE_CREATE, DnsZone.class);
1464+
entityEventDetails.put(EVENT_DNS_ZONE_UPDATE, DnsZone.class);
1465+
entityEventDetails.put(EVENT_DNS_ZONE_DELETE, DnsZone.class);
1466+
entityEventDetails.put(EVENT_DNS_RECORD_CREATE, DnsRecord.class);
1467+
entityEventDetails.put(EVENT_DNS_RECORD_DELETE, DnsRecord.class);
1468+
14141469
}
14151470

14161471
public static boolean isNetworkEvent(String eventType) {

0 commit comments

Comments
 (0)