-
Notifications
You must be signed in to change notification settings - Fork 359
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
openstack_lb_member_v2 waits on "ACTIVE" state but gets "DELETED". Resources created though. #838
Comments
Unfortunately the attached debug info is not enough. Please run terraform with the following debug flags: Also please let me know which OpenStack version do you use and the lbaas interface (neutron extension or octavia). |
Provider is opencontrail (neutron). I'll rerun the configuration. EDIT: @kayrus I've updated the gist. I see that the OpenStack body is empty "null" |
In addition please provide the |
@kayrus Doesn't work?
EDIT: The 'show' does work though
|
How about this? $ export OS_AUTH_TOKEN="$(openstack token issue -f value -c id)"
$ curl -H "Content-Type: application/json" -H "X-Auth-Token: ${OS_AUTH_TOKEN}" 'https://%neutron-api-server%/v2.0/lbaas/loadbalancers/%LBID%/statuses' |
|
Ok, it's better to wait for the full terraform debug output. |
I've already updated the gist for you so the output is available. |
I see the issue. Terraform expects that the neutron lbaas extension returns the LB status tree, but in your case it doesn't. In cases, when the statuses cannot be retrieved, terraform just tries to fetch the remote resources by ID. There are two kinds of resources, which cannot be be retrieved by an ID, because neutron API requests the resource parent:
And if the status cannot be found for these resources, terraform expects that they don't exist. I'll take a look whether it is possible to provide the parentid for these resources status checks. |
Thanks! Is this an aspecific issue for the OpenStack platform I'm using or is this a more general issue? Otherwise, I can check if our provider can fix the statuses endpoint because that one isn't working as expected. |
Try to compile this branch and let me know if it works for you: https://github.com/kayrus/terraform-provider-openstack/tree/lb-members-l7rules-statuses |
@kayrus Yes, your change resolves the issue but I've another issue with the monitor: Caused by:
Can't determine the pool ID and fails. Debug:
|
resource "openstack_lb_monitor_v2" "api_monitor" {
pool_id = openstack_lb_pool_v2.api_pool.id
type = "HTTPS"
url_path = "/"
expected_codes = "200-499"
delay = 20
timeout = 10
max_retries = 5
} and remove the monitor first before removing the pool. In your case it appeared that the pool was removed before the monitor. Have you removed it manually? |
UPD: it is a known bug for the monitor and pools: #762 |
Ok, thanks for your update. I think this issue is resolved when the PR is merged. |
I also wrote a patch for OpenContrail monitors. #840 try to cherry-pick it, compile the provider from sources and let me know if it works for you. |
Terraform Version
Affected Resource(s)
openstack_lb_member_v2
Terraform Configuration Files
Debug Output
https://gist.github.com/piwi91/0fa359e1bc4ab866c634c0bdd8942525
Expected Behavior
No errors
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
Mirantis Openstack
References
N/A
The text was updated successfully, but these errors were encountered: