René's URL Explorer Experiment


Title: KVM Host HA: host reaches Fenced but VMs remain Running on failed host and HA work is marked Done without restart · Issue #12922 · apache/cloudstack · GitHub

Open Graph Title: KVM Host HA: host reaches Fenced but VMs remain Running on failed host and HA work is marked Done without restart · Issue #12922 · apache/cloudstack

X Title: KVM Host HA: host reaches Fenced but VMs remain Running on failed host and HA work is marked Done without restart · Issue #12922 · apache/cloudstack

Description: ISSUE TYPE Bug Report COMPONENT NAME KVM, HA, Orchestration CLOUDSTACK VERSION 4.22.x CONFIGURATION KVM cluster Host HA enabled VM HA enabled Shared storage - netapp NFS 4.1 2 management servers Host HA provider: kvmhaprovider OBM reconf...

Open Graph Description: ISSUE TYPE Bug Report COMPONENT NAME KVM, HA, Orchestration CLOUDSTACK VERSION 4.22.x CONFIGURATION KVM cluster Host HA enabled VM HA enabled Shared storage - netapp NFS 4.1 2 management servers Ho...

X Description: ISSUE TYPE Bug Report COMPONENT NAME KVM, HA, Orchestration CLOUDSTACK VERSION 4.22.x CONFIGURATION KVM cluster Host HA enabled VM HA enabled Shared storage - netapp NFS 4.1 2 management servers Ho...

Opengraph URL: https://github.com/apache/cloudstack/issues/12922

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"KVM Host HA: host reaches Fenced but VMs remain Running on failed host and HA work is marked Done without restart","articleBody":"##### ISSUE TYPE\n\n* Bug Report\n\n##### COMPONENT NAME\n\nKVM, HA, Orchestration\n\n##### CLOUDSTACK VERSION\n\n4.22.x\n\n##### CONFIGURATION\n\n- KVM cluster\n- Host HA enabled\n- VM HA enabled\n- Shared storage - netapp NFS 4.1\n- 2 management servers\n- Host HA provider: `kvmhaprovider`\n- OBM reconfigured to IPMI for this test\n- Relevant tuning applied before this test:\n  - `wait = 20`\n  - `kvm.ha.activity.check.interval = 20`\n  - `kvm.ha.activity.check.max.attempts = 5`\n  - `kvm.ha.degraded.max.period = 120`\n\n##### OS / ENVIRONMENT\n\nACS 4.22\nNetApp NFS 4.1\nUbuntu 24.04\nmysql  Ver 8.0.45-0ubuntu0.24.04.1\nlibvirt0:amd64   10.0.0-2ubuntu8.11 \n\n##### SUMMARY\n\nWhen a KVM host is powered off, CloudStack eventually fences the host, but some VMs that were on the failed host remain in `Running` state on that host and are not restarted elsewhere.\n\nIn this case:\n- the failed host reaches `ha_state = Fenced`\n- HA work items are created for the affected VMs with reason `HostDown`\n- those HA work items are marked `Done`\n- but the affected VMs still remain:\n  - `state = Running`\n  - `host_id = failed host`\n  - `power_state = PowerOn`\n  - `power_host = failed host`\n\nSo CloudStack appears to consider HA recovery complete even though the VMs are still recorded as running on a fenced/offline host.\n\n##### STEPS TO REPRODUCE\n\n1. Configure a KVM cluster with Host HA and VM HA enabled. (ipmi oob)\n2. Ensure there are user/system VMs running on host.\n3. Tune the HA settings as follows and restart management:\n   - `wait = 20`\n   - `kvm.ha.activity.check.interval = 20`\n   - `kvm.ha.activity.check.max.attempts = 5`\n   - `kvm.ha.degraded.max.period = 120`\n4. Power off host.\n5. Observe management logs and database state (`ha_config`, `op_ha_work`, `vm_instance`).\n\n##### EXPECTED RESULTS\n\nAfter the failed host is confirmed down and fenced:\n\n1. HA should identify all VMs that were on the failed host as unavailable.\n2. Those VMs should no longer remain `Running` on the failed host.\n3. CloudStack should either:\n   - transition them to `Stopped` and restart them on an eligible host, or\n   - at minimum correct their VM/power state to reflect that they are no longer running on the fenced host.\n4. HA work items should only be marked `Done` after the VM state and placement are consistent with the actual recovery result.\n\n##### ACTUAL RESULTS\n\nThe failed host reaches `Fenced` in `ha_config`:\n\n```sql\nselect * from ha_config;\n+----+-------------+---------------+---------+------------+---------------+--------------+---------------------+-----------------+\n| id | resource_id | resource_type | enabled | ha_state   | provider      | update_count | update_time         | mgmt_server_id  |\n+----+-------------+---------------+---------+------------+---------------+--------------+---------------------+-----------------+\n|  1 |           6 | Host          |       1 | Fenced     | kvmhaprovider |          131 | 2026-03-31 06:42:57 | 248902281439561 |\n|  2 |           5 | Host          |       1 | Ineligible | kvmhaprovider |           19 | 2026-03-31 06:31:21 | 248902281439561 |\n+----+-------------+---------------+---------+------------+---------------+--------------+---------------------+-----------------+\n\n```\n\n[logs.txt](https://github.com/user-attachments/files/26370096/logs.txt)\n\nHowever, multiple VMs still remain Running on the fenced host 6:\n\n```\nSELECT id, instance_name, state, host_id, last_host_id, power_state, power_host, update_time, power_state_update_time\nFROM vm_instance\nWHERE host_id = 6\nORDER BY id;\n\n+----+---------------+---------+---------+--------------+-------------+------------+---------------------+-------------------------+\n| id | instance_name | state   | host_id | last_host_id | power_state | power_host | update_time         | power_state_update_time |\n+----+---------------+---------+---------+--------------+-------------+------------+---------------------+-------------------------+\n| 78 | r-78-VM       | Running |       6 |            6 | PowerOn     |          6 | 2026-03-31 06:19:55 | 2026-03-31 06:26:12     |\n| 80 | v-80-VM       | Running |       6 |            6 | PowerOn     |          6 | 2026-03-31 06:19:15 | 2026-03-31 06:26:12     |\n| 84 | s-84-VM       | Running |       6 |            6 | PowerOn     |          6 | 2026-03-31 06:19:14 | 2026-03-31 06:26:12     |\n| 87 | i-2-87-VM     | Running |       6 |            6 | PowerOn     |          6 | 2026-03-31 06:21:56 | 2026-03-31 06:26:12     |\n| 88 | i-2-88-VM     | Running |       6 |            6 | PowerOn     |          6 | 2026-03-31 06:21:56 | 2026-03-31 06:26:12     |\n+----+---------------+---------+---------+--------------+-------------+------------+---------------------+-------------------------+\n```\n\nAt the same time, HA work is created for those affected VMs and marked Done with reason HostDown:\n\n```\nSELECT *\nFROM op_ha_work\nORDER BY id DESC\nLIMIT 50;\n\n+----+-------------+------+--------------------+---------+-----------------+---------+---------------------+-------+---------------------+------+-------------+---------+----------+\n| id | instance_id | type | vm_type            | state   | mgmt_server_id  | host_id | created             | tried | taken               | step | time_to_try | updated | reason   |\n+----+-------------+------+--------------------+---------+-----------------+---------+---------------------+-------+---------------------+------+-------------+---------+----------+\n| 85 |          88 | HA   | User               | Running | 248902281439561 |       6 | 2026-03-31 06:31:18 |     0 | 2026-03-31 06:31:18 | Done | 1733338553  |      18 | HostDown |\n| 84 |          87 | HA   | User               | Running | 248902281439561 |       6 | 2026-03-31 06:31:18 |     0 | 2026-03-31 06:31:18 | Done | 1733338553  |      13 | HostDown |\n| 83 |          78 | HA   | DomainRouter       | Running | 248902281439561 |       6 | 2026-03-31 06:31:18 |     3 | 2026-03-31 06:31:18 | Done | 1733338553  |     100 | HostDown |\n| 82 |          80 | HA   | ConsoleProxy       | Running | 248902281439561 |       6 | 2026-03-31 06:31:18 |     0 | 2026-03-31 06:31:18 | Done | 1733338553  |      35 | HostDown |\n| 81 |          84 | HA   | SecondaryStorageVm | Running | 248902281439561 |       6 | 2026-03-31 06:31:18 |     0 | 2026-03-31 06:31:18 | Done | 1733338553  |      30 | HostDown |\n+----+-------------+------+--------------------+---------+-----------------+---------+---------------------+-------+---------------------+------+-------------+---------+----------+\n\n```\n\nThis leaves CloudStack in an inconsistent state:\n\nhost is fenced\nHA work is complete\nbut VMs are still shown as running on the failed host\nand no failover/restart occurs for those VMs\n","author":{"url":"https://github.com/TimServers","@type":"Person","name":"TimServers"},"datePublished":"2026-03-31T06:50:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/12922/cloudstack/issues/12922"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2a22d639-2467-d5ca-d085-a5cb1053973c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA952:1960:1A62CDE:260746B:6A4F89A6
html-safe-noncebbe88015e6bffa7912272f77f052c2bafaa0ce37b24b0ee06f202840492d1b61
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTUyOjE5NjA6MUE2MkNERToyNjA3NDZCOjZBNEY4OUE2IiwidmlzaXRvcl9pZCI6Ijg1NjQxOTU4NjgzOTA5NTEzMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1f44d7f9f21cc20cd36575d4d1b90b4d67871af48fd8b64f3b36bf9843b31ddc
hovercard-subject-tagissue:4176428868
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/12922/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d971d679bf238678b546103957cd246506442b04578fed034b0fd74d576173da/apache/cloudstack/issues/12922
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d971d679bf238678b546103957cd246506442b04578fed034b0fd74d576173da/apache/cloudstack/issues/12922
og:image:altISSUE TYPE Bug Report COMPONENT NAME KVM, HA, Orchestration CLOUDSTACK VERSION 4.22.x CONFIGURATION KVM cluster Host HA enabled VM HA enabled Shared storage - netapp NFS 4.1 2 management servers Ho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTimServers
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/12922#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F12922
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F12922
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/12922
Reloadhttps://github.com/apache/cloudstack/issues/12922
Reloadhttps://github.com/apache/cloudstack/issues/12922
Please reload this pagehttps://github.com/apache/cloudstack/issues/12922
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 536 https://github.com/apache/cloudstack/issues
Pull requests 264 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
#7543https://github.com/apache/cloudstack/issues/7543
#13088https://github.com/apache/cloudstack/pull/13088
#7543https://github.com/apache/cloudstack/issues/7543
KVM Host HA: host reaches Fenced but VMs remain Running on failed host and HA work is marked Done without restarthttps://github.com/apache/cloudstack/issues/12922#top
#13088https://github.com/apache/cloudstack/pull/13088
https://github.com/sureshanaparti
4.22.1https://github.com/apache/cloudstack/milestone/44
https://github.com/TimServers
TimServershttps://github.com/TimServers
on Mar 31, 2026https://github.com/apache/cloudstack/issues/12922#issue-4176428868
logs.txthttps://github.com/user-attachments/files/26370096/logs.txt
sureshanapartihttps://github.com/sureshanaparti
Apache CloudStack 4.22.1https://github.com/orgs/apache/projects/565
4.22.1https://github.com/apache/cloudstack/milestone/44
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.