Title: test_mm_domain_limits fails intermittently due to unhandled memory resource limit error (errorCode 535) · Issue #13516 · apache/cloudstack · GitHub
Open Graph Title: test_mm_domain_limits fails intermittently due to unhandled memory resource limit error (errorCode 535) · Issue #13516 · apache/cloudstack
X Title: test_mm_domain_limits fails intermittently due to unhandled memory resource limit error (errorCode 535) · Issue #13516 · apache/cloudstack
Description: problem While working on PR #13490, I noticed the Simulator CI / test job intermittently fails on test_mm_domain_limits (test_03_delete_vm). The test calls deployVirtualMachine, which fails with CloudStack API errorCode 535: "Maximum amo...
Open Graph Description: problem While working on PR #13490, I noticed the Simulator CI / test job intermittently fails on test_mm_domain_limits (test_03_delete_vm). The test calls deployVirtualMachine, which fails with Cl...
X Description: problem While working on PR #13490, I noticed the Simulator CI / test job intermittently fails on test_mm_domain_limits (test_03_delete_vm). The test calls deployVirtualMachine, which fails with Cl...
Opengraph URL: https://github.com/apache/cloudstack/issues/13516
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_mm_domain_limits fails intermittently due to unhandled memory resource limit error (errorCode 535)","articleBody":"### problem\n\nWhile working on PR #13490, I noticed the Simulator CI / test job intermittently fails on test_mm_domain_limits (test_03_delete_vm).\n\nThe test calls deployVirtualMachine, which fails with CloudStack API errorCode 535: \"Maximum amount of resources of Type = 'memory' ... is exceeded\". Because the VM was never created, the test then attempts to delete a VM that doesn't exist, causing test_03_delete_vm to fail.\n\nThe test does not currently handle this resource-limit API error as a valid/expected outcome.\n\n### versions\n\nApache CloudStack version: main branch (4.23.0.0-SNAPSHOT)\nEnvironment: GitHub Actions Simulator CI (advanced zone), simulator hypervisor — not a real deployment\n\n### The steps to reproduce the bug\n\n1. Run the Simulator CI test suite including component/test_mm_domain_limits.py\n2. Observe test_03_delete_vm\n3. deployVirtualMachine fails with errorCode 535 (memory limit exceeded)\n4. Test then attempts to delete a VM that was never created, causing a failure\n\nCan also be reproduced locally with:\nnosetests-3.4 --with-marvin --marvin-config=setup/dev/advdualzone.cfg test/integration/component/test_mm_domain_limits.py:test_03_delete_vm -s -a tags=advanced\n\n### What to do about it?\n\nUpdate test_03_delete_vm in test/integration/component/test_mm_domain_limits.py to treat the CloudStack API errorCode 535 (memory resource limit exceeded) as an expected outcome, and only attempt VM deletion if creation succeeded. Example:\n\ntry:\n vm = VirtualMachine.create(self.apiclient, ...)\n vm_created = True\nexcept CloudstackAPIException as ex:\n if \"errorCode: 535\" in str(ex) or \"Maximum amount of resources of Type = 'memory'\" in str(ex):\n vm_created = False\n else:\n raise\n\nif vm_created:\n vm.delete(self.apiclient)\n\nAlternatively, the domain/project memory limit could be raised in test setup if VM creation is expected to succeed in this test.","author":{"url":"https://github.com/PrashantBhanage","@type":"Person","name":"PrashantBhanage"},"datePublished":"2026-06-30T03:50:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/13516/cloudstack/issues/13516"}
| 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:68dbe9e8-f19e-5ead-cfac-e7a0a7dbd84a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8B8:3D3A2:3E2586:54514C:6A4D5DA4 |
| html-safe-nonce | 58b8d6afe9ad3779c4e080f2e3c1b25b830d460cadc68fbddf069da0e56da329 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEI4OjNEM0EyOjNFMjU4Njo1NDUxNEM6NkE0RDVEQTQiLCJ2aXNpdG9yX2lkIjoiMjg2ODQ3ODU0Mjc0NzYyMjgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d056482fb845eab64513a6f183f91b46f87578596749dd9b1b6504ddb9a431c1 |
| hovercard-subject-tag | issue:4773516411 |
| 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/13516/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dbfb9440f760f63251b073e978327de648a708125c1d66006dc08a2b15722625/apache/cloudstack/issues/13516 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dbfb9440f760f63251b073e978327de648a708125c1d66006dc08a2b15722625/apache/cloudstack/issues/13516 |
| og:image:alt | problem While working on PR #13490, I noticed the Simulator CI / test job intermittently fails on test_mm_domain_limits (test_03_delete_vm). The test calls deployVirtualMachine, which fails with Cl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PrashantBhanage |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| 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 | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width