Title: Delay in determining a KVM host is down · Issue #10477 · apache/cloudstack · GitHub
Open Graph Title: Delay in determining a KVM host is down · Issue #10477 · apache/cloudstack
X Title: Delay in determining a KVM host is down · Issue #10477 · apache/cloudstack
Description: problem With the default configurations, CloudStack determines a KVM host is down in 15-20 minutes. The HA-enabled instances will be started on another host only after this process. While reviewing the delay for the host state investigat...
Open Graph Description: problem With the default configurations, CloudStack determines a KVM host is down in 15-20 minutes. The HA-enabled instances will be started on another host only after this process. While reviewing...
X Description: problem With the default configurations, CloudStack determines a KVM host is down in 15-20 minutes. The HA-enabled instances will be started on another host only after this process. While reviewing...
Opengraph URL: https://github.com/apache/cloudstack/issues/10477
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Delay in determining a KVM host is down","articleBody":"### problem\n\nWith the default configurations, CloudStack determines a KVM host is down in 15-20 minutes. The HA-enabled instances will be started on another host only after this process. While reviewing the delay for the host state investigation followed by a ping timeout I see one command that takes 10 minutes **'com.cloud.agent.api.CheckOnHostCommand** printing in the logs the following message 'timed out after 3600'. Later the host is determined as down via the neighbouring host quickly. \n\nI suspect there is some issue in this specific implementation and if fixed the VM HA delay in KVM could be reduced by 10 minutes. \n\n```\n2025-01-28 06:22:30,041 DEBUG [c.c.a.t.Request] (AgentTaskPool-4:ctx-1ece8add) (logid:49d74f9a) Seq 2-4979573812988215360: Sending { Cmd , MgmtId: 32988184186020, via: 2(ref-trl-5786-k-Mu22-jithin-raju-kvm2), Ver: v1, Flags: 100011, [{\"com.cloud.agent.api.CheckOnHostCommand\":{\"host\":{\"guid\":\"439751ba-a6eb-3103-b60d-8321f53224fb-LibvirtComputingResource\",\"privateNetwork\":{\"ip\":\"10.1.33.180\",\"netmask\":\"255.255.240.0\",\"mac\":\"1e:00:a9:00:0a:72\",\"isSecurityGroupEnabled\":\"false\"},\"storageNetwork1\":{\"ip\":\"10.1.33.180\",\"netmask\":\"255.255.240.0\",\"mac\":\"1e:00:a9:00:0a:72\",\"isSecurityGroupEnabled\":\"false\"}},\"reportCheckFailureIfOneStorageIsDown\":\"false\",\"wait\":\"0\",\"bypassHostMaintenance\":\"false\"}}] }\n2025-01-28 06:32:14,792 DEBUG [c.c.a.m.AgentAttache] (AgentTaskPool-4:ctx-1ece8add) (logid:49d74f9a) Seq 2-4979573812988215360: Waiting some more time because this is the current command\n2025-01-28 06:32:14,792 DEBUG [c.c.a.m.AgentAttache] (AgentTaskPool-4:ctx-1ece8add) (logid:49d74f9a) Seq 2-4979573812988215360: Waiting some more time because this is the current command\n2025-01-28 06:32:14,792 WARN [c.c.a.m.AgentAttache] (AgentTaskPool-4:ctx-1ece8add) (logid:49d74f9a) Seq 2-4979573812988215360: Timed out on Seq 2-4979573812988215360: { Cmd , MgmtId: 32988184186020, via: 2(ref-trl-5786-k-Mu22-jithin-raju-kvm2), Ver: v1, Flags: 100011, [{\"com.cloud.agent.api.CheckOnHostCommand\":{\"host\":{\"guid\":\"439751ba-a6eb-3103-b60d-8321f53224fb-LibvirtComputingResource\",\"privateNetwork\":{\"ip\":\"10.1.33.180\",\"netmask\":\"255.255.240.0\",\"mac\":\"1e:00:a9:00:0a:72\",\"isSecurityGroupEnabled\":\"false\"},\"storageNetwork1\":{\"ip\":\"10.1.33.180\",\"netmask\":\"255.255.240.0\",\"mac\":\"1e:00:a9:00:0a:72\",\"isSecurityGroupEnabled\":\"false\"}},\"reportCheckFailureIfOneStorageIsDown\":\"false\",\"wait\":\"0\",\"bypassHostMaintenance\":\"false\"}}] }\n2025-01-28 06:32:14,793 DEBUG [c.c.a.m.AgentAttache] (AgentTaskPool-4:ctx-1ece8add) (logid:49d74f9a) Seq 2-4979573812988215360: Cancelling.\n2025-01-28 06:32:14,793 WARN [c.c.a.m.AgentManagerImpl] (AgentTaskPool-4:ctx-1ece8add) (logid:49d74f9a) Operation timed out: Commands 4979573812988215360 to Host 2 timed out after 3600\n```\n\nhttps://gist.github.com/rajujith/9a51c52163eb4862b497057a40e8b812#file-acs-kvm-vm-ha-host-down\n\n### versions\n\n4.19.1.3\n\n### The steps to reproduce the bug\n\n1. Power off the host via ILO/IDRAC or power off the nested hypervisor through the base hypervisor.\n2. Observe the delay in VM HA and review the logs\n\n...\n\n\n### What to do about it?\n\nReduce the delay in the VM HA on KVM. ","author":{"url":"https://github.com/rajujith","@type":"Person","name":"rajujith"},"datePublished":"2025-02-27T06:05:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/10477/cloudstack/issues/10477"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:72ce5479-d7da-6b79-d759-eccfdaec6fa7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E72:16195D:65A0BEB:8E5431E:6A502460 |
| html-safe-nonce | 762498340871ffe515381693e2a6fc4a94ddfb05b0f306e98e4d1c17d04c189f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTcyOjE2MTk1RDo2NUEwQkVCOjhFNTQzMUU6NkE1MDI0NjAiLCJ2aXNpdG9yX2lkIjoiNzA1ODQ2MzY5OTcyODYwNjMwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 957f8356775657a69b43e47347f4a720f339fc58936e598a58c9411bb4b3146d |
| hovercard-subject-tag | issue:2883525303 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/10477/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36cb6fb5baf4e87808d5150b8cbd3f1da25b12b65e0c85044d18756f0869694f/apache/cloudstack/issues/10477 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36cb6fb5baf4e87808d5150b8cbd3f1da25b12b65e0c85044d18756f0869694f/apache/cloudstack/issues/10477 |
| og:image:alt | problem With the default configurations, CloudStack determines a KVM host is down in 15-20 minutes. The HA-enabled instances will be started on another host only after this process. While reviewing... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rajujith |
| hostname | github.com |
| expected-hostname | github.com |
| None | a08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1b91b18e7330fc458dfd824c61eaed7daa830d6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width