summaryrefslogtreecommitdiffstats
path: root/tests/unit/network_services
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-08-14 03:09:53 -0700
committerDeepak S <deepak.s@linux.intel.com>2017-08-15 18:12:28 -0700
commit5421cf0bac5d0ecff13508bb488391cb043bae66 (patch)
treeea4109f79eed88fe416e454b9e23a52d40f2f040 /tests/unit/network_services
parent4a5bc16d841221e8ac7853b3044e50af0c8143d2 (diff)
run_traffic: capture and exit gracefully if crash in trex run_traffic
new non-blocking code of run_traffic has raise condition which causes trex client to exit with STLError. This patches captures the exception and exit gracefully Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/network_services/vnf_generic/vnf/sample_vnf.py", line 945, in _traffic_runner self.resource_helper.run_traffic(traffic_profile) File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/network_services/vnf_generic/vnf/sample_vnf.py", line 506, in run_traffic self._run_traffic_once(traffic_profile) File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/network_services/vnf_generic/vnf/tg_rfc2544_trex.py", line 63, in _run_traffic_once self.client.stop(self.my_ports) File "/opt/nsb_bin/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py", line 1202, in wrap2 raise STLError("'{0}' - connection to the server had been lost: '{1}'".format(func_name, client.conn.get_disconnection_cause())) STLError: Change-Id: Ie5741339451e0a3f9c4bb48f64fd35d86d18e5d4 Signed-off-by: Deepak S <deepak.s@linux.intel.com> Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'tests/unit/network_services')
-rw-r--r--tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py b/tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py
index af0d2ddde..07a862a8e 100644
--- a/tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py
+++ b/tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py
@@ -1142,7 +1142,7 @@ class TestClientResourceHelper(unittest.TestCase):
}
@mock.patch('yardstick.network_services.vnf_generic.vnf.sample_vnf.LOG')
- @mock.patch('yardstick.network_services.vnf_generic.vnf.sample_vnf.STLStateError',
+ @mock.patch('yardstick.network_services.vnf_generic.vnf.sample_vnf.STLError',
new_callable=lambda: MockError)
def test_get_stats_not_connected(self, mock_state_error, mock_logger):
vnfd_helper = VnfdHelper({})
'n245' href='#n245'>245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
# Data in this file is used to generate the endpoint_map.yaml template.
# Run the script build_endpoint_map.py to regenerate the file.

Aodh:
    Internal:
        net_param: AodhApi
    Public:
        net_param: Public
    Admin:
        net_param: AodhApi
    port: 8042

Ceilometer:
    Internal:
        net_param: CeilometerApi
    Public:
        net_param: Public
    Admin:
        net_param: CeilometerApi
    port: 8777

Gnocchi:
    Internal:
        net_param: GnocchiApi
    Public:
        net_param: Public
    Admin:
        net_param: GnocchiApi
    port: 8041

Cinder:
    Internal:
        net_param: CinderApi
        uri_suffixes:
            '': /v1/%(tenant_id)s
            V2: /v2/%(tenant_id)s
            V3: /v3/%(tenant_id)s
    Public:
        net_param: Public
        uri_suffixes:
            '': /v1/%(tenant_id)s
            V2: /v2/%(tenant_id)s
            V3: /v3/%(tenant_id)s
    Admin:
        net_param: CinderApi
        uri_suffixes:
            '': /v1/%(tenant_id)s
            V2: /v2/%(tenant_id)s
            V3: /v3/%(tenant_id)s
    port: 8776

Glance:
    Internal:
        net_param: GlanceApi
    Public:
        net_param: Public
    Admin:
        net_param: GlanceApi
    port: 9292

GlanceRegistry:
    Internal:
        net_param: GlanceRegistry
    port: 9191

Mysql:
    Internal:
        net_param: Mysql
    protocol: mysql+pymysql
    port: 3306

Heat:
    Internal:
        net_param: HeatApi
        uri_suffixes:
            '': /v1/%(tenant_id)s
    Public:
        net_param: Public
        uri_suffixes:
            '': /v1/%(tenant_id)s
    Admin:
        net_param: HeatApi
        uri_suffixes:
            '': /v1/%(tenant_id)s
    port: 8004

HeatCfn:
    Internal:
        net_param: HeatApi
        uri_suffixes:
            '': /v1
    Public:
        net_param: Public
        uri_suffixes:
            '': /v1
    Admin:
        net_param: HeatApi
        uri_suffixes:
            '': /v1
    port: 8000

Horizon:
    Public:
        net_param: Public
        uri_suffixes:
            '': /dashboard
    port: 80

# TODO(ayoung): V3 is a temporary fix. Endpoints should be versionless.
# Required for https://bugs.launchpad.net/puppet-nova/+bug/1542486
Keystone:
    Internal:
        net_param: KeystonePublicApi
        uri_suffixes:
            '': /v2.0
            EC2: /v2.0/ec2tokens
            V3: /v3
        names:
            EC2: KeystoneEC2
    Public:
        net_param: Public
        uri_suffixes:
            '': /v2.0
            V3: /v3
    Admin:
        net_param: KeystoneAdminApi
        uri_suffixes:
            '': /v2.0
            V3: /v3
        port: 35357
    port: 5000

Manila:
    Internal:
        net_param: ManilaApi
        uri_suffixes:
            '': /v2/%(tenant_id)s
            V1: /v1/%(tenant_id)s
    Public:
        net_param: Public
        uri_suffixes:
            '': /v2/%(tenant_id)s
            V1: /v1/%(tenant_id)s
    Admin:
        net_param: ManilaApi
        uri_suffixes:
            '': /v2/%(tenant_id)s
            V1: /v1/%(tenant_id)s
    port: 8786

Mistral:
    Internal:
        net_param: MistralApi
        uri_suffixes:
            '': /v2
    Public:
        net_param: Public
        uri_suffixes:
            '': /v2
    Admin:
        net_param: MistralApi
        uri_suffixes:
            '': /v2
    port: 8989

Neutron:
    Internal:
        net_param: NeutronApi
    Public:
        net_param: Public
    Admin:
        net_param: NeutronApi
    port: 9696

Nova:
    Internal:
        net_param: NovaApi
        uri_suffixes:
            '': /v2.1
    Public:
        net_param: Public
        uri_suffixes:
            '': /v2.1
    Admin:
        net_param: NovaApi
        uri_suffixes:
            '': /v2.1
    port: 8774

NovaVNCProxy:
    Internal:
        net_param: NovaApi
    Public:
        net_param: Public
    Admin:
        net_param: NovaApi
    port: 6080

Swift:
    Internal:
        net_param: SwiftProxy
        uri_suffixes:
            '': /v1/AUTH_%(tenant_id)s
            S3:
    Public:
        net_param: Public
        uri_suffixes:
            '': /v1/AUTH_%(tenant_id)s
            S3:
    Admin:
        net_param: SwiftProxy
        uri_suffixes:
            '':
            S3:
    port: 8080

CephRgw:
    Internal:
        net_param: CephRgw
        uri_suffixes:
            '': /swift/v1
    Public:
        net_param: Public
        uri_suffixes:
            '': /swift/v1
    Admin:
        net_param: CephRgw
        uri_suffixes:
            '': /swift/v1
    port: 8080

Sahara:
    Internal:
        net_param: SaharaApi
        uri_suffixes:
            '': /v1.1/%(tenant_id)s
    Public:
        net_param: Public
        uri_suffixes:
            '': /v1.1/%(tenant_id)s
    Admin:
        net_param: SaharaApi
        uri_suffixes:
            '': /v1.1/%(tenant_id)s
    port: 8386

Ironic:
    Internal:
        net_param: IronicApi
        uri_suffixes:
            '': /v1
    Public:
        net_param: Public
        uri_suffixes:
            '': /v1
    Admin:
        net_param: IronicApi
        uri_suffixes:
            '': /v1
    port: 6385