Title: Add handling of Command's timeout on agent's implementation · Issue #8011 · apache/cloudstack · GitHub
Open Graph Title: Add handling of Command's timeout on agent's implementation · Issue #8011 · apache/cloudstack
X Title: Add handling of Command's timeout on agent's implementation · Issue #8011 · apache/cloudstack
Description: ISSUE TYPE Improvement Request COMPONENT NAME Agent, ServerResource CLOUDSTACK VERSION All versions CONFIGURATION N/A OS / ENVIRONMENT N/A SUMMARY The value for wait set in Command is not honored by agents (SSVM, host agent, etc.) while ...
Open Graph Description: ISSUE TYPE Improvement Request COMPONENT NAME Agent, ServerResource CLOUDSTACK VERSION All versions CONFIGURATION N/A OS / ENVIRONMENT N/A SUMMARY The value for wait set in Command is not honored b...
X Description: ISSUE TYPE Improvement Request COMPONENT NAME Agent, ServerResource CLOUDSTACK VERSION All versions CONFIGURATION N/A OS / ENVIRONMENT N/A SUMMARY The value for wait set in Command is not honored b...
Opengraph URL: https://github.com/apache/cloudstack/issues/8011
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add handling of Command's timeout on agent's implementation","articleBody":"\u003c!--\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release and main branch are affected too.\r\nAlways add information AFTER of these HTML comments, but no need to delete the comments.\r\n--\u003e\r\n##### ISSUE TYPE\r\n\u003c!-- Pick one below and delete the rest --\u003e\r\n * Improvement Request\r\n\r\n##### COMPONENT NAME\r\n\u003c!--\r\nCategorize the issue, e.g. API, VR, VPN, UI, etc.\r\n--\u003e\r\n~~~\r\nAgent, ServerResource\r\n~~~\r\n\r\n##### CLOUDSTACK VERSION\r\n\u003c!--\r\nNew line separated list of affected versions, commit ID for issues on main branch.\r\n--\u003e\r\n\r\n~~~\r\nAll versions\r\n~~~\r\n\r\n##### CONFIGURATION\r\n\u003c!--\r\nInformation about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise\r\n--\u003e\r\nN/A\r\n\r\n##### OS / ENVIRONMENT\r\n\u003c!--\r\nInformation about the environment if relevant, N/A otherwise\r\n--\u003e\r\nN/A\r\n\r\n##### SUMMARY\r\n\u003c!-- Explain the problem/feature briefly --\u003e\r\nThe value for [wait](https://github.com/apache/cloudstack/blob/main/api/src/main/java/com/cloud/agent/api/Command.java#L39) set in Command is not honored by agents (SSVM, host agent, etc.) while processing the request. These requests can also pile up if the same request is sent multiple times because of retries by user or the management server itself. This can potentially cause issues on SSVM and agents while executing long tasks leading to high wait times for commands to get executed on host agents, ssvm, etc.\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n\u003c!--\r\nFor bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.\r\n\r\nFor new features, show how the feature would be used.\r\n--\u003e\r\n\r\n\u003c!-- Paste example playbooks or commands between quotes below --\u003e\r\n1. Add a sleep in a ssvm command for 60 seconds and a log line before and after the sleep to check number of executions for that command.\r\n2. Send 100 requests in parallel which will execute the above ssvm command with cmd.setWait(5).\r\n3. Check logs on ssvm to check the actual number of requests received. \r\n\r\nNote: The above example is for a Command for which executeInSequence is false.\r\n\r\n\u003c!-- You can also paste gist.github.com links for larger files --\u003e\r\n\r\n##### EXPECTED RESULTS\r\n\u003c!-- What did you expect to happen when running the steps above? --\u003e\r\n\r\n~~~\r\nIf the request on management server times out in 5 seconds, the processing of command on SSVM should stop after 5 seconds as well.\r\n~~~\r\n\r\n##### ACTUAL RESULTS\r\n\u003c!-- What actually happened? --\u003e\r\nThe number of requests received on the SSVM would be executing these requests in batches of 10 requests or so. The requests would still get processed even if the server itself has timed out and no longer waiting for the answer. You will the log for both before sleep and after sleep.\r\n","author":{"url":"https://github.com/vishesh92","@type":"Person","name":"vishesh92"},"datePublished":"2023-09-27T18:02:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/8011/cloudstack/issues/8011"}
| 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:bb33c05f-c31b-4f24-21c6-c0f28a0cbbe9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F74:8AE8C:2C08E5B:3CDA9D2:6A4F08E4 |
| html-safe-nonce | 38f0ac836d3a68d7f327f7d47fba3d07e623955a59c29668c20ee6fb0ead0a0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Rjc0OjhBRThDOjJDMDhFNUI6M0NEQTlEMjo2QTRGMDhFNCIsInZpc2l0b3JfaWQiOiIzNDczMjUxODY1NDk1Mjc1NzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 823bf047f50d1608f4871404ee3d978fe7e00f088f8925189f8759a2857bb421 |
| hovercard-subject-tag | issue:1916071582 |
| 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/8011/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5660ff7eecab06b89411da9be44fc294d07f0a751eb176c2cfb3b0742fbec96d/apache/cloudstack/issues/8011 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5660ff7eecab06b89411da9be44fc294d07f0a751eb176c2cfb3b0742fbec96d/apache/cloudstack/issues/8011 |
| og:image:alt | ISSUE TYPE Improvement Request COMPONENT NAME Agent, ServerResource CLOUDSTACK VERSION All versions CONFIGURATION N/A OS / ENVIRONMENT N/A SUMMARY The value for wait set in Command is not honored b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vishesh92 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width