Title: Passing domain id without an account ignored · Issue #7776 · apache/cloudstack · GitHub
Open Graph Title: Passing domain id without an account ignored · Issue #7776 · apache/cloudstack
X Title: Passing domain id without an account ignored · Issue #7776 · apache/cloudstack
Description: ISSUE TYPE Bug Report COMPONENT NAME API CLOUDSTACK VERSION 4.17, 4.18, main, and probably most of the previous versions SUMMARY When the API calls are made using only the domainid parameter, CloudStack currently ignores it. For instance...
Open Graph Description: ISSUE TYPE Bug Report COMPONENT NAME API CLOUDSTACK VERSION 4.17, 4.18, main, and probably most of the previous versions SUMMARY When the API calls are made using only the domainid parameter, Cloud...
X Description: ISSUE TYPE Bug Report COMPONENT NAME API CLOUDSTACK VERSION 4.17, 4.18, main, and probably most of the previous versions SUMMARY When the API calls are made using only the domainid parameter, Cloud...
Opengraph URL: https://github.com/apache/cloudstack/issues/7776
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Passing domain id without an account ignored","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\r\n##### ISSUE TYPE\r\n\u003c!-- Pick one below and delete the rest --\u003e\r\n * Bug Report\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\nAPI\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\n4.17, 4.18, main, and probably most of the previous versions\r\n~~~\r\n\r\n\r\n\r\n##### SUMMARY\r\n\u003c!-- Explain the problem/feature briefly --\u003e\r\n\r\nWhen the API calls are made using only the `domainid` parameter, CloudStack currently ignores it. For instance, in the `createNetwork` api call, there is an option to pass both domainid and account parameters. All combinations of `domainid` and `account` in the following table make sense except for the second combination. As a user, I would expect that the network should be created under the specified domain or receive an error message stating that I need to provide an account as well. However, nowhere in the API documentation does it mention that an account must be provided when calling createNetwork with a specific domainid.\r\n\r\n| idx | domainid parameter is in API call | account parameter is in API call | result |\r\n|---|--------|--------|--------|\r\n| 1 | yes | yes | network created under the account and domain |\r\n| 2 | yes | NO | network created under the caller domain and account |\r\n| 3 | NO | yes | network creation failed |\r\n| 4 | NO | NO | network created under the caller domain and account | \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\n\r\nRun the following command to create a network (type of network doesn't matter, I also checked the deploy virtual machine it is the same behaviour)\r\n\r\n```\r\n(localcloud) \u003e create network domainid=\u003cdomain id\u003e name=L2-withou-account displaytext=L2-without-account zoneid=\u003czone id\u003e networkofferingid=\u003coffering id\u003e\r\n{\r\n \"network\": {\r\n \"account\": \"admin\",\r\n \"acltype\": \"Account\",\r\n...\r\n \"domain\": \"ROOT\",\r\n \"domainid\": \"2ddf37db-1fc3-11ee-a012-1e00cf003378\",\r\n }\r\n}\r\n```\r\n\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\nCloudStack throws an error or creates the network under the correct domain\r\n~~~\r\n\r\n##### ACTUAL RESULTS\r\n\u003c!-- What actually happened? --\u003e\r\n\r\n\u003c!-- Paste verbatim command output between quotes below --\u003e\r\n~~~\r\nNetwork created under the root domain.\r\n~~~\r\n","author":{"url":"https://github.com/soreana","@type":"Person","name":"soreana"},"datePublished":"2023-07-26T15:09:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/7776/cloudstack/issues/7776"}
| 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:dbf08c79-3afd-4b57-49a1-32938aaab2eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B118:244C0:1A8CC80:24C49E8:6A4EBCE7 |
| html-safe-nonce | 24b9d0d932a56fc2d232c8e3c85f229b54dbb33f9405865dd636e87223c346d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTE4OjI0NEMwOjFBOENDODA6MjRDNDlFODo2QTRFQkNFNyIsInZpc2l0b3JfaWQiOiIxODYzNjExNzA3NjU5NTY2MzExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 344990190521e86e313ac6a44884cfc08a0145498a4b39d09330f4cc677fb495 |
| hovercard-subject-tag | issue:1822626798 |
| 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/7776/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a2eb512b5b025527a5e5aba30c64a67a6c5463b662020d3222f7a5a1db793c1c/apache/cloudstack/issues/7776 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a2eb512b5b025527a5e5aba30c64a67a6c5463b662020d3222f7a5a1db793c1c/apache/cloudstack/issues/7776 |
| og:image:alt | ISSUE TYPE Bug Report COMPONENT NAME API CLOUDSTACK VERSION 4.17, 4.18, main, and probably most of the previous versions SUMMARY When the API calls are made using only the domainid parameter, Cloud... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | soreana |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width