Neutron containers are not sharing namespaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
The container "neutron_l3_agent" is not "sharing" the namespaces.
I added the "LOG.debug" inside "neutron/
def list_network_
"""List all network namespace entries.
:param kwargs: Callers add any filters they use as kwargs
"""
if cfg.CONF.
))
return privileged.
else:
return netns.listnetns
When i print the "neutron-
2021-10-15 22:18:13.890 21 DEBUG neutron.
But if I print the "neutron-
2021-10-15 22:18:37.663 7 DEBUG neutron.
**Enviroment**
Ubuntu 20.04
Docker 20.10.9
Kolla Ansible pip package 12.2.0
Using all-in-one inventory
**Globals.yml**
config_strategy: "COPY_ALWAYS"
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "wallaby"
kolla_internal_
network_interface: "ens160"
neutron_
neutron_
enable_haproxy: "yes"
enable_
docker_
I solved the problem I had with the metering agent with the following change, it may be useful.
diff --git a/ansible/ roles/neutron/ defaults/ main.yml b/ansible/ roles/neutron/ defaults/ main.yml a4cb2250319c2bb ec2b606578. .5dc5190d1faaee e239d19922ce2f1 2a8995f5706 100644 roles/neutron/ defaults/ main.yml roles/neutron/ defaults/ main.yml metering_ agent_default_ volumes: directory }}/neutron- metering- agent/: {{ container_ config_ directory }}/:ro" :/etc/localtime :ro" /etc/timezone: ro' if ansible_ facts.os_ family == 'Debian' else '' }}" /lib/modules: ro" metadata_ socket: /var/lib/ neutron/ kolla/" /run/netns: shared" logs:/var/ log/kolla/ " repos_directory ~ '/neutron/ neutron: /var/lib/ kolla/venv/ lib/python' ~ distro_ python_ version ~ '/site- packages/ neutron' if neutron_dev_mode | bool else '' }}" neutron_ agent_default_ volumes:
index a1f58d6dd0dbe6b
--- a/ansible/
+++ b/ansible/
@@ -494,6 +494,9 @@ neutron_
- "{{ node_config_
- "/etc/localtime
- "{{ '/etc/timezone:
+ - "/lib/modules:
+ - "neutron_
+ - "/run/netns:
- "kolla_
- "{{ kolla_dev_
ironic_