From patchwork Fri Apr 21 10:58:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9692471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C483C60328 for ; Fri, 21 Apr 2017 11:01:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B426F28607 for ; Fri, 21 Apr 2017 11:01:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A87F52860E; Fri, 21 Apr 2017 11:01:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2D8F928607 for ; Fri, 21 Apr 2017 11:01:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1WHJ-0007YM-OH; Fri, 21 Apr 2017 10:59:05 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1WHI-0007Xo-HT for xen-devel@lists.xenproject.org; Fri, 21 Apr 2017 10:59:04 +0000 Received: from [85.158.137.68] by server-12.bemta-3.messagelabs.com id 8A/16-01870-7F5E9F85; Fri, 21 Apr 2017 10:59:03 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHSDve73pz8 jDKYcF7T4vmUykwOjx+EPV1gCGKNYM/OS8isSWDPez2tlLFgoUzGvfTprA+MB8S5GTg4JAX+J tfu3MYLYbAIGEiumXwWyOThEBFQkbu81AAkzC0RIvLixig3EFhbwlZh44x87iM0ioCqxqm8Om M0rYCcx80cLG8RIeYmzW3Yyg9icAvYS5z49AhsvBFRz+uUXZghbTeLGwmUsEL2CEidnPmGB2C UhcfDFC+YJjLyzkKRmIUktYGRaxahRnFpUllqka2iul1SUmZ5RkpuYmaNraGCsl5taXJyYnpq TmFSsl5yfu4kRGDoMQLCD8eVpz0OMkhxMSqK8Vzt+RgjxJeWnVGYkFmfEF5XmpBYfYpTh4FCS 4G14ApQTLEpNT61Iy8wBBjFMWoKDR0mENx0kzVtckJhbnJkOkTrFqMtxpfXjeyYhlrz8vFQpc V4zkCIBkKKM0jy4EbCIusQoKyXMywh0lBBPQWpRbmYJqvwrRnEORiVh3q0gU3gy80rgNr0COo IJ6Iizfj9AjihJREhJNTBq697tVvnzjvn88l6+Hatf6H6ytdKVO+Pg5NEh3Hakh43zytP+lZ/ 6uA7eb3301fKCWgN7cu9LnVTLK6zTJ4YcCj21wPDhrbpr7+/yfbRpEpq1gTlCpOV7v/qhq4LL Lkg3aW4N2ax9r5xJs2LrZyvFGfu/N2rteNZb+Z3rbWA/b5iJ8M0zKrpKLMUZiYZazEXFiQCHK kvlowIAAA== X-Env-Sender: prvs=277ef2926=anthony.perard@citrix.com X-Msg-Ref: server-10.tower-31.messagelabs.com!1492772341!96049848!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 58264 invoked from network); 21 Apr 2017 10:59:02 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-10.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 21 Apr 2017 10:59:02 -0000 X-IronPort-AV: E=Sophos;i="5.37,229,1488844800"; d="scan'208";a="429000403" From: Anthony PERARD To: Date: Fri, 21 Apr 2017 11:58:23 +0100 Message-ID: <20170421105824.22083-3-anthony.perard@citrix.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170421105824.22083-1-anthony.perard@citrix.com> References: <20170421105824.22083-1-anthony.perard@citrix.com> MIME-Version: 1.0 Cc: Anthony PERARD , Ian Jackson Subject: [Xen-devel] [PATCH v10 2/3] ts-openstack-tempest: Run Tempest to check OpenStack X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This script runs the OpenStack integration test suite, Tempest. Signed-off-by: Anthony PERARD Acked-by: Ian Campbell Acked-by: Ian Jackson --- Changes in V10: - Add 'set -e' to target_cmd call --- sg-run-job | 1 + ts-openstack-tempest | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100755 ts-openstack-tempest diff --git a/sg-run-job b/sg-run-job index cd7013e..8d92d0a 100755 --- a/sg-run-job +++ b/sg-run-job @@ -495,6 +495,7 @@ proc run-job/test-rumprun {} { proc need-hosts/test-devstack {} { return host } proc run-job/test-devstack {} { run-ts . = ts-openstack-deploy + host + run-ts . = ts-openstack-tempest + host } if {[file exists sg-run-job-adhoc]} { diff --git a/ts-openstack-tempest b/ts-openstack-tempest new file mode 100755 index 0000000..82e9a71 --- /dev/null +++ b/ts-openstack-tempest @@ -0,0 +1,65 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2016 Citrix Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +use strict qw(vars); +use Osstest; +use Osstest::TestSupport; +use Osstest::BuildSupport; + +tsreadconfig(); +our ($whhost) = @ARGV; +$whhost ||= 'host'; +our $ho = selecthost($whhost); +our $builddir = target_jobdir($ho); + +sub tempest() { + my @ignored_tests; + my $scenario = 'tempest.scenario'; + my $volume_boot_pattern = + "$scenario.test_volume_boot_pattern.TestVolumeBootPattern"; + my $shelve_instance = "$scenario.test_shelve_instance.TestShelveInstance"; + + # Ignore tests which try to boot a guest with /dev/vda as boot device name. + push @ignored_tests, + "^\Q$volume_boot_pattern.test_volume_boot_pattern\E"; + push @ignored_tests, + "^\Q$volume_boot_pattern.test_create_ebs_image_and_check_boot\E"; + push @ignored_tests, + "^\Q$shelve_instance.test_shelve_volume_backed_instance\E"; + + # Those tests access a volume through iSCSI. This does not work when both + # the server and client of iSCSI are on the same Xen host (both in dom0), + # Linux 4.0 is the first Linux to have a fix. + push @ignored_tests, + "^\Q${volume_boot_pattern}V2.test_volume_boot_pattern\E"; + push @ignored_tests, + "^\Q${volume_boot_pattern}V2.test_create_ebs_image_and_check_boot\E"; + + # This regex below select the tests to run and exclude the ones marked as + # slow as well as the explicit tests listed above. It is based on the one + # that can be found in tempest.git/tox.ini in the section [testenv:full]. + my $ignored_tests = join("|", @ignored_tests); + my $regex = "(?!.*\\[.*\\bslow\\b.*\\]|$ignored_tests)". + "(^tempest\\.(api|scenario|thirdparty))"; + + target_cmd($ho, <