summaryrefslogtreecommitdiffstats
path: root/patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch
blob: 0fd972cc0c6ee9dbb6d8b0be158732345a84e1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Tue, 28 Jun 2016 21:27:02 +0200
Subject: [PATCH] ci/build-vsperf: make qemu-system name arch-indep.

Instead of hardcoding x86_64 into qemu-system name, use `uname -m`.

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
 ci/build-vsperf.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ci/build-vsperf.sh b/ci/build-vsperf.sh
index a02de00..fa0d46a 100755
--- a/ci/build-vsperf.sh
+++ b/ci/build-vsperf.sh
@@ -87,14 +87,15 @@ TEST_REPORT_LOG_DIR="${HOME}/opnfv/$PROJECT/results/$BRANCH"
 # parameters:
 #   none
 function terminate_vsperf() {
+    local qemu_system_name="qemu-system-$(uname -m)"
     sudo pkill stress &> /dev/null
     sudo pkill python3 &> /dev/null
-    sudo killall -9 qemu-system-x86_64 &> /dev/null
+    sudo killall -9 "${qemu_system_name}" &> /dev/null

     # sometimes qemu resists to terminate, so wait a bit and kill it again
-    if pgrep qemu-system-x86_64 &> /dev/null ; then
+    if pgrep "${qemu_system_name}" &> /dev/null ; then
         sleep 5
-        sudo killall -9 qemu-system-x86_64 &> /dev/null
+        sudo killall -9 "${qemu_system_name}" &> /dev/null
         sleep 5
     fi
n class="l l-Scalar l-Scalar-Plain">json DefaultPasswords: default: {} type: json RoleName: default: '' description: Role name on which the service is applied type: string RoleParameters: default: {} description: Parameters specific to the role type: json EndpointMap: default: {} description: Mapping of service endpoint -> protocol. Typically set via parameter_defaults in the resource registry. type: json MonitoringSubscriptionOctaviaWorker: default: 'overcloud-octavia-worker' type: string OctaviaWorkerLoggingSource: type: json default: tag: openstack.octavia.worker path: /var/log/octavia/worker.log OctaviaAmphoraImageTag: default: '' description: Glance image tag for identifying the amphora image. type: string OctaviaAmphoraNetworkList: default: [] description: List of networks to attach to amphorae. type: comma_delimited_list OctaviaLoadBalancerTopology: default: '' description: Load balancer topology configuration. type: string OctaviaFlavorId: default: 65 description: Nova flavor ID to be used when creating the nova flavor for amphora. type: number OctaviaFlavorProperties: default: {} description: Dictionary describing the nova flavor for amphora. type: json OctaviaManageNovaFlavor: default: false description: Configure the nova flavor for the amphora. type: boolean OctaviaSSHKeyName: default: 'octavia-ssh-key' description: name for ssh key to be configured so the amphora can be logged into. type: string conditions: octavia_topology_unset: {equals : [{get_param: OctaviaLoadBalancerTopology}, ""]} octavia_amphora_tag_unset: {equals: [{get_param: OctaviaAmphoraImageTag}, ""]} resources: OctaviaBase: type: ./octavia-base.yaml properties: ServiceNetMap: {get_param: ServiceNetMap} DefaultPasswords: {get_param: DefaultPasswords} EndpointMap: {get_param: EndpointMap} RoleName: {get_param: RoleName} RoleParameters: {get_param: RoleParameters} outputs: role_data: description: Role data for the Octavia WoWorker service. value: service_name: octavia_worker monitoring_subscription: {get_param: MonitoringSubscriptionOctaviaWorker} logging_source: {get_param: OctaviaWorkerLoggingSource} logging_groups: -octavia config_settings: map_merge: - get_attr: [OctaviaBase, role_data, config_settings] - octavia::worker::amp_boot_network_list: {get_param: OctaviaAmphoraNetworkList} octavia::worker::amp_flavor_id: {get_param: OctaviaFlavorId} octavia::worker::nova_flavor_config: {get_param: OctaviaFlavorProperties} octavia::worker::manage_nova_flavor: {get_param: OctaviaManageNovaFlavor} octavia::worker::ssh_key_name: {get_param: OctaviaSSHKeyName} - if: - octavia_amphora_tag_unset - {} - octavia::worker::amp_image_tag: {get_param: OctaviaAmphoraImageTag} - if: - octavia_topology_unset - {} - octavia::worker::loadbalancer_topology: {get_param: OctaviaLoadBalancerTopology} step_config: | include tripleo::profile::base::octavia::worker