Skip to content

CLVM/CLVM_NG: Host HA support, lock retry, lease-based lock holder lookup and template LV cleanup fix - #14450

Draft
Pearl1594 wants to merge 8 commits into
mainfrom
clvm-ha-support
Draft

Pearl1594 wants to merge 8 commits into
mainfrom
clvm-ha-support

Merge branch 'main' of github.com:apache/cloudstack into clvm-ha-support

ad2ddbd
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 25, 2026 in 3m 34s

Annotations

Check warning on line 90 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "_vmInstanceDao" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCTZ1bcvIxqHaf7R&open=AaIPQCTZ1bcvIxqHaf7R&pullRequest=14450

Check warning on line 224 in server/src/test/java/com/cloud/ha/KVMFencerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this and every subsequent useless "eq(...)" invocation; pass the values directly.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCVO1bcvIxqHaf7l&open=AaIPQCVO1bcvIxqHaf7l&pullRequest=14450

Check warning on line 1702 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCVJ1bcvIxqHaf7b&open=AaIPQCVJ1bcvIxqHaf7b&pullRequest=14450

Check warning on line 670 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to use the more specialised Functional Interface 'LongFunction<T>'

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuzSEL9Hl71vwLuQa&open=AaHAuzSEL9Hl71vwLuQa&pullRequest=14450

Check warning on line 1692 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCVJ1bcvIxqHaf7X&open=AaIPQCVJ1bcvIxqHaf7X&pullRequest=14450

Check warning on line 87 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCTZ1bcvIxqHaf7S&open=AaIPQCTZ1bcvIxqHaf7S&pullRequest=14450

Check warning on line 932 in plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/storage/ClvmStorageAdaptorTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuyz7L9Hl71vwLuQL&open=AaHAuyz7L9Hl71vwLuQL&pullRequest=14450

Check warning on line 757 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuzSEL9Hl71vwLuQP&open=AaHAuzSEL9Hl71vwLuQP&pullRequest=14450

Check warning on line 1705 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCVJ1bcvIxqHaf7e&open=AaIPQCVJ1bcvIxqHaf7e&pullRequest=14450

Check warning on line 1244 in server/src/main/java/com/cloud/template/TemplateManagerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this if-then-else statement by a single return statement.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuzWYL9Hl71vwLuQc&open=AaHAuzWYL9Hl71vwLuQc&pullRequest=14450

Check warning on line 165 in plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/kvm/ha/KVMHostActivityChecker.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Invoke method(s) only conditionally.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCTM1bcvIxqHaf7O&open=AaIPQCTM1bcvIxqHaf7O&pullRequest=14450

Check warning on line 4796 in plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuywGL9Hl71vwLuQI&open=AaHAuywGL9Hl71vwLuQI&pullRequest=14450

Check warning on line 1538 in server/src/test/java/com/cloud/template/TemplateManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "never".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuzeQL9Hl71vwLuQj&open=AaHAuzeQL9Hl71vwLuQj&pullRequest=14450

Check warning on line 1708 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCVJ1bcvIxqHaf7h&open=AaIPQCVJ1bcvIxqHaf7h&pullRequest=14450

Check warning on line 2327 in plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuywGL9Hl71vwLuQG&open=AaHAuywGL9Hl71vwLuQG&pullRequest=14450

Check warning on line 1524 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHSSFtUajHsZZ1tkZ1_&open=AaHSSFtUajHsZZ1tkZ1_&pullRequest=14450

Check warning on line 1615 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "never".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHSSFtUajHsZZ1tkZ2H&open=AaHSSFtUajHsZZ1tkZ2H&pullRequest=14450

Check warning on line 1537 in server/src/test/java/com/cloud/template/TemplateManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuzeQL9Hl71vwLuQg&open=AaHAuzeQL9Hl71vwLuQg&pullRequest=14450

Check warning on line 165 in plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/kvm/ha/KVMHostActivityChecker.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

No need to call "toString()" method as formatting and string conversion is done by the Formatter.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCTM1bcvIxqHaf7P&open=AaIPQCTM1bcvIxqHaf7P&pullRequest=14450

Check warning on line 88 in server/src/main/java/com/cloud/storage/clvm/ClvmPoolManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "_volumeDao" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCTZ1bcvIxqHaf7Q&open=AaIPQCTZ1bcvIxqHaf7Q&pullRequest=14450

Check warning on line 1693 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCVJ1bcvIxqHaf7Y&open=AaIPQCVJ1bcvIxqHaf7Y&pullRequest=14450

Check warning on line 176 in plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/clvm/ClvmSanlockLeaseReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuzMeL9Hl71vwLuQN&open=AaHAuzMeL9Hl71vwLuQN&pullRequest=14450

Check warning on line 1538 in server/src/test/java/com/cloud/template/TemplateManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHAuzeQL9Hl71vwLuQi&open=AaHAuzeQL9Hl71vwLuQi&pullRequest=14450

Check warning on line 1688 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaIPQCVJ1bcvIxqHaf7V&open=AaIPQCVJ1bcvIxqHaf7V&pullRequest=14450

Check warning on line 1615 in server/src/test/java/com/cloud/storage/ClvmPoolManagerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AaHSSFtUajHsZZ1tkZ2G&open=AaHSSFtUajHsZZ1tkZ2G&pullRequest=14450