Scripts neutron-netns-cleanup does not delete namespaces without key --force

Bug #1541470 reported by Egor Kotko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Confirmed
Low
Sergey Belous
8.0.x
Won't Fix
Low
Ilya Shakhat
9.x
Fix Released
Low
MOS Neutron

Bug Description

I was trying to reproduce https://bugs.launchpad.net/mos/+bug/1499729

Steps were:
root@node-6:~# ip netns | grep -c qdhcp
3
 * Create 2k namespaces:
   for i in {1000..2999}; do ip netns add "qdhcp-6a6302b1-37a7-4142-a11d-5be2778f$i" ; done
 * Run q-agent-cleanup:
   neutron-netns-cleanup --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/dhcp_agent.ini
after command execution:
root@node-6:~# ip netns | grep -c qdhcp
2001

add key --force in the command and it works fine.

Cluster Configuration:
Baremetal, Ubuntu, HA,Neutron-VLAN, Default storages, 3Comtrollers, 1 Compute, 1Cinder+Compute

ISO #506

Revision history for this message
Egor Kotko (ykotko) wrote :
tags: added: area-neutron
removed: neutron
Changed in mos:
status: New → Won't Fix
Changed in mos:
milestone: 8.0 → 10.0
importance: Medium → Low
status: Won't Fix → Confirmed
assignee: Ilya Shakhat (shakhat) → MOS Neutron (mos-neutron)
no longer affects: mos/10.0.x
tags: added: move-to-10.0
Changed in mos:
milestone: 10.0 → 9.1
assignee: MOS Neutron (mos-neutron) → Oleg Bondarev (obondarev)
Changed in mos:
assignee: Oleg Bondarev (obondarev) → Sergey Belous (sbelous)
Revision history for this message
Sergey Belous (sbelous) wrote :
Changed in mos:
status: Confirmed → Fix Committed
Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Sergii Turivnyi (sturivnyi) wrote :

Was tested on snapshot #315

root@node-2:~# ip netns | grep -c qdhcp
3
root@node-2:~# for i in {1000..2999}; do ip netns add "qdhcp-6a6302b1-37a7-4142-a11d-5be2778f$i" ;

root@node-2:~# neutron-netns-cleanup --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/dhcp_agent.ini
Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.

root@node-2:~# ip netns | grep -c qdhcp
3

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/neutron (11.0/ocata)

Fix proposed to branch: 11.0/ocata
Change author: Sergey Belous <email address hidden>
Review: https://review.fuel-infra.org/34183

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/neutron (mcp/ocata)

Fix proposed to branch: mcp/ocata
Change author: Sergey Belous <email address hidden>
Review: https://review.fuel-infra.org/34923

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/neutron (11.0/ocata)

Change abandoned by Roman Podoliaka <email address hidden> on branch: 11.0/ocata
Review: https://review.fuel-infra.org/34183
Reason: we do not need 11.0/ocata anymore - use mcp/ocata instead

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/neutron (mcp/newton)

Change abandoned by Alexander Ignatov <email address hidden> on branch: mcp/newton
Review: https://review.fuel-infra.org/33830
Reason: This was mos-specific patch. Not required for Newton as well as Ocata.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/neutron (mcp/ocata)

Change abandoned by Alexander Ignatov <email address hidden> on branch: mcp/ocata
Review: https://review.fuel-infra.org/34923
Reason: This was mos-specific patch. Not required for Newton as well as Ocata.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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