neutron meter agent can not find netns

Bug #2068554 reported by Xi Wenhao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

In the stable/2024.1 version, I attempted to use the Neutron meter functionality for network traffic statistics. However, the Neutron meter agent was unable to create the related iptables entries. After troubleshooting and debugging, I discovered that the /var/run/netns directory was not shared in the container, causing the check for the existence of netns to return false. Here is my solution:

Add a line in the kolla-ansible/ansible/role/neutron/default/main.yaml:
neutron_metering_agent_default_volumes:
  - "/var/run/netns:/var/run/netns:shared"

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.