← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1180113] Re: Fix logic in test_db_loadbalancer

 

** Changed in: quantum
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1180113

Title:
  Fix logic in test_db_loadbalancer

Status in OpenStack Quantum (virtual network service):
  Fix Released

Bug description:
  Several methods in test_db_loadbalancer have incorrect logic like the
  following piece of code:

  res = self._create_vip(fmt,
                                         name,
                                         pool_id,
                                         protocol,
                                         protocol_port,
                                         admin_state_up,
                                         subnet_id=tmp_subnet['subnet']['id'],
                                         **kwargs)
  vip = self.deserialize(fmt or self.fmt, res)
  if res.status_int >= 400:
         raise webob.exc.HTTPClientError(code=res.status_int)

  In case of res.status_int >= 400 code tries to deserialize malformed
  body and it throws an exception masking real cause of failure.

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1180113/+subscriptions