From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: Anthony PERARD <anthony.perard@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>, xen-devel@lists.xen.org
Subject: Re: [OSSTEST PATCH v7 2/3] ts-openstack-tempest: Run Tempest to check OpenStack
Date: Tue, 15 Nov 2016 16:42:50 -0500 [thread overview]
Message-ID: <20161115214250.GB29122@x230.dumpdata.com> (raw)
In-Reply-To: <20161114123334.5585-3-anthony.perard@citrix.com>
On Mon, Nov 14, 2016 at 12:33:33PM +0000, Anthony PERARD wrote:
> This script runs the OpenStack integration test suite, Tempest.
>
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> ---
> Changes in V7:
> - reindent
> - acked
>
> No change in V5
>
> Change in V4:
> - use \Q\E for tests names
> - write the full name of the tests to skip
> - use push @ignored_test then join()
> - use variables to store common prefix
> - rewrite comments
>
> Change in V3:
> - Use host as argument of the script.
> - Use selecthost() and get rid of $gho.
> - Use target_jobdir() instead of builddirsprops().
> - Put the ignored Tempest tests into a var and try to explain why there are
> skip.
>
> ---
> ---
> sg-run-job | 1 +
> ts-openstack-tempest | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 65 insertions(+)
> create mode 100755 ts-openstack-tempest
>
> diff --git a/sg-run-job b/sg-run-job
> index 7b9296c..f086e44 100755
> --- a/sg-run-job
> +++ b/sg-run-job
> @@ -477,6 +477,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..8cc993a
> --- /dev/null
> +++ b/ts-openstack-tempest
> @@ -0,0 +1,64 @@
> +#!/usr/bin/perl
> +# This is part of "osstest", an automated testing framework for Xen.
> +# Copyright (C) 2015 Citrix Inc.
2016.
> +#
> +# 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 <http://www.gnu.org/licenses/>.
> +
> +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, Linux 4.0 is the
> + # first Linux to have a fix.
What fix? Would it make sense to point this out? Also I am going to
assume the 'server' and 'client' are guests, and 'server' is not dom0?
> + 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, <<END, 7200);
> + $builddir/tempest/run_tempest.sh --virtual-env -- --concurrency=2 '$regex'
How come you are hardcoding 2?
> +END
> +}
> +
> +tempest();
> --
> Anthony PERARD
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-11-15 21:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-14 12:33 [OSSTEST PATCH v7 0/3] Have OpenStack tested on top of xen's master and libvirt's master Anthony PERARD
2016-11-14 12:33 ` [OSSTEST PATCH v7 1/3] ts-openstack-deploy: Deploy OpenStack on a host with devstack Anthony PERARD
2016-11-15 21:40 ` Konrad Rzeszutek Wilk
2016-11-18 18:51 ` Ian Jackson
2016-11-14 12:33 ` [OSSTEST PATCH v7 2/3] ts-openstack-tempest: Run Tempest to check OpenStack Anthony PERARD
2016-11-15 21:42 ` Konrad Rzeszutek Wilk [this message]
2016-11-21 17:50 ` Anthony PERARD
2016-11-14 12:33 ` [OSSTEST PATCH v7 3/3] Create a flight to test OpenStack with xen-unstable and libvirt Anthony PERARD
2016-11-18 18:57 ` Ian Jackson
2016-11-18 19:51 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161115214250.GB29122@x230.dumpdata.com \
--to=konrad@kernel.org \
--cc=Ian.Jackson@eu.citrix.com \
--cc=anthony.perard@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).