Confusing errors appears after running netns-cleanup with --force attribute

Bug #1463800 reported by Toni Freger
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Assaf Muller

Bug Description

The setup: Controller, Compute and 2 Network nodes
KILO - VRRP on RHEL7.1

Trying to delete all "alive" namespaces (alive - router with attached interface to the network)
The command succeeded but a lot of error messages appears.

 neutron-netns-cleanup --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/dhcp_agent.ini --force
2015-06-07 11:41:14.760 2623 INFO neutron.common.config [-] Logging enabled!
2015-06-07 11:41:14.761 2623 INFO neutron.common.config [-] /usr/bin/neutron-netns-cleanup version 2015.1.0
2015-06-07 11:41:16.777 2623 WARNING oslo_config.cfg [-] Option "use_namespaces" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
2015-06-07 11:41:17.193 2623 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-0239082e-0817-430f-a183-581cc995da28', 'ip', 'link', 'delete', 'qr-c3e98790-f6']
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Operation not supported

2015-06-07 11:41:17.592 2623 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-0239082e-0817-430f-a183-581cc995da28', 'ip', 'link', 'delete', 'ha-1a34b88b-13']
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Operation not supported

2015-06-07 11:41:18.655 2623 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-c3fb97a3-8547-4008-9360-daa940906da3', 'ip', 'link', 'delete', 'qr-ffdaf269-a2']
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Operation not supported

2015-06-07 11:41:19.052 2623 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-c3fb97a3-8547-4008-9360-daa940906da3', 'ip', 'link', 'delete', 'ha-e4a43b4c-79']
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Operation not supported

2015-06-07 11:41:22.065 2623 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-082e1275-c4d5-445b-a9c3-6bb0b7fe0b6a', 'ip', 'link', 'delete', 'qr-14f1c00c-6a']
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Operation not supported

2015-06-07 11:41:22.490 2623 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-082e1275-c4d5-445b-a9c3-6bb0b7fe0b6a', 'ip', 'link', 'delete', 'qg-72ded7f8-ec']
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Operation not supported

2015-06-07 11:41:22.881 2623 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-082e1275-c4d5-445b-a9c3-6bb0b7fe0b6a', 'ip', 'link', 'delete', 'ha-9630f5a6-73']
Exit code: 2
Stdin:
Stdout:
Stderr: RTNETLINK answers: Operation not supported

Assaf Muller (amuller)
Changed in neutron:
status: New → Confirmed
importance: Undecided → Low
tags: added: low-hanging-fruit
Changed in neutron:
assignee: nobody → tianzichen306 (tianzichen306)
Changed in neutron:
assignee: tianzichen306 (tianzichen306) → nobody
Changed in neutron:
assignee: nobody → Suraj Deshmukh (surajssd009005)
Changed in neutron:
assignee: Suraj Deshmukh (surajssd009005) → nobody
Revision history for this message
Miguel Angel Ajo (mangelajo) wrote :

I will go over it with the other netns bug I have for m-2

Changed in neutron:
assignee: nobody → Miguel Angel Ajo (mangelajo)
milestone: none → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/254422

Changed in neutron:
assignee: Miguel Angel Ajo (mangelajo) → Assaf Muller (amuller)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/254422
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=cfc9578148985f117c230be263d9faab4c1bb57e
Submitter: Jenkins
Branch: master

commit cfc9578148985f117c230be263d9faab4c1bb57e
Author: Assaf Muller <email address hidden>
Date: Mon Dec 7 17:36:06 2015 -0500

    Don't emit confusing error in netns-cleanup

    If we're trying to delete a dhcp/qrouter device with use_veth
    = False (Which is the default for some time), we'll first
    try to 'ip link del %s', which will fail and emit a confusing
    error, then try 'ovs-vsctl del-port'. There's no need to
    log an error in such a case.

    The patch attempts to future proof by setting the
    set_log_fail_as_error(False) to be as tight as possible, so we
    do log errors in case the device is somehow used in the future.

    Change-Id: I1954bde3ee9a2e43d7615717134b61c5fa7cfbb1
    Closes-Bug: #1463800

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/254975

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/254976

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 8.0.0.0b2

This issue was fixed in the openstack/neutron 8.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/kilo)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/254976
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/liberty)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/254975
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

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.