Title: Unable to delete account if the project is removed · Issue #12601 · apache/cloudstack · GitHub
Open Graph Title: Unable to delete account if the project is removed · Issue #12601 · apache/cloudstack
X Title: Unable to delete account if the project is removed · Issue #12601 · apache/cloudstack
Description: problem Unable to delete account if the project is removed versions ACS 4.22 The steps to reproduce the bug Create a project Create a account/user with User role Add User to the project, Select the project role as Admin Delete the projec...
Open Graph Description: problem Unable to delete account if the project is removed versions ACS 4.22 The steps to reproduce the bug Create a project Create a account/user with User role Add User to the project, Select the...
X Description: problem Unable to delete account if the project is removed versions ACS 4.22 The steps to reproduce the bug Create a project Create a account/user with User role Add User to the project, Select the...
Opengraph URL: https://github.com/apache/cloudstack/issues/12601
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to delete account if the project is removed","articleBody":"### problem\n\nUnable to delete account if the project is removed \n\n### versions\n\nACS 4.22 \n\n### The steps to reproduce the bug\n\n1. Create a project \n\n\u003cimg width=\"1447\" height=\"598\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e7f92d84-7540-4739-b2a6-01410024759b\" /\u003e\n\n\n2. Create a account/user with User role \n\n\u003cimg width=\"611\" height=\"844\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d09268f8-2a0f-4da4-a319-34c39a6606e7\" /\u003e\n\n3. Add User to the project, Select the project role as Admin \n\n\u003cimg width=\"670\" height=\"720\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/16dfe995-2636-4125-ae68-33930b9c88d7\" /\u003e\n\n\n5. Delete the project with clean up option \n\n\u003cimg width=\"1096\" height=\"536\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/dbac95b1-ba41-4269-a3d7-7c00bff3f66c\" /\u003e\n\n\n\n6. Delete the user \n\n\n\u003cimg width=\"1346\" height=\"559\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4fe3a51e-df83-4d29-b84d-d221143f0ffb\" /\u003e\n\n7. Disable the account and Delete the account \u003e\u003e Exception observed\n\n\u003cimg width=\"1628\" height=\"521\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/a3c5c43c-a969-44c4-be6e-4766a2a06bcc\" /\u003e\n\n```\n2026-02-06 05:19:09,201 DEBUG [c.c.a.ApiServer] (qtp1390913202-23:[ctx-52b15b57, ctx-b39021de]) (logid:c0aa78bd) Retrieved cmdEventType from job info: ACCOUNT.DELETE\n2026-02-06 05:19:09,203 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-22:[ctx-54696ea9, job-166]) (logid:92e3ffb4) Add job-166 into job monitoring\n2026-02-06 05:19:09,204 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (qtp1390913202-23:[ctx-52b15b57, ctx-b39021de]) (logid:c0aa78bd) submit async job-166, details: AsyncJob {\"accountId\":2,\"cmd\":\"org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd\",\"cmdInfo\":\"{\\\"response\\\":\\\"json\\\",\\\"ctxUserId\\\":\\\"2\\\",\\\"sessionkey\\\":\\\"nDTziuDnO4qxnRScKDVyKQTZukU\\\",\\\"httpmethod\\\":\\\"POST\\\",\\\"ctxStartEventId\\\":\\\"623\\\",\\\"id\\\":\\\"f004ffb3-f8d0-4297-8951-fc83bdd10fad\\\",\\\"ctxDetails\\\":\\\"{\\\\\\\"interface com.cloud.user.Account\\\\\\\":\\\\\\\"f004ffb3-f8d0-4297-8951-fc83bdd10fad\\\\\\\"}\\\",\\\"ctxAccountId\\\":\\\"2\\\",\\\"uuid\\\":\\\"f004ffb3-f8d0-4297-8951-fc83bdd10fad\\\",\\\"cmdEventType\\\":\\\"ACCOUNT.DELETE\\\"}\",\"cmdVersion\":0,\"completeMsid\":null,\"created\":null,\"id\":166,\"initMsid\":32988016411316,\"instanceId\":12,\"instanceType\":\"Account\",\"lastPolled\":null,\"lastUpdated\":null,\"processStatus\":0,\"removed\":null,\"result\":null,\"resultCode\":0,\"status\":\"IN_PROGRESS\",\"userId\":2,\"uuid\":\"1ba7a022-f715-4df5-a771-99e59e80e38f\"}\n2026-02-06 05:19:09,204 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl$5] (API-Job-Executor-22:[ctx-54696ea9, job-166]) (logid:1ba7a022) Executing AsyncJob {\"accountId\":2,\"cmd\":\"org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd\",\"cmdInfo\":\"{\\\"response\\\":\\\"json\\\",\\\"ctxUserId\\\":\\\"2\\\",\\\"sessionkey\\\":\\\"nDTziuDnO4qxnRScKDVyKQTZukU\\\",\\\"httpmethod\\\":\\\"POST\\\",\\\"ctxStartEventId\\\":\\\"623\\\",\\\"id\\\":\\\"f004ffb3-f8d0-4297-8951-fc83bdd10fad\\\",\\\"ctxDetails\\\":\\\"{\\\\\\\"interface com.cloud.user.Account\\\\\\\":\\\\\\\"f004ffb3-f8d0-4297-8951-fc83bdd10fad\\\\\\\"}\\\",\\\"ctxAccountId\\\":\\\"2\\\",\\\"uuid\\\":\\\"f004ffb3-f8d0-4297-8951-fc83bdd10fad\\\",\\\"cmdEventType\\\":\\\"ACCOUNT.DELETE\\\"}\",\"cmdVersion\":0,\"completeMsid\":null,\"created\":null,\"id\":166,\"initMsid\":32988016411316,\"instanceId\":12,\"instanceType\":\"Account\",\"lastPolled\":null,\"lastUpdated\":null,\"processStatus\":0,\"removed\":null,\"result\":null,\"resultCode\":0,\"status\":\"IN_PROGRESS\",\"userId\":2,\"uuid\":\"1ba7a022-f715-4df5-a771-99e59e80e38f\"}\n2026-02-06 05:19:09,205 DEBUG [c.c.a.ApiServlet] (qtp1390913202-23:[ctx-52b15b57, ctx-b39021de]) (logid:c0aa78bd) ===END=== 10.0.3.251 -- POST\ncommand=deleteAccount\nresponse=json\nid=f004ffb3-f8d0-4297-8951-fc83bdd10fad\nsessionkey=nDTziuDnO4qxnRScKDVyKQTZukU\n\n2026-02-06 05:19:09,207 DEBUG [c.c.u.AccountManagerImpl] (API-Job-Executor-22:[ctx-54696ea9, job-166, ctx-32d73b76]) (logid:1ba7a022) Account [Account [{\"accountName\":\"admin\",\"id\":2,\"uuid\":\"ef7f35bc-fffc-11f0-8d07-1e009f0002b4\"}]] has access to resource.\n2026-02-06 05:19:09,223 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-22:[ctx-54696ea9, job-166]) (logid:1ba7a022) Complete async job-166, jobStatus: FAILED, resultCode: 431, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{\"uuidList\":[],\"errorcode\":\"431\",\"errortext\":\"Unable to delete account [12], because it manages the following project(s): [4]. Please, remove the account from these projects or demote it to a regular project role first.\"}\n\n```\n\n### What to do about it?\n\nAccount should get deleted ","author":{"url":"https://github.com/kiranchavala","@type":"Person","name":"kiranchavala"},"datePublished":"2026-02-06T06:36:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/12601/cloudstack/issues/12601"}
| 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:65d11a9a-0ef9-4037-bfc6-7ff180d542d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E938:31A9ED:83F6BC:B33EB9:6A4DD688 |
| html-safe-nonce | 21db2b1df7ff891ab2fc307803582df8368dcb54c0136156db142bd66f0bf00a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTM4OjMxQTlFRDo4M0Y2QkM6QjMzRUI5OjZBNERENjg4IiwidmlzaXRvcl9pZCI6IjM0NTgyNDgwNDE0OTE3MTU3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e92d01a524450443335abb088cefc740b01c958b12d803a3335b74fabc095c67 |
| hovercard-subject-tag | issue:3905192515 |
| 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/12601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a66e5bd71d1173bd44594a706366551092ca64d3852944323b7b12e8ee4f8fb6/apache/cloudstack/issues/12601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a66e5bd71d1173bd44594a706366551092ca64d3852944323b7b12e8ee4f8fb6/apache/cloudstack/issues/12601 |
| og:image:alt | problem Unable to delete account if the project is removed versions ACS 4.22 The steps to reproduce the bug Create a project Create a account/user with User role Add User to the project, Select the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kiranchavala |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width