Abhishek Kumar
03a4b9f4fd
server,utils: improve js interpretation functionality
...
Make JS interpretation functionalities configurable via a hidden config
- js.interpretation.enabled
Default value is false, making such functionalities disabled, ie, new
heuristic rules cannot be added or updated.
For JsInterpretor, use --no-java --no-syntax-extensions args and a deny-all ClassFilter.
Replace string-spliced vars with ENGINE_SCOPE Bindings, use a fresh ScriptContext per run, and compile before eval.
Use a named daemon worker with hard timeouts and capture stdout.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-10-16 09:49:36 +02:00
Abhishek Kumar
c8d44d92a7
api,server: fix entity access
...
Added access check for:
- createNetworkACL
- listNetworkACLs
- listResourceDetails
- listVirtualMachinesUsageHistory
- listVolumesUsageHistory
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-10-16 09:49:34 +02:00
Wei Zhou
4327871036
Routed: fix create network exception when auto-allocation is disabled ( #11624 )
...
* Routed: fix create network exception when auto-allocation is disabled for regular users
* routed: throw InvalidParameterValueException instead of CloudRuntimeException which gives vague message to regular users
2025-10-14 13:00:33 +02:00
Wei Zhou
86cad79c15
importvm: fix IP address allocation on Shared networks ( #11811 )
2025-10-13 08:16:46 +02:00
Abhisar Sinha
4d95f08a3a
Delete template from storage pool instantly if no volume is using it ( #11782 )
2025-10-09 09:41:18 +02:00
Wei Zhou
89d2b17461
storage: change storage pool to Up state when cancel storage migration ( #11773 )
...
* storage: change storage pool to Up state when cancel storage migration
* Update 11773: connect host to shared pool after cancelling storage migration
* Update 11773: update db only
* Update 11773: skip capacity update for storpool
2025-10-08 15:34:59 +02:00
Wei Zhou
963a67b816
server: add user.password.reset.smtp.useStartTLS and enabledSecurityProtocols for password reset ( #11228 )
2025-10-07 10:19:57 +05:30
Alexandru Bagu
8e4dc0a66d
VMware: match nic mac for ip address fetch ( #10641 )
2025-10-04 11:49:26 +02:00
Wei Zhou
c631d6a480
CKS: generate a random UUID as password of CKS user in project ( #11639 )
2025-10-01 08:47:58 +02:00
Abhisar Sinha
70af55e848
UI support for extraconfig in deploy and update instance ( #11719 )
2025-09-30 09:20:44 +02:00
Nicolas Vazquez
30cb8c7a82
Fix importing unmanaged instances due to incorrect internal name ( #11753 )
2025-09-30 09:01:07 +02:00
Abhishek Kumar
98b9af2904
server: set VirtualMachineTO arch from template if present ( #11530 )
...
* server: set VirtualMachineTO arch from template if present
Fixes #11529
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
---------
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-09-24 09:21:40 +02:00
Manoj Kumar
a18b5514e6
kvm: honor templateId passed in importVM API ( #11640 )
2025-09-24 08:34:18 +02:00
Nicolas Vazquez
1a223fd2ba
server: Fix VM import DB sequence issue on import failure ( #11659 )
...
* Fix VM import DB sequence issue on import failure
* Remove ununsed imports
* Refactor to avoid duplicating the next ID for VM sequence
2025-09-23 08:48:18 +02:00
Suresh Kumar Anaparti
40dec99659
server: Cleanup allocated snapshots / vm snapshots, and update pending ones to Error on MS start ( #8452 )
...
* Remove allocated snapshots / vm snapshots on start
* Check and Cleanup snapshots / vm snapshots on MS start
* rebase fixes
* Update volume state (from Snapshotting) on MS start when its snapshot job not finished and snapshot in Creating state
2025-09-23 08:37:10 +02:00
Suresh Kumar Anaparti
12513e18fa
server: Update gson date format for serializing/deserializing Date in MS stats ( #11506 )
...
* Update gson date format for serializing/deserializing Date in MS stats (across multiple management servers)
* review
* review comments, and unit tests
* added unit test with different date format
* Use separate Gson for MS stats serialization/deserialization
2025-09-22 12:22:50 +02:00
Vishesh
9167cd3b72
server: use /prod/stat to get uptime instead of the uptime command ( #11670 )
2025-09-19 14:08:12 +02:00
Suresh Kumar Anaparti
cd69f2ce16
server: Fix NPE during VM IP fetch for shared networks ( #11389 )
...
* Fix NPE during VM IP fetch for shared networks
* PR 11389: add missing import org.apache.commons.lang3.ObjectUtils
---------
Co-authored-by: Wei Zhou <weizhou@apache.org>
2025-09-15 10:14:06 +02:00
Abhishek Kumar
2cd7d8a315
server: check limit on correct store during snapshot allocation ( #11558 )
...
Fixes #11551
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-09-15 09:11:26 +02:00
Suresh Kumar Anaparti
6d16ac2113
ScaleIO/PowerFlex smoke tests improvements, and some fixes ( #11554 )
...
* ScaleIO/PowerFlex smoke tests improvements, and some fixes
* Fix test_volumes.py, encrypted volume size check (for powerflex volumes)
* Fix test_over_provisioning.py (over provisioning supported for powerflex)
* Update vm snapshot tests
* Update volume size delta in primary storage resource count for user vm volumes only
The VR volumes resource count for PowerFlex volumes is updated here, resulting in resource count discrepancy
(which is re-calculated through ResourceCountCheckTask later, and skips the VR volumes)
* Fix test_import_unmanage_volumes.py (unsupported for powerflex)
* Fix test_sharedfs_lifecycle.py (volume size check for powerflex)
* Update powerflex.connect.on.demand config default to true
2025-09-12 16:17:20 +02:00
Vishesh
253ac03621
Management server: fix qemu-img path in cloudstack sudoers ( #11614 )
2025-09-12 11:28:50 +02:00
Abhishek Kumar
e3681a04bb
server: allow migration of vm with snapshots for vmware ( #9305 )
...
Fixes #9061
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-09-10 12:25:16 +02:00
Wei Zhou
7044564bab
Merge remote-tracking branch 'apache/4.19' into 4.20
2025-09-09 19:42:42 +02:00
Abhishek Kumar
f26f8cce17
server: allow adding non-overlapping ipv6 ranges in same vlan ( #11556 )
...
Fixes #11527
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Wei Zhou <weizhou@apache.org>
2025-09-09 14:51:39 +02:00
Abhishek Kumar
fe120b64e7
server: prevent vm schedule update failure for time when not changed ( #11314 )
...
Fixes #11175
Behaviour introduced in #7397 always validates start-end times during
update even when they are not changed which leads to failure to
enable/disable schedule if the start time has passed.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-09-09 11:34:28 +02:00
Wei Zhou
f99942cf9a
Merge remote-tracking branch 'apache/4.19' into 4.20
2025-09-08 10:00:01 +02:00
Abhishek Kumar
a4cf47a9b8
server: remove extra chars when template status is error string ( #11329 )
...
Fixes #11324
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2025-09-03 13:00:26 +02:00
Harikrishna
fd46e61032
Added events for snapshots, vmsnapshots, internalLB operations ( #11230 )
...
* Added events for snapshots, vmsnapshots, internalLB operations
* Update server/src/main/java/com/cloud/resource/ResourceManagerImpl.java
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
* small fix
* Unit test - ArgumentMatchers change
Co-authored-by: dahn <daan.hoogland@gmail.com>
* Unit test - ArgumentMatchers change
Co-authored-by: dahn <daan.hoogland@gmail.com>
---------
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
2025-09-02 18:02:30 +05:30
Suresh Kumar Anaparti
ca62a7dd50
Merge branch '4.19' into 4.20
2025-08-29 15:31:00 +05:30
Wei Zhou
ba7ec88650
SG: Apply rules for both ipv4/ipv6 of VMs with associated account/SG ( #11243 )
2025-08-29 11:39:50 +02:00
Suresh Kumar Anaparti
56b97f8255
Merge branch '4.19' into 4.20
2025-08-07 18:02:55 +05:30
Wei Zhou
b9864cb1e1
server: fix vm deployment without networkid in a zone with shared networks ( #11242 )
2025-08-06 05:14:40 +02:00
Pearl Dsilva
1dc134a3ec
UI: Display NSX Provider only when NSX is the selected Isolation method ( #11142 )
2025-07-30 14:11:13 +02:00
Daan Hoogland
be08fff32b
Merge branch '4.19' into 4.20
2025-07-29 15:29:59 +02:00
Abhishek Kumar
4b1a605e59
server: fix IllegalMonitorStateException on cluster managedstate change ( #11310 )
...
* server: fix IllegalMonitorStateException on cluster managedstate change
Fixes #11293
* Update server/src/main/java/com/cloud/resource/ResourceManagerImpl.java
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2025-07-29 18:33:05 +05:30
Suresh Kumar Anaparti
1961aea770
Merge branch '4.19' into 4.20
2025-07-29 18:18:33 +05:30
Nicolas Vazquez
8756be5c18
[Multi-Arch] Select Template Arch when creating template from volume ( #11068 )
...
Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
Co-authored-by: Vishesh <vishesh92@gmail.com>
2025-07-29 11:41:43 +02:00
Manoj Kumar
a32738c52e
Prevent infinite autoscaling ( #11244 )
...
* Prevent infinite autoscaling
* Update server/src/main/java/com/cloud/network/as/AutoScaleManagerImpl.java
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2025-07-29 11:41:30 +05:30
Daan Hoogland
609efcc231
Merge branch '4.19' into 4.20
2025-07-25 22:01:17 +02:00
Pearl Dsilva
890386e949
Allow custom NTP servers for CPVM ( #11210 )
2025-07-25 15:21:06 +02:00
Suresh Kumar Anaparti
75a2b3cc54
Validate qcow2 file during import operation ( #11264 )
2025-07-25 11:17:14 +02:00
Nicolas Vazquez
a51a04efc2
[Vmware to KVM Migration] Preserve boot type and boot mode of instances to be migrated ( #10975 )
...
* [Vmware to KVM Migration] Preserve boot type and boot mode of instances to be migrated
* Restore end of line
* Extract lines to new method
* Address review comments
2025-07-25 12:30:42 +05:30
dahn
4111061d29
list only own zones for resource admin ( #11087 )
...
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2025-07-24 09:26:57 +02:00
Manoj Kumar
264e404108
Fix for dynamic scaling toggle for instance ( #11086 )
...
* Fix for dynamic scaling toggle for instance
* Update api/src/main/java/org/apache/cloudstack/api/response/CapabilitiesResponse.java
---------
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2025-07-24 09:30:20 +05:30
Abhisar Sinha
1b74c2dd3f
Fix restore from NAS backup when datadisk is older than the root disk. ( #11258 )
2025-07-23 12:45:47 +02:00
Manoj Kumar
3fc02ddd45
Add format and physicalsize in listIsoOs api response ( #11214 )
2025-07-21 15:52:38 +05:30
Pearl Dsilva
23de6c7db4
Fix update resource count failure for domains ( #11138 )
2025-07-18 22:35:38 +02:00
Bernardo De Marco Gonçalves
bf46458578
List templates and ISOs by domain ( #11179 )
2025-07-17 09:01:49 +02:00
Daan Hoogland
61e74e086b
Merge branch '4.19' into 4.20
2025-07-14 10:37:06 +02:00
Abhisar Sinha
7715b3dc29
Improve the error throws when a template to owned by a non root-admin is registered for all zones. ( #11170 )
2025-07-10 09:39:13 +02:00