Commit Graph

36198 Commits

Author SHA1 Message Date
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
Abhishek Kumar de60fb64e8 fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 15:35:14 +05:30
Abhishek Kumar 9074c4b6ad address process vm power state report for transitioning VMs
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 15:22:16 +05:30
Abhishek Kumar 3e098b87a9 fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 15:22:02 +05:30
Abhishek Kumar df137fc387 refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 10:22:59 +05:30
mprokopchuk 31229e770b
Merge pull request #476 from shapeblue/update_host_capacity_vm_update_time_fix
Host capacity calculation: use VM creation time if update time is null
2024-09-09 16:41:59 -07:00
mprokopchuk 2755e338d8
Merge pull request #477 from shapeblue/list_events_sql_error
List Events returns intermittent SQL exception.
2024-09-09 16:41:20 -07:00
mprokopchuk fc79a87050 Fixed code review comments 2024-09-09 15:56:15 -07:00
mprokopchuk 97b07dbaae Fixed code review comments 2024-09-09 15:54:44 -07:00
Abhishek Kumar 61764aba1f cache and executors refactoring
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-09 19:39:50 +05:30
mprokopchuk 75f39cddc9
Merge pull request #473 from shapeblue/powerflex_on_demand_disable_config_key
PowerFlex on demand disable config key
2024-09-06 09:59:40 -07:00
Abhishek Kumar e798ab30b3 cache api permission in DynamicRoleBasedAPIAccessChecker
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-06 14:28:30 +05:30
Abhishek Kumar 8f6c657159 optimize scanStalledVms procedure
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-06 14:27:56 +05:30
mprokopchuk cf8dd76d4c renamed created_exists to created_column_not_exists in sql migration script 2024-09-06 01:25:04 -07:00
Abhishek Kumar af53644a0b utils: add wrapper for the loading cache
Follow up for #9628
Creates a utility class LazyCache which currently wraps Caffeine library Cache class.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-05 13:29:22 +05:30
Suresh Kumar Anaparti a15fe4f1f4
Added logs for on-demand connect/disconnect config 2024-09-05 12:49:47 +05:30
Abhishek Kumar 22227b0d01 ui: refactor config update/reset notification
Follow up from https://github.com/apache/cloudstack/pull/9628#discussion_r1743492807

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-05 12:47:36 +05:30