diff options
author | Vasyl Saienko <vsaienko@mirantis.com> | 2017-03-30 11:18:59 +0300 |
---|---|---|
committer | Vasyl Saienko <vsaienko@mirantis.com> | 2017-03-30 12:17:54 +0300 |
commit | 940c87d6c49be181d969e85d343b745149b6db10 (patch) | |
tree | 8159360d02977c2bf233b8f7c634c005adea8619 /ironic_tempest_plugin | |
parent | 22e8bb2b4d3ed26519621847b4c9e1d820c8fe3c (diff) | |
download | ironic-940c87d6c49be181d969e85d343b745149b6db10.tar.gz |
Skip PortNotFound when unbinding port
There might be cases when user deleted port before doing vif_detach.
With this patch info message will be shown in the logs for such cases.
Change-Id: Ic3c5073130a4839f27692db1862100bdd7dfca1e
Diffstat (limited to 'ironic_tempest_plugin')
-rw-r--r-- | ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py b/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py index 507513b53..25fb74eb2 100644 --- a/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py +++ b/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py @@ -330,6 +330,8 @@ class BaremetalStandaloneScenarioTest(BaremetalStandaloneManager): def resource_cleanup(cls): cls.cleanup_floating_ip(cls.node_ip) vifs = cls.get_node_vifs(cls.node['uuid']) + # Remove ports before deleting node, to catch regression for cases + # when user did this prior unprovision node. for vif in vifs: cls.ports_client.delete_port(vif) cls.terminate_node(cls.node['uuid']) |