def create_member(self, context, member):
        LOG.debug("MidonetPluginV2.create_member called: %(member)r",
                  {'member': member})

        with context.session.begin(subtransactions=True):
            m = super(MidonetPluginV2, self).create_member(context, member)
            self.api_cli.create_member(m)
            m['status'] = constants.ACTIVE
            self.update_status(context, loadbalancer_db.Member, m['id'],
                               m['status'])

        LOG.debug("MidonetPluginV2.create_member exiting: %(member)r",
                  {'member': m})
        return m