lbaas: delete_health_monitor() should rely upon cascade operations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Roman Podoliaka |
Bug Description
In LBaaS DB schema we have a Pool <--> HealthMonitor many-to-many association which is done
via the PoolMonitorAsso
A HealthMonitor instance may be deleted by calling the "delete_
which is defined in quantum/
Currently, this method performs a "manual" deletion of a HealthMonitor instance given its id:
it gets a list of all PoolMonitorAsso
instances it retrieves a corresponding Pool instance and finally removes the association instance
from the "monitors" collection of a Pool instance.
We can simplify the deletion of HealthMonitor instances by relying upon cascade operations
defined for SQLAlchemy relationships (which is already done for Pool model).
Changed in quantum: | |
assignee: | nobody → Roman Podolyaka (rpodolyaka) |
status: | New → In Progress |
Changed in quantum: | |
importance: | Undecided → Low |
Changed in quantum: | |
milestone: | none → havana-1 |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/26959
Review: https:/