Comment 4 for bug 1505125

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to octavia (master)

Reviewed: https://review.openstack.org/267010
Committed: https://git.openstack.org/cgit/openstack/octavia/commit/?id=caecc4f9986891d9954b43e17d207cc34e514e80
Submitter: Jenkins
Branch: master

commit caecc4f9986891d9954b43e17d207cc34e514e80
Author: Elena Ezhova <email address hidden>
Date: Wed Jan 13 19:20:46 2016 +0300

    Fix updating session persistence of a pool in DB

    In case when update data for a pool contains session persistence
    it is required to update session persistence table first and
    then remove 'session_persistence' key from the update dict.
    Otherwise, update will fail and a pool will get stuck in
    PENDING_UPDATE status.

    This change reuses update_pool_on_listener method of
    db.repositories.Repositories class in UpdatePoolInDB task instead
    of PoolRepository update method.

    This regression was discovered using a scenario test:
    https://review.openstack.org/#/c/207945/

    Change-Id: I53d6b7962c0baa466db7e053157cdd302edae473
    Closes-Bug: #1505125