From 9e5a8a2f221b3be9658978d0f1a2de1d5c92a309 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Mon, 27 Feb 2017 01:53:16 -0800 Subject: [PATCH] Log instance interface addrs in subport test Change-Id: Icd5a1e239e75f228a3b5c4fdaa07e538e7037850 --- neutron/tests/tempest/scenario/test_trunk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neutron/tests/tempest/scenario/test_trunk.py b/neutron/tests/tempest/scenario/test_trunk.py index 54399aa1037..d5ffd45118f 100644 --- a/neutron/tests/tempest/scenario/test_trunk.py +++ b/neutron/tests/tempest/scenario/test_trunk.py @@ -13,6 +13,7 @@ # under the License. import netaddr +from oslo_log import log as logging from tempest.common import waiters from tempest.lib.common import ssh from tempest.lib.common.utils import data_utils @@ -24,6 +25,7 @@ from neutron.tests.tempest import config from neutron.tests.tempest.scenario import base from neutron.tests.tempest.scenario import constants +LOG = logging.getLogger(__name__) CONF = config.CONF CONFIGURE_VLAN_INTERFACE_COMMANDS = ( @@ -236,6 +238,8 @@ class TrunkTest(base.BaseTempestTestCase): # Configure VLAN interfaces on server command = CONFIGURE_VLAN_INTERFACE_COMMANDS % {'tag': vlan_tag} server['ssh_client'].exec_command(command) + out = server['ssh_client'].exec_command('ip addr list') + LOG.debug("Interfaces on server %s: %s", server, out) # Ping from server1 to server2 via VLAN interface should fail because # we haven't allowed ICMP