"lbaas delete l7 rule & policy" could leave dirty data

Bug #1822968 reported by Yue Qu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned

Bug Description

"lbaas delete l7 rule & policy" could leave dirty data

In lbaas plugin side, the logic for deleting l7 rule and l7 policy is as follows:
If the l7 rule(or policy) attached to a load balancer, plugin only calls drivers to delete data (without any database operations); otherwise plugin deletes the data in database.

The codes are as follows:
        if l7policy_db.attached_to_loadbalancer():
            driver = self._get_driver_for_loadbalancer(
                context, l7policy_db.listener.loadbalancer_id)
            self._call_driver_operation(context, driver.l7policy.delete,
                                        l7policy_db)
        else:
            self.db.delete_l7policy(context, id)

As a result:

When try to delete the l7 rule(or policy) attached to a load balancer, dirty data will be left in the database.

Tags: lbaas
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

neutron-lbaas issues are tracked on storyboard, can you file the bug there?

https://storyboard.openstack.org/#!/project/openstack/neutron-lbaas

Changed in neutron:
status: New → Invalid
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.