Octavia v2 API needs to return the listeners object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Fix Released
|
Critical
|
Unassigned |
Bug Description
This (Octavia) return:
{
"loadbalancer": {
"admin_state_up": true,
"created_at": "2017-03-
"description": null,
"id": "a9547cf3-
"name": "lb1",
"operating_
"project_id": "939d7c1fd0784b
"provisioning
"tenant_id": "939d7c1fd0784b
"updated_at": null,
"vip_address": null,
"vip_port_id": null,
"vip_subnet_id": "7cbc7ab3-
}
}
Neutron-LBaaS return:
{
"loadbalancer": {
"admin_state_up": true,
"description": "",
"id": "ca89d0d3-
"listeners": [],
"name": "lb1",
"operating_
"pools": [],
"provider": "octavia",
"provisioning
"tenant_id": "939d7c1fd0784b
"vip_address": "10.0.0.8",
"vip_port_id": "2e59beaf-
"vip_subnet_id": "7cbc7ab3-
}
}
The listeners object is missing from the Octavia v2 API for load balancers. See the TODO in the code.
Changed in octavia: | |
status: | Triaged → Fix Released |
I think this has been handled already:
stack@sindhu- oct10:~ /octavia$ curl -i -X POST http:// 192.168. 0.45:9876/ v2.0/lbaas/ loadbalancers -H "Content-Type: application/json" -d '{"loadbalancer": {"vip_subnet_id": "4417d405- 36f1-4a5e- 8237-0ce148dde1 25", "project_id": "df717139aa4643 19b8cedb29dc02f dd0"}}' request- id: req-51f8aeb4- 4ac7-439e- 99ff-771c6e9b48 2b
HTTP/1.0 201 Created
Date: Tue, 04 Apr 2017 18:17:35 GMT
Server: WSGIServer/0.1 Python/2.7.12
Content-Length: 528
Content-Type: application/json
x-openstack-
{"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "df717139aa4643 19b8cedb29dc02f dd0", "created_at": "2017-04- 04T18:17: 35.175335" , "provisioning_ status" : "PENDING_CREATE", "updated_at": null, "vip_network_id": "8b40e73f- fc84-4dab- 8926-950ffa1189 cf", "listeners": [], "vip_port_id": null, "vip_address": null, "vip_subnet_id": "4417d405- 36f1-4a5e- 8237-0ce148dde1 25", "project_id": "df717139aa4643 19b8cedb29dc02f dd0", "id": "7a680046- 70c3-4786- 97c8-a5f241979c 28", "operating_status": "OFFLINE", "name": ""}}