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

Wrong exception handling for load balancer creation with invalid VIP #90

Open
kucerakk opened this issue Oct 28, 2021 · 0 comments
Open
Assignees

Comments

@kucerakk
Copy link
Contributor

When I try to create a load balancer with invalid vip IP address (not valid in the used vip_subnet_id), it reports back to client 201 Created, even though in the octavia_proxy logs there are errors like:

Provider 'elbv2' raised an unknown error: IP address 203.0.113.50 is not a valid IP for the specified subnet.:

(octavia-client) [linux@kkucerak-jump ~]$ curl -s -i -X POST -H "$AUTH_TOKEN" -H "Content-Type: application/json" -d '{
    "loadbalancer": {
        "description": "My favorite load balancer",
        "admin_state_up": true,
        "vip_subnet_id": "aa4a6aa9-8670-43aa-bd6a-df39f22d01ad",
                "vip_address": "203.0.113.50",
        "name": "best_load_balancer"
    }
}' http://localhost:9876/v2/lbaas/loadbalancers
HTTP/1.0 201 Created
Date: Thu, 28 Oct 2021 13:39:05 GMT
Server: WSGIServer/0.2 CPython/3.9.6
Content-Length: 22
Content-Type: application/json
x-openstack-request-id: req-bc00edde-2834-4688-adb7-d876dde6d405

{"loadbalancer": null}(octavia-client) [linux@kkucerak-jump ~]$
@Polina-Gubina Polina-Gubina self-assigned this Oct 28, 2021
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

No branches or pull requests

2 participants