Octavia v2 API needs to return the listeners object

Bug #1673496 reported by Michael Johnson
6
This bug affects 1 person
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-16T10:11:46",
  "description": null,
  "id": "a9547cf3-04ec-4aec-b790-f330f97cda80",
  "name": "lb1",
  "operating_status": "OFFLINE",
  "project_id": "939d7c1fd0784b4ba69a27030c171afc",
  "provisioning_status": "PENDING_CREATE",
  "tenant_id": "939d7c1fd0784b4ba69a27030c171afc",
  "updated_at": null,
  "vip_address": null,
  "vip_port_id": null,
  "vip_subnet_id": "7cbc7ab3-e90f-41df-b46d-eb372e6e1a76"
 }
}
Neutron-LBaaS return:
{
 "loadbalancer": {
  "admin_state_up": true,
  "description": "",
  "id": "ca89d0d3-37cd-4108-9f90-99bedac29d15",
  "listeners": [],
  "name": "lb1",
  "operating_status": "OFFLINE",
  "pools": [],
  "provider": "octavia",
  "provisioning_status": "PENDING_CREATE",
  "tenant_id": "939d7c1fd0784b4ba69a27030c171afc",
  "vip_address": "10.0.0.8",
  "vip_port_id": "2e59beaf-36ca-4a69-81d2-efe9ba47ec77",
  "vip_subnet_id": "7cbc7ab3-e90f-41df-b46d-eb372e6e1a76"
 }
}

The listeners object is missing from the Octavia v2 API for load balancers. See the TODO in the code.

Tags: lbaas-merge
Revision history for this message
Sindhu Devale (sindhu-devale-3) wrote :

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-0ce148dde125", "project_id": "df717139aa464319b8cedb29dc02fdd0"}}'
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-request-id: req-51f8aeb4-4ac7-439e-99ff-771c6e9b482b

{"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "df717139aa464319b8cedb29dc02fdd0", "created_at": "2017-04-04T18:17:35.175335", "provisioning_status": "PENDING_CREATE", "updated_at": null, "vip_network_id": "8b40e73f-fc84-4dab-8926-950ffa1189cf", "listeners": [], "vip_port_id": null, "vip_address": null, "vip_subnet_id": "4417d405-36f1-4a5e-8237-0ce148dde125", "project_id": "df717139aa464319b8cedb29dc02fdd0", "id": "7a680046-70c3-4786-97c8-a5f241979c28", "operating_status": "OFFLINE", "name": ""}}

Changed in octavia:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.