summaryrefslogtreecommitdiff
path: root/rally-jobs
diff options
context:
space:
mode:
authorSai Sindhur Malleni <smalleni@redhat.com>2019-02-12 17:13:45 -0500
committerSai Sindhur Malleni <smalleni@redhat.com>2019-02-13 13:09:33 -0500
commit3c2a23ba9491d4a34abe0fa58cb5a1a2e89e0333 (patch)
tree87db7e8ed57bfdc6965b0675aac321a55b7d4bcd /rally-jobs
parent3aac42b3c7fd33a092c5d6662f89b3d282aeb61a (diff)
downloadneutron-3c2a23ba9491d4a34abe0fa58cb5a1a2e89e0333.tar.gz
Remove trunk rally scenario from plugins
Since the trunk scenario is now present in rally-openstack tree, it is no longer needed in neutron tree. Change-Id: I27c9f0baed267ca8bd181d34842b9d5cc03ab846
Diffstat (limited to 'rally-jobs')
-rw-r--r--rally-jobs/plugins/trunk_scenario.py61
-rw-r--r--rally-jobs/task-neutron.yaml2
2 files changed, 1 insertions, 62 deletions
diff --git a/rally-jobs/plugins/trunk_scenario.py b/rally-jobs/plugins/trunk_scenario.py
deleted file mode 100644
index fd54330011..0000000000
--- a/rally-jobs/plugins/trunk_scenario.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-from rally.common import validation
-from rally.task import atomic
-from rally_openstack import consts
-from rally_openstack import scenario
-from rally_openstack.scenarios.neutron import utils
-
-
-"""Scenarios for VLAN Aware VMs."""
-
-
-@validation.add("required_services", services=[consts.Service.NEUTRON])
-@validation.add("required_platform", platform="openstack", users=True)
-@scenario.configure(context={"cleanup@openstack": ["neutron"]},
- name="NeutronTrunks.create_and_list_trunk_subports")
-class TrunkLifeCycle(utils.NeutronScenario):
-
- def run(self, subport_count=50):
- net = self._create_network({})
- self._create_subnet(net, {'cidr': '10.0.0.0/8'})
- ports = [self._create_port(net, {}) for i in range(subport_count)]
- parent, subports = ports[0], ports[1:]
- subport_payload = [{'port_id': p['port']['id'],
- 'segmentation_type': 'vlan',
- 'segmentation_id': seg_id}
- for seg_id, p in enumerate(subports, start=1)]
- trunk_payload = {'port_id': parent['port']['id'],
- 'sub_ports': subport_payload}
- trunk = self._create_trunk(trunk_payload)
- self._update_port(parent, {'device_id': 'sometrunk'})
- self._list_trunks(id=trunk['trunk']['id'])
- self._list_ports_by_device_id("sometrunk")
- self._delete_trunk(trunk['trunk']['id'])
-
- @atomic.action_timer("neutron.delete_trunk")
- def _delete_trunk(self, trunk_id):
- self.clients("neutron").delete_trunk(trunk_id)
-
- @atomic.action_timer("neutron.create_trunk")
- def _create_trunk(self, trunk_payload):
- return self.clients("neutron").create_trunk({'trunk': trunk_payload})
-
- @atomic.optional_action_timer("neutron.list_trunks")
- def _list_trunks(self, **kwargs):
- return self.clients("neutron").list_trunks(**kwargs)["trunks"]
-
- @atomic.optional_action_timer("neutron.list_ports_by_device_id")
- def _list_ports_by_device_id(self, device_id):
- return self.clients("neutron").list_ports(device_id=device_id)
diff --git a/rally-jobs/task-neutron.yaml b/rally-jobs/task-neutron.yaml
index bf4cac9626..7a34c2c828 100644
--- a/rally-jobs/task-neutron.yaml
+++ b/rally-jobs/task-neutron.yaml
@@ -288,7 +288,7 @@
-
title: Trunks related workload
scenario:
- NeutronTrunks.create_and_list_trunk_subports:
+ NeutronTrunks.create_and_list_trunks:
subport_count: 125
runner:
constant: