René's URL Explorer Experiment


Title: Convert command's timeout for snapshots commands by erikbocks · Pull Request #13210 · apache/cloudstack · GitHub

Open Graph Title: Convert command's timeout for snapshots commands by erikbocks · Pull Request #13210 · apache/cloudstack

X Title: Convert command's timeout for snapshots commands by erikbocks · Pull Request #13210 · apache/cloudstack

Description: Description The #9659 PR introduced the commands.timeout global configuration for granular command timeout definition. If a operator wishes to increase snapshot related timeouts, he could increase the CreateObjectCommand timeout in the commands.timeout configuration. The defined timeouts are set in seconds. However, normal and incremental snapshots creation flows use qemu-img script to execute some of the necessary operations. These scripts accept timeouts as milliseconds, but receive them as seconds from the CreateObjectCommand. This leads to incorrect timeouts. Therefore, this PR converts the CreateObjectCommand seconds to milliseconds before passing them to qemu-img scripts. Types of changes Breaking change (fix or feature that would cause existing functionality to change) New feature (non-breaking change which adds functionality) Bug fix (non-breaking change which fixes an issue) Enhancement (improves an existing feature and functionality) Cleanup (Code refactoring and cleanup, that may add test cases) Build/CI Test (unit or integration test code) Feature/Enhancement Scale or Bug Severity Bug Severity BLOCKER Critical Major Minor Trivial Screenshots (if appropriate): How Has This Been Tested? First, I set commands.timeout configuration value to CreateObjectCommand=300. This defines this command timeout to 5 minutes. Then, I tried to create a full volume snapshot. The process failed due to a timeout. Command timeout log 2026-05-21 15:04:44,122 DEBUG [c.c.a.m.ClusteredAgentManagerImpl] (Work-Job-Executor-13:[ctx-fe95241a, job-77/job-78, ctx-11fcb589]) (logid:d462b71a) Wait time setting on org.apache.cloudstack.storage.command.CreateObjectCommand is 300 seconds Failure log 2026-05-21 15:04:56,776 DEBUG [utils.script.Script] (AgentRequest-Handler-1:[]) (logid:d462b71a) Executing command [qemu-img convert -O qcow2 -U --image-opts driver=qcow2,file.filename=/mnt/4244ccc6-8f06-3f9c-87bc-a7ba8c1caae9/5331f95a-ec63-4a79-a28f-7642ed095875 /mnt/507fca2c-a424-3ffc-b5f6-f7fe9e7c17e7/snapshots/2/4/2ad278b7-e1fa-4331-ae36-4ba67db4097b ]. 2026-05-21 15:04:57,080 WARN [utils.script.Script] (AgentRequest-Handler-1:[]) (logid:d462b71a) Process [14516] for command [qemu-img convert -O qcow2 -U --image-opts driver=qcow2,file.filename=/mnt/4244ccc6-8f06-3f9c-87bc-a7ba8c1caae9/5331f95a-ec63-4a79-a28f-7642ed095875 /mnt/507fca2c-a424-3ffc-b5f6-f7fe9e7c17e7/snapshots/2/4/2ad278b7-e1fa-4331-ae36-4ba67db4097b ] timed out. Output is []. I installed the packages with the timeout conversion to my local environment, then tried to create another snapshot. Using a debug breakpoint, I validated that the qemu-img script instance had the converted timeout. The new snapshot was created successfully, When trying to create a incremental snapshot, the same error occurred. Then, I installed the packages with the necessary changes and tried to create another incremental snapshot. This process also used debug breakpoints to validate the scripts timeout.

Open Graph Description: Description The #9659 PR introduced the commands.timeout global configuration for granular command timeout definition. If a operator wishes to increase snapshot related timeouts, he could increase ...

X Description: Description The #9659 PR introduced the commands.timeout global configuration for granular command timeout definition. If a operator wishes to increase snapshot related timeouts, he could increase ...

Opengraph URL: https://github.com/apache/cloudstack/pull/13210

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:50024507-3592-088d-6659-ccf91179d492
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id950E:1BD3C:B3F22:FEA85:6A4DFA8F
html-safe-nonce72a0b05d76fea8e5da73b64a23ed70bade5723577ee0a79955472605557381ab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTBFOjFCRDNDOkIzRjIyOkZFQTg1OjZBNERGQThGIiwidmlzaXRvcl9pZCI6IjgxNjI2MjcxNTUwNDMxNTQ1NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8a69c390ebe8f6fd3f627f00b77f8c6c1084680994c95b68fcf5a88371afc9ce
hovercard-subject-tagpull_request:3724390742
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/apache/cloudstack/pull/13210/files
twitter:imagehttps://avatars.githubusercontent.com/u/89930804?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/89930804?s=400&v=4
og:image:altDescription The #9659 PR introduced the commands.timeout global configuration for granular command timeout definition. If a operator wishes to increase snapshot related timeouts, he could increase ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4314b1df11fa8a565684f3a72dc971e3785da365
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/pull/13210/changes#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fpull%2F13210%2Ffiles
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%2Fpull%2F13210%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/pull/13210/changes
Reloadhttps://github.com/apache/cloudstack/pull/13210/changes
Reloadhttps://github.com/apache/cloudstack/pull/13210/changes
Please reload this pagehttps://github.com/apache/cloudstack/pull/13210/changes
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 268 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
Sign up for GitHub https://github.com/signup?return_to=%2Fapache%2Fcloudstack%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fapache%2Fcloudstack%2Fissues%2Fnew%2Fchoose
winterhazelhttps://github.com/winterhazel
apache:4.20https://github.com/apache/cloudstack/tree/4.20
scclouds:fix-snapshot-timeouthttps://github.com/scclouds/cloudstack/tree/fix-snapshot-timeout
Conversation 22 https://github.com/apache/cloudstack/pull/13210
Commits 3 https://github.com/apache/cloudstack/pull/13210/commits
Checks 50 https://github.com/apache/cloudstack/pull/13210/checks
Files changed https://github.com/apache/cloudstack/pull/13210/files
Please reload this pagehttps://github.com/apache/cloudstack/pull/13210/changes
Convert command's timeout for snapshots commands https://github.com/apache/cloudstack/pull/13210/changes#top
Show all changes 3 commits https://github.com/apache/cloudstack/pull/13210/files
efea579 Convert snapshot command timeout from seconds to millisecconds for Qe… erikbocks May 21, 2026 https://github.com/apache/cloudstack/pull/13210/commits/efea579af77b7f28d9b06c8cb83188d222e6dce2
8997913 Change QemuImg helper timeout type from int to long erikbocks May 27, 2026 https://github.com/apache/cloudstack/pull/13210/commits/8997913fde2d91c16905408d0bfed37e7cc2491d
6dc2f8e Adjust convertion erikbocks May 27, 2026 https://github.com/apache/cloudstack/pull/13210/commits/6dc2f8ead3e2732353d7c48c7ede7e27d324fe49
Clear filters https://github.com/apache/cloudstack/pull/13210/files
Please reload this pagehttps://github.com/apache/cloudstack/pull/13210/changes
Please reload this pagehttps://github.com/apache/cloudstack/pull/13210/changes
KVMStorageProcessor.java https://github.com/apache/cloudstack/pull/13210/changes#diff-8a24835eeac038da0df1229615ce6ce564f2e49273abb55f4c9a90dedd29c222
QemuImg.java https://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
...s/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.javahttps://github.com/apache/cloudstack/pull/13210/changes#diff-8a24835eeac038da0df1229615ce6ce564f2e49273abb55f4c9a90dedd29c222
View file https://github.com/scclouds/cloudstack/blob/6dc2f8ead3e2732353d7c48c7ede7e27d324fe49/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/cloudstack/pull/13210/{{ revealButtonHref }}
https://github.com/apache/cloudstack/pull/13210/changes#diff-8a24835eeac038da0df1229615ce6ce564f2e49273abb55f4c9a90dedd29c222
https://github.com/apache/cloudstack/pull/13210/changes#diff-8a24835eeac038da0df1229615ce6ce564f2e49273abb55f4c9a90dedd29c222
plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.javahttps://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
View file https://github.com/scclouds/cloudstack/blob/6dc2f8ead3e2732353d7c48c7ede7e27d324fe49/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/cloudstack/pull/13210/{{ revealButtonHref }}
https://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
https://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
https://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
https://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
https://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
https://github.com/apache/cloudstack/pull/13210/changes#diff-8c9bad5e83a17ce03945d04eea177a39d57f52b92c32cdc86888cedbc49d9a84
Please reload this pagehttps://github.com/apache/cloudstack/pull/13210/changes
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.