Merge "Log received pool.status"
This commit is contained in:
commit
04590838d8
@ -94,9 +94,11 @@ class LoadBalancerCallbacks(object):
|
|||||||
qry = context.session.query(loadbalancer_db.Pool)
|
qry = context.session.query(loadbalancer_db.Pool)
|
||||||
qry = qry.filter_by(id=pool_id)
|
qry = qry.filter_by(id=pool_id)
|
||||||
pool = qry.one()
|
pool = qry.one()
|
||||||
|
|
||||||
if pool.status != constants.ACTIVE:
|
if pool.status != constants.ACTIVE:
|
||||||
raise n_exc.Invalid(_('Expected active pool'))
|
raise n_exc.Invalid(_('Pool_id %(pool_id)s status ACTIVE '
|
||||||
|
'is expected but status is %(status)s') %
|
||||||
|
{'pool_id': pool_id,
|
||||||
|
'status': pool.status})
|
||||||
|
|
||||||
retval = {}
|
retval = {}
|
||||||
retval['pool'] = self.plugin._make_pool_dict(pool)
|
retval['pool'] = self.plugin._make_pool_dict(pool)
|
||||||
|
Loading…
Reference in New Issue
Block a user