-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
[CloudStack] Adding missing project ID on the get network API call, if present #6069
Conversation
Thanks for the PR @pdube! Before I merge this, could you give me a TF config that doesn't work without this PR? As I believe this use case is already fixed in a more general way in the So I suspect we don't actually need this additional code in here... |
@svanharmelen I believe the issue here is some CS implementations require that a valid project ID always be passed in to network calls. As such, passing in |
If that is the case, could you share a TF config and CS version that have this behaviour? Because if this is something generic, I believe we should fix it in the But if this is the only API call having this behaviour that's not worth it of course... |
Hey @svanharmelen, below is a sample TF config that is causing issues. This has been tested against CS 4.4 I believe (@pdube should be able to confirm). With this config without this PR, the API will return an empty set for the network tier ID, and therefore not get recorded in the TF state file (also the
|
@svanharmelen We have identified 2 at this point. The network and the port forwarding rules as seen here #6106 |
@pdube could you share an example that shows me the problem? I tried to reproduce this using a slightly simplefied version of the above example, but failed to get the same result: Config:
|
Hey @svanharmelen! |
@pdube @hany are you able to build the code from this PR #6282 and run your tests? I expect this to fix your problem and at the same time add a solid base for adding more project related stuff in the future. Please let me know asap if this fixes it for you, so I can merge it before the new release is cut... Thx! |
@svanharmelen Ok I'll test it out! Thanks. From a bird's eye view, it looks good. |
@pdube did you find time to test this already? I did some additional work to make sure all other resources that support projects are now also using the updated All acceptance tests and my local testing don't show any problems with the new code, but I don't use projects as much, and in the same way, as you guys are doing. So if you could make a fresh build of PR #6282 (amended the last changes just now) and battle test some project heavy configs with it, that would be great! Thx! |
@pdube feel free to reopen this one if needed, and please still do run those tests and let me know the results so we know if all your use cases are fixed now... I just gone ahead and merged #6282 since it's pretty likely that 0.6.15 will be released today and all (acceptance) tests are passing without problems. So even if we need to tweak some additional stuff to get this specific issue solved (which I don't expect, but you never know), it's good to have the latest improvements released already... |
@svanharmelen I was a bit bogged down yesterday, I'll try to build and test it today. Thanks for the work around this. It is really appreciated! |
@svanharmelen I built it and have been testing it and it is working very well. I have built a few environments with most of the available CS resources (templates, networks, vpcs, instances, port forwarding rules, network ACLs, network ACL rules, IP addresses, and SSH keys) and everything is working as expected. Great work! +1 |
Cool! Thanks for testing and for the feedback! We made the provider a little better again 😉 |
:) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Explicitly adding the projectId if it is present to the ListNetworks API call