-
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
provider/openstack: Load Balancing Member Resource #4359
provider/openstack: Load Balancing Member Resource #4359
Conversation
This is a first draft. Everything works and all tests pass, but I'm not in a rush to merge it -- I'd first like to see if anyone can test this out as well as get some feedback. I did not do anything to the existing |
This commit adds the openstack_lb_member_v1 resource. This resource models a load balancing member which was previously coupled to the openstack_lb_pool_v1 resource. By creating an actual member resource, load balancing members can now be dynamically managed through terraform.
167ec10
to
8d5a2d0
Compare
you are a super genius ! thanks @jtopjian |
@jtopjian we will probably be able to test this for you, especially if that gives you confidence to merge this change sooner :-). |
@justinclayton That'd be awesome -- thanks! |
@jtopjian after some testing it looks like it's pretty much all working, with one nagging exception: I've found a case where adding members seems to destroy and recreate existing members needlessly. If I define an
This works great, as expected. However, if I bump my
And sure enough,
I'm going to dig into the code a bit to see why this might be the case. I fear my old foe non-determinism is somehow to blame. Let me know if you have any ideas in the meantime. PS - Oddly, enough, reducing the count is still handled properly. |
@justinclayton Thanks for trying this out! I think you might be running into the bug described in #3885. If it's the same bug, I'll probably wait until it's resolved until merging this feature in since I see |
@jtopjian Since it looks like the issue I'm having is in core and not related to any code in this PR, I'm going to say the rest of it works as advertised and we should go ahead and . |
I'm on the fence about it... I have a feeling that @phinze thoughts? |
OK, I'm going to go ahead and pull the gun on this one. Core is definitely aware of the bug, but since it may take some time to clean up, I'd like to move forward with this resource. |
provider/openstack: Load Balancing Member Resource
|
@tgagor https://www.terraform.io/docs/configuration/interpolation.html |
Thanks, I was quite sure it was earlier directly in resource description. |
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. |
This commit adds the openstack_lb_member_v1 resource. This resource models a
load balancing member which was previously coupled to the openstack_lb_pool_v1
resource.
By creating an actual member resource, load balancing members can now be
dynamically managed through terraform.
Fixes #3197