Commit Graph

36214 Commits

Author SHA1 Message Date
Abhishek Kumar 5f86dad4cb improve cluster overcommit value cache
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-09 16:28:24 +05:30
Abhishek Kumar 1589cde4e4 check for empty ids
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-09 16:27:39 +05:30
Abhishek Kumar 3e830252ab fix invalid range
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 17:36:55 +05:30
Abhishek Kumar 864afda935 backoff changes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 16:03:31 +05:30
Abhishek Kumar f85ac6adf9 add a todo
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:30:45 +05:30
Abhishek Kumar a3ea8603a9 during resource calculation directly return ids for service offering,
templates

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:28:26 +05:30
Abhishek Kumar 3f6b7b930a during resourcecalculation select specific fields for uservmjoinvo
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:27:26 +05:30
Abhishek Kumar a069e14cf9 directly return count for systemvms used in listInfra
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:25:25 +05:30
Abhishek Kumar c6cc136ce6 changes in pools for agent executors
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:24:09 +05:30
Abhishek Kumar 3fa9334954 limits changes for listing accounts and domains
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 17:30:56 +05:30
Abhishek Kumar 56d8ae371c minor test revert
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 16:36:03 +05:30
Abhishek Kumar c859f8ba80 changes in vm powerstate sync
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 16:25:14 +05:30
Abhishek Kumar a9661f4587 changes in statscollection
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 16:23:15 +05:30
Abhishek Kumar a5d02665b4 changes for host reqrieval from db
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 16:21:06 +05:30
Abhishek Kumar d2075415ac remove logs from DynamicRoleBasedAPIAccessChecker
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 15:32:06 +05:30
Abhishek Kumar b4fb97c886 change in account role caching
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-04 16:50:09 +05:30
Abhishek Kumar a74403bd97 revert logging changes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-04 16:49:39 +05:30
Abhishek Kumar 9afb25a969 fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-03 15:54:21 +05:30
Abhishek Kumar f7f9249be5 fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-30 18:09:34 +05:30
Abhishek Kumar d9269842d0 changes
- add timeout for CheckNetworkCommand
- use SychnonousQueue for ssl/tls handshake worker
- revert to TLSv1.2

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-30 17:40:42 +05:30
Abhishek Kumar adae7c88b8 changes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-27 13:00:38 +05:30
Abhishek Kumar fa50740514 wip
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-26 12:10:38 +05:30
Abhishek Kumar 1652086ff9 wip changes for agent reconnection
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-25 18:33:55 +05:30
Abhishek Kumar 0151f125aa improvement
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-23 20:04:34 +05:30
Abhishek Kumar 0ca8722c38 Merge remote-tracking branch 'apple/scalability-improvements' into scalability-improvements-fixes 2024-09-23 14:47:25 +05:30
Abhishek Kumar 1d0b90f984 Merge remote-tracking branch 'apple/apple-base418' into scalability-improvements 2024-09-23 14:45:21 +05:30
Suresh Kumar Anaparti a05a3f94b4
Updated powerflex connect on demand config description (#486) 2024-09-20 10:08:18 +05:30
Cheng Cheng 9f3380c4be
Add Functionality Enum to HypervisorType (#481)
* Commit for PR https://github.com/shapeblue/cloudstack-apple/pull/471

This PR adds a flag (customType) to HypervisorType to differentiate if a hypervisor plugin is built-in or customized.
With the customType flag, we can isolate conditional checks for allow the customized hypervisor plugin to proceed.

* Add customType field to HypervisorType to differentiate if the plugin is a customized type

* Address @shwstppr's comments

* Define a enum in HypervisorType to indicate specific functionalities of a hypervisor plugin type

* Refactoring to define if the hypervisor supports the operation during
initialization of the HypervisorType.

* Remove ROOT_DISK_SIZE_OVERRIDE_SUPPORTING_HYPERVISORS

---------

Co-authored-by: Annie Li <ji_li@apple.com>
2024-09-18 16:46:06 +05:30
Abhishek Kumar 0728e9ffdb Merge branch 'scalability-improvements' into scalability-improvements-fixes 2024-09-17 16:35:10 +05:30
Abhishek Kumar 8941fa550c build fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-17 15:50:14 +05:30
Abhishek Kumar 1176763755 fix unused imports
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-17 11:46:45 +05:30
Abhishek Kumar 0dd0934483 backport https://github.com/apache/cloudstack/pull/9518
Allows specifying connection pooling library. Default is HikariCP
2024-09-17 11:44:35 +05:30
Abhishek Kumar 35ed30bd51 continuation of 1d47e4d4ae
list host IDs instead of complete row where possible

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-16 18:03:06 +05:30
Abhishek Kumar 33321f00ce template list fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-16 14:28:51 +05:30
Abhishek Kumar 99115b9f09 server: cache cluster host type retrievals during connections
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 18:05:54 +05:30
Abhishek Kumar 97ddd17f94 fix related to 38d6c4e7e7
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 17:40:20 +05:30
Abhishek Kumar 1d47e4d4ae engine-schema,server,plugins: list host IDs instead whole row where
applicable

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 16:19:43 +05:30
Abhishek Kumar fe4ef05053 server,engine-schema: use single query to to list host capacities while
host capacity update

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 16:17:47 +05:30
Abhishek Kumar 98b27a409d engine-schema: fix get host type count searchcriteria
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 15:06:33 +05:30
Abhishek Kumar 38d6c4e7e7 optimize finding ready systemvm template for zone
Retrieving templates with inner join on host table was turning out to be
more expensive than finding distinct hypervisor types for a zone using
hsot table and then finding templates for those types

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 12:10:47 +05:30
Abhishek Kumar e1a5bd9ef2 improve agentlb sort when host list not needed
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 10:25:31 +05:30
Abhishek Kumar a1ee64344d address host/cluster dao listall
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 17:23:44 +05:30
Abhishek Kumar ad275e7a36 remove dead code
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 17:21:00 +05:30
Abhishek Kumar eb74974685 more test fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 17:00:57 +05:30
Abhishek Kumar 9e5c99ef9e fix tests from a78a2508e9
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 16:58:18 +05:30
Suresh Kumar Anaparti 51fea012ef
NPE fix, for test_hostha_kvm_host_fencing (#479) 2024-09-12 16:45:19 +05:30
Abhishek Kumar a78a2508e9 server: refactor MS list retrieval for agent connect
During agent join and while changing configs - host and indirect.agent.lb.algorithm, optimize calling DB for zone's host list

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 16:00:17 +05:30
Abhishek Kumar 68bab20d24 VMInstanceDao.updatePowerState refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 15:47:00 +05:30
Abhishek Kumar 1d11605787 remove todo as configkey caching is implemented
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-11 13:27:17 +05:30
Abhishek Kumar d5a774c736 import fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-11 11:44:48 +05:30