there is lots of netns mount in the compute

Bug #1683584 reported by Jeffrey Zhang
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Unassigned
Ocata
Fix Released
Undecided
Unassigned
Pike
Fix Released
Undecided
Unassigned

Bug Description

we are using

- /run:/run:shared
- /run/netns:/run/netns:shared

in neutron related service now.

In this way,
1. it is unnecessary
2. restart neutron container will generate logs of mount in system

re-produce:

1. deploy env as normal
2. init networks to trigger neutron to create namespace
3. restart neutron-l3-agent or neutron-dhcp-agent

check the number of mount point, you will found lots of netns mount is create after 3

solution:
remove /run/netns:/run/netns:shared will avoid this issue

Changed in kolla-ansible:
milestone: none → pike-1
Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Jeffrey, /run/netns:/run/netns:shared was added to fix https://bugs.launchpad.net/kolla/+bug/1616268.
Is no longer needed or we have to refine which container use /run/netns:/run/netns:shared?

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

@egonzalez90

Before bug 1616268, we are using

- /run:/run
- /run/netns:/run/netns:shared

After bug 1616268, we are using

- /run:/run:shared
- /run/netns:/run/netns:shared

After this bug, we should use

- /run:/run:shared

I guess the issue is caused by nested mount. So we should avoid to use nested mount.
When you just wanna mount netns, use

- /run/netns:/run/netns:shared

when you wanna to use netns and /run folder, use

- /run:/run:shared

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

@Jeffrey, thanks for clarification

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/454179
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=321a6e54842febcabbb1ca19f52bd40187ca75ab
Submitter: Jenkins
Branch: master

commit 321a6e54842febcabbb1ca19f52bd40187ca75ab
Author: Bertrand Lallau <email address hidden>
Date: Thu Apr 6 15:02:15 2017 +0200

    Cleanup /run/netns host directory volume mount

    "/run/:/run/:shared" is previously declare as "mounted" in container,
    hence "/run/netns/:/run/netns/:shared" directory volume mount is not
    required and must be removed.

    Related-Bug: #1683584
    Change-Id: Ia7032843c493e8a883edd2f4ec12e0fdefc823a3

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla-ansible (stable/ocata)

Related fix proposed to branch: stable/ocata
Review: https://review.openstack.org/457848

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla-ansible (stable/ocata)

Reviewed: https://review.openstack.org/457848
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=e6f61d8d7df6281775114dcc6bf97ea680c158cf
Submitter: Jenkins
Branch: stable/ocata

commit e6f61d8d7df6281775114dcc6bf97ea680c158cf
Author: Bertrand Lallau <email address hidden>
Date: Thu Apr 6 15:02:15 2017 +0200

    Cleanup /run/netns host directory volume mount

    "/run/:/run/:shared" is previously declare as "mounted" in container,
    hence "/run/netns/:/run/netns/:shared" directory volume mount is not
    required and must be removed.

    Related-Bug: #1683584
    Change-Id: Ia7032843c493e8a883edd2f4ec12e0fdefc823a3
    (cherry picked from commit 321a6e54842febcabbb1ca19f52bd40187ca75ab)

tags: added: in-stable-ocata
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.