Skip to content
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

[RDS]: Fix floating IP attachment for RDSv3 instance #2304

Merged
merged 2 commits into from Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -736,10 +736,12 @@ func findPort(client *golangsdk.ServiceClient, privateIP string, subnetID string
}

for _, port := range portList {
address := port.FixedIPs[0]
if address.IPAddress == privateIP && address.SubnetID == subnetID {
id = port.ID
return
if len(port.FixedIPs) > 0 {
address := port.FixedIPs[0]
if address.IPAddress == privateIP && address.SubnetID == subnetID {
id = port.ID
return
}
}
}
return
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/rds_port_fix-6fcb8e6638e31f72.yaml
@@ -0,0 +1,4 @@
---
fixes:
- |
**[RDS]** RDS fix EIP assignment for ``resource/opentelekomcloud_rds_instance_v3`` (`#2304 <https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/2304>`_)