René's URL Explorer Experiment


Title: Hosts get stuck in Alert state after update to cloudstack 4.22.1.0 · Issue #13497 · apache/cloudstack · GitHub

Open Graph Title: Hosts get stuck in Alert state after update to cloudstack 4.22.1.0 · Issue #13497 · apache/cloudstack

X Title: Hosts get stuck in Alert state after update to cloudstack 4.22.1.0 · Issue #13497 · apache/cloudstack

Description: problem Symptom: My hosts are getting stuck in an Alert state with cloudstack 4.22.1.0. Restarting the agents, rebooting the hosts, and even reinstalling and re-adding the hosts does not fix the issue. Cause: When the management server s...

Open Graph Description: problem Symptom: My hosts are getting stuck in an Alert state with cloudstack 4.22.1.0. Restarting the agents, rebooting the hosts, and even reinstalling and re-adding the hosts does not fix the is...

X Description: problem Symptom: My hosts are getting stuck in an Alert state with cloudstack 4.22.1.0. Restarting the agents, rebooting the hosts, and even reinstalling and re-adding the hosts does not fix the is...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hosts get stuck in Alert state after update to cloudstack 4.22.1.0","articleBody":"### problem\n\nSymptom: My hosts are getting stuck in an Alert state with cloudstack 4.22.1.0. Restarting the agents, rebooting the hosts, and even reinstalling and re-adding the hosts does not fix the issue.\n\nCause: When the management server sends a ReadyCommand to the agent, it takes an excessively long time, so the management server tries to reinitialize the agent and eventually just kills the connection. The agent is able to communicate with the management server perfectly fine, so it is not a network issue or SSL issue as the SSL handshake succeeded and logs indicate they are able to communicate.\n\nRoot cause: The ReadyCommand process was modified in 4.22.1.0 such that it could be excessively slow. The change comes from #12970 in the detectVddkLibDir() function, which is called even if we do not use any instance conversion or VDDK. The function executes a shell command defined in VDDK_AUTODETECT_PATH_CMD, which performs a linux find search over the entire host OS. This should never be on the critical path or on anything that needs to complete quickly. We have large, mounted network filesystems in our hosts, so trying to search the entire filesystem will take minutes and lead to the timeouts and the corresponding Alert state.\n\n### versions\n\nCloudstack version: 4.22.1.0\nHypervisor: KVM\nStorage: NFS mounted filesystems\n\n### The steps to reproduce the bug\n\n1. Have a complex host OS filesystem with many directories, some of which may be network mounted. Basically any setup where doing a search of the entire filesystem from the root directory takes more than a few minutes.\n2. Restart an agent on a host.\n3. Management server will show the Alert state after being in the Connecting state for a couple minutes.\n\n### What to do about it?\n\nWorkaround: Till a fix can be implemented, my current workaround is to define a dummy vddk directory for each host and provide this directory in the agent.properties files under vddk.lib.dir. This avoids the expensive search, which allows my hosts to finish the ReadyCommand quickly and enter the Up state. Here's an example script that performs the workaround:\n```shell\n#!/bin/bash\n\nsudo mkdir -p /workaround/vmware-vix-disklib-distrib/lib64\nsudo touch /workaround/vmware-vix-disklib-distrib/lib64/libvixDiskLib.so\nif ! sudo grep -q \"vddk.lib.dir\" /etc/cloudstack/agent/agent.properties; then\n    echo \"vddk.lib.dir=/workaround/vmware-vix-disklib-distrib\" | sudo tee -a /etc/cloudstack/agent/agent.properties\nfi\n```\n\nFix: I don't know what the desired long-term fix is, but it should definitely not involve recursively searching the entire root filesystem when trying to connect a host to the management server. Removing the library directory auto-detection may be the easiest fix since users could just specify the library path if they choose to enable the optional vddk feature. Another possibility is to ensure the optional features are enabled before trying to search for libraries. The hostSupportsVddk function executes the hostSupportsInstanceConversion() function at the end, but it could be done earlier before the expensive detectVddkLibDir() function is called. However, changes like this may be hiding the true issue of performing an expensive filesystem search in the critical path of connecting hosts. If there's a faster way of finding the library, that would be an ideal solution, but that may not be possible without knowing where it's installed. Restricting the search to well-known library installation locations may be one way to reduce the search time. Lastly, it would be good if the command had a timeout specified rather than the default timeout, which is 1 hour. I saw some other places use the timeout specified in the agent.properties file, but that didn't apply to this command. Users may struggle to find detailed timeout configurations, so this wouldn't be a great fix, but at least it would allow the timeout to be user-controllable.","author":{"url":"https://github.com/timmyzhu","@type":"Person","name":"timmyzhu"},"datePublished":"2026-06-26T05:33:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/13497/cloudstack/issues/13497"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a7e73078-a13c-1ab8-fa19-dac251dd3d4e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F0A:73D9:CA1600:127D897:6A4E28A6
html-safe-nonce090f6cb31f5c6133275ae7034daf5dea2c58d6182fa642b36afa7fbf631caf72
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjBBOjczRDk6Q0ExNjAwOjEyN0Q4OTc6NkE0RTI4QTYiLCJ2aXNpdG9yX2lkIjoiNDY5Njk5NjM1MzE4NzYxNjM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0d53f675e82869c2d81b9ff5f1436a27ec2f37218943440f2d9133d3ce9b9034
hovercard-subject-tagissue:4749531829
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/13497/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4878c9758f625a792544ba1ccacd5f78ae4830e1b3a33f033954ec26eeceb664/apache/cloudstack/issues/13497
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4878c9758f625a792544ba1ccacd5f78ae4830e1b3a33f033954ec26eeceb664/apache/cloudstack/issues/13497
og:image:altproblem Symptom: My hosts are getting stuck in an Alert state with cloudstack 4.22.1.0. Restarting the agents, rebooting the hosts, and even reinstalling and re-adding the hosts does not fix the is...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametimmyzhu
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
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
released9dd20d38f8ae3c4cb6b597807431db300d0bd2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/13497#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F13497
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F13497
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/13497
Reloadhttps://github.com/apache/cloudstack/issues/13497
Reloadhttps://github.com/apache/cloudstack/issues/13497
Please reload this pagehttps://github.com/apache/cloudstack/issues/13497
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 267 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
Hosts get stuck in Alert state after update to cloudstack 4.22.1.0https://github.com/apache/cloudstack/issues/13497#top
bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/timmyzhu
timmyzhuhttps://github.com/timmyzhu
on Jun 26, 2026https://github.com/apache/cloudstack/issues/13497#issue-4749531829
#12970https://github.com/apache/cloudstack/pull/12970
bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22bug%22
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.