Iteration for metering fails because metering-agent tried to operate chain in namespace of deleted router
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Won't Fix
|
Low
|
Kengo Hobo |
Bug Description
Metering-agent cannot recognize namespace for router is deleted.
Thus, metering-agent sometimes fails to operate chain for metering with following trace
because namespace for router had already deleted, especially when synchronizing information with neutron-server.
I assume that we should simply catch the error and continue the iteration.
How to reproduce
=======
1. neutron meter-label-create test
2. neutron meter-label-
3. neutron router-create test
4. neutron router-gateway-set <UUID of router in procedure 3.>
5. Check that iptables chain for the router is generated.
6. neutron router-delete test
7. wait a minute.(until next _sync_routers_task is executed.)
trace in metering-agent.log
=======
2016-09-16 00:20:35.118 16578 ERROR neutron.
g.drivers.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
166, in _invoke_driver
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
pper
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
r.py", line 109, in update_routers
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
r.py", line 257, in _process_
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
r.py", line 58, in __exit__
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
2016-09-16 00:20:35.118 16578 ERROR neutron.
=======
tags: | added: metering |
Changed in neutron: | |
assignee: | nobody → Kengo Hobo (hobo-kengo) |
summary: |
- Iteration for metering is stopped because metering-agent tried to - operate chain in namespace of deleted router + Iteration for metering fails because metering-agent tried to operate + chain in namespace of deleted router |
Changed in neutron: | |
status: | Incomplete → In Progress |
Fix proposed to branch: master /review. openstack. org/371407
Review: https:/