Skip to content

Fixes Load Balancer Flavor Selection#1744

Merged
jtopjian merged 1 commit intogophercloud:masterfrom
kmbulebu:master
Oct 16, 2019
Merged

Fixes Load Balancer Flavor Selection#1744
jtopjian merged 1 commit intogophercloud:masterfrom
kmbulebu:master

Conversation

@kmbulebu
Copy link
Copy Markdown
Contributor

@kmbulebu kmbulebu commented Oct 14, 2019

The attribute to specify a Load Balancer flavor by ID
is 'flavor_id' and not 'flavor' for both Octavia and
Neutron LBaaSv2.

For #1743

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

Octavia Source: https://github.com/openstack/octavia/blob/master/octavia/api/v2/types/load_balancer.py#L55
Octavia API Ref: https://docs.openstack.org/api-ref/load-balancer/v2/?expanded=create-a-load-balancer-detail#create-a-load-balancer

Neutron LBaaSv2 Source: https://review.opendev.org/gitweb?p=openstack/neutron-lbaas.git;a=blob;f=neutron_lbaas/services/loadbalancer/data_models.py;h=d44cc8dd5d543af9ffacb7bc1954f332083fdc67;hb=refs/heads/stable/rocky#l724
Neutron LBaaSv2 API Ref: https://docs.openstack.org/api-ref/network/v2/#load-balancer-as-a-service-2-0-deprecated (docs page currently broken)

@kmbulebu
Copy link
Copy Markdown
Contributor Author

I'll fix up the tests and get this to a passing.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 14, 2019

Coverage Status

Coverage decreased (-0.5%) to 76.427% when pulling bee9361 on kmbulebu:master into cf0980d on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Oct 14, 2019

Build succeeded.

@kmbulebu
Copy link
Copy Markdown
Contributor Author

I'm done. Please consider for review. I believe the code coverage results are reporting a false negative in line count decrease. I reviewed to make sure the change didn't send execution down an unexpected path.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thank you!

@jtopjian jtopjian merged commit 87733c4 into gophercloud:master Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants