instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apache__celix__517 | apache/celix | 517 | defect | b7c42cd81520ebf5449cfa5bf64d6111adfcbaab | 80d0820203c0e9254a08c8d8c0db974f211a9f7e | Feature/deprecated framework header without celix prefix | Moves the non celix_ prefix framework headers to a include_deprecated dir and only adds these include_deprecated headers to Apache Celix libs with the cmake function celix_deprecated_framework_headers.
This PR should help in preparing a Celix 3.0.0 release.
Note the framework include_deprecated headers are still i... | diff --git a/bundles/deployment_admin/CMakeLists.txt b/bundles/deployment_admin/CMakeLists.txt
index 370b6b9f6..ddc624d77 100644
--- a/bundles/deployment_admin/CMakeLists.txt
+++ b/bundles/deployment_admin/CMakeLists.txt
@@ -48,6 +48,7 @@ if (DEPLOYMENT_ADMIN)
target_compile_definitions(deployment_admin PRIVATE -D... | 6 | 6 | 3 | [{"id": "G0", "claim": "In bundleActivator_stop the registration list element should be fetched with celix_arrayList_get instead of the deprecated arrayList_get.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In dfi_findFileForBundle, when path ... | null |
apache__celix__588 | apache/celix | 588 | defect | 456de193fbdc07e02bd7afa0d7cf4e22c67dbe0d | 5cc100dc26c50e199ba25110632809e57e667e10 | Feature/585 celix conditions | This PR introduces the `celix_condition` service interface and several framework-specific `celix_condition` services. The `celix_condition` is based on the OSGi Condition Specification, but has been adapted for Apache Celix / C.
This PR includes:
- The `celix_condition` interface.
- Updated framework documentati... | diff --git a/bundles/shell/shell/gtest/src/ShellTestSuite.cc b/bundles/shell/shell/gtest/src/ShellTestSuite.cc
index 4117f0adc..6f85f70d2 100644
--- a/bundles/shell/shell/gtest/src/ShellTestSuite.cc
+++ b/bundles/shell/shell/gtest/src/ShellTestSuite.cc
@@ -25,6 +25,7 @@
#include "celix_bundle_context.h"
#include "cel... | 11 | 4 | 4 | [{"id": "G0", "claim": "The ScheduledEventTestSuite.CxxWaitForScheduledEvent test failed in the CI run.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An empty event queue is a transient state that does not qualify as part of the long-lasting \"framewor... | null |
apache__celix__591 | apache/celix | 591 | defect | 456de193fbdc07e02bd7afa0d7cf4e22c67dbe0d | fc25847a213d4a36e5882793c0674ae423e46da9 | [RFC] Scope-based Resource Management for Celix | This PR aims to add support for SBRM, following a recent Linux kernel patch set (#574).
However, IMO, the kernel's approach is too complicated for general user-space application development.
Thus a modified/simplified glib's approach is adopted.
It is still a work-in-progress, which lacks:
- [x] Documentation
... | diff --git a/bundles/logging/log_helper/gtest/src/LogHelperTestSuite.cc b/bundles/logging/log_helper/gtest/src/LogHelperTestSuite.cc
index dc7b7c3cb..98b01a006 100644
--- a/bundles/logging/log_helper/gtest/src/LogHelperTestSuite.cc
+++ b/bundles/logging/log_helper/gtest/src/LogHelperTestSuite.cc
@@ -205,4 +205,9 @@ TES... | 11 | 10 | 0 | [{"id": "G0", "claim": "For array lists, hash maps and similar containers the PR should introduce _retain/_release functions and couple the celix_autoptr cleanup to those (a shared_ptr-like scheme) instead of coupling it to _destroy.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced... | null |
apache__celix__610 | apache/celix | 610 | defect | 8695bd7868715360a86d2e39b122fb0845f820c8 | f6af3211f5bd8070caf113f6f1030907702dfaad | Feature/604 global initialization of curl | This PR fixes #604 by making libcurl an optional dependency of `Celix::framework` and moving curl initialization to `Celix::launcher`. All containers which contain bundles needing libcurl have been updated to use `Celix::launcher` as launcher rather than the one generated by `add_celix_container`.
As noted in #604, ... | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index b1ca4bd1c..23f001cfd 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -31,6 +31,7 @@ jobs:
-o celix:enable_testing_for_cxx14=True
-o celix:enable_testing_dependency_manager_for_cxx11=True
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The find_dependency guard checks for the non-existent target Celix::Celix::launcher; it should check for Celix::launcher.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__celix__693 | apache/celix | 693 | defect | bc4db0b9d9da20bff5b9bfb57fa76e9cb37e4a42 | 621741b8c476eaaa8a60f6d1ac6e8d7793f81fc7 | Add celix err message print in fw after each bundle start | This PR add a print of the unprocessed celix err messages after every bundle start.
Ideally errors and therefore celix err messages are handled by the bundle activators, but if this is not done this update will inform users that there are unprocessed celix err messages.
| diff --git a/libs/framework/gtest/CMakeLists.txt b/libs/framework/gtest/CMakeLists.txt
index e6697b94a..f2b836c6e 100644
--- a/libs/framework/gtest/CMakeLists.txt
+++ b/libs/framework/gtest/CMakeLists.txt
@@ -31,6 +31,7 @@ add_celix_bundle(simple_cxx_dep_man_bundle SOURCES src/HelloWorldCxxActivatorWit
add_celix_bundl... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the loop that repeatedly calls the expensive celix_err_getErrorCount() with the suggested form that pops messages until celix_err_popLastError() returns NULL.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__cloudstack__10038 | apache/cloudstack | 10,038 | defect | 4ac4d9cf29abd83526093d162424da0419496297 | 0aa422f3709baf3bbe78fe6024f1f461ad79bf85 | KVM/s390x Support: Add support for KVM on s390x architecture | ### Description
This PR introduces support for cloudstack-agent on KVM on the s390x and cloudstack-management-server on s390x architecture.
KVM is supported on s390x (IBM Z and LinuxONE) architecture, [Linux KVM Processor Support Page](https://www.linux-kvm.org/page/Processor_support#IBM_z).
I have built a new s39... | diff --git a/agent/conf/agent.properties b/agent/conf/agent.properties
index 3b6a7b7de292..73f4f6c22db5 100644
--- a/agent/conf/agent.properties
+++ b/agent/conf/agent.properties
@@ -209,7 +209,7 @@ hypervisor.type=kvm
# the management server would send.
# In case of arm64 (aarch64), this will change the machine type... | 2 | 2 | 0 | [{"id": "G0", "claim": "The inline \"s390x\".equals(System.getProperty(\"os.arch\")) check should be extracted into an isHostS390x()-style helper method and the several occurrences of it replaced with calls to that helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
apache__cloudstack__10126 | apache/cloudstack | 10,126 | defect | 0a77eb7f85fde580ce6d1e28e19c98ff39ff3f9e | 78308564f4e54cd2b8d2428d2b7ffc1845d18591 | Linstor: encryption support | ### Description
This PR main purpose is adding encryption support for Linstor, as Linstor handles the encryption layer (LUKS)
to allow DRBD running on top of it, we needed a new mode for encryption in CloudStack.
So that CloudStack knows the volume is encrypted, but the encryption/deencryption is handled by the pr... | diff --git a/api/src/main/java/com/cloud/storage/Storage.java b/api/src/main/java/com/cloud/storage/Storage.java
index 1163fcc892fa..ff776e5f63c7 100644
--- a/api/src/main/java/com/cloud/storage/Storage.java
+++ b/api/src/main/java/com/cloud/storage/Storage.java
@@ -135,34 +135,49 @@ public static enum TemplateType {
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new EncryptionSupport enum constant should be spelled `Unsupported` instead of `UnSupported`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The null-or-empty check on `rscGrps` should use the project's `CollectionUtils.isEmpt... | null |
apache__cloudstack__10212 | apache/cloudstack | 10,212 | defect | 9967bb3fe899f82ce5fc83da5eba0d278a2df70a | 91344bfbe0c55db8c761e225ecb7e3e060f6fe58 | Enforce distinct hostnames network | ### Description
Fixes #9775
This PR adds check to ensure we check for unique hostname for other networks in the VPC as well.
This PR also adds another global setting `vm.distinct.hostname.scope` which sets the scope of resources for which the VMs should have a unique hostname. Default value is `network`.
<... | diff --git a/engine/schema/src/main/java/com/cloud/network/dao/NetworkDao.java b/engine/schema/src/main/java/com/cloud/network/dao/NetworkDao.java
index 0861a424ebb6..c50d6f899bd1 100644
--- a/engine/schema/src/main/java/com/cloud/network/dao/NetworkDao.java
+++ b/engine/schema/src/main/java/com/cloud/network/dao/Netwo... | 8 | 3 | 0 | [{"id": "G0", "claim": "Clarification requested on what the purpose of the new vm.distinct.hostname.scope global setting is, given that VM names already have to be unique within a network domain.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add \"proje... | null |
apache__cloudstack__10265 | apache/cloudstack | 10,265 | defect | f055268fe2cfe8b14d52a50d0bae6c6308eff58c | ead3b5f56de9a4d4b51c0505c6cc0bbd59192ca9 | [UI] Allow quiescevm and asyncbackup flags while taking volume snapshot from UI when these are supported for the volume | ### Description
This PR allows quiescevm and asyncbackup flags while taking volume snapshot from UI when these are supported for the volume, addresses #10106.
Also, updated snapshot forms to show quiescevm for VMware & KVM hypervisors.
Changes from ui/src/views/storage/TakeSnapshot.vue were removed in https://... | diff --git a/ui/src/views/compute/CreateSnapshotWizard.vue b/ui/src/views/compute/CreateSnapshotWizard.vue
index 0da42990efa1..7c851c9a0abf 100644
--- a/ui/src/views/compute/CreateSnapshotWizard.vue
+++ b/ui/src/views/compute/CreateSnapshotWizard.vue
@@ -61,7 +61,7 @@
</template>
<a-switch v-model... | 4 | 3 | 0 | [{"id": "G0", "claim": "In the reporter's KVM environment (local, RBD and NFS) the quiesce option is not present in the VM -> \"Take Instance volume Snapshot\" window although it does appear in the Volume -> \"Take Snapshot\" and VM -> \"Take Instance Snapshot\" dialogs, so the dialogs behave inconsistently and the rep... | null |
apache__cloudstack__10311 | apache/cloudstack | 10,311 | defect | 0d5047b8b730758bfabfe183c02d284e4db3260b | fdb654b934757496534259b8b85d23b273e5a737 | 4.19 fix saml account selector | ### Description
Fix issues with SAML multi-account selector in UI and various SAML2 plugin limitations.
* Reliable account switch when selecting a new account/domain combination from UI
* New global property (saml2.require.password) to disable password authentication requirement (this enables delegation to the S... | diff --git a/plugins/user-authenticators/saml2/src/main/java/org/apache/cloudstack/api/command/ListAndSwitchSAMLAccountCmd.java b/plugins/user-authenticators/saml2/src/main/java/org/apache/cloudstack/api/command/ListAndSwitchSAMLAccountCmd.java
index c2f81cd33563..040d5414f26f 100644
--- a/plugins/user-authenticators/s... | 9 | 9 | 2 | [{"id": "G0", "claim": "Remove the commented-out line '//authnRequest.setRequestedAuthnContext(requestedAuthnContext);' left in SAMLUtils.buildAuthnRequestObject.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the commented-out old duplic... | null |
apache__cloudstack__10376 | apache/cloudstack | 10,376 | defect | ae1d7cc86091ce1612dba9981c01d63544c5c426 | 76b34fb30cd6579301ba3d1dbdee703a291a1b29 | add use of virsh domifaddr to get VM external DHCP IP | ### Description
Adds use of virsh domifaddr command as first choice for finding the external DHCP address of a newly provisioned VM. This command returns address information about all the interfaces when the Qemu OS guest agent is installed within the VM. When this command fails to find the IP, falls back to origi... | diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVmIpAddressCommandWrapper.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetVmIpAddressCommandWrapper.java
index d65b6907eeb5..3c25ba0a19ec 100644
--- a/plugins/hyperviso... | 3 | 2 | 1 | [{"id": "G0", "claim": "The virsh domifaddr block added to execute() should be extracted into a new method, and the execute method split out further for better readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With the new condition, w... | null |
apache__cloudstack__10624 | apache/cloudstack | 10,624 | defect | 95c24810ab43810550ed70b3ebc4ba131082f7d3 | 4e622f324ad8aacbdedf972076e7b75fdd8ee391 | server: prevent duplicate HA works and alerts | ### Description
Fixes #10367
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature... | diff --git a/server/src/main/java/com/cloud/ha/HighAvailabilityManagerImpl.java b/server/src/main/java/com/cloud/ha/HighAvailabilityManagerImpl.java
index 81ae44a97634..62104608b855 100644
--- a/server/src/main/java/com/cloud/ha/HighAvailabilityManagerImpl.java
+++ b/server/src/main/java/com/cloud/ha/HighAvailabilityMa... | 1 | 1 | 0 | [{"id": "G0", "claim": "A debug or trace statement should be added where the pull request silently skips VMs that already have pending HA works.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__cloudstack__10769 | apache/cloudstack | 10,769 | defect | 193d6ef52f533a791005702e94401de276d9dccb | 7280d5b68280dd40a6325f57d44e3b0f2fc2d1d3 | Log previous and new value of configuration when reset/update API is called | ### Description
This PR handles 5th scenario mentioned in https://github.com/apache/cloudstack/issues/6880
During reset and update configuration, system will log existing and incoming value.
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual ... | diff --git a/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java b/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
index 56a86e65da02..d35998dfa573 100644
--- a/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
+++ b/server/src/main/java/com/clo... | 2 | 2 | 1 | [{"id": "G0", "claim": "The scope parameter of the updateConfiguration() overload should maybe also be changed to be of type ConfigKey.Scope.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The pull request's changes seem to be causing issues with confi... | null |
apache__cloudstack__10778 | apache/cloudstack | 10,778 | defect | 55c8138a1a75a19ca61580dd4d610e1a05fc5dea | b6f79b719f441dbfc7f6646d4074e351e6dc141e | Normalize naming of Kubernetes clusters | ### Description
Kubernetes has naming conventions for some type of resources. It requires, for instance, that some of them must:
- contain at most 63 characters;
- contain only lowercase alphanumeric characters or `-`;
- start with an alphabetic character; and,
- end with an alphanumeric character.
More inf... | diff --git a/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterResourceModifierActionWorker.java b/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterResourceModifierActionWorker.java
index 60c... | 3 | 2 | 1 | [{"id": "G0", "claim": "Instead of throwing an exception when a Kubernetes cluster name does not comply with the naming convention, the PR should try its best to normalize the name to match the convention (lower the upper case, replace or remove unsupported chars, truncate the name).", "category": "design", "verdict": ... | null |
apache__cloudstack__10837 | apache/cloudstack | 10,837 | defect | f0838cdd30984818919c12663dec6effa26483c7 | 4efa3af8016318a473dd1185d5ba5b20668875a8 | Fix for Vlan doesn't match issue while adding IP range for the shared network without any IP range | ### Description
This PR fixes Vlan doesn't match issue while adding IP range for the shared network without any IP range.
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the e... | diff --git a/api/src/main/java/org/apache/cloudstack/api/command/admin/vlan/CreateVlanIpRangeCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/admin/vlan/CreateVlanIpRangeCmd.java
index 66aefd46966b..feef18bbed1d 100644
--- a/api/src/main/java/org/apache/cloudstack/api/command/admin/vlan/CreateVlanIpRangeC... | 2 | 2 | 0 | [{"id": "G0", "claim": "The blank-vlanId handling added inline in createVlanAndPublicIpRange may need to be cleaned up and can be moved into an extra method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The network-existence verification block... | null |
apache__cloudstack__10964 | apache/cloudstack | 10,964 | defect | 380884ed5002662adbf9304a17221f556fbc66b8 | 84148e63555233c0721a831b766ce258cc7142b8 | [KVM] CPU Features for System VMs | ### Description
Currently, when defining the CPU configuration of VMs with KVM, the Apache CloudStack Agent executes the following workflow:
https://github.com/apache/cloudstack/blob/41b4f0afd5321e987973b615b566365e48228c6e/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingRe... | diff --git a/agent/conf/agent.properties b/agent/conf/agent.properties
index e70acee229df..988e812d9c6d 100644
--- a/agent/conf/agent.properties
+++ b/agent/conf/agent.properties
@@ -213,8 +213,9 @@ hypervisor.type=kvm
# If null (default), defaults to the VM's OS architecture
#guest.cpu.arch=
-# This param will req... | 4 | 2 | 1 | [{"id": "G0", "claim": "The pull request should always apply guest.cpu.features to system VMs as well instead of keeping the setting exclusive to user VMs, since the reviewers see no user-facing backwards-compatibility concern.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id"... | null |
apache__cloudstack__10997 | apache/cloudstack | 10,997 | defect | 2d669dbe5488a68fff1b05553dcf2ba8020d20b1 | f29380634e711b70ab4cb1e646dae12668c31198 | CPU to Memory weight based algorithm to order cluster | ### Description
This PR introduces new value: "COMBINED" for config: "host.capacityType.to.order.clusters", which will be used to order cluster, host and pods based on CPU and Memory both.
COMBINED will work with "host.capacityType.to.order.clusters.cputomemoryweight" and overall capacity for cluster/pod/host wil... | diff --git a/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java b/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
index 341029ba3c2a..4e6c88d982d6 100644
--- a/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
+++ b/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
@@ -9... | 6 | 6 | 1 | [{"id": "G0", "claim": "A documentation pull request should be created for this change as well.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new listClusterCapacityByCapacityTypes DAO method takes a vmId parameter that the method never uses.... | null |
apache__cloudstack__11039 | apache/cloudstack | 11,039 | defect | 8f2735ab46288dc7307a4aad50ffc77dd35bfa6c | 18112f203d10dee1ee360e515947bd6be9830827 | Block use of internal and external snapshots on KVM | ### Description
On KVM, there are two types of snapshots: internal and external. Most snapshot/backup solutions use external snapshots on ACS; save for disk-and-memory VM snapshots, which use internal snapshots (this is a limitation with KVM, as far as I know).
However, since internal snapshots are stored inside... | diff --git a/engine/schema/src/main/java/com/cloud/storage/dao/SnapshotDao.java b/engine/schema/src/main/java/com/cloud/storage/dao/SnapshotDao.java
index 171634fb1044..d4aaf52a2635 100755
--- a/engine/schema/src/main/java/com/cloud/storage/dao/SnapshotDao.java
+++ b/engine/schema/src/main/java/com/cloud/storage/dao/Sn... | 6 | 3 | 0 | [{"id": "G0", "claim": "The StorPool and Linstor implementations should be validated for compatibility with disk-and-memory VM snapshots.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "VMSnapshotStrategyKVMTest.java carries an unused import of org... | null |
apache__cloudstack__11042 | apache/cloudstack | 11,042 | defect | f8c4121ea343bf60fc2742afdda0462119264040 | 390ac7b2fe9d9335ccde46b2fbbb394ed090a175 | Add unit tests for getConfigResources in ModuleDefinitionSet and improve context readability | ### Description
This PR adds unit test coverage for the `getConfigResources()` method in the `ModuleDefinitionSet` class to validate context resource logic. This ensures modules are loading the correct Spring context files, including contexts, inherited contexts, and overridden contexts.
To improve readability an... | diff --git a/framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java b/framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java
index d8d109f65758..42884e1764e9 100644
--- a/framework/spring/module/s... | 4 | 3 | 0 | [{"id": "G0", "claim": "The pull request calls one base test method several times from a single test method although these are different test cases, and DaanHoogland asks whether it makes sense to split them into separate test methods.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
apache__cloudstack__11047 | apache/cloudstack | 11,047 | defect | 41b4f0afd5321e987973b615b566365e48228c6e | 661082d4cfff7a17340e48e2d8cc079230ee16f1 | PowerFlex/ScaleIO - MDM and host SDC connection enhancements | ### Description
This PR enhances the PowerFlex/ScaleIO MDM and host SDC connections, includes the following changes (and some code improvements).
- Introduced timeout configuration 'powerflex.mdm.change.apply.wait' (Default value: 1000 ms) at zone scope, to wait after MDM addition, and before & after MDM removal... | diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtModifyStoragePoolCommandWrapper.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtModifyStoragePoolCommandWrapper.java
index 06883c708d96..990cefda8f33 100644
--- a/plugins/hyp... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use the diamond operator with generics (new Pair<>(stdOut, stdErr)) instead of the raw Pair type in the new Script.executeCommand(String) for improved type safety and clarity.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim":... | null |
apache__cloudstack__11087 | apache/cloudstack | 11,087 | defect | 8f2735ab46288dc7307a4aad50ffc77dd35bfa6c | 024b310e251324db931d4cedbc43fe69bc266ddb | list only own zones for resource admin | ### Description
This PR...
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>" is specified, ... | diff --git a/api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/ListClustersCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/ListClustersCmd.java
index 362913a11388..90ec9d1ff074 100644
--- a/api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/ListClustersCmd.jav... | 6 | 3 | 1 | [{"id": "G0", "claim": "Remove or address the misleading TODO comment '// TODO fix bug : id is always null from here' added in searchForUsers, by fixing the initialization logic or clarifying its intended behavior.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
apache__cloudstack__11134 | apache/cloudstack | 11,134 | defect | be22bfe2c9d4529726a00d35b45f06551ccc310f | 0d4d479b77b2dd55d942433837ddfb493b5cada7 | Update md5sum to sha512sum | ### Description
This PR replaces md5sum with sha512sum
requires #11469 to be merged.
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, ste... | diff --git a/debian/rules b/debian/rules
index d178afa67307..f8a6efbafe5e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -85,7 +85,7 @@ override_dh_auto_install:
cp client/target/lib/*jar $(DESTDIR)/usr/share/$(PACKAGE)-management/lib/
cp -r engine/schema/dist/systemvm-templates/* $(DESTDIR)/usr/share/$(PACKAGE)-m... | 3 | 2 | 1 | [{"id": "G0", "claim": "This pull request needs upgrade tests for the schema/checksum upgrade changes it makes.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The scripts_version column change needs to be moved to the new upgrade file after the 4.21 rel... | null |
apache__cloudstack__11211 | apache/cloudstack | 11,211 | defect | 9688cbb0953494346a519a661c7bb4374688cb7d | 6ceac8565f1fbdb34c7844a53e90d759e2917152 | Fix to create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storage | ### Description
This PR allows create instances with smaller templates (< 1 GB) on PowerFlex/ScaleIO storage (it's regression after #9008).
Fixes #10981
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. ... | diff --git a/plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java b/plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriver.java
index 192ae4636e9c..a26b00a8f7b1 100644
--- a/plugi... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the variable newSizeIn8gbBoundary to newSizeIn8GBBoundary (consistent GB capitalisation).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}] | null |
apache__cloudstack__11230 | apache/cloudstack | 11,230 | defect | 06c80cdbe9149abdf86a20df27b620b379e5e1b4 | 876fba44c5fa75b1fb7947c65c213c54a6563f0b | Added events for snapshots, vmsnapshots, internalLB operations | ### Description
This PR adds few fixes/improvements for events for few operations on snapshots, vmsnapshots, internalLB.
This addresses few items in the issue #8771
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML disc... | diff --git a/api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotFromVMSnapshotCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotFromVMSnapshotCmd.java
index 7b89e87202d9..d33a3ba224c9 100644
--- a/api/src/main/java/org/apache/cloudstack/api/command/u... | 2 | 2 | 0 | [{"id": "G0", "claim": "The event description on the maintain() @ActionEvent annotation should read \"prepare maintenance for host\" instead of \"maintenance for host\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test still imports the d... | null |
apache__cloudstack__11258 | apache/cloudstack | 11,258 | defect | ba0204f8edd6140d893e92bf33522f9a50637d8e | 26ed64fd49f8f78f3d228f0e9d03b08dc6ce7e8b | Fix restore from NAS backup when datadisk is older than the root disk. | ### Description
This PR fixes #11257.
- Libvirt backs up the volumes in the order of their `deviceId`.
- However, during restore, volumes are processed based on their `id` in the `volumes` table.
- If data volume has a lower `id` in the `volumes` table than the root volume, restore mistakenly assumes the data d... | diff --git a/plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java b/plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java
index 141a0073498f..3985f0ec2108 100644
--- a/plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java
+++ ... | 3 | 1 | 0 | [{"id": "G0", "claim": "In restoreVolume, the running-state check and the attach-volume call should be combined into a single condition: if (VirtualMachine.State.Running.equals(vmNameAndState.second()) && !attachVolumeToVm(vmNameAndState.first(), volumePath)).", "category": "design", "verdict": "opposed", "priority": "... | null |
apache__cloudstack__11303 | apache/cloudstack | 11,303 | defect | cca8b2fef9016bc04cde10f2f2ef4bf6f345155e | 0bf470b8c1a5edc8f7b8760a4e79a88ae3457217 | api,server,extensions: allow updating extension resource map details | ### Description
This PR makes changes to allow updating details for an extension resource mapping, as other places where external metadata is added already allow updation. Currently, extensions only support Cluster to be registered therefore, changes have been added to updateCluster functionality.
### Types of ch... | diff --git a/api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/UpdateClusterCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/UpdateClusterCmd.java
index 816285e34307..c160cfd2e034 100644
--- a/api/src/main/java/org/apache/cloudstack/api/command/admin/cluster/UpdateClusterCmd.... | 5 | 2 | 1 | [{"id": "G0", "claim": "The externalDetails field should be declared with generic types as Map<String, String> to match getExternalDetails() and provide type safety.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In fetchExtensionResourceMapDetail... | null |
apache__cloudstack__11325 | apache/cloudstack | 11,325 | defect | cca8b2fef9016bc04cde10f2f2ef4bf6f345155e | 3ae4bcf4c1a02ae656b7e71fe142fa237300d9fa | api,server: allow configuring repetitive alerts | ### Description
Fixes #6613
Introduces support for configuring additional alert types that can be published repeatedly, beyond the default set.
Operators can now use the dynamic configuration `alert.allowed.repetitive.types` to specify a comma-separated list of alert type names that should be allowed for repet... | diff --git a/api/src/main/java/org/apache/cloudstack/alert/AlertService.java b/api/src/main/java/org/apache/cloudstack/alert/AlertService.java
index 5146e5c38e8e..d37a07d25ca3 100644
--- a/api/src/main/java/org/apache/cloudstack/alert/AlertService.java
+++ b/api/src/main/java/org/apache/cloudstack/alert/AlertService.ja... | 6 | 6 | 2 | [{"id": "G0", "claim": "ALERT_TYPE_VM_SNAPSHOT, ALERT_TYPE_VR_PUBLIC_IFACE_MTU and ALERT_TYPE_VR_PRIVATE_IFACE_MTU all use type value 32, which will cause conflicts in alert type identification.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The h... | null |
apache__cloudstack__11327 | apache/cloudstack | 11,327 | defect | 7d59bfe2b59eb06a71c68262dfb08de8ee422ad4 | 4c9ff4cc4c6c72f851716dbeb5158e6dd4fc8f42 | server: trim autoscale Windows VM hostname | ### Description
Fixes #9505
Trim the generated hostname for Windows VM to 15 characters.
Doc PR: https://github.com/apache/cloudstack-documentation/pull/575
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change ... | diff --git a/server/src/main/java/com/cloud/network/as/AutoScaleManager.java b/server/src/main/java/com/cloud/network/as/AutoScaleManager.java
index 88a9fd34bd13..eec1eec2ff12 100644
--- a/server/src/main/java/com/cloud/network/as/AutoScaleManager.java
+++ b/server/src/main/java/com/cloud/network/as/AutoScaleManager.ja... | 6 | 5 | 2 | [{"id": "G0", "claim": "The first character of the truncated Windows hostname may be unsupported: the truncation can expose a non-letter such as '-', and the first-character guard accepts a leading digit although digits are not supported as first char.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
apache__cloudstack__11436 | apache/cloudstack | 11,436 | defect | 99919fda7f0bc273f7b627b4240e1322da51f175 | 8deca7bdc761333463d9cf823ba59eab2880782a | cleanup LDAP code according to warnings | ### Description
This PR was part of investigation into the current LDAP workings, to find out that the issue under investigation was a user issue. I think this can be merged, but it has no functional changes.
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new f... | diff --git a/plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapAddConfigurationCmd.java b/plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LdapAddConfigurationCmd.java
index 1131667d98ae..bc7c129ed91c 100644
--- a/plugins/user-authenticators/ldap/src/ma... | 17 | 13 | 1 | [{"id": "G0", "claim": "CollectionUtils is used in OpenLdapUserManagerImpl without being imported, which will cause a compilation error.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The debug message should read 'No account exists with name: {}. C... | null |
apache__cloudstack__11531 | apache/cloudstack | 11,531 | defect | 25f93b1d6b83acbdd14ba942c2f4086e9fdfd888 | cfe9746e3fd59e4ea5d89a277a585bcc83719919 | Track volume usage data at a vm granularity as well | ### Description
This PR fixes #10985
Some users have asked to show the virtualmachineid also in volume usage, to track it per instance.
There will be two kinds of records now.
- Without the virtualmachineid - tracking the cumulative volume usage in the usage window. This is to be consistent with the curren... | diff --git a/engine/components-api/src/main/java/com/cloud/event/UsageEventUtils.java b/engine/components-api/src/main/java/com/cloud/event/UsageEventUtils.java
index 547663fd1b9b..39d69bccf087 100644
--- a/engine/components-api/src/main/java/com/cloud/event/UsageEventUtils.java
+++ b/engine/components-api/src/main/jav... | 7 | 6 | 2 | [{"id": "G0", "claim": "The hand-written update method on UsageVolumeDaoImpl is not needed since PR #5785 added auto-increment primary keys, and GenericDao.update() should be used directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A VOLUME... | null |
apache__cloudstack__11568 | apache/cloudstack | 11,568 | defect | 3d6ec29c9bb87dafe01ad39e2a1dda9d4e644d6c | 8908186c2c26858d0c70a40d916309360c099570 | Allow updating of Load Balancer source CIDR list | ## Switching base to `main` from `4.19` , SEE #10968 for Comment history
### Description
This PR will allow the updating of a loadbalancer rules `CIDR list` via the API.
* Should fix https://github.com/apache/cloudstack/issues/9313
I have tested this code in `4.19`, `4.20`, and `main` branches via sim... | diff --git a/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/UpdateLoadBalancerRuleCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/UpdateLoadBalancerRuleCmd.java
index 25254ba9eb75..7b13dde1d357 100644
--- a/api/src/main/java/org/apache/cloudstack/api/command/user/... | 6 | 3 | 0 | [{"id": "G0", "claim": "The `import java.util.Objects;` line this pull request added to LoadBalancingRulesManagerImpl.java should be deleted (the comment is an empty suggestion block on that added line, which duplicates an import already present in the file).", "category": "maintainability", "verdict": "supported", "pr... | null |
apache__cloudstack__11616 | apache/cloudstack | 11,616 | defect | 8089d32740320171f63d3f66d0abd429f455caf5 | a399f91c07907b2c934e0267fa7e830ecff37329 | Change `vmsnapshot.max` setting scope to the account level | ### Description
The `vmsnapshot.max` global setting is used to control the maximum number of VM snapshots that can be taken for a single VM. However, its scope is global and, thus, when configured, all accounts of the ACS environment will have to comply with the same limitation.
This PR proposes to change the s... | diff --git a/engine/components-api/src/main/java/com/cloud/vm/snapshot/VMSnapshotManager.java b/engine/components-api/src/main/java/com/cloud/vm/snapshot/VMSnapshotManager.java
index a01d4ee5cae7..5548e435716f 100644
--- a/engine/components-api/src/main/java/com/cloud/vm/snapshot/VMSnapshotManager.java
+++ b/engine/com... | 3 | 3 | 2 | [{"id": "G0", "claim": "When the VM belongs to a project, the vmsnapshot.max value should be taken from the caller's account instead of the VM's (project) account, since a project account cannot have settings defined.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
apache__cloudstack__11619 | apache/cloudstack | 11,619 | defect | 8089d32740320171f63d3f66d0abd429f455caf5 | 034fd3375b6d8bacc9c7fb11fbeb986ab94456af | extension: improve host vm power reporting | ### Description
Add `statuses` action in extensions to report VM power states
This PR introduces support for retrieving the power state of all VMs on a host directly from an extension using the new `statuses` action.
When available, this provides a single aggregated response, reducing the need for multiple calls... | diff --git a/extensions/HyperV/hyperv.py b/extensions/HyperV/hyperv.py
index 8ae2c7ff7979..8cd863b6a191 100755
--- a/extensions/HyperV/hyperv.py
+++ b/extensions/HyperV/hyperv.py
@@ -210,6 +210,22 @@ def status(self):
power_state = "poweroff"
succeed({"status": "success", "power_state": power_stat... | 6 | 5 | 3 | [{"id": "G0", "claim": "The JsonParser.parseString() replacement should be applied consistently throughout ExternalPathPayloadProvisioner.java, including at line 702.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The jq `add` fails when the fil... | null |
apache__cloudstack__11654 | apache/cloudstack | 11,654 | defect | 8089d32740320171f63d3f66d0abd429f455caf5 | d39656af835c33a52b9d4e32322ec6607607d6cd | Add support for providing userdata to system VMs | ### Description
This PR adds support for specifying user data (cloud-init) for system VMs via Zone Scoped global settings. This allows the operators to customize the System VMs and setup monitoring, logging or execute any custom commands.
We set the user data from the global setting in `/var/cache/cloud/cmdline`,... | diff --git a/engine/api/src/main/java/com/cloud/vm/VirtualMachineManager.java b/engine/api/src/main/java/com/cloud/vm/VirtualMachineManager.java
index c05c29add556..6df3ef1d21bd 100644
--- a/engine/api/src/main/java/com/cloud/vm/VirtualMachineManager.java
+++ b/engine/api/src/main/java/com/cloud/vm/VirtualMachineManage... | 11 | 7 | 2 | [{"id": "G0", "claim": "Tidy the new cloud-init comments in configure_services(): drop the 'Cloud-init services will be managed by dependency ordering' note and reword the disable note to say cloud-init is run manually in postinit.sh when user data is available.", "category": "documentation", "verdict": "supported", "p... | null |
apache__cloudstack__11684 | apache/cloudstack | 11,684 | defect | 0108ffd1b0063acbd7ca6484f0dc44a88a40e85b | fbd982d2d9c7d578cd6809b9e582fe4c5bb9b048 | NAS backup provider: Support restore from backup to volumes on Ceph storage pool(s), and take backup for stopped instances with volumes on Ceph storage pool(s) | ### Description
This PR adds support to restore from NAS backup to volumes on Ceph storage pool(s), and take backup for stopped instances with volumes on Ceph storage pool(s).
Doc PR: https://github.com/apache/cloudstack-documentation/pull/577
<!--- Describe your changes in DETAIL - And how has behaviour funct... | diff --git a/api/src/main/java/org/apache/cloudstack/backup/BackupManager.java b/api/src/main/java/org/apache/cloudstack/backup/BackupManager.java
index c4b92fc9e05c..7b4412f1b6cd 100644
--- a/api/src/main/java/org/apache/cloudstack/backup/BackupManager.java
+++ b/api/src/main/java/org/apache/cloudstack/backup/BackupMa... | 6 | 3 | 1 | [{"id": "G0", "claim": "The commented-out ATTACH_RBD_DISK_COMMAND invocation should be removed rather than left in the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "String concatenation when building the RBD disk XML (volumePath, sour... | null |
apache__cloudstack__11750 | apache/cloudstack | 11,750 | defect | 2e113e5ed704ea6d24295ff765c30f66a1d0601b | e34a8bfa82f5bb25101022f5be297cb2e0284830 | kvm: allow skip forcing disk controller | ### Description
Fixes #9460
A VM or template detail can be added with key `skip.force.disk.controller` and value `true` to allow skipping forcing disk controllers for the VM especially in case of UEFI VMs.
Otherwise, current behaviour of disk controllers depend on the guest OS, UEFI secure boot where Windows VM ... | diff --git a/api/src/main/java/com/cloud/vm/VmDetailConstants.java b/api/src/main/java/com/cloud/vm/VmDetailConstants.java
index f7d87ab18f1e..158dc949f0da 100644
--- a/api/src/main/java/com/cloud/vm/VmDetailConstants.java
+++ b/api/src/main/java/com/cloud/vm/VmDetailConstants.java
@@ -53,6 +53,9 @@ public interface Vm... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new call to defineDiskForDefaultPoolType is missing a space after the comma between `physicalDisk` and `devId`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The skip-force-disk-controller branch changes root-disk co... | null |
apache__cloudstack__11754 | apache/cloudstack | 11,754 | defect | ec533cd24d93a9df5ae204a8f21ee51452bf05d3 | 273920b39dadcec7841ee33818714f7abf233229 | NAS BnR: Create Instance from Backup issues | ### Description
Fixes Issues
#11631 : Handle create instance from backup if the template was deleted (https://github.com/apache/cloudstack/commit/273920b39dadcec7841ee33818714f7abf233229)
- Added Guest OS Type in the backup metadata and giving a warning while creating instance if a template / iso with a differen... | diff --git a/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java b/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
index 6c84e54b2d1c..b6e334748ff7 100644
--- a/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
+++ b/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
@@ -6... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add since = \"4.22.0\" to the crossZoneInstanceCreation @Param in BackupOfferingResponse so the API docs state from which version the parameter exists.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the backupvmexpun... | null |
apache__cloudstack__11854 | apache/cloudstack | 11,854 | defect | 8b9f5fd8f962b92e65933464a3d7824e78227e2f | 0ebddf732615cca5bc8855aa2b874abb3d654fb1 | Fix logging of forwarded IPs in logs | ### Description
This PR fixes a bug due to which forwarded IPs behind a proxy won't be logged in management.log, api.log and access.log.
1. Access log : addForwardingCustomiser() updates request's remoteAddr to the forwarded client's IP
But ACSRequestLog.log() was looking at getHttpChannel().getEndPoint().ge... | diff --git a/client/src/main/java/org/apache/cloudstack/ACSRequestLog.java b/client/src/main/java/org/apache/cloudstack/ACSRequestLog.java
index 123d2761e008..856cbb696757 100644
--- a/client/src/main/java/org/apache/cloudstack/ACSRequestLog.java
+++ b/client/src/main/java/org/apache/cloudstack/ACSRequestLog.java
@@ -1... | 1 | 1 | 1 | [{"id": "G0", "claim": "In ACSRequestLog the access log line should append the InetAddress via getHostAddress() (the Copilot variant also asks for a '-' fallback when null) instead of appending the InetAddress object, whose toString() prefixes a '/' and would break existing log parsing.", "category": "correctness", "ve... | null |
apache__cloudstack__11902 | apache/cloudstack | 11,902 | defect | b1851ba18a3a0fd18060c156d9f30e4dbe544285 | 671c67252387add09fb8d8921629cd0ae78bf383 | Fix CKS cluster creation not honoring the CKS ISO arch | ### Description
This PR fixes the CKS cluster creation logic to honor the CKS ISO arch type.
Fixes: #11734
<!--- ******************************************************************************* -->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
<!--- PLEASE PUT AN '... | diff --git a/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterResourceModifierActionWorker.java b/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterResourceModifierActionWorker.java
index 1f9... | 1 | 1 | 0 | [{"id": "G0", "claim": "CKS cluster creation still selects the arm systemvmtemplate for deployment even when the preferred architecture is x86_64.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
apache__cloudstack__11986 | apache/cloudstack | 11,986 | defect | ac8c200790f9be84c216b8777ab7acace4cf6ce1 | a42e71717e51243f23c73b11fe2307157de36459 | kvm: use preallocation option for fat disk resize | ### Description
Fixes #10589
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature... | diff --git a/agent/pom.xml b/agent/pom.xml
index 4fa30e4f78e2..5ab6cfe17c13 100644
--- a/agent/pom.xml
+++ b/agent/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.cloudstack</groupId>
<artifactId>cloudstack</artifactId>
- <version>4.22.1.0-SNAPSHOT</version>
+ <version>4.23.0... | 3 | 1 | 1 | [{"id": "G0", "claim": "In testCreateSparseVolume the virtual size was reduced by a factor of 1024 (10TB to 10MB), and the reviewer asks whether that reduction was intended.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The qemu-img resize command is bui... | null |
apache__cloudstack__12024 | apache/cloudstack | 12,024 | defect | e90e436ef873100b1916c80c0309c1eefcc4a265 | f9a05f51a4994b437a2a22e00d1e75787ee4778c | fix that log sensitive infomation in cmd of script | ### Description
This PR fixes that log sensitive infomation in cmd of cloud.utils.script.Script. #12005
| diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUpdateHostPasswordCommandWrapper.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUpdateHostPasswordCommandWrapper.java
index b8fe0ded7168..80c723b5a6e0 100644
--- a/plugins/h... | 3 | 3 | 0 | [{"id": "G0", "claim": "When sensitive arguments are present, execute() and executeIgnoreExitValue() suppress the debug log entirely even though buildCommandLine() already masks the sensitive parts; the masked commandLine should be logged instead of dropping the log.", "category": "design", "verdict": "supported", "pri... | null |
apache__cloudstack__12028 | apache/cloudstack | 12,028 | defect | e90e436ef873100b1916c80c0309c1eefcc4a265 | ee9306a249a517775c1ce853447d41bc8daa7b67 | fixed Password Exposure in IPMI Tool Command Execution | ### Description
This PR fixed Password Exposure in IPMI Tool Command Execution. Fixes: #12027 | diff --git a/utils/src/main/java/org/apache/cloudstack/utils/process/ProcessRunner.java b/utils/src/main/java/org/apache/cloudstack/utils/process/ProcessRunner.java
index 430fa56aa685..d50965a6e077 100644
--- a/utils/src/main/java/org/apache/cloudstack/utils/process/ProcessRunner.java
+++ b/utils/src/main/java/org/apac... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new unit test testRemoveCommandSensitiveInfoForLoggingIpmiPasswordCommand errors at line 73, so the PR's test run fails.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G2", "claim": "Copilot first asserts the ExecutionException log should r... | null |
apache__cloudstack__12046 | apache/cloudstack | 12,046 | defect | 40c8bc528d3201d88ead398a4c82ed1f50fffde7 | 123a0a8587816a2feabcf43f2d5d0416fe0482bf | Fixed User type accounts being able to change resource limits of their own domain and account | ### Description
The `updateResourceLimit` API, by default, is allowed only to the Root Admin, Domain Admin, and Resource Admin role types. These role types cannot change their account and domain limits using the API. However, if an account is created with a User type role, and the permission to this API is granted,... | diff --git a/server/src/main/java/com/cloud/resourcelimit/ResourceLimitManagerImpl.java b/server/src/main/java/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
index 9a6c8a85f18e..7661103e2384 100644
--- a/server/src/main/java/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
+++ b/server/src/main/java/com/clo... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PermissionDeniedException message should say \"permission\" instead of \"right access level\", as Lucas suggests the shorter wording is less verbose.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test description explains... | null |
apache__cloudstack__12232 | apache/cloudstack | 12,232 | defect | 43483869705c92c4f8cf7648fe16c8f6235a9308 | 07cf173867e57c50467e6e159c28d8fa3156807d | Prevent NPE when removing NIC from a stopped VM using service offering with CPU cap set | ### Description
This PR fixes: #12225
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>" is... | diff --git a/server/src/main/java/com/cloud/hypervisor/KVMGuru.java b/server/src/main/java/com/cloud/hypervisor/KVMGuru.java
index 9edaa5e6d646..c178cc8bc53b 100644
--- a/server/src/main/java/com/cloud/hypervisor/KVMGuru.java
+++ b/server/src/main/java/com/cloud/hypervisor/KVMGuru.java
@@ -132,7 +132,8 @@ protected voi... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the unnecessary mock `Mockito.when(vm.getLastHostId()).thenReturn(null);` from testSetVmQuotaPercentageNullHost, since setVmQuotaPercentage only calls getHostId() and the test should stay clean and focused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"... | null |
apache__cloudstack__12347 | apache/cloudstack | 12,347 | defect | 56a39e6be7518a278ccb2ca0ccff6fc26c26e883 | 7efe8fbfd77de583e70b5b15d3b577b8f29e4ac7 | Cleanup snapshot files in datastores for Error-ed snapshots, and some code improvements | ### Description
This PR addresses cleanup of the snapshot files in datastores for Error-ed snapshots, and has some code improvements.
The removed date is set for the snapshot records after backup failed [1], and the storage garbage collector ignores cleaning up the files as getSnapshot [2] always returns null, le... | diff --git a/engine/api/src/main/java/org/apache/cloudstack/engine/subsystem/api/storage/SnapshotDataFactory.java b/engine/api/src/main/java/org/apache/cloudstack/engine/subsystem/api/storage/SnapshotDataFactory.java
index d318707a29ac..32434829c074 100644
--- a/engine/api/src/main/java/org/apache/cloudstack/engine/sub... | 10 | 4 | 0 | [{"id": "G0", "claim": "The new method cleanupSnapshotsFromStoreRefInDestroyingState() lacks test coverage; the reviewer asks for unit tests verifying it retrieves snapshots in Destroying state, handles a null snapshot VO, and calls deleteSnapshot for valid snapshots.", "category": "testing", "verdict": "uncertain", "p... | null |
apache__cloudstack__12404 | apache/cloudstack | 12,404 | defect | 0e6d2d986b7022648bdb5550060aeb7b7fe76bf4 | b5588fafcdce8c441cf005d14925c454f3be1539 | Mask vncPasswd being logged in agent.log | ### Description
This PR fixes https://github.com/apache/cloudstack/issues/10847
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to repr... | diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtMigrateCommandWrapper.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtMigrateCommandWrapper.java
index 32f2a4b122ca..753757e01893 100644
--- a/plugins/hypervisors/kvm/src/mai... | 4 | 2 | 0 | [{"id": "G0", "claim": "The debug call should pass the masked XML as a lambda so that maskSensitiveInfoInXML is evaluated only when debug logging is enabled.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The isDebugEnabled guards around the newly par... | null |
apache__cloudstack__12451 | apache/cloudstack | 12,451 | defect | f1f779a08d94037baf1aad0c8107eaaf219af80e | 03ca32900e1b408dc8742469f3990b3d8ae7d464 | NPE fix while deleting storage pool when pool has detached volumes | ### Description
This PR fixes NPE issue while deleting storage pool when pool has detached volumes.
Noticed the below exception while deleting the pool:
```
2026-01-16 08:37:10,817 ERROR [c.c.a.ApiServer] (qtp253011924-22:[ctx-b62d6305, ctx-eae6e42c]) (logid:95645b16) unhandled exception executing api command... | diff --git a/server/src/main/java/com/cloud/storage/StorageManagerImpl.java b/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
index 8b5e0b24f484..4511c862d145 100644
--- a/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
+++ b/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
@... | 3 | 3 | 1 | [{"id": "G0", "claim": "The findById call can return null when the VM has been deleted from the database while the volume still references it, causing the same NPE on line 1569; add a null check for volInstance before calling volInstance.getUuid().", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
apache__cloudstack__12499 | apache/cloudstack | 12,499 | defect | 6e5d78a8a78feec31a6dfa893137b65fed5f7677 | d64089d113f421c13e1f87320142f49fe7dc7f66 | api/server: support deploy-as-is template as VNF template | ### Description
This PR fixes #12186
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>" i... | diff --git a/api/src/main/java/org/apache/cloudstack/storage/template/VnfTemplateManager.java b/api/src/main/java/org/apache/cloudstack/storage/template/VnfTemplateManager.java
index 6571346ad654..f426bdcd47a5 100644
--- a/api/src/main/java/org/apache/cloudstack/storage/template/VnfTemplateManager.java
+++ b/api/src/ma... | 8 | 2 | 1 | [{"id": "G0", "claim": "The reviewer questions whether a deploy-as-is VNF template should always be barred from being registered with VNF nics, since a VNF could get a default gateway, and hopes the restriction is documented.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id... | null |
apache__cloudstack__12518 | apache/cloudstack | 12,518 | defect | 8db065a14eb41bab0fb3420e66ee96722f1ed6ad | bd5d8f9892f55d470a8baa1f54aefc259f30072e | Fix calculation of the next time that Usage will execute in `removeRawUsageRecords` | ### Description
`removeRawUsageRecords` calculates the next moment in which Usage will execute in order to prevent the removal of usage records in a window of 15 minutes before and after the Usage job executes. However, this calculation is performed incorrectly because the date is not rolled to the next day in case ... | diff --git a/server/src/main/java/com/cloud/usage/UsageServiceImpl.java b/server/src/main/java/com/cloud/usage/UsageServiceImpl.java
index c46f1f43fd07..28fd068dfef3 100644
--- a/server/src/main/java/com/cloud/usage/UsageServiceImpl.java
+++ b/server/src/main/java/com/cloud/usage/UsageServiceImpl.java
@@ -17,7 +17,6 @@... | 4 | 3 | 3 | [{"id": "G0", "claim": "Using Calendar.roll() instead of Calendar.add() in getJobExecutionTime wraps at year boundaries (rolling DAY_OF_YEAR on Dec 31 gives Jan 1 of the same year, and rolling backwards on Jan 1 gives Dec 31 of the same year), so the calculated next/previous execution time is wrong and both branches sh... | null |
apache__cloudstack__12532 | apache/cloudstack | 12,532 | defect | c0b5358d8eb55c1611e14528df9df60894b1e3e9 | 984e3f75b8e599423a49070673457b2402a07010 | Linstor: support live migration from other primary storage | ### Description
This PR allows live migration from any primary storage to Linstor primary storage.
Fixes: #8032
Fixes: #11826
<!--- ******************************************************************************* -->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
... | diff --git a/plugins/storage/volume/linstor/CHANGELOG.md b/plugins/storage/volume/linstor/CHANGELOG.md
index 47d1ddeb06cf..a5d609325d60 100644
--- a/plugins/storage/volume/linstor/CHANGELOG.md
+++ b/plugins/storage/volume/linstor/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to Linstor CloudStack plugin will be doc... | 2 | 1 | 0 | [{"id": "G0", "claim": "The migration-failure error message in LinstorDataMotionStrategy incorrectly references \"StorPoolDataMotionStrategy\" instead of \"LinstorDataMotionStrategy\", which will be confusing when debugging issues.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
apache__cloudstack__12562 | apache/cloudstack | 12,562 | defect | 6bed3d4e641f48822fc1b9126bd6e2c71f28ed02 | eef3e49e217195fb741b0c42556288aaaeeaf6d9 | ssvm: delete temp directory while deleting entity download url | ### Description
When expired entity URLs are cleaned up, orphan directories are left behind. This change tries to delete the base temporary directory while cleanup.
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking cha... | diff --git a/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/template/UploadManagerImpl.java b/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/template/UploadManagerImpl.java
index 828f61f89dc8..57a85c570949 100644
--- a/services/secondary-storage/server/src/m... | 4 | 3 | 1 | [{"id": "G0", "claim": "The extract URL path extraction takes only the filename after the last separator instead of the full UUID/filename path after /userdata/, so unlink targets the wrong path, fails, and deleteEntitySymlinkRootPathIfNeeded never runs, leaving the symlink and UUID directory orphaned; the code should ... | null |
apache__cloudstack__12597 | apache/cloudstack | 12,597 | defect | b869913529ec8e230abcb5d6b0924a36a7cdc7e3 | 5db5dd9bacc587746a8db1ddbc5e60e2dd6f735f | Fix snapshot chaining on Xen | ### Description
This PR fixes #12524.
After the introduction of the `Hidden` state, the snapshot chain calculation no longer works as expected for XenServer as it does not consider hidden snapshots as part of the chain, possibly leading to unending chains. This PR fixes this issue by adding the hidden snapshots ... | diff --git a/engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/SnapshotDataStoreDao.java b/engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/SnapshotDataStoreDao.java
index 6aeee1ad1ccd..bd52c60be8e2 100644
--- a/engine/schema/src/main/java/org/apache/cloudstack/storage/datasto... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new idEqRoleEqStateInSearch search builder initialization is missing the .done() call that all other builders in the file make, so it may not function correctly.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests stil... | null |
apache__cloudstack__12749 | apache/cloudstack | 12,749 | defect | 65e54091ff23f8fe2f70e166a498a65d95f4f577 | 767d37d0726fe8e9b10faa1a8a77310782b1430d | Mark VMs in error state when expunge fails during destroy operation | ### Description
This PR marks VMs in error state when expunge fails during destroy operation (with expunge=true).
Currently, when expunge fails, the VM gets stuck in Expunging state and the user is not able to perform any operation on the VM. This change moves the VM to Error state when expunge fails, thus allowi... | diff --git a/api/src/main/java/com/cloud/vm/VirtualMachine.java b/api/src/main/java/com/cloud/vm/VirtualMachine.java
index d244de7115e8..41c9a864c9d0 100644
--- a/api/src/main/java/com/cloud/vm/VirtualMachine.java
+++ b/api/src/main/java/com/cloud/vm/VirtualMachine.java
@@ -124,6 +124,9 @@ public static StateMachine2<S... | 4 | 2 | 0 | [{"id": "G0", "claim": "The error message thrown when expunge returns false uses `destroyedVm` (the UserVm object's toString) instead of `vm.getUuid()`, inconsistent with the adjacent RuntimeException-branch message and possibly less informative or unpredictable for consumers, so it should consistently use `vm.getUuid(... | null |
apache__cloudstack__12792 | apache/cloudstack | 12,792 | defect | 7aa0558c5b9127ef1633e151baf60ce7172ceaff | c5339356fe348fc234446b55152b47cfc84092a4 | Block backup deletion while create-VM-from-backup or restore jobs are in progress | ### Description
Fixes: #11356
Adds a check in `deleteBackup()` to block deletion when a `createVMFromBackup` or `restoreBackup` async job is in progress for that backup.
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-bre... | diff --git a/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java b/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
index d5663ed32720..65a0c4f80f5e 100644
--- a/server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java
+++ b/server/src/main/java/org/apache/cl... | 5 | 3 | 2 | [{"id": "G0", "claim": "The pending-jobs check only covers CreateVMFromBackup*, and RestoreBackupCmd but not RestoreVolumeFromBackupAndAttachToVMCmd, so deleting a backup while that async restore job is in progress can fail the restore; include that command class in the check (or centralize a list of backup-consuming j... | null |
apache__cloudstack__12796 | apache/cloudstack | 12,796 | defect | 5caf6cd043f2ba7f23bb0a7128483f285a095584 | e33913743480704f757d643fef9d1bd26c4b357a | Support Linstor Primary Storage for NAS BnR | ### Description
This PR fixes #12218
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>"... | diff --git a/core/src/main/java/org/apache/cloudstack/backup/RestoreBackupCommand.java b/core/src/main/java/org/apache/cloudstack/backup/RestoreBackupCommand.java
index f5ad5fbea2c7..972c2eaf7bb4 100644
--- a/core/src/main/java/org/apache/cloudstack/backup/RestoreBackupCommand.java
+++ b/core/src/main/java/org/apache/c... | 8 | 6 | 3 | [{"id": "G0", "claim": "The hardcoded Linstor resource path prefix \"/dev/drbd/by-res/cs-\" should be kept in LinstorUtil and used from NASBackupProvider instead of being inlined here.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "replaceBlockDev... | null |
apache__cloudstack__12802 | apache/cloudstack | 12,802 | defect | 27bce46a8e34338c0bffebf3cfc5b6d0df9c729e | 64c6a7b0ca116d378458d40020fcdbd614e51cf8 | [VMware to KVM] Add guest OS for importing VM based on the source VM OS | ### Description
This PR allows identifying and passing the guest OS for VMware VMs to be migrated to KVM
- The guestOsIdenfier is retrieved from the source VM along with the host hypervisor version
- CloudStack checks existing guest OS mappings for VMware matching the hypervisor version and the OS identifier
... | diff --git a/api/src/main/java/com/cloud/vm/UserVmService.java b/api/src/main/java/com/cloud/vm/UserVmService.java
index 01f11b73cd41..4ad1ffb755bc 100644
--- a/api/src/main/java/com/cloud/vm/UserVmService.java
+++ b/api/src/main/java/com/cloud/vm/UserVmService.java
@@ -524,6 +524,7 @@ UserVm upgradeVirtualMachine(Scal... | 3 | 3 | 1 | [{"id": "G0", "claim": "The @Param description of hypervisorVersion in UnmanagedInstanceResponse should read \"The hypervisor version of the host to which Instance belongs\" instead of \"The version of the host to which Instance belongs\" (given as a suggestion block).", "category": "documentation", "verdict": "support... | null |
apache__cloudstack__12884 | apache/cloudstack | 12,884 | defect | c19630f0a4f34a82a9414b9b6d16b5ec44b86860 | 9da01e3698cb09b237f5df896b2e91bac38147c5 | Fix NPE on external/unmanaged instance import using custom offerings | ### Description
This PR addresses a regression in the import of unmanaged/external VMs using a custom compute offering (reported in https://lists.apache.org/thread/1bvxjc197zhj61mtjxpm3tz1o27znjmv).
As both `serviceOffering.getCpu()` and `serviceOffering.getRamSize()` return null when the offering is custom const... | diff --git a/server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java b/server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java
index 1b588b042105..052c33a0ddcd 100644
--- a/server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java
+++ b/server/src/main/java/org/apa... | 5 | 4 | 1 | [{"id": "G0", "claim": "Fix the typo \"beggining\" in the comment before the resource-limit check on the VMware-to-KVM import path.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Change \"a unmanaged instance\" to \"an unmanaged instance\" in the ... | null |
apache__cloudstack__12885 | apache/cloudstack | 12,885 | defect | c19630f0a4f34a82a9414b9b6d16b5ec44b86860 | 7e76f8c95a6e6e311c97968532f511ae363d7394 | Fix Revert Instance to Snapshot with custom service offering | ### Description
This PR fixes a regression in Revert VM to Snapshot with Dynamic/Custom service offering.
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and ac... | diff --git a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java b/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
index 8e7ce351246a..2379b4ec8051 100644
--- a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
+++ b/server/src/main/java/com/cloud/vm/snapshot/... | 4 | 3 | 1 | [{"id": "G0", "claim": "Renaming the protected updateUserVmServiceOffering method to a private userVmServiceOfferingNeedsChange breaks the existing VMSnapshotManagerTest unit test that calls it directly, so the test suite will no longer compile; update the tests or keep a protected wrapper.", "category": "testing", "ve... | null |
apache__cloudstack__12919 | apache/cloudstack | 12,919 | defect | 59b6c32b60c6fb6bcb21ea5669310d23736bf5df | 7742df2e7005e68bb82ce26dea5ca0490d606d1d | Fix listing service offerings with different host tags | ### Description
This PR introduces the global setting: `allow.different.host.tags.offerings.for.vm.scale` to fix the listing of service offerings for VMs, including offerings that contain different host tags.
- Previously only offerings without any host tag or offerings matching exactly the same VM offering host ta... | diff --git a/engine/schema/src/main/java/com/cloud/host/dao/HostTagsDao.java b/engine/schema/src/main/java/com/cloud/host/dao/HostTagsDao.java
index 7a00829fd44e..bad4e68b54a4 100644
--- a/engine/schema/src/main/java/com/cloud/host/dao/HostTagsDao.java
+++ b/engine/schema/src/main/java/com/cloud/host/dao/HostTagsDao.ja... | 7 | 6 | 3 | [{"id": "G0", "claim": "listByClusterId filters HostTagVO by the tag record primary key (getId) instead of the host foreign key (getHostId), which returns incorrect (often empty or wrong) results, so it should search by host_id IN (...) and select distinct tags.", "category": "correctness", "verdict": "supported", "pri... | null |
apache__cloudstack__12949 | apache/cloudstack | 12,949 | defect | 470812100ea6e9b5790bbc3a9f747d7d733ee36d | bd1ca2916ff62ab38974e26df5f5944e1476b68f | Fix rollback disk snapshots on instance snapshot failure | ### Description
This PR fixes rollback disk snapshots on instance snapshot failure.
Fixes #12927
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual be... | diff --git a/engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/StorageVMSnapshotStrategy.java b/engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/StorageVMSnapshotStrategy.java
index e3f28a7012c2..4d2d61b31d20 100644
--- a/engine/storage/snapshot/src/main/java/o... | 3 | 2 | 0 | [{"id": "G0", "claim": "The snapshot info is put into the rollback map twice, before and after takeSnapshot; keep the pre-takeSnapshot put, drop the else block, and only overwrite the entry if takeSnapshot returns a different SnapshotInfo instance.", "category": "maintainability", "verdict": "supported", "priority": "P... | null |
apache__cloudstack__12964 | apache/cloudstack | 12,964 | defect | 59b6c32b60c6fb6bcb21ea5669310d23736bf5df | 369023bd878dc90d36f3fe64bc10667a9868c080 | Support timeout configuration for Create and Restore NAS backup | ### Description
Create and Restore NAS backup used to take the timeout configuration set via "commands.timeout" config or the default `cmds.timeout` (7200s) in agent.properties.
This might not be enough for large images and slow networks.
Eg. the config "commands.timeout" can be set to "_RestoreBackupCommand=... | diff --git a/core/src/main/java/org/apache/cloudstack/backup/TakeBackupCommand.java b/core/src/main/java/org/apache/cloudstack/backup/TakeBackupCommand.java
index 5402b6b24760..d93ccc621024 100644
--- a/core/src/main/java/org/apache/cloudstack/backup/TakeBackupCommand.java
+++ b/core/src/main/java/org/apache/cloudstack... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new nas.backup.create.backup.timeout config may be redundant with the existing commands.timeout global setting (e.g. 'TakeBackupCommand=14400'), which could be documented instead so this new timeout config can be skipped.", "category": "design", "verdict": "supported", "priority": "P1", "sco... | null |
apache__cloudstack__13046 | apache/cloudstack | 13,046 | defect | be89e6f7c3784672cd0a9f8d0a0101c670162dd2 | 78716fb15c09e41fc179f87b41beabcb7a332d7d | merge conflict fixes | ### Description
This PR fixes some merge conflicts
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixe... | diff --git a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java b/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
index bfec3247a7b8..baa74128ce38 100644
--- a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
+++ b/server/src/main/java/com/cloud/vm/snapshot/... | 2 | 2 | 1 | [{"id": "G0", "claim": "The added import `org.apache.cloudstack.reservation.dao.ReservationDao` in UnmanagedVMsManagerImplTest is unused and will cause compilation to fail; remove it or add the missing @Mock ReservationDao field.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
apache__cloudstack__2246 | apache/cloudstack | 2,246 | defect | 8502a667e551bf993d4a57ec6a2129c732fa3e5b | 8eb902301b5e4d52dcac6d84b12de8555bb0c480 | CLOUDSTACK-10046 checksum validation for any java supported Digests-type | This fixes a very old regression where the checksum wouldn't be checked on downloaded templates.
It checks again now but also allows to specify an algorithm like "{SHA-1}98765....". No algorithm assumes md5 ("MD5") for now | diff --git a/core/src/com/cloud/agent/api/ComputeChecksumCommand.java b/core/src/com/cloud/agent/api/ComputeChecksumCommand.java
index 5c8c929ce6f5..fc7c55d6f526 100644
--- a/core/src/com/cloud/agent/api/ComputeChecksumCommand.java
+++ b/core/src/com/cloud/agent/api/ComputeChecksumCommand.java
@@ -25,6 +25,7 @@
public... | 1 | 1 | 0 | [{"id": "G0", "claim": "The API doc strings should be improved (API parameter documentation for the checksum-related commands) before the pull request is merged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__cloudstack__2250 | apache/cloudstack | 2,250 | defect | 8502a667e551bf993d4a57ec6a2129c732fa3e5b | 8ff721f61391c5d49b9ead876215cddfe1309b34 | CLOUDSTACK-10057: listNetworkOfferings now returns the correct number of offerings. | https://issues.apache.org/jira/browse/CLOUDSTACK-10057 | diff --git a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
index 3d2c236c39c4..ac9126c2615c 100755
--- a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
+++ b/server/src/com/cloud/configuration/ConfigurationManagerImp... | 1 | 1 | 0 | [{"id": "G0", "claim": "Additional review and testing are requested, and if the pagination-count line needs to change to supportedOfferings.size(), then line 4798 may have similar code that also needs the same change.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__cloudstack__4111 | apache/cloudstack | 4,111 | defect | 0d4f67ad8c3e7c3a7cc7e067b7b20c227be7ff0c | 488da4cdd7f0602ff8b7bad48475c6be367351ca | API-call to declare host as Degraded | ## Description
<!--- Describe your changes in detail -->
Sometimes a host is down (admins know) but CS keeps VMs in the 'Running' state to avoid data corruption. An example of that is when a KVM host using Ceph halts. CloudStack cannot check if VM still writing on disk, therefore it leaves it in the "Running" state a... | diff --git a/api/src/main/java/com/cloud/event/EventTypes.java b/api/src/main/java/com/cloud/event/EventTypes.java
index ec8089078c9a..944f85445e42 100644
--- a/api/src/main/java/com/cloud/event/EventTypes.java
+++ b/api/src/main/java/com/cloud/event/EventTypes.java
@@ -336,6 +336,10 @@ public class EventTypes {
/... | 4 | 3 | 1 | [{"id": "G0", "claim": "The word 'Dead' for the new host state and commands may incite unfit associations, and some other word (like 'broken' or 'corrupted') should be used instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new API commands are ... | null |
apache__cloudstack__5902 | apache/cloudstack | 5,902 | defect | 97d6cd50a05e06c532ae970d3a2ab737664f8b5f | 71fb8170d4ae859154337e8d4e382b88e9dbb51a | Allow users to view reserved System VM IPs, if they're already allocated to user | ### Description
The default behavior of ACS is to try to use all available public IPs, including those reserved for system VMs; by default when a public IP is reserved to System VM, they are used as preferred to be allocated to system VMs, but not restricted to these type of VMs. This behavior can be changed by chan... | diff --git a/server/src/main/java/com/cloud/network/IpAddressManagerImpl.java b/server/src/main/java/com/cloud/network/IpAddressManagerImpl.java
index 97ef0503b690..a1e5eec4caf9 100644
--- a/server/src/main/java/com/cloud/network/IpAddressManagerImpl.java
+++ b/server/src/main/java/com/cloud/network/IpAddressManagerImp... | 3 | 2 | 2 | [{"id": "G0", "claim": "SystemVmPublicIpReservationModeStrictness should remain private static final rather than a public non-final static field, so the global setting's config key cannot be swapped at runtime.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
apache__cloudstack__6581 | apache/cloudstack | 6,581 | defect | 5f04018bf099ff8973f31c1bec9e79ae08a0ce71 | 5eea29ae5fc41fabed2d60195964af081ca24232 | [Veeam] enable volume attach/detach in VMs with Backup Offerings | ### Description
Using the VMWare hypervisor, with the Veeam plugin active, it is not possible to attach or detach volumes on VMs attached in a Backup Offering. This PR aims to externalize the global configuration `backup.enable.attach.detach.of.volumes` to allow operators to define if it's possible or not to attach/... | diff --git a/api/src/main/java/org/apache/cloudstack/backup/BackupManager.java b/api/src/main/java/org/apache/cloudstack/backup/BackupManager.java
index b983aca4ad6f..6e1b15c81591 100644
--- a/api/src/main/java/org/apache/cloudstack/backup/BackupManager.java
+++ b/api/src/main/java/org/apache/cloudstack/backup/BackupMa... | 9 | 6 | 0 | [{"id": "G0", "claim": "The backup functionality on VMs with volumes attached/detached needs to be verified, particularly the case where a volume is detached and a restore is then done to a point where it was still attached.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id... | null |
apache__cloudstack__6772 | apache/cloudstack | 6,772 | defect | d9dd4c1e3ad795c6842411e76b34f487a095603e | ac3c49e7ff369171c3e48b7d9acc3b44a957f3bd | Fix to make recovered volumes be accounted for by Usage | ### Description
When a volume is removed, ACS inserts a `VOLUME.DELETE` record into the `cloud.usage_event` table. If the volume is removed without the expunge option, it can still be restored.
When the volume is restored, ACS does not insert a new record in the `cloud.usage_event` stating that it has been recreated... | diff --git a/api/src/main/java/com/cloud/storage/VolumeApiService.java b/api/src/main/java/com/cloud/storage/VolumeApiService.java
index 3d37c2ec4fed..986326454b05 100644
--- a/api/src/main/java/com/cloud/storage/VolumeApiService.java
+++ b/api/src/main/java/com/cloud/storage/VolumeApiService.java
@@ -165,4 +165,6 @@ S... | 2 | 1 | 0 | [{"id": "G0", "claim": "The code extracted into publishVolumeCreationUsageEvent may be usable in the changeOfferingForVolume, migrateVolume, resizeVolume and updateVolume flows as well, and those flows should be checked for it.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduce... | null |
apache__cloudstack__6909 | apache/cloudstack | 6,909 | defect | 8fd4ed88c27a73dd36b7e948d152cc29ada8db08 | fef25e73539dfe8880513ad941ea2d4f62de071e | KVM support of iothreads and IO driver policy | ### Description
Support of `iothreads` and IO driver policy (native, threads, io_uring) for a Virtual machine on KVM hypervisors.
Both options are available on the deployment of a VM or could be set later from the VM's settings. Also, both options - `iothreads` and IO policy could be used separately.
 directly.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change from _entityMgr.findById(Vpc.class, vpcId)... | null |
apache__cloudstack__7210 | apache/cloudstack | 7,210 | defect | 933970d9da0791ae0867ed9c3d2b318b4029660a | b62e20e1cd2c16a023bc99fcf0ea3839180ebfb1 | Set number of hours per month with actual number in Quota | ### Description
The Quota usage value for monthly usage types uses the cost per hour to calculate the total tariff value in a particular period. In order to define the cost per hour, it takes into account the total number of hours in each month. However, this value is currently fixed at 720 hours for every month.
... | diff --git a/framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java b/framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java
index b17d27b0adfd..500da38e030d 100644
--- a/framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java
+++ b/framework/quo... | 1 | 1 | 1 | [{"id": "G0", "claim": "The hours divisor is computed once from LocalDate.now() at calculation time, so a usage record processed just after a month boundary may be divided by the wrong month's hours, and daylight-saving or leap-year/leap-second anomalies may also skew the count — how is this handled?", "category": "cor... | null |
apache__cloudstack__7224 | apache/cloudstack | 7,224 | defect | 597a8030b7c3235e59207041634206bead379c08 | 7144bdea9c81109185083ef4762e8d1fee95d455 | [Veeam] Check for failures in the restore process | ### Description
Using the VMware hypervisor with the Veeam plugin active, when restoring a backup, ACS only verifies if the restore has finished successfully, ignoring any failure and making the user wait the timeout defined in `backup.plugin.veeam.restore.timeout`. This behavior has been fixed by this PR.
### Ty... | diff --git a/plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java b/plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java
index 40fbe97028a6..c734bd56d97b 100644
--- a/plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.jav... | 8 | 5 | 0 | [{"id": "G0", "claim": "The restore-failure polling loop is inlined into checkTaskStatus, adding complexity where the separate, clearly named checkIfRestoreSessionFinished method should be kept.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "res... | null |
apache__cloudstack__7235 | apache/cloudstack | 7,235 | defect | 597a8030b7c3235e59207041634206bead379c08 | a5bb888c87cf56ba4dad17927f42a049decc9ce1 | [Usage] Create VPC billing | ### Description
The usage of VPCs are not captured and saved by the Usage plugin, which makes it impossible to charge via the Quota plugin. The Usage plugin has extended, to save the VPC events in database. When a VPC is created, the event `EVENT_VPC_CREATE` is used; when a VPC is removed, the event `EVENT_VPC_DELET... | diff --git a/api/src/main/java/com/cloud/event/EventTypes.java b/api/src/main/java/com/cloud/event/EventTypes.java
index f7678d99d322..fe6783eba207 100644
--- a/api/src/main/java/com/cloud/event/EventTypes.java
+++ b/api/src/main/java/com/cloud/event/EventTypes.java
@@ -1148,4 +1148,8 @@ public static Class getEntityCl... | 7 | 5 | 2 | [{"id": "G0", "claim": "The error log in UsageVpcDaoImpl.update should say it failed to update usage of VPC, not 'backup metrics'.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The warn log in UsageVpcDaoImpl.getUsageRecords should say 'Error getti... | null |
apache__cloudstack__7236 | apache/cloudstack | 7,236 | defect | e61051e4fcc14d4d2b95acd3ca5fd295d8902471 | 7d583f9dec70cfe9b63469858f47eab582194b88 | [Usage] Create network billing | ### Description
The usage of networks is not captured and saved by the Usage plugin, which makes it impossible to charge via the Quota plugin. The Usage plugin has been updated to record network events in the database. When a network is created, the event `EVENT_NETWORK_CREATE` is used; when a network is removed, th... | diff --git a/api/src/main/java/com/cloud/event/EventTypes.java b/api/src/main/java/com/cloud/event/EventTypes.java
index f7678d99d322..5e44d9556115 100644
--- a/api/src/main/java/com/cloud/event/EventTypes.java
+++ b/api/src/main/java/com/cloud/event/EventTypes.java
@@ -1120,6 +1120,10 @@ public class EventTypes {
... | 13 | 12 | 6 | [{"id": "G0", "claim": "Of the 10 code smells SonarCloud reports on this PR, the 4 that look more serious should be looked at and addressed by the author.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "The new usage_networks DDL sits in the old upgrade... | null |
apache__cloudstack__7554 | apache/cloudstack | 7,554 | defect | c9b103c8a7153cc480e5534be3a62629286257e3 | f30597f307790ebc34bcd54bcc9d038dca1bcb0f | server,api,ui: host auto-select for migrateVirtualMachineWithVolume | ### Description
Fixes #6773
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>" is specified... | diff --git a/api/src/main/java/org/apache/cloudstack/api/command/admin/vm/MigrateVirtualMachineWithVolumeCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/admin/vm/MigrateVirtualMachineWithVolumeCmd.java
index 731cb67aa839..6a789692b4cb 100644
--- a/api/src/main/java/org/apache/cloudstack/api/command/admin... | 6 | 3 | 0 | [{"id": "G0", "claim": "The existing InvalidParameterValueException message for a non-Running VM is a bit misleading and should be reworded to something like \"%s is not in the Running state. It must be running to migrate to a new host.\".", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": ... | null |
apache__cloudstack__7880 | apache/cloudstack | 7,880 | defect | f7345e861f832dbf5576c24c21eef73d72fe5d58 | b57ad1bd299cff2924bfdd6debd3b087b30caab3 | Don't allow inadvertent deletion of hidden details via API | ### Description
This PR fixes the case where someone updates the VM details via API and the non-displayable details that cloudstack uses for managing config internally get deleted. An example of a non-displayable detail is `configDriveLocation`. If a user is using host based config drive, then configDriveLocation =... | diff --git a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
index ecf60556db62..529c5714eeb3 100644
--- a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
@@ -2756,13 +2756,18 @@ p... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test creates a VM without adding it to self.cleanup, so the VM should be appended to self.cleanup right after creation (the remark about the integration test that got lost from the S1 review and was re-raised as a suggestion block on S2).", "category": "testing", "verdict": "supported", ... | null |
apache__cloudstack__7974 | apache/cloudstack | 7,974 | defect | 9c9b17885ff4ccf256fc6c515e612ce90cceace5 | 136fd6660e70c7a5028a24f6d36fb80bd3fba420 | Fix templates and ISOs listing pagination | ### Description
After the changes in #4774, when an account other than the root admin lists templates/ISOs with pagination, count gets set to the number of items returned in that page. For example, when the user lists 10 templates/ISOs and 15 entries are found, in the first page, count is set to 10 (the number of it... | diff --git a/server/src/main/java/com/cloud/api/query/QueryManagerImpl.java b/server/src/main/java/com/cloud/api/query/QueryManagerImpl.java
index c28865943a96..4970a1793c83 100644
--- a/server/src/main/java/com/cloud/api/query/QueryManagerImpl.java
+++ b/server/src/main/java/com/cloud/api/query/QueryManagerImpl.java
@... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Javadoc of addDomainIdToSetIfDomainDoesNotShareTemplates should read \"Adds the provided domain ID to the set\" instead of \"Adds the provided domain ID the set\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__cloudstack__8234 | apache/cloudstack | 8,234 | defect | 96b07d797b73c22b63fac7db3d4f00afa470f36f | 5fc1821238d1071f8b1383b836c64ab8751d5bf7 | Allow altering only either CPU or memory during VM live scale | ### Description
The API `scaleVirtualMachine` requires the specification of both vCPU quantity and memory amount, resulting in an error if either was omitted. This means that if an operator wants to increase the quantity of vCPUs while maintaining the existing memory, they were obligate to provide the current memo... | diff --git a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
index 824dac0d5671..94ba1dfc7a8f 100644
--- a/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
+++ b/server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
@@ -399,7 +399,7 @@ publi... | 4 | 3 | 0 | [{"id": "G0", "claim": "Remove the commented-out original call to upgradeVirtualMachine that this change left behind next to its replacement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename updateInstanceDetailsWithCurrentValue because the... | null |
apache__cloudstack__8372 | apache/cloudstack | 8,372 | defect | 33e2a4dd6635798f98d4726406ed1af4c00a4cc5 | b07d52a3e0ebd914e87f3b5575817a0213a9515a | [Quota] Add API to list preset variables | ### Description
This PR extends the functionality introduced in PR #5909, allowing users to list the preset variables via API, facilitating the creation of the activation rules while creating tariffs for the Quota plugin.
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing func... | diff --git a/api/src/main/java/org/apache/cloudstack/usage/UsageTypes.java b/api/src/main/java/org/apache/cloudstack/usage/UsageTypes.java
index 5e0f03ff5830..0ba04f27bbbe 100644
--- a/api/src/main/java/org/apache/cloudstack/usage/UsageTypes.java
+++ b/api/src/main/java/org/apache/cloudstack/usage/UsageTypes.java
@@ -4... | 4 | 2 | 0 | [{"id": "G0", "claim": "An integration test seems appropriate for such a profoundly user-facing feature (the new quotaPresetVariablesList API).", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The response setter should be named setVariable instead of setVa... | null |
apache__cloudstack__8418 | apache/cloudstack | 8,418 | defect | 6d916cad348f5833a567c17f5c9dbccaf2135448 | d7d93e1edadf20aded1c30be681faef916e10efa | User data content size validation, and related code improvements | ### Description
This PR validates the user data with actual length only, and has some code improvements.
Fixes #8415
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the exp... | diff --git a/engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java b/engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java
index 91f24fe70458..5edc6748d1e2 100644
--- a/engine/userdata/src/main/java/org/apache/cloudstack/userdata/UserDataManagerImpl.java
+... | 7 | 5 | 2 | [{"id": "G0", "claim": "User data should not be obligatory: validateUserData should return null for blank user data instead of throwing \"User data is empty\", as it did before this change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be ... | null |
apache__cloudstack__8511 | apache/cloudstack | 8,511 | defect | c3b77cb7b82bfe8e94b024e81e1721532da51a9c | 9035016e4bd13bbf2420b837ec778915b61d5243 | Add logs to `LibvirtComputingResource`'s metrics collection process | ### Description
The class `LibvirtComputingResource` does not provide enough information about what is happening during the metrics collection process and contains some logs with formatting issues.
This PR refactors the metrics collection process while adding logs, and fixes some logs that contained problems.
... | diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index 60e6bcffeb61..3c377b1d4774 100644
--- a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervi... | 7 | 5 | 0 | [{"id": "G0", "claim": "Fix the misspelled word in the debug log message (\"thefore\" should be \"therefore\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two consecutive stats-saving logs (an info one and a debug one) should be merged int... | null |
apache__cloudstack__8649 | apache/cloudstack | 8,649 | defect | 49cecaed067bfcf1bd54f1fca1839a4cf6897769 | 2640ddec912c7a1d112b83a6b6f418be1c1862ae | Improve logs in primary storage removal process | ### Description
While listing volumes from a primary storage, volumes from system VMs are not listed, making the primary storage removal process difficult as an exception is thrown if the storage still has active volumes when trying to be deleted.
For this reason, logs have been added to the primary storage remov... | diff --git a/server/src/main/java/com/cloud/storage/StorageManagerImpl.java b/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
index c20baf990b40..532ec4b2a14b 100644
--- a/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
+++ b/server/src/main/java/com/cloud/storage/StorageManagerImpl.java
@... | 3 | 2 | 1 | [{"id": "G0", "claim": "The three new debug log statements pass getStoragePoolNonDestroyedVolumesLog(sPool.getId()) eagerly, so the heavy data-loading method runs even when the debug level is disabled; the calls should be wrapped in a lambda so they are evaluated only at the right log level.", "category": "performance"... | null |
apache__cloudstack__8671 | apache/cloudstack | 8,671 | defect | 6f3e4e6302265c78273256d743ac407c77106888 | 70b72d693485d202bffd30a041afc8c4e07d02ed | Fixup response code on incorrect credentials | ### Description
This PR fixes https://github.com/apache/cloudstack/issues/8662
The issue got introduced in 4.19. When we try to login, we check login credentials using different types of authenticators. While verifying in case of wrong password with `oauth2` authenticator and there are no providers setup for it, it... | diff --git a/server/src/main/java/com/cloud/user/AccountManagerImpl.java b/server/src/main/java/com/cloud/user/AccountManagerImpl.java
index 86a359a33487..3d45a632e3db 100644
--- a/server/src/main/java/com/cloud/user/AccountManagerImpl.java
+++ b/server/src/main/java/com/cloud/user/AccountManagerImpl.java
@@ -2650,7 +2... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hardcoded \"oauth2\" string in the authenticator-name checks should be replaced with a relevant named constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__cloudstack__8689 | apache/cloudstack | 8,689 | defect | 592038a30424713a731ede43000a169762b074dd | c53258df449e9fe2e93cdbca30e9688042eef43c | Fix being able to expunge a VM through destroyVirtualMachine even when role rule does not allow | ### Description
This PR adds a role access check to the `expungeVirtualMachine` command when calling `destroyVirtualMachine` with the expunge parameter.
Currently, if you are an admin (even if not Root), it bypasses the `allow.user.expunge.recover.vm` verification and you are always allowed to expunge when calli... | diff --git a/plugins/network-elements/juniper-contrail/src/test/java/org/apache/cloudstack/network/contrail/management/MockAccountManager.java b/plugins/network-elements/juniper-contrail/src/test/java/org/apache/cloudstack/network/contrail/management/MockAccountManager.java
index 836bb7213296..95d25bd01816 100644
--- a... | 2 | 2 | 1 | [{"id": "G0", "claim": "checkExpungeVmPermission should check the AllowUserExpungeRecoverVm setting of the caller (callingAccount.getId()) instead of the entityOwnerId.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR author should consider add... | null |
apache__cloudstack__8743 | apache/cloudstack | 8,743 | defect | 3baa45bc2a814e50dd655f160794cc29fbec8a5a | 49e29ed5f7c53a5be94432457e9297dc407ac4a2 | Fix `deleteAccount` API to prevent deletion of the caller | ### Description
ACS allows users to delete their own account by calling the `deleteAccount` API via CLI. Fixing this behavior has been previously suggested in this [comment](https://github.com/apache/cloudstack/pull/7242#issuecomment-1433260909). Furthermore, there's already a feature to prevent a user from deleting... | diff --git a/api/src/main/java/org/apache/cloudstack/api/command/admin/account/DeleteAccountCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/admin/account/DeleteAccountCmd.java
index 36e22acff91e..a90fc4aebe9c 100644
--- a/api/src/main/java/org/apache/cloudstack/api/command/admin/account/DeleteAccountCmd.... | 2 | 1 | 0 | [{"id": "G0", "claim": "The error message thrown when the caller requests deletion of their own account should be reworded, e.g. 'Deletion of your own account is not allowed. To delete account %s (ID: %s, Domain: %s), request to another user with permissions to perform the operation.'", "category": "documentation", "ve... | null |
apache__cloudstack__8906 | apache/cloudstack | 8,906 | defect | 19f96355ac0b8bb1051c4e8fa2672b6e2f090703 | 4e57cc9390121df302c81bbbbe59d6dd3a31d47c | NSX Integration fixes | ### Description
This PR addresses issues identified in https://github.com/apache/cloudstack/pull/7919
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual be... | diff --git a/engine/schema/src/main/java/org/apache/cloudstack/resourcedetail/FirewallRuleDetailVO.java b/engine/schema/src/main/java/org/apache/cloudstack/resourcedetail/FirewallRuleDetailVO.java
index 636d889fafe8..1149d0b13e77 100644
--- a/engine/schema/src/main/java/org/apache/cloudstack/resourcedetail/FirewallRule... | 13 | 13 | 0 | [{"id": "G0", "claim": "The externalized CKS install wait/reattempt settings and the CKS logic using them should not be part of this NSX-focused pull request and belong in #9102.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Replacing the existing debug... | null |
apache__cloudstack__9163 | apache/cloudstack | 9,163 | defect | 9b3c318db6a78ee9e75b03775793323dee234684 | b48d44796d6ef20a930ccf18d52bb34ae59fc982 | orchestration,hypervisor: allow custom manufacturer, product for vm metadata | ### Description
Fixes #9142
Doc PR: https://github.com/apache/cloudstack-documentation/pull/402
New global settings added to specify VM metadata wrt manufacturer and product:
- `vm.metadata.manufacturer`
- `vm.metadata.product`
### Types of changes
- [ ] Breaking change (fix or feature that would cause... | diff --git a/api/src/main/java/com/cloud/agent/api/to/VirtualMachineTO.java b/api/src/main/java/com/cloud/agent/api/to/VirtualMachineTO.java
index b4f4619be9ac..6f24b1cd6ca8 100644
--- a/api/src/main/java/com/cloud/agent/api/to/VirtualMachineTO.java
+++ b/api/src/main/java/com/cloud/agent/api/to/VirtualMachineTO.java
@... | 4 | 4 | 1 | [{"id": "G0", "claim": "Encode the default values in the new config keys (at least the manufacturer one, where the second would complicate things).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The check for custom vs default metadata values should be d... | null |
apache__cloudstack__9173 | apache/cloudstack | 9,173 | defect | 87b55af1979faa7020850842b1d72ecbdb77938a | 1064cb7697f5a438da117b7f202e263a1004cde7 | server: simplify role change validation | ### Description
Fixes #9015
Simplifies role change checks with the following conditions:
- Caller should not be of Unknown role type
- New role's type should not be Unknown
- Caller should not be able to escalate or de-escalate an account's role which is of higher role type
- New role should not be of typ... | diff --git a/server/src/main/java/com/cloud/user/AccountManagerImpl.java b/server/src/main/java/com/cloud/user/AccountManagerImpl.java
index 3eed429ed215..733651db06a0 100644
--- a/server/src/main/java/com/cloud/user/AccountManagerImpl.java
+++ b/server/src/main/java/com/cloud/user/AccountManagerImpl.java
@@ -119,8 +11... | 4 | 3 | 1 | [{"id": "G0", "claim": "Add commas to the new permission-denied error messages, starting with formatting the role name in errorMsg as \"Unable to update account role to %s, \".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the grammar in the ... | null |
apache__cloudstack__9251 | apache/cloudstack | 9,251 | defect | 034a5c84662408531d99d70741c6253c94e756e5 | c9768c0f28556181273b526d42f0f4d31095ead2 | Prevent network disruption on adding a VPC tier for redundant VRs | ### Description
This PR fixes https://github.com/apache/cloudstack/issues/8108
As of now, on adding a new network tier to a VPC, results in a small network disruption because of keepalived's config reload on both the VRs. This patch fixes this by doing operations in this order:
1. Stop keepalived on all the back... | diff --git a/api/src/main/java/com/cloud/network/VpcVirtualNetworkApplianceService.java b/api/src/main/java/com/cloud/network/VpcVirtualNetworkApplianceService.java
index 5c3ee3f1032a..cd04db802cac 100644
--- a/api/src/main/java/com/cloud/network/VpcVirtualNetworkApplianceService.java
+++ b/api/src/main/java/com/cloud/... | 2 | 2 | 1 | [{"id": "G0", "claim": "The answers returned by execute(ManageServiceCommand) hardcode 'Keepalived stopped successfully'/'Failed to stop keepalived' even though the command may start or stop any service, and should name the service (and action) actually being managed instead.", "category": "correctness", "verdict": "su... | null |
apache__cloudstack__9329 | apache/cloudstack | 9,329 | defect | a35d79a681e6ab5b670d9a4ac904d00604db586d | e438a3ff5d909ae801d1abcd5107347f8261ab6d | Add support for network data in Config Drive | ### Description
This PR fixes https://github.com/apache/cloudstack/issues/2872
PR adds support for Dhcp & Dns capabilities for ConfigDrive network element.
Docs PR: https://github.com/apache/cloudstack-documentation/pull/412
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -... | diff --git a/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java b/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java
index ea34f62ecd58..fccb2797275a 100644
--- a/engine/orchestration/src/main/java/org/apache/cloudst... | 7 | 5 | 2 | [{"id": "G0", "claim": "The buildConfigDrive flag is redundant because preparing the config drive is already implicit when the element is a ConfigDriveNetworkElement, so the flag can be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "buildConfigD... | null |
apache__cloudstack__9498 | apache/cloudstack | 9,498 | defect | 21f3fde7b404f8195b54e622b84c17d33f54639e | 669f29db5cfa4c17718b12ec24d61c47913290b7 | kvm: ref-count storage pool usage | ### Description
If a storage pool is used by e.g. 2 concurrent snapshot->template actions, if the first action finished it removed the netfs mount point for the other action.
Now the storage pools are usage ref-counted and will only deleted if there are no more users.
Fixes: #8899
<!--- **********************... | diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
index df6c047e7e21..fd2f63027451 100644
--- a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/... | 2 | 2 | 1 | [{"id": "G0", "claim": "The inc/dec ref-count code should share one synchronized code path and the storagePoolRefCounts map should be a thread-safe collection (e.g. a concurrent map), so that no increment/decrement can interleave on an element.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ... | null |
apache__cloudstack__9500 | apache/cloudstack | 9,500 | defect | cd8442a42b65a3238c35f41f3ceac0e80e4df6c8 | 96a54588af66648042efc16530f7e39f0691e5de | Add `offerHa` and `forceHa` preset variables to `RUNNING_VM` usage type | ### Description
This PR adds the following preset variables to the usage type `RUNNING_VM`:
`value.computeOffering.offerHa`: A boolean informing if the compute offering offers HA or not.
`configuration.forceHa`: A boolean informing if the cluster configuration `force.ha` is enabled or not. Considering that `fo... | diff --git a/framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java b/framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java
index 226a47bb7dfa..baae7ab0e0ec 100644
--- a/framework/quota/src/main/java/org/apache/cloudstack/quota/QuotaManagerImpl.java
+++ b/framework/quo... | 2 | 1 | 0 | [{"id": "G0", "claim": "Replace the hand-written null-check ternary for hostId with ObjectUtils.defaultIfNull(vmVo.getHostId(), vmVo.getLastHostId()).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The usage type should be passed as an enum rath... | null |
apache__cloudstack__9590 | apache/cloudstack | 9,590 | defect | 8ca1843efae60b24a802377aaad48b8838228200 | a38619c42bdf8872000ce675bb8e413903bd8610 | Create API to list Quota credits | ### Description
When credits are added to an account, an entry that represents the operation is created in `cloud_usage.quota_credits`. Some information about these entries is currently returned alongside an account's balance through the `quotaBalance` API. However, this is not consistent with the API's purpose (vie... | diff --git a/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java b/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
index 2f0e4f16797d..7659f0cd3896 100644
--- a/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
+++ b/api/src/main/java/org/apache/cloudstack/api/ApiConstants.java
@@ -1... | 2 | 2 | 1 | [{"id": "G0", "claim": "Removing the credit-addition data from the quotaBalance API response is a backwards-incompatible change that should not be made (or only after careful consideration and stronger arguments than consistency).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
apache__cloudstack__9605 | apache/cloudstack | 9,605 | defect | 477beaffbf9b31ea83cc44555156f5b682f6df78 | ea810e146f410244caa746c7fcc496d1037ba385 | API to validate Quota activation rule | ### Description
When entering an activation rule during the creation and editing of Quota tariffs, the defined rule is not validated. This way, errors are only identified while processing the tariff.
Because of this, the `quotaValidateActivationRule` API was created, which informs whether the activation rule is v... | diff --git a/framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/PresetVariables.java b/framework/quota/src/main/java/org/apache/cloudstack/quota/activationrule/presetvariables/PresetVariables.java
index b27bf589c167..6dab6604e914 100644
--- a/framework/quota/src/main/java/org/apach... | 3 | 2 | 0 | [{"id": "G0", "claim": "The javadoc on injectVariablesToJsInterpreter should say \"as the interpreter\" instead of \"for the interpreter\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @Param description of the activationrule field should re... | null |
apache__cloudstack__9733 | apache/cloudstack | 9,733 | defect | 1c626c884c6e4de988f3a42c5d38b0ca41dc91dd | 03fa97cca006aead4b0a999fb35d63f9797b2089 | custom AccessLogger | ### Description
This PR...
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>" is specified, ... | diff --git a/client/src/main/java/org/apache/cloudstack/ACSRequestLog.java b/client/src/main/java/org/apache/cloudstack/ACSRequestLog.java
new file mode 100644
index 000000000000..123d2761e008
--- /dev/null
+++ b/client/src/main/java/org/apache/cloudstack/ACSRequestLog.java
@@ -0,0 +1,84 @@
+//
+// Licensed to the Apac... | 1 | 1 | 1 | [{"id": "G0", "claim": "The session key sanitization is only partially working: the regex replaceFirst(\"\") removes `sessionkey=` entirely, creating malformed URLs (e.g. `?command=listAccounts&response=json&SessionKeyValue` instead of a clean query string), and session key values are still exposed in the logs (just mo... | null |
apache__cloudstack__9736 | apache/cloudstack | 9,736 | defect | bf2cedea79c2076ea56cffe4c857d8e601aa3d50 | e68bc29b71f27f6fe3feaba6977ec10a9612d393 | Add support for functionality in hypervisor class | ### Description
This PR adds support for functionality in hypervisor class. This solves 2 issues:
1. Allow configuring supported functionality of a hypervisor in Hypervisor class itself and remove custom logic of different hypervisors in the code. For now, we are only functionalities. Rest can be added later.
2. T... | diff --git a/api/src/main/java/com/cloud/hypervisor/Hypervisor.java b/api/src/main/java/com/cloud/hypervisor/Hypervisor.java
index e1108b34a837..e12d469d2e0c 100644
--- a/api/src/main/java/com/cloud/hypervisor/Hypervisor.java
+++ b/api/src/main/java/com/cloud/hypervisor/Hypervisor.java
@@ -23,34 +23,52 @@
import java.... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a HypervisorType constructor that defaults to all functionalities (e.g. EnumSet.allOf), so hypervisors supporting every functionality need not list them all.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The remaining hard-code... | null |
apache__cloudstack__9808 | apache/cloudstack | 9,808 | defect | f10d9fecbe84d39b33ef6e3b4de8a9e4ce645759 | c8738457dfb4a31b060cd942319e536a15a552b3 | Add support to RBD erasure code pools | ### Description
This PR adds support for Ceph erasure code pools, allowing users to specify the data pool required for using this type of Ceph pool.
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds f... | diff --git a/api/src/main/java/org/apache/cloudstack/api/response/StoragePoolResponse.java b/api/src/main/java/org/apache/cloudstack/api/response/StoragePoolResponse.java
index 06d5103d7319..a089c9888277 100644
--- a/api/src/main/java/org/apache/cloudstack/api/response/StoragePoolResponse.java
+++ b/api/src/main/java/o... | 2 | 2 | 1 | [{"id": "G0", "claim": "createPhysicalDisk should check the pool details on an RBD pool: create the volume with qemu-img only if the pool is an erasure-code pool, otherwise keep the current behaviour.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use Fi... | null |
apache__cloudstack__9844 | apache/cloudstack | 9,844 | defect | 175eed294c8d71697f26bac9caa7e2dcb598d9c3 | 89ae8c12310dd1b2aa4e143d4ae51ef650610deb | Fix NPE issues during host rolling maintenance, due to host tags and custom constrained/unconstrained service offering | ### Description
This PR fixes NPE issues during host rolling maintenance, due to host tags and custom constrained/unconstrained service offering.
Fixes #9834 & #9836
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML disc... | diff --git a/server/src/main/java/com/cloud/resource/RollingMaintenanceManagerImpl.java b/server/src/main/java/com/cloud/resource/RollingMaintenanceManagerImpl.java
index 25b2ad53bf2b..bcb16be5aa88 100644
--- a/server/src/main/java/com/cloud/resource/RollingMaintenanceManagerImpl.java
+++ b/server/src/main/java/com/clo... | 5 | 5 | 1 | [{"id": "G0", "claim": "The inline VM-details lookup block added to performCapacityChecksBeforeHostInMaintenance is too much complexity for the loop and should be extracted into its own method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
apache__commons-bcel__118 | apache/commons-bcel | 118 | defect | 8342e6d74857dbaaf6156167439118458c018698 | ebe95ce90a765f955ccd46b2fc199cf4f692a0c2 | Force unsigned short for LineNumber.toString() | Ensure startPc and lineNumber are treated as unsigned short in LineNumber.toString() | diff --git a/src/main/java/org/apache/bcel/classfile/LineNumber.java b/src/main/java/org/apache/bcel/classfile/LineNumber.java
index b5cb9e3df3..e3f37b376c 100644
--- a/src/main/java/org/apache/bcel/classfile/LineNumber.java
+++ b/src/main/java/org/apache/bcel/classfile/LineNumber.java
@@ -96,7 +96,7 @@ public void dum... | 5 | 3 | 0 | [{"id": "G0", "claim": "If swapping the operand order to `lineNumber & 0xffff` / `startPc & 0xffff` in the getters is not merely a style change, a comment explaining it is needed.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "LineNumber.toString() ... | null |
apache__commons-bcel__138 | apache/commons-bcel | 138 | defect | f58d0783e60d083da1748716267e352895705c8b | 8f1aec24da693bc27ad45a3f09dd7aec105da88f | Close resources | BCEL sometimes fails to close a resource. This can lead to degraded performance, especially on long runs (eg, when being run by a server/daemon or when running on a large amount of code).
This pull request ensures that the resources are closed, even if an exception is thrown.
The diffs look large, but they are m... | diff --git a/src/examples/Package.java b/src/examples/Package.java
index 5f1d108c6f..5576aebbfd 100644
--- a/src/examples/Package.java
+++ b/src/examples/Package.java
@@ -160,14 +160,13 @@ void go(final String[] args) throws IOException {
System.out.println("Creating jar file: " + defaultJar);
- // ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The catch block in AbstractTestCase.createRepos should throw an UncheckedIOException instead of an Error when wrapping the IOException.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.