-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing domain id without an account ignored #7776
Comments
@soreana To create a network for a domain , you need to pass acltype=Domain |
@weizhouapache @harikrishna-patnala , @soreana states, 'or receive an error message stating that I need to provide an account as well.' Does this make sense to you? If the user provides a domainid it is strange to create the network in another domain, even when only providing a domainid is not a valid parameter set. (imnsho) |
@DaanHoogland yes error can be thrown, I think this is a design thought. Last time I just logged a message, didn't want to break the backward compatibility. cloudstack/server/src/main/java/com/cloud/network/NetworkServiceImpl.java Lines 1405 to 1406 in 41bbedb
|
that message is an info in case "either projectId or accountname and domainId are not provided". I think we can split between that case and when |
@DaanHoogland
in my opinion, there will be more trouble than benefit. |
ok, agree @soreana ? |
@DaanHoogland Yeah, that is makes sense, CloudStack should throw an error when only the domain id is provided. Btw, @DaanHoogland @harikrishna-patnala @weizhouapache the
|
@soreana |
@weizhouapache That is a valid concern. Can We at least change the API documentations? |
@soreana |
In a way I agree with both @soreana and @weizhouapache as this is a valid concern but fixing this may raise immediate issues with the existing environments. May be we can do below things
I'm not sure how hard is to make point 2 working in UI, if that takes time we can go with point 1 only. |
agree with @harikrishna-patnala |
I am not so keen in making implementing functionality in the UI only. it creates an inconsistency for users and add a maintenance burdon on developers. |
so far I see the following for the create network API
this looks like enough documentation to me. cc @soreana @harikrishna-patnala @weizhouapache Are there other places I should look? |
@DaanHoogland That would be enough, I will take care of them. |
@soreana |
I've created #7876 PR, let me know if other API calls needs to be added. |
Closing this issue as the #7876 got merged. |
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
SUMMARY
When the API calls are made using only the
domainid
parameter, CloudStack currently ignores it. For instance, in thecreateNetwork
api call, there is an option to pass both domainid and account parameters. All combinations ofdomainid
andaccount
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.STEPS TO REPRODUCE
Run 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)
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: