cloudstack/plugins
Vishesh 85bf6f239b
Externalise a few timeouts & fix timeout for hostSupportsUefi in libvirt ready command wrapper (#8547)
This PR fixes bug introduced in #8502. Timeout for script execution was set to 60 ms instead of 60s which resulted in host not getting UEFI enabled. This is a blocker for 4.19 release.

We do this by introducing a new agent parameter `agent.script.timeout` (default - 60 seconds) to use as a timeout for the script checking host's UEFI status.

We also externalize the timeout for the ReadyCommand by introducing a new global setting `ready.command.wait` (default - 60 seconds).

For ModifyStoragePoolCommand, we don't externalize the timeout to avoid confusion for the user. Since, the required timeout can vary depending on the provider in use and we are only setting the wait for default host listener for now. Instead, we reuse the global `wait` setting by dividing it by `5` making the default value of 6 minutes (1800/5 = 360s) for ModifyStoragePoolCommand.

Note: the actual time, the MS waits is twice the wait set for a Command. Check reference code below.
19250403e6/engine/orchestration/src/main/java/com/cloud/agent/manager/AgentAttache.java (L406-L442)
2024-01-29 12:43:23 -03:00
..
acl Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
affinity-group-processors Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
alert-handlers Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
api Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
backup Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
ca/root-ca Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
database Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
dedicated-resources Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
deployment-planners Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
drs/cluster Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
event-bus Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
host-allocators/random Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
hypervisors Externalise a few timeouts & fix timeout for hostSupportsUefi in libvirt ready command wrapper (#8547) 2024-01-29 12:43:23 -03:00
integrations FR03: NSX Integration (#1) 2024-01-24 12:24:15 -03:00
metrics Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
network-elements FR03: NSX Integration (#1) 2024-01-24 12:24:15 -03:00
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
shutdown Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
storage Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
storage-allocators/random Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
user-authenticators Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
user-two-factor-authenticators Updating pom.xml version numbers for release 4.19.0.0 2024-01-22 10:28:05 +05:30
pom.xml FR03: NSX Integration (#1) 2024-01-24 12:24:15 -03:00