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
Fix LoadBalancerMember creation #737
Fix LoadBalancerMember creation #737
Conversation
When creating loadbalancer member, subnet not found error occurred. This commit fixes it. If subnet is not given, LBaaS uses the vip_subnet_id parameter value for the subnet UUID.
@sbueringer @jichenjc PTAL |
@hidekazuna can you create an issue about this ? |
I Raised #738, also updated the PR comment.
Yes. more precisely, create LBMember case.
You can not add multiple subnets for CreateMember parameter. |
Build failed.
|
recheck |
Build failed.
|
recheck |
Build failed.
|
recheck |
Build succeeded.
|
@@ -268,7 +267,6 @@ func (s *Service) ReconcileLoadBalancerMember(clusterName string, machine *clust | |||
Name: name, | |||
ProtocolPort: port, | |||
Address: ip, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So just that I get it right. Instead of setting the correct subnet (which is invisible to Octavia) we don't set it but Octavia then chooses to subnet automatically? (and I guess it chooses the one we would set)
(fyi, OpenStack cloud controller manager also sets the subnet id, but only if it's configured in the cloud.conf)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. If you omit the subnet_id parameter, the vip_subnet_id for the parent load balancer will be used for the member subnet UUID.
https://docs.openstack.org/api-ref/load-balancer/v2/?expanded=create-member-detail#create-member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, thx for the info
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hidekazuna, sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@hidekazuna For me it would be okay to merge, so I can also give you a lgtm. Wdyt? |
It is good to me. |
/lgtm |
What this PR does / why we need it:
Currently subnet argument is given when creating load balancer member. it causes error.
This PR removes subnet argument so that LBaaS uses the vip_subnet_id parameter value for the subnet UUID
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #738
Special notes for your reviewer:
We follow Deploy a basic HTTP load balancer using a floating IP model. The subnet for lb members equals to vip_subnet_id in this case.
Release note: