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 protected]> 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 -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1463800 Title: Confusing errors appears after running netns-cleanup with --force attribute Status in neutron: Fix Released 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 To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1463800/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

