cloudstack/plugins
Suresh Kumar Anaparti 9dceae4614
MS maintenance improvements (#10417)
* Update last agents during ms maintenance, and some code improvements

* Send 503 (Service Unavailable) response status when maintenance or shutdown is initiated
[Any load balancer in the clustered environment can avoid routing requests to this MS node]

* Migrate systemvm agents before routing host agents, and some code improvements

* Added events for ms maintenance and shutdown operations

* Added the following ms maintenance and shutdown improvements

- block new agent connections during prepare for maintenance of ms

- maintain avoids ms list

- propagate updated management servers list and lb algorithm in host and indirect.agent.lb.algorithm settings respectively, to systemvm (non-routing) agents

- updated setup ms list and migrate agent connections to executor service

- migrate agent connection through executor, and send the answer to the ms host that initiated the migration

- re-initialize ssl handshake executor if it is shutdown

- don't allow prepare for maintenance or shutdown when other management server nodes are in preparing states

- don't allow trigger shutdown when management server is up and other management server nodes are in preparing states

- stop agent connections monitor on ms maintenance

- update avoid ms list in ready command

- updated connected host from the client connection

- update last agents in ms metrics from the database

- updated some agent config descriptions

- update last management server in the hosts during shutdown

- added agents and lastagents in management server response

- updated management server maintenance & shutdown unit tests

- some code improvements

* refactored code / addressed comments

* removed shutdown testcase (maybe, calling System.exit)

* Revert "removed shutdown testcase (maybe, calling System.exit)"

This reverts commit e14b071715.

* avoid system.exit during shutdown test

* code improvements

* testcase fix

* Fix cutoff time in agent connections monitor thread
2025-03-19 14:18:05 +05:30
..
acl Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
affinity-group-processors Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
alert-handlers Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
api Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
backup Merge branch '4.20' of https://github.com/apache/cloudstack 2025-03-17 13:26:50 -04:00
ca/root-ca Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
database Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
dedicated-resources Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
deployment-planners Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
drs/cluster Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
event-bus Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
host-allocators/random Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
hypervisors Merge branch '4.20' of https://github.com/apache/cloudstack 2025-03-10 09:34:52 -04:00
integrations Merge branch '4.20' of https://github.com/apache/cloudstack 2025-03-10 09:34:52 -04:00
maintenance MS maintenance improvements (#10417) 2025-03-19 14:18:05 +05:30
metrics MS maintenance improvements (#10417) 2025-03-19 14:18:05 +05:30
network-elements Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
storage Merge release branch 4.20 to main 2025-03-12 11:31:56 +01:00
storage-allocators/random Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
user-authenticators Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
user-two-factor-authenticators Updating pom.xml version numbers for release 4.19.3.0-SNAPSHOT 2025-02-25 10:43:11 +01:00
pom.xml Add Cloudian HyperStore Object Storage (#9748) 2025-03-10 07:38:40 +01:00