Based on the queens version deployed in Kolla-ansible, you can view the resource usage of openstack Based on docker stats and find that neutron_openvswitch_agent has been occupying 100% of CPU resources. This problem has been fixed in the latest queens and rocky versions, to solve this problem, follow these steps:
Solution
Replace the/var/lib/Kolla/venv/lib/python2.7/Site-packages/neutron/agent/Linux/ip_conntrack.py file of the neutron_openvswitch_agent container.
Replace the/var/lib/Kolla/venv/lib/python2.7/Site-packages/neutron/tests/unit/agent/Linux/test_iptables_firewall.py file of the neutron_openvswitch_agent container.
* Steps
docker cp ip_conntrack.py neutron_openvswitch_agent:/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/agent/linux/docker cp test_iptables_firewall.py neutron_openvswitch_agent:/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/tests/unit/agent/linux/
- The ip_conntrack.py and test_iptables_firewall.py files are as follows:
[File Download link] (https://pan.baidu.com/s/1BIfsbXlyVVhkD6VU0LZVwg#list/path=%2F)
Neutron: 100% CPU usage of neutron_openvswitch_agent