LBaaS Plugin
Determine LBaaS plugin
Events and API responses below are from the mitaka octavia/lbaasv2 service.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Medium
- Drafter:
- Travis Tripp
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
LB CREATE (consisting of LB plus 2 ports plus secgroup):
{
"event_type": "loadbalancer.
"payload": {
"loadbalancer": {
"
"
"tenant_id": "f978a632e97f4a
"
"provider": "octavia",
"pools": [],
"listeners": [],
"
"
"
"id": "e1ecf2c8-
"
"name": "lb1"
}
},
+ PORT:
{
"event_type": "port.create.end",
"payload": {
"port": {
"
"
"updated_at": "2016-03-
"
"
"
"fixed_ips": [
{
}
],
"id": "a9ecbb81-
"
],
"
},
"
"
"status": "DOWN",
"
"
"device_id": "c652c0ab-
"name": "",
"
"network_id": "6b6102eb-
"dns_name": null,
"created_at": "2016-03-
"
"tenant_id": "6e125ccf3b5e42
}
},
+ SEC GROUP
{
"event_type": "security_
"payload": {
"security_
"tenant_id": "6e125ccf3b5e42
"name": "lb-e1ecf2c8-
"
"
{
"id": "50971a8a-
},
{
"id": "e426f2a8-
}
],
"id": "36bbff6d-
}
},
+ PORT UPDATE:
{
"event_type": "port.update.end",
"payload": {
"port": {
"
"
"updated_at": "2016-03-
"
"
"
"fixed_ips": [
{
},
{
}
],
"id": "4ff8d14c-
"
],
"
"
"
"status": "DOWN",
"
"
"device_id": "e1ecf2c8-
"name": "loadbalancer-
"
"network_id": "0ef5f38c-
"dns_name": null,
"created_at": "2016-03-
"
"tenant_id": "f978a632e97f4a
}
},
+ PORT CREATE
{
"event_type": "port.create.end",
"payload": {
"port": {
"
"
"updated_at": "2016-03-
"
"
"
"fixed_ips": [
{
},
{
}
],
"id": "b97107cc-
"
],
"
},
"
"
"status": "DOWN",
"
"
"device_id": "c652c0ab-
"name": "",
"
"network_id": "0ef5f38c-
"dns_name": null,
"created_at": "2016-03-
"
"tenant_id": "6e125ccf3b5e42
}
},
PLUS A BUNCH OF PORT UPDATES UNTIL THE LB IS ACTIVE
LISTENER CREATE:
{
"event_type": "listener.
"payload": {
"listener": {
"
"protocol": "HTTP",
"
"
"
"
{
"id": "e1ecf2c8-
}
],
"tenant_id": "f978a632e97f4a
"
"
"
"id": "f92cf56a-
"name": "listener1"
}
},
POOL CREATE:
{
"event_type": "pool.create.end",
"payload": {
"pool": {
"
"protocol": "HTTP",
"
"
"
{
"id": "e1ecf2c8-
}
],
"tenant_id": "f978a632e97f4a
"
"
"listeners": [
{
"id": "f92cf56a-
}
],
"members": [],
"id": "0335f204-
"name": "pool1"
}
},
MEMBER CREATE:
{
"event_type": "member.
"payload": {
"member": {
"name": "",
"weight": 1,
"
"subnet_id": "70e6c27d-
"tenant_id": "f978a632e97f4a
"address": "172.40.0.5",
"
"id": "0f6b8a77-
}
},
HEALTH MONITOR CREATE
{
"event_type": "healthmonitor.
"payload": {
"healthmoni
"name": "",
"
"tenant_id": "f978a632e97f4a
"delay": 3,
"
"
"
"timeout": 3,
"pools": [
{
"id": "0335f204-
}
],
"url_path": "/",
"type": "HTTP",
"id": "a32fc3ab-
}
},
API response once created:
LOAD BALANCER LIST - list_lbaas_
{'loadbalancers': [{u'admin_
u'description': u'',
u'id': u'e1ecf2c8-
u'listeners': [{u'id': u'f92cf56a-
u'name': u'lb1',
u'operating_
u'pools': [{u'id': u'0335f204-
u'provider': u'octavia',
u'provisioni
u'tenant_id': u'f978a632e97f4
u'vip_address': u'172.40.0.3',
u'vip_port_id': u'4ff8d14c-
u'vip_
POOL LIST - list_lbaas_pools:
{'pools': [{u'admin_
u'description': u'',
u'healthmoni
u'id': u'0335f204-
u'lb_algorithm': u'ROUND_ROBIN',
u'listeners': [{u'id': u'f92cf56a-
u'loadbalanc
u'members': [{u'id': u'0f6b8a77-
u'name': u'pool1',
u'protocol': u'HTTP',
u'session_
u'tenant_id': u'f978a632e97f4
MEMBERS (for pool id) - list_lbaas_members:
{'members': [{u'address': u'172.40.0.5',
u'admin_
u'id': u'0f6b8a77-
u'name': u'',
u'protocol_
u'subnet_id': u'70e6c27d-
u'tenant_id': u'f978a632e97f4
u'weight': 1}]}
HEALTH MONITORS (list_lbaas_
{'healthmonitors': [{u'admin_
u'delay': 3,
u'expected_
u'http_method': u'GET',
u'id': u'a32fc3ab-
u'max_retries': 3,
u'name': u'',
u'pools': [{u'id': u'0335f204-
u'tenant_id': u'f978a632e97f4
u'timeout': 3,
u'type': u'HTTP',
u'url_path': u'/'}]}
DELETION (reverse order):
HEALTH MONITOR:
{"event_type": "healthmonitor.
MEMBER (though a pool will silently delete members):
{"event_type": "member.
POOL:
{"event_type": "pool.delete.end", "payload": {"pool_id": "70c70b1b-
LISTENER:
{"event_type": "listener.
(and sec groups):
{"event_type": "security_
{"event_type": "security_
LOADBALANCER:
{"event_type": "loadbalancer.
(plus loads of ports, secgroup rules and secgroup)