Skip to content

Commit 93aae83

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feature_rbd_encryption
Conflicts: - LibvirtStorageAdaptor.java: #13763 added VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS next to LUKS2_HEADER_RESERVE_BYTES; kept both constants. - PendingReleaseNotes: kept the UEFI NVRAM entry from main and moved the encrypted RBD entry under 4.23.0.0 > 24.0.0, since 4.23.0.0 has been released without it and main is now 24.0.0-SNAPSHOT.
2 parents 86e15ce + dc0ba1c commit 93aae83

592 files changed

Lines changed: 2078251 additions & 2061 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ github:
5858
- GaOrtiga
5959
- bhouse-nexthop
6060
- Dogface2k
61+
- prashanthr2
6162

6263
rulesets:
6364
- name: "Default Branch Protection"
@@ -73,7 +74,7 @@ github:
7374

7475
copilot_code_review:
7576
enabled: true
76-
review_drafts: true
77+
review_drafts: false
7778
review_on_push: true
7879

7980
notifications:

.codespellrc

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

1818
[codespell]
1919
ignore-words = .github/linters/codespell.txt
20-
skip = systemvm/agent/noVNC/*,ui/package.json,ui/package-lock.json,ui/public/js/less.min.js,ui/public/locales/*.json,server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java,test/integration/smoke/test_ssl_offloading.py
20+
skip = systemvm/agent/noVNC/*,ui/package.json,ui/package-lock.json,ui/public/js/less.min.js,ui/public/locales/*.json,server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java,test/integration/smoke/test_ssl_offloading.py,tools/apidoc-versions-diff/*

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ updates:
4141
interval: "daily"
4242
cooldown:
4343
default-days: 7
44+
- package-ecosystem: "pre-commit"
45+
directory: "/"
46+
open-pull-requests-limit: 2
47+
schedule:
48+
interval: "weekly"
49+
groups:
50+
pre-commit-hooks:
51+
patterns:
52+
- "*"
53+
cooldown:
54+
default-days: 7

.github/linters/codespell.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ environmnet
184184
equivalant
185185
erro
186186
erronous
187+
errorprone
188+
everthing
187189
everytime
188190
excute
189191
execept

.github/workflows/docker-cloudstack-simulator.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ on:
2222
branches:
2323
- main
2424
tags:
25-
- 4.*
26-
- 5.*
25+
- '[0-9]+.[0-9]+.*'
2726

2827
permissions:
2928
contents: read

.github/workflows/rat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: ./.github/actions/install-nonoss
4242
- name: RAT licence checks
4343
run: |
44-
mvn -P developer,systemvm -Dsimulator -Dnoredist -pl . org.apache.rat:apache-rat-plugin:0.12:check
44+
mvn -P developer,systemvm -Dsimulator -Dnoredist -pl . org.apache.rat:apache-rat-plugin:0.18:check
4545
- name: Rat Report
4646
if: always()
4747
run: |

.pre-commit-config.yaml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,37 @@ repos:
2626
- id: identity
2727
- id: check-hooks-apply
2828
- repo: https://github.com/thlorenz/doctoc.git
29-
rev: v2.3.0
29+
rev: 59dcae910a6ad4bbe8711275b854e3cd5c30f08b # frozen: v2.5.0
3030
hooks:
3131
- id: doctoc
3232
name: Add TOC for Markdown files
3333
files: ^CONTRIBUTING\.md$|^INSTALL\.md$|^README\.md$
34+
- repo: local
35+
hooks:
36+
- id: check-zip-file-is-not-committed
37+
name: check no zip files are committed
38+
description: Zip files are not allowed in the repository
39+
language: fail
40+
entry: |
41+
Zip files are not allowed in the repository as they are hard to
42+
track and have security implications. Please remove the zip file from the repository.
43+
files: (?i)\.zip$
44+
exclude: ^core/src/test/resources/vhds/test\.vhd\.zip$
3445
- repo: https://github.com/oxipng/oxipng
35-
rev: v10.1.0
46+
rev: 340cd9878d8d8289f09fa101b48a8f5f0b7783f4 # frozen: v10.2.0
3647
hooks:
3748
- id: oxipng
3849
name: run oxipng
3950
description: optimize PNG images with lossless compression
4051
args: ['-o', '4', '--strip', 'safe', '--alpha']
4152
- repo: https://github.com/gitleaks/gitleaks
42-
rev: v8.30.0
53+
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1
4354
hooks:
4455
- id: gitleaks
4556
name: run gitleaks
4657
description: detect hardcoded secrets
4758
- repo: https://github.com/Lucas-C/pre-commit-hooks
48-
rev: v1.5.6
59+
rev: ad1b27d73581aa16cca06fc4a0761fc563ffe8e8 # frozen: v1.5.6
4960
hooks:
5061
- id: chmod
5162
name: set file permissions
@@ -62,6 +73,16 @@ repos:
6273
- --license-filepath
6374
- .github/workflows/license-templates/LICENSE.txt
6475
- --fuzzy-match-generates-todo
76+
- id: insert-license
77+
name: add license for all conf files
78+
description: automatically adds a license header to all conf files that don't have a license header
79+
files: \.conf$
80+
args:
81+
- --comment-style
82+
- '|#|'
83+
- --license-filepath
84+
- .github/workflows/license-templates/LICENSE.txt
85+
- --fuzzy-match-generates-todo
6586
- id: insert-license
6687
name: add license for all Markdown files
6788
files: \.md$
@@ -122,7 +143,7 @@ repos:
122143
- --fuzzy-match-generates-todo
123144
exclude: ^\.github/workflows/.*\.lock\.yml$
124145
- repo: https://github.com/pre-commit/pre-commit-hooks
125-
rev: v6.0.0
146+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
126147
hooks:
127148
#- id: check-added-large-files
128149
- id: check-case-conflict
@@ -166,18 +187,18 @@ repos:
166187
args: [--markdown-linebreak-ext=md]
167188
exclude: ^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
168189
- repo: https://github.com/codespell-project/codespell
169-
rev: v2.4.2
190+
rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3
170191
hooks:
171192
- id: codespell
172193
name: run codespell
173194
description: Check spelling with codespell
174195
- repo: https://github.com/pycqa/flake8
175-
rev: 7.3.0
196+
rev: c48217e1fc006c2dddd14df54e83b67da15de5cd # frozen: 7.3.0
176197
hooks:
177-
- id: flake8
178-
args: [--config, .github/linters/.flake8]
198+
- id: flake8
199+
args: [--config, .github/linters/.flake8]
179200
- repo: https://github.com/igorshubovych/markdownlint-cli
180-
rev: v0.48.0
201+
rev: 5b5dddc4fb0f83c3ea1fc5616fa63e115dce83e0 # frozen: v0.49.1
181202
hooks:
182203
- id: markdownlint
183204
name: run markdownlint
@@ -186,7 +207,7 @@ repos:
186207
types: [markdown]
187208
files: \.md$
188209
- repo: https://github.com/adrienverge/yamllint
189-
rev: v1.38.0
210+
rev: cba56bcde1fdd01c1deb3f945e69764c291a6530 # frozen: v1.38.0
190211
hooks:
191212
- id: yamllint
192213
name: run yamllint

PendingReleaseNotes

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,21 @@ example.ver.1 > example.ver.2:
4040
Storage to grow to enormous sizes as Linux Distributions keep growing in
4141
size while a stripped down Linux should fit on a 2.88MB floppy.
4242

43+
4.22.0.0 > 4.22.0.1:
44+
* Disk-only instance snapshots for KVM UEFI VMs now include a sidecar copy of
45+
the active NVRAM state so revert operations restore both disk and firmware
46+
boot state consistently.
4347

44-
4.22.0.0 > 4.23.0.0:
48+
* UEFI disk-only instance snapshots taken before this change do not contain an
49+
NVRAM sidecar and cannot be safely reverted. Take a new snapshot after
50+
upgrading before relying on revert for UEFI VMs.
51+
52+
* Taking a disk-only instance snapshot for KVM UEFI VMs now briefly suspends
53+
the guest while the NVRAM sidecar is copied, so that the captured firmware
54+
state is consistent with the disk snapshot. Non-UEFI VMs are unaffected and
55+
continue to snapshot live.
56+
57+
4.23.0.0 > 24.0.0:
4558
* KVM/Ceph: RBD volumes can now be encrypted at rest using native librbd
4659
LUKS2 (<encryption format='luks2' engine='librbd'>), for both data disks
4760
and root disks. Encryption is transparent to the guest and reuses the

agent/conf/log4j-cloud.xml.in

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ under the License.
3838
<!-- ============================== -->
3939

4040
<Console name="CONSOLE" target="SYSTEM_OUT">
41-
<ThresholdFilter level="OFF" onMatch="ACCEPT" onMismatch="DENY"/>
42-
<PatternLayout pattern="%-5p [%c{3}] (%t:%x) (logid:%X{logcontextid}) %m%ex%n"/>
41+
<ThresholdFilter level="ERROR" onMatch="DENY" onMismatch="ACCEPT"/>
42+
<PatternLayout pattern="%d{DEFAULT} %-5p [%c{3}] (%t:%x) (logid:%X{logcontextid}) %m%ex%n"/>
43+
</Console>
44+
45+
<Console name="CONSOLE_ERR" target="SYSTEM_ERR">
46+
<ThresholdFilter level="ERROR" onMatch="ACCEPT" onMismatch="DENY"/>
47+
<PatternLayout pattern="%d{DEFAULT} %-5p [%c{3}] (%t:%x) (logid:%X{logcontextid}) %m%ex%n"/>
4348
</Console>
4449
</Appenders>
4550

@@ -50,17 +55,11 @@ under the License.
5055
<!-- ================ -->
5156

5257
<Logger name="com.cloud" level="INFO"/>
53-
5458
<Logger name="org.apache" level="INFO"/>
55-
5659
<Logger name="org" level="INFO"/>
57-
5860
<Logger name="net" level="INFO"/>
59-
6061
<Logger name="com.amazonaws" level="INFO"/>
61-
6262
<Logger name="httpclient.wire" level="INFO"/>
63-
6463
<Logger name="org.apache.http.wire" level="INFO"/>
6564

6665
<!-- ======================= -->
@@ -69,6 +68,7 @@ under the License.
6968

7069
<Root level="INFO">
7170
<AppenderRef ref="CONSOLE"/>
71+
<AppenderRef ref="CONSOLE_ERR"/>
7272
<AppenderRef ref="FILE"/>
7373
</Root>
7474

agent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<parent>
2525
<groupId>org.apache.cloudstack</groupId>
2626
<artifactId>cloudstack</artifactId>
27-
<version>4.23.0.0-SNAPSHOT</version>
27+
<version>24.0.0-SNAPSHOT</version>
2828
</parent>
2929
<dependencies>
3030
<dependency>

0 commit comments

Comments
 (0)