OVS Rules not cleaned
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DragonFlow |
Fix Released
|
Medium
|
Yuli |
Bug Description
Hello !
Finally we traced real bug in new automated ovs tests !
After creating router interface and then removing it, Dragonflow leaves a number of flows not removed.
Here is a test code:
def test_create_
flows1 = self.get_
router = objects.
network = objects.
network_id = network.create()
subnet = {'subnets': [{'cidr': '192.168.199.0/24',
subnets = self.neutron.
subnet = subnets[
router_id = router.create()
subnet_msg = {'subnet_id': subnet['id']}
port = self.neutron.
flows2 = self.get_
diff = self._diff_
flows3 = self.get_
diff = self._diff_
The code asserts on the last line:
testtools.
reference = [{'actions': u'set_field:
'cookie': u'0x0,',
'match': u'arp,metadata=
'priority': u'100',
'table': u'10,'},
{'actions': u'goto_table:64',
'cookie': u'0x0,',
'match': u'ip,metadata=
'priority': u'200',
'table': u'20,'}]
actual = []
Best regards,
Yuli
Changed in dragonflow: | |
importance: | Undecided → Medium |
Changed in dragonflow: | |
status: | Fix Committed → Confirmed |
status: | Confirmed → Fix Released |
Adding neutron. add_interface_ router( ) function fixed this bug.