VethFixture: smart veth delete
Bug #1506862 reported by
Cedric Brandily
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Cedric Brandily |
Bug Description
VethFixture cleanup tries to delete veths from their namespaces even if they don't exist (without crashing the cleanup), it implies an extra trace if an error is raised which can be confusing:
Command: ['sudo', '-n', 'ip', 'netns', 'exec', 'test-ddc6fc89-
Exit code: 1
Stdin:
Stdout:
Stderr: Cannot open network namespace "test-ddc6fc89-
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → Low |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/221350 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=72e87f6d87d 0da65214a9d21fe 603883f1d3c232
Committed: https:/
Submitter: Jenkins
Branch: master
commit 72e87f6d87d0da6 5214a9d21fe6038 83f1d3c232
Author: Cedric Brandily <email address hidden>
Date: Tue Sep 8 15:02:57 2015 +0000
Do not try to delete a veth from a nonexistent namespace
Currently, VethFixture cleanup tries to delete veth from their
namespaces even if they don't exist anymore (without crashing the
cleanup). It implies an extra trace if an error is raised which can be
confusing.
This change avoids to try deleting a veth from a nonexistent namespace
in the fixture VethFixture.
Closes-Bug: #1506862 8d1a6f783769ae9 bfcb4bae7f2
Change-Id: I5d0192998d2f3f