-
Notifications
You must be signed in to change notification settings - Fork 671
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
Plugin crashes if DHCP network ID is nil #4683
Comments
What is the data center that you used? |
Fixes IBM-Cloud#4683 Signed-off-by: Yussuf Shaikh <[email protected]>
Above PR will prevent plugin panic as |
On a dal10 staging, I see a nulls in network structure when in BUILD state. Later the get DHCP returns the network info when in ACTIVE state. So the terraform code should be changed to handle this temporary condition. I am not sure if this is the root cause for this issue (until we get region zone info to locate logs) but at least we know one of the scenarios to reproduce this condition. |
When in build state dhcp.network should be nil or empty struct from the service broker instead of setting id and name to |
Fixes IBM-Cloud#4683 Signed-off-by: Yussuf Shaikh <[email protected]>
Fixes #4683 Signed-off-by: Yussuf Shaikh <[email protected]>
Fixes IBM-Cloud#4683 Signed-off-by: Yussuf Shaikh <[email protected]>
Fixes IBM-Cloud#4683 Signed-off-by: Yussuf Shaikh <[email protected]>
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Panic Output
https://gist.github.com/Shilpa-Gokul/69c37444decdaeddfe5073caccbe42fa
Expected Behavior
Panic should not have occurred instead a graceful cleanup or shutdown should have happened
Actual Behavior
As the network ID is nil, a panic occurred stating "invalid memory address or nil pointer dereference"
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: