tempest test api.network;l3 agent can't delete HA-router
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Medium
|
jessegler |
Bug Description
I use tempest test my company's openstack environment.
# tox -eall -- tempest.api.network
When tox finished. Log in L3-agent always show:
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
2015-10-27 19:32:03.281 23885 ERROR neutron.
I think the reason is tempest create and delete router too fast.
when l3-agent create ha-router,tempest delete the router,and neutron-server delete ha-interface
https:/
class HaRouter can't initialized without ha-interface information,it just return without _init_keepalive
When l3-agent delete router,it report AttributeError: 'NoneType'.
When l3 agent can't delete the router,l3 agent always fullsync with neutron-server every 30 seconds.
In controller, the neutron-server cpu always 70%..^-^
L3 agent should add a check before create HArouter.If it find ha-interface is none ,means router has been deleted in neutron-server.
Changed in neutron: | |
assignee: | nobody → Hong Hui Xiao (xiaohhui) |
Changed in neutron: | |
status: | Confirmed → In Progress |
tags: | added: l3-ha |
Changed in neutron: | |
status: | In Progress → Incomplete |
assignee: | Hong Hui Xiao (xiaohhui) → nobody |
Changed in neutron: | |
assignee: | nobody → jessegler (je808k) |
Although it is reported as a tempest bug, it might happen in a real world.