Harikrishna Patnala
662356fd30
remove default offering changes
2026-05-12 16:01:50 +05:30
Harikrishna Patnala
483e2ff603
Fix vpcid
2026-05-12 13:47:57 +05:30
Harikrishna Patnala
332d5ebbbf
Support Firewall for public IPs in VPC
2026-05-06 16:52:17 +05:30
Suresh Kumar Anaparti
8906aa1d46
Merge branch '4.22'
2026-05-01 22:51:01 +05:30
Fabricio Duarte
1f5dba9bd2
Release reserved storage resources on VM deployment failure ( #13048 )
2026-04-30 20:52:35 +05:30
Bryan Lima
c45596cca3
Refactor of Allocator classes ( #9074 )
...
* Refactoring Allocator classes
* Break into smaller methods random and firfit allocators.
* Added unit tests for random and firstfit allocators
* Move random allocator from cloud-plugins to cloud-server
* Add BaseAllocator abstract class for duplicate code
* Add missing license
* Add missing license to unit test file
* Remove host allocator random dependency
* Change exception message on smoke tests
* Remove conditional as it was never actually reached in the original flow
* Fix tests
* Fix flipped parameters
* Fix NPE while listing hosts for migration when suitableHosts is null
* Remove unnecessary stubbings
* Fix checkstyle
* Remove unnecessary file
* Rename exception error messages
* Apply suggestions from code review
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
* Rename UserVmDetailVO references to VMInstanceDetailVO
* Remove unused imports
* Add new line at EOF
* Remove unnecessary random allocator pom
* Fix GPU allocation mistake
* Fix failing tests
---------
Co-authored-by: Fabricio Duarte <fabricio.duarte@scclouds.com.br>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
2026-04-30 10:30:02 -03:00
julien-vaz
a73cc9a22c
Improve Quota Statement ( #10506 )
...
* Improve Quota Statement
* Removes unused import
* Fix QuotaUsageJoinDao, QuotaResponseBuilderImpl, QuotaServiceImpl e QuotaServiceImplTest
* Reorganize imports
* Updates QuotaStatementCmd responseBuilder scope to default
* Fix log4j syntax
* Address reviews + other improvements
* Add missing SQL scripts and injections
* Change accountid and domainid logic + add unit tests
* Rename QuotaUsageDetail to QuotaTariffUsage
* Fix out of bounds exception
---------
Co-authored-by: Julien Hervot de Mattos Vaz <julien.vaz@scclouds.com.br>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
2026-04-29 21:09:13 -03:00
Henrique Sato
6f4445c5c1
Add offering preset variables for `Network` and `VPC` Quota tariffs ( #11810 )
...
* Add offering preset variable to Network and VPC tariffs
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
* Add tests
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
2026-04-27 09:36:37 -03:00
Suresh Kumar Anaparti
ffebe8eaa6
Fix bulk power state query missing VM lifecycle state field ( #13027 )
...
* Fix bulk power state query missing VM lifecycle state field
The IdsPowerStateSelectSearch partial select did not include the VM
lifecycle state, causing isPowerStateInSyncWithInstanceState to always
return true when state was null. This prevented retry of failed
StopCommands on subsequent ping cycles.
* Add defensive check for instance host ID to prevent NPE
Co-authored-by: Sachin R Doddaguni <s_rudrappadoddagu@apple.com>
Co-authored-by: nvazquez <nicovazquez90@gmail.com>
2026-04-27 15:38:52 +05:30
Wei Zhou
f820d0125d
fix end of files and codespell errors
2026-04-17 13:58:21 +02:00
Wei Zhou
6c1437b7dd
fix end of file schema-42200to42210.sql
2026-04-17 13:56:17 +02:00
Suresh Kumar Anaparti
2d6280b9da
Merge branch '4.22'
2026-04-17 04:35:25 +05:30
Suresh Kumar Anaparti
13a2c7793c
Merge branch '4.20' into 4.22
2026-04-17 03:12:33 +05:30
Brad House
6e810989b6
HAProxy Configuration: network.loadbalancer.haproxy.idle.timeout ( #12586 )
...
* initial attempt at network.loadbalancer.haproxy.idle.timeout implementation
* implement test cases
* move idleTimeout configuration test to its own test case
2026-04-16 14:49:54 +05:30
Nicolas Vazquez
160876c6d7
Fix: API Thread held forever during force deleting across MS ( #12968 )
2026-04-15 08:41:26 +02:00
Erik Böck
5013cf2af6
Fix user password reset mail template value ( #12882 )
...
* Fix default user password reset email template
* improve readabilty
* change update query
* Specify database for update
* Fix SQL statement
* Use CONCAT_WS sql method to create multiline string
---------
Co-authored-by: GaOrtiga <49285692+GaOrtiga@users.noreply.github.com>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2026-04-15 10:06:39 +05:30
Harikrishna
0c86899cc1
Added VDDK support in VMware to KVM migrations ( #12970 )
2026-04-14 22:33:01 +05:30
Daan Hoogland
82bfa9fb3f
Merge branch '4.22'
2026-04-14 14:50:44 +02:00
Daan Hoogland
1085da4ef8
Merge commit '19b4ef106931aa1d6a8fed06984009d86760e4de' into 4.22
2026-04-14 13:15:05 +02:00
Suresh Kumar Anaparti
d75acb6efc
Fix rollback disk snapshots on instance snapshot failure ( #12949 )
2026-04-14 15:21:05 +05:30
Suresh Kumar Anaparti
feb6076930
Remove unused config consoleproxy.cmd.port ( #12807 )
...
* Remove unused config 'consoleproxy.cmd.port'
* Remove the config key
---------
Co-authored-by: dahn <daan@onecht.net>
2026-04-14 13:40:00 +05:30
julien-vaz
161b4177c2
Add logs for storage pools reordering ( #10419 )
...
Co-authored-by: Julien Hervot de Mattos Vaz <julien.vaz@scclouds.com.br>
2026-04-14 09:51:05 +02:00
Jtolelo
ae455ee193
VPC restart cleanup for Public networks with multi-CIDR data ( #12622 )
...
* Fix VPC restart with multi-CIDR networks: handle comma-separated CIDR in NetworkVO.equals()
When a network has multiple CIDRs (e.g. '192.168.2.0/24,160.0.0.0/24'),
NetworkVO.equals() passes the raw comma-separated string to
NetUtils.isNetworkAWithinNetworkB() which expects a single CIDR,
causing 'cidr is not formatted correctly' error during VPC restart
with cleanup=true.
Extract only the first CIDR value before passing to NetUtils.
* Fix root cause: skip CIDR/gateway updates for Public traffic type networks
addCidrAndGatewayForIpv4/Ipv6 (introduced by PR #11249 ) was called for all
network types without checking if the network is Public. This caused
comma-separated CIDRs to be stored on Public networks, which then triggered
'cidr is not formatted correctly' errors during VPC restart.
Add TrafficType.Public guard in both the VLAN creation (addCidr) and
VLAN deletion (removeCidr) paths in ConfigurationManagerImpl.
* Sanitize legacy network-level addressing fields for Public networks
---------
Co-authored-by: dahn <daan@onecht.net>
2026-04-13 15:40:26 +02:00
Abhisar Sinha
8eb162cb99
Updating pom.xml version numbers for release 4.20.4.0-SNAPSHOT
2026-04-13 15:48:18 +05:30
Fabricio Duarte
9f57a4dd19
Unhide setting `js.interpretation.enabled` ( #12605 )
...
* Unhide setting 'js.interpretation.enabled'
* Fix grammar mistake
2026-04-10 23:45:07 -03:00
Manoj Kumar
b196e97cc3
Prevent deletion of account and domain if either of them has deleted protected instance ( #12901 )
2026-04-10 15:51:22 +02:00
Bernardo De Marco Gonçalves
27e4d979f1
Clean up backup references to their schedules when the schedules are deleted ( #12401 )
...
* clean up backup schedule references after their deletion
* drop unused column
* address reviews
2026-04-10 14:51:52 +05:30
Wei Zhou
e297644ce1
KVM: Enable HA heartbeat on ShareMountPoint ( #12773 )
2026-04-10 14:12:40 +05:30
Suresh Kumar Anaparti
11538df710
Merge branch '4.22'
2026-04-10 12:02:40 +05:30
João Jandre
2a60305792
Fix snapshot chaining on Xen ( #12597 )
2026-04-10 11:05:26 +05:30
Suresh Kumar Anaparti
7b467496cb
Do not include snapshots with Group type in snapshots resource count ( #12945 )
2026-04-10 10:50:35 +05:30
Abhisar Sinha
4ba4bd33c3
replace GROUP_CONCAT with JSON_ARRAYAGG to avoid errors like Row 19 was cut by GROUP_CONCAT ( #12777 )
2026-04-10 09:39:03 +05:30
Nicolas Vazquez
b5858029bb
Fix listing service offerings with different host tags ( #12919 )
2026-04-09 10:55:47 +02:00
Suresh Kumar Anaparti
c3614098da
Merge branch '4.22'
2026-04-08 18:09:43 +05:30
Suresh Kumar Anaparti
abdf926219
Revert "Use lateral join (introduced in MySQL 8.0.14) with subquery on user_statistics table in account_view for netstats ( #12631 )" ( #12965 )
...
This reverts commit 58916eb608 .
2026-04-08 09:43:44 +05:30
Abhisar Sinha
c8599040b4
Updating pom.xml version numbers for release 4.20.3.0
...
Signed-off-by: Abhisar Sinha <abhisar.sinha@gmail.com>
2026-04-06 17:22:19 +05:30
Wei Zhou
6f1aa96b4c
engine/schema: fix new systemvm template is not registered during upgrade if hypervisor is not KVM ( #12952 )
...
* engine/schema: fix new systemvm template is not registered during upgrade if hypervisor is not KVM
2026-04-06 17:19:04 +05:30
Suresh Kumar Anaparti
e2d18c0748
Merge branch '4.22'
2026-04-02 10:30:18 +05:30
Wei Zhou
470812100e
server: set template type to ROUTING or USER if template type is not specified when upload a template ( #12768 )
2026-04-02 09:34:28 +05:30
Pearl Dsilva
b805766f4b
Fix Host setup when persistent networks exist ( #12751 )
2026-04-01 07:25:19 -04:00
Abhishek Kumar
e2497cfc4d
backport: default system vm template update implementation ( #12935 )
...
Fixes #12934
Backported from 889fc62
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2026-04-01 15:34:04 +05:30
julien-vaz
4f93ba888c
Refactor Quota Summary API ( #10505 )
...
* Refactor Quota Summary API
* Fixes imports
* Fix QuotaServiceImplTest
* Update plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
* Fix QuotaSummaryCmd
* Remove unnecessary imports
* Remove unused createQuotaSummaryResponse declarations
* Remove unnecessary imports
* Update plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaSummaryCmd.java
Co-authored-by: dahn <daan.hoogland@gmail.com>
* Fix QuotaSummaryCmd
* Fix QuotaResponseBuilderImplTest
* Refactor test
* Fix QuotaSummaryCmd
* Fix projectid behavior
* Simplify QuotaSummary and deprecate listall
* Fix createQuotaSummaryResponse
* Remove unused import
* Apply suggestions + some adjustments
* Remove duplicated check
* Fix checkstyle
* Adjust entity owner
* Remove unused method + fix tests
* Add missing @ACL to some parameters
* Adjust how the parameters behave
* Allow domain admins and users to use keyword
* Address reviews
---------
Co-authored-by: Julien Hervot de Mattos Vaz <julien.vaz@scclouds.com.br>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
2026-03-31 20:29:30 -03:00
Henrique Sato
7eea9ed448
Add API to enable/disable NICs for KVM ( #12819 )
2026-03-31 10:14:20 +02:00
Suresh Kumar Anaparti
68030df10b
VM start error handling improvements and config to expose error to users ( #12894 )
...
* VM start error handling improvements, and config to expose error to user
* refactor
2026-03-27 15:35:08 -03:00
owsferraro
131ea9f7ac
Fix PowerFlex 4.x issues with take & revert instance snapshots ( #12880 )
...
* fixed database update on snapshot with multiple volumes and an api change
* changed overwritevolumecontent based on powerflex version and removed unnecessary comments
* Update plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/client/ScaleIOGatewayClientImpl.java
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
* Update plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/client/ScaleIOGatewayClientImpl.java
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
* Update plugins/storage/volume/scaleio/src/main/java/org/apache/cloudstack/storage/datastore/client/ScaleIOGatewayClientImpl.java
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
---------
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2026-03-27 07:22:08 -03:00
Suresh Kumar Anaparti
1bff543e58
Merge branch '4.22'
2026-03-27 01:25:42 +05:30
Wei Zhou
4b7370a601
upgrade: skip the upgrade paths which are not needed ( #12881 )
...
* upgrade: skip the upgrade paths which are not needed
2026-03-26 13:08:12 +05:30
Suresh Kumar Anaparti
7c3637a2f5
Fix duplicate dummy templates, and update guest os for dummy template ( #12780 )
...
* Fix duplicate dummy template 'kvm-default-vm-import-dummy-template' entries
* Update guest os id of dummy template to 99 (Other Linux (64-bit)) from existing id: 1 (CentOS 4.5 (32-bit))
* update migration path to remove duplicate dummy templates
2026-03-24 18:01:26 +05:30
Nicolas Vazquez
7107d28db8
[VMware to KVM] Add guest OS for importing VM based on the source VM OS ( #12802 )
2026-03-24 15:06:38 +05:30
Suresh Kumar Anaparti
bce55945ec
Mark VMs in error state when expunge fails during destroy operation ( #12749 )
...
* Mark VMs in error state when expunge fails during destroy operation
* fetch volume by external id (used by external plugins)
* review comments
* Update reorder hosts log to DEBUG, log line is too verbose to have on as INFO
2026-03-24 00:29:14 -03:00