LBaaS plugin returns unnecessary information for PING and TCP health monitors
Bug #1100749 reported by
Roman Prykhodchenko
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Avishay Balderman |
Bug Description
The plugin returns url_path, http_method and expected_codes for PING health monitors. In fact this properties should not be returned for TCP and PING monitors because that might be confusing.
{
"health_
"status": "PENDING_CREATE",
"delay": 60,
"type": "PING",
"id": "aaa8adeb-
}
}
summary: |
- LBaaS plugin returns unnecessary information for PING health monitors + LBaaS plugin returns unnecessary information for PING and TCP health + monitors |
Changed in quantum: | |
assignee: | nobody → Avishay Balderman (avishayb) |
Changed in quantum: | |
importance: | Undecided → Medium |
milestone: | none → grizzly-3 |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | grizzly-3 → 2013.1 |
To post a comment you must log in.
-- Fix proposal -- db/loadbalancer /loadbalancer_ db.py
Code : quantum/
Current code: monitor_ dict(self, health_monitor, fields=None): monitor[ 'id'],
'tenant_ id': health_ monitor[ 'tenant_ id'],
'type' : health_ monitor[ 'type'] ,
'delay' : health_ monitor[ 'delay' ],
'timeout' : health_ monitor[ 'timeout' ],
'max_retries' : health_ monitor[ 'max_retries' ],
'http_ method' : health_ monitor[ 'http_method' ],
'url_path' : health_ monitor[ 'url_path' ],
'expected_ codes': health_ monitor[ 'expected_ codes'] ,
'admin_ state_up' : health_ monitor[ 'admin_ state_up' ],
'status' : health_ monitor[ 'status' ]}
----------------
def _make_health_
res = {'id': health_
return self._fields(res, fields)
Proposed code: monitor_ dict(self, health_monitor, fields=None): monitor[ 'id'],
'tenant_ id': health_ monitor[ 'tenant_ id'],
'type' : health_ monitor[ 'type'] ,
'delay' : health_ monitor[ 'delay' ],
'timeout' : health_ monitor[ 'timeout' ],
'max_retries' : health_ monitor[ 'max_retries' ],
'expected_ codes': health_ monitor[ 'expected_ codes'] ,
'admin_ state_up' : health_ monitor[ 'admin_ state_up' ],
'status' : health_ monitor[ 'status' ]}
res['url_ path'] health_ monitor[ 'url_path' ]
res['http_ method' ] health_ monitor[ 'http_method' ]
-------------------
def _make_health_
res = {'id': health_
if res["type"] not in ["TCP","PING"]:
return self._fields(res, fields)