[LBaaS] Deletion of associated-to-pool(s) health monitor should fail

Bug #1243129 reported by Rami Vaknin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Oleg Bondarev

Bug Description

Version
=======
Havana on rhel

Description
===========

It's possible to delete health monitor while they are associated to one or more pools, I think that this should be prohibited, and dissociation from pool should be required first.

Tags: lbaas
Changed in neutron:
assignee: nobody → Oleg Bondarev (obondarev)
Changed in neutron:
status: New → Confirmed
importance: Undecided → Low
tags: added: lbaas
Revision history for this message
Samuel Bercovici (samuelb) wrote :

As already discussed in the Havana summit, the current model is very prone to errors.
For example, if the delete fails on one of the association deletes, what would be the correct behavior
a. roll back the deletion - difficult to implement
b. don't delete the HM, until the erogenous association are handled
Also as the association deletion is a-sync, I am not sure that the HM deletion behavior is correct.

Last, update on HM error handling suffers from a similar issue when an error is encountered.

In Havana a change to the model was discussed without eventualy anything happening, we can discuss again at the ice house summit.

Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

Sam, so basically you agree that this behavior should be changed?
Then we'll just prohibit HM deletion if it is associated.

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

Fix proposed to branch: master
Review: https://review.openstack.org/53821

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
Mark McClain (markmcclain) wrote :

As a temporary measure, I think enacting this restriction makes sense. Long term, we should be able to delete a health monitor and Neutron should handle it properly.

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

Reviewed: https://review.openstack.org/53821
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=a1de76d1407952572cfe081c4872d7a6127995b3
Submitter: Jenkins
Branch: master

commit a1de76d1407952572cfe081c4872d7a6127995b3
Author: Oleg Bondarev <email address hidden>
Date: Thu Oct 24 16:53:55 2013 +0400

    LBaaS: check for associations before deleting health monitor

    Need to prohibit health monitor deletion if it has associations with
    pools. Given that pools may belong to different lbaas drivers the process
    of monitor deletion becomes complex and unreliable since association
    deletion may fail on any single driver.

    DocImpact

    Closes-Bug: #1243129
    Change-Id: I27c20e7a5be8433f90569534ecf838e33027cb00

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
milestone: none → icehouse-3
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.