Have OpenStack tested on top of xen's master and libvirt's master.
v2 cover Have OpenStack tested on top of xen's master and libvirt's master.
Hi,
I have looked into getting OpenStack been tested on the latest Xen via osstest. There is an adjustement in common code to accomodate OpenStack, this is a few extra Linux config option.
The ts-openstack-devstack script does prepare a bit more the host, clone devstack and other OpenStack trees, then run ./stack.sh, which is a bit like raisin. Once the machine is ready, the integration test suite from OpenStack, Tempest, is started by ts-openstack-tempest.
For the last patch that create a flight plan, I've tested only with ./standalone make-flight openstack and looked into the database to check that only the necessary build job and the only test job are there.
Thanks.
Changes in V2:
- no more Osstest::Toolstack::OpenStack.
- osstest now clone every single tree that devstack is going to need. And ./stack.sh should fail if one tree is missing.
- avoid build-*-xsm for an openstack flight
- rename ts-devstack to ts-openstack-devstack
- New test script ts-openstack-tempest
- Add CONFIG_CRYPTO_XTS=m to the kernel build.
- new possible runvar $dom0_mem to control dom0 memory
- several fix to have volume tests working.
- have OpenStack deploy from it's builddir instead of /opt/stack
- have 4GB for dom0 instead of relying on balloning.
Anthony PERARD (6):
ts-kernel-build: Enable CONFIG_NETFILTER_XT_TARGET_CHECKSUM
ts-kernel-build: Compile CONFIG_CRYPTO_XTS in
ts-xen-install: Add dom0_mem runvar to control dom0 memory
ts-openstack-devstack: Deploy OpenStack on a host
ts-openstack-tempest: Run Tempest to check OpenStack Create a flight to test OpenStack with xen-unstable and libvirt
ap-common | 9 ++ ap-fetch-version | 4 + ap-fetch-version-old | 5 + ap-print-url | 3 + cri-common | 1 + make-flight | 42 ++++++- mfi-common | 5 + sg-run-job | 6 + ts-kernel-build | 8 ++ ts-openstack-devstack | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++ ts-openstack-tempest | 35 ++++++ ts-xen-install | 3 +- 12 files changed, 423 insertions(+), 2 deletions(-) create mode 100755 ts-openstack-devstack create mode 100755 ts-openstack-tempest
Signature · 1 line
Anthony PERARD
PATCH v2 1/6 ts-kernel-build: Enable CONFIG_NETFILTER_XT_TARGET_CHECKSUM
This iptables target CHECKSUM is used by OpenStack.
--- ts-kernel-build | 5 +++++ 1 file changed, 5 insertions(+)
ts-kernel-build +5 -0
@@ -248,6 +248,11 @@ setopt CONFIG_SYSVIPC y setopt CONFIG_BLK_DEV_LOOP y setopt CONFIG_PACKET y + +# needed for OpenStack +# because: https://bugzilla.redhat.com/show_bug.cgi?id=910619#c6 +setopt CONFIG_NETFILTER_ADVANCED y +setopt CONFIG_NETFILTER_XT_TARGET_CHECKSUM m END sub stash_config_edscript ($) { my ($settings) = @_;
Signature · 1 line
Anthony PERARD
PATCH v2 2/6 ts-kernel-build: Compile CONFIG_CRYPTO_XTS in
In reply to Anthony PERARDOpenStack Tempest is using aes-xts-plain64 cipher with cryptsetup to test encrypted volumes and this is not configurable.
--- ts-kernel-build | 3 +++ 1 file changed, 3 insertions(+)
ts-kernel-build +3 -0
@@ -253,6 +253,9 @@ setopt CONFIG_PACKET y # because: https://bugzilla.redhat.com/show_bug.cgi?id=910619#c6 setopt CONFIG_NETFILTER_ADVANCED y setopt CONFIG_NETFILTER_XT_TARGET_CHECKSUM m + +# Used by OpenStack Tempest to test encrypted volume +setopt CONFIG_CRYPTO_XTS m END sub stash_config_edscript ($) { my ($settings) = @_;
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 2/6] ts-kernel-build: Compile CONFIG_CRYPTO_XTS in
Quoted 4 lines · Anthony PERARD
OpenStack Tempest is using aes-xts-plain64 cipher with cryptsetup to test encrypted volumes and this is not configurable.
Signed-off-by Anthony PERARD <[email protected]>
PATCH v2 3/6 ts-xen-install: Add dom0_mem runvar to control dom0 memory
In reply to Anthony PERARD--- ts-xen-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ts-xen-install +2 -1
@@ -153,7 +153,8 @@ sub setupboot () { logm("No Xen console device defined for host"); } if (toolstack($ho)->{Dom0MemFixed}) { - $xenhopt .= " dom0_mem=512M,max:512M"; + my $mem = $r{'dom0_mem'} // 512; + $xenhopt .= " dom0_mem=${mem}M,max:${mem}M"; } # If /boot/microcode.cpio is present then ts-host-install has
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 3/6] ts-xen-install: Add dom0_mem runvar to control dom0 memory
Quoted 10 lines · Anthony PERARD
Signed-off-by Anthony PERARD <[email protected]>--- ts-xen-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)ts-xen-install +0
-0
ts-xen-install sub setupboot () { · line 156
Quoted 5 lines
ts-xen-install +1
-1@@ -153,7 +153,8 @@ sub setupboot () { logm("No Xen console device defined for host"); } if (toolstack($ho)->{Dom0MemFixed}) { - $xenhopt .= " dom0_mem=512M,max:512M"; + my $mem = $r{'dom0_mem'} // 512;
I think the highest preference should be for $r{"$ho->{Ident}_dom0_mem"} (which makes it host specific in multi host jobs). I think it is probably still worth having a global dom0_mem runvar you have here too. So:
my $mem = $r{"$ho->{Ident}_dom0_mem"} // $r{'dom0_mem'} // 512;(maybe needs wrapping)
Quoted 4 lines
ts-xen-install +1
-0+ $xenhopt .= " dom0_mem=${mem}M,max:${mem}M"; } # If /boot/microcode.cpio is present then ts-host-install has
Ian Campbell
Acked-byRe: [PATCH OSSTEST v2 3/6] ts-xen-install: Add dom0_mem runvar to control dom0 memory
Quoted 21 lines · Ian Campbell
Quoted 10 lines · Anthony PERARD
Signed-off-by Anthony PERARD <[email protected]>--- ts-xen-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)ts-xen-install +0
-0ts-xen-install sub setupboot () { · line 156
Quoted 5 lines
ts-xen-install +1
-1@@ -153,7 +153,8 @@ sub setupboot () { logm("No Xen console device defined for host"); } if (toolstack($ho)->{Dom0MemFixed}) { - $xenhopt .= " dom0_mem=512M,max:512M"; + my $mem = $r{'dom0_mem'} // 512;I think the highest preference should be for $r{"$ho->{Ident}_dom0_mem"} (which makes it host specific in multi host jobs). I think it is probably still worth having a global
dom0_memrunvar you have here too. So:
Quoted 3 lines
my $mem = $r{"$ho->{Ident}_dom0_mem"} // $r{'dom0_mem'} // 512;(maybe needs wrapping)
That said, your code is clearly correct so maybe this can be left to the person who needs per-host control of this. So if Ian agrees:
Eventually I suppose we might want a host_runvar helper taking $ho, the suffix ("dom0_mem") and a fallback default.
Quoted 10 lines
ts-xen-install sub setupboot () { · line 160
Quoted 5 lines
ts-xen-install +1
-0+ $xenhopt .= " dom0_mem=${mem}M,max:${mem}M"; } # If /boot/microcode.cpio is present then ts-host-install has_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH v2 4/6 ts-openstack-devstack: Deploy OpenStack on a host
In reply to Anthony PERARDThis script also install packages needed and clone every OpenStack trees to be use by devstack to deploy OpenStack.
--- sg-run-job | 5 + ts-openstack-devstack | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 309 insertions(+) create mode 100755 ts-openstack-devstack
sg-run-job +5 -0
@@ -360,6 +360,11 @@ proc run-job/test-rumpuserxen {} { ts-guest-destroy-hard host $g + } +proc need-hosts/test-devstack {} { return host } +proc run-job/test-devstack {} { + run-ts . = ts-openstack-devstack +} + #---------- builds ---------- proc need-hosts/build {} { return BUILD }
ts-openstack-devstack new file +304 -0
304 lines not on this page · raw message
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 4/6] ts-openstack-devstack: Deploy OpenStack on a host
Quoted 2 lines · Anthony PERARD
This script also install packages needed and clone every OpenStack trees to be use by devstack to deploy OpenStack.
How about:
This script installs any necessary packages and clones all of the OpenStack trees which are used by devstack to deploy OpenStack
Quoted 14 lines
Signed-off-by Anthony PERARD <[email protected]>--- sg-run-job | 5 + ts-openstack-devstack | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 309 insertions(+) create mode 100755 ts-openstack-devstacksg-run-job +0
-0
sg-run-job proc run-job/test-rumpuserxen {} { · line 365
Quoted 6 lines
sg-run-job +3
-0@@ -360,6 +360,11 @@ proc run-job/test-rumpuserxen {} { ts-guest-destroy-hard host $g + } +proc need-hosts/test-devstack {} { return host } +proc run-job/test-devstack {} { + run-ts . = ts-openstack-devstack
I think you need " host" at the end of this line, in order that it gets passed to the script as an argument, don't you?
ts-openstack-devstack
Quoted 12 lines
sg-run-job +2
-0+} + #---------- builds ---------- proc need-hosts/build {} { return BUILD }ts-openstack-devstack new file +0
-0@@ -0,0 +1,304 @@
[...]+
ts-openstack-devstack line 24
Quoted 2 lines
ts-openstack-devstack new file +2
-0+tsreadconfig(); +our ($ho,$gho) = ts_get_host_guest(@ARGV);
I don't think you use $gho and sg-run-job doesn't pass one, so I think you just need to use selecthost.
ts-openstack-devstack line 67
Quoted 4 lines
[...]
ts-openstack-devstack new file +2
-0+ my $openstack_git_base = git_massage_url('git://git.openstack.org'); +GIT_BASE="$openstack_git_base"
Does this suggest that it might try and clone anything which it can't find (i.e. which wasn't cloned by your list of clones), which would defeat the purpose of controlling the trees.
If this auto-cloning is not desirable then perhaps GIT_BASE should be set to some dummy value, "git://cache/this-shouldnt-exist" or some other bodge perhaps?
I think you also need to call store_revision for each tree (including any you don't explicitly clone here) at the end to record the actual versions which were built.
ts-openstack-devstack
Quoted 9 lines
ts-openstack-devstack new file +9
-0+disable_service horizon +disable_service n-novnc +enable_service n-obj +[[post-config|\$CINDER_CONF]] +[lvmdriver-1] +volume_group = $vg +END + + # libvirt is already install, but not as a package, so avoid
"installed"
Re: [PATCH OSSTEST v2 4/6] ts-openstack-devstack: Deploy OpenStack on a host
Ian Campbell writes ("Re: [PATCH OSSTEST v2 4/6] ts-openstack-devstack: Deploy OpenStack on a host"):
Quoted 8 lines · Anthony PERARD
Quoted 2 lines
This script also install packages needed and clone every OpenStack trees to be use by devstack to deploy OpenStack.
How about:
This script installs any necessary packages and clones all of the OpenStack trees which are used by devstack to deploy OpenStack
We normally call our scripts
ts-nounphrase-verb[-adverbs]
AIUI `devstack' is a noun. Does this script do a build, or an install, or both ? It's not quite clear to me but I think both. If so then perhaps
ts-openstack-devstack-deploy
?
Quoted 5 lines
ts-openstack-devstack line 24
Quoted 2 lines
ts-openstack-devstack new file +2
-0+tsreadconfig(); +our ($ho,$gho) = ts_get_host_guest(@ARGV);I don't think you use $gho and sg-run-job doesn't pass one, so I think you just need to use selecthost.
Indeed. Does this script even do anything with guests ?
Quoted 11 lines
ts-openstack-devstack line 67
Quoted 3 lines
ts-openstack-devstack new file +2
-0+ my $openstack_git_base = git_massage_url('git://git.openstack.org'); +GIT_BASE="$openstack_git_base"Does this suggest that it might try and clone anything which it can't find (i.e. which wasn't cloned by your list of clones), which would defeat the purpose of controlling the trees.
I think you also need to call
store_revisionfor each tree (including any you don't explicitly clone here) at the end to record the actual versions which were built.
Yes.
Ian.
Re: [PATCH OSSTEST v2 4/6] ts-openstack-devstack: Deploy OpenStack on a host
Quoted 14 lines · Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v2 4/6] ts-openstack-devstack: Deploy OpenStack on a host"):
Quoted 8 lines · Anthony PERARD
Quoted 2 lines
This script also install packages needed and clone every OpenStack trees to be use by devstack to deploy OpenStack.
How about:
This script installs any necessary packages and clones all of the OpenStack trees which are used by devstack to deploy OpenStack
We normally call our scripts
ts-nounphrase-verb[-adverbs]
Quoted 7 lines
AIUI `devstack' is a noun. Does this script do a build, or an install, or both ? It's not quite clear to me but I think both. If so then perhaps
ts-openstack-devstack-deploy
?
Sounds good, I'll rename the script.
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 4/6] ts-openstack-devstack: Deploy OpenStack on a host
In reply to Ian CampbellQuoted 8 lines · Ian Campbell
Quoted 2 lines · Anthony PERARD
This script also install packages needed and clone every OpenStack trees to be use by devstack to deploy OpenStack.
How about:
This script installs any necessary packages and clones all of the OpenStack trees which are used by devstack to deploy OpenStack
Sounds better, I'll make the change.
Quoted 17 lines
Quoted 17 lines
Signed-off-by Anthony PERARD <[email protected]>--- sg-run-job | 5 + ts-openstack-devstack | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 309 insertions(+) create mode 100755 ts-openstack-devstacksg-run-job +0
-0@@ -360,6 +360,11 @@ proc run-job/test-rumpuserxen {} { ts-guest-destroy-hard host $g + }
Quoted 6 lines
sg-run-job proc run-job/test-rumpuserxen {} { · line 365
Quoted 3 lines
sg-run-job +3
-0+proc need-hosts/test-devstack {} { return host } +proc run-job/test-devstack {} { + run-ts . = ts-openstack-devstackI think you need " host" at the end of this line, in order that it gets passed to the script as an argument, don't you?
I'll add host.
Quoted 13 lines
ts-openstack-devstack
Quoted 12 lines
sg-run-job +2
-0+} + #---------- builds ---------- proc need-hosts/build {} { return BUILD }ts-openstack-devstack new file +0
-0@@ -0,0 +1,304 @@[...]+
Quoted 5 lines
ts-openstack-devstack line 24
Quoted 2 lines
ts-openstack-devstack new file +2
-0+tsreadconfig(); +our ($ho,$gho) = ts_get_host_guest(@ARGV);I don't think you use $gho and sg-run-job doesn't pass one, so I think you just need to use selecthost.
I'll make the change.
Quoted 5 lines
ts-openstack-devstack line 67
Quoted 4 lines
[...]
ts-openstack-devstack new file +2
-0+ my $openstack_git_base = git_massage_url('git://git.openstack.org'); +GIT_BASE="$openstack_git_base"
Quoted 7 lines
Does this suggest that it might try and clone anything which it can't find (i.e. which wasn't cloned by your list of clones), which would defeat the purpose of controlling the trees.
If this auto-cloning is not desirable then perhaps
GIT_BASEshould be set to some dummy value, "git://cache/this-shouldnt-exist" or some other bodge perhaps?
devstack have ERROR_ON_CLONE=True which achieve the same purpose. I will remove the GIT_BASE cfg option.
Quoted 4 lines
I think you also need to call
store_revisionfor each tree (including any you don't explicitly clone here) at the end to record the actual versions which were built.
Quoted 12 lines
ts-openstack-devstack
Quoted 9 lines
ts-openstack-devstack new file +9
-0+disable_service horizon +disable_service n-novnc +enable_service n-obj +[[post-config|\$CINDER_CONF]] +[lvmdriver-1] +volume_group = $vg +END + + # libvirt is already install, but not as a package, so avoid"installed"
Done.
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 4/6] ts-openstack-devstack: Deploy OpenStack on a host
Quoted 9 lines · Anthony PERARD
Quoted 9 lines
ts-openstack-devstack line 67
Quoted 4 lines
[...]
ts-openstack-devstack new file +2
-0+ my $openstack_git_base = git_massage_url('git://git.openstack.org'); +GIT_BASE="$openstack_git_base"Does this suggest that it might try and clone anything which it can't find (i.e. which wasn't cloned by your list of clones), which would defeat the purpose of controlling the trees.
Quoted 6 lines
Quoted 3 lines
If this auto-cloning is not desirable then perhaps
GIT_BASEshould be set to some dummy value, "git://cache/this-shouldnt-exist" or some other bodge perhaps?devstack have ERROR_ON_CLONE=True which achieve the same purpose. I will remove the
GIT_BASEcfg option.
This option will cause it to fail if it tries to clone any tree which doesn't already exist when it is run? In which case that sounds like what we want, yes
PATCH v2 5/6 ts-openstack-tempest: Run Tempest to check OpenStack
In reply to Anthony PERARD--- sg-run-job | 1 + ts-openstack-tempest | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 ts-openstack-tempest
sg-run-job +1 -0
@@ -363,6 +363,7 @@ proc run-job/test-rumpuserxen {} { proc need-hosts/test-devstack {} { return host } proc run-job/test-devstack {} { run-ts . = ts-openstack-devstack + run-ts . = ts-openstack-tempest } #---------- builds ----------
ts-openstack-tempest new file +35 -0
@@ -0,0 +1,35 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2015 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 <http://www.gnu.org/licenses/>. + +use strict qw(vars); +use Osstest; +use Osstest::TestSupport; +use Osstest::BuildSupport; + +tsreadconfig(); +our ($ho,$gho) = ts_get_host_guest(@ARGV); +builddirsprops(); + +sub tempest() { + # The regex is the default one + avoid the two tests know to not work + # which are two variations of test_volume_boot_pattern. + target_cmd($ho, <<END, 7200); + $builddir/tempest/run_tempest.sh -V -- --concurrency=2 '(?!.*\\[.*\\bslow\\b.*\\]|.*test_volume_boot_pattern)(^tempest\\.(api|scenario|thirdparty))' +END +} + +tempest();
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 5/6] ts-openstack-tempest: Run Tempest to check OpenStack
Quoted 12 lines · Anthony PERARD
Signed-off-by Anthony PERARD <[email protected]>--- sg-run-job | 1 + ts-openstack-tempest | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 ts-openstack-tempestsg-run-job +0
-0
sg-run-job proc run-job/test-rumpuserxen {} { · line 366
Quoted 4 lines
sg-run-job +1
-0@@ -363,6 +363,7 @@ proc run-job/test-rumpuserxen {} { proc need-hosts/test-devstack {} { return host } proc run-job/test-devstack {} { run-ts . = ts-openstack-devstack + run-ts . = ts-openstack-tempest
As before I think you need "host"
Quoted 26 lines
sg-run-job +0
-0} #---------- builds ----------ts-openstack-tempest new file +6
-0@@ -0,0 +1,35 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2015 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 aspublished by
ts-openstack-tempest new file +9
-0+# 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 PublicLicense
ts-openstack-tempest line 24
Quoted 9 lines
ts-openstack-tempest new file +9
-0+# 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 ($ho,$gho) = ts_get_host_guest(@ARGV);
And here like before just selecthost since you don't use $gho
ts-openstack-tempest
Quoted 7 lines
ts-openstack-tempest new file +7
-0+builddirsprops(); + +sub tempest() { + # The regex is the default one + avoid the two tests know to not work + # which are two variations of test_volume_boot_pattern. + target_cmd($ho, <<END, 7200); + $builddir/tempest/run_tempest.sh
Is $builddir here inherited from the previous script? I'm not sure how that works?
Quoted 3 lines
-V -- --concurrency=2
'(?!.*\\[.*\\bslow\\b.*\\]|.*test_volume_boot_pattern)(^tempest\\.(api|sc enario|thirdparty))'
I think think ought to at least be in a variable with a comment explaining why each one is omitted.
It could go into a runvar, but I'm not too sure about that.
Quoted 4 lines
ts-openstack-tempest new file +4
-0+END +} + +tempest();
Re: [PATCH OSSTEST v2 5/6] ts-openstack-tempest: Run Tempest to check OpenStack
Quoted 8 lines · Ian Campbell
Quoted 7 lines · Anthony PERARD
Signed-off-by Anthony PERARD <[email protected]>--- sg-run-job | 1 + ts-openstack-tempest | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 ts-openstack-tempest
Quoted 11 lines
sg-run-job proc run-job/test-rumpuserxen {} { · line 366
Quoted 9 lines
sg-run-job +1
-0@@ -363,6 +363,7 @@ proc run-job/test-rumpuserxen {} { proc need-hosts/test-devstack {} { return host } proc run-job/test-devstack {} { run-ts . = ts-openstack-devstack + run-ts . = ts-openstack-tempestAs before I think you need "host"
OK.
Quoted 29 lines
Quoted 29 lines
sg-run-job +0
-0} #---------- builds ----------ts-openstack-tempest new file +6
-0@@ -0,0 +1,35 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2015 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 aspublished by
ts-openstack-tempest new file +9
-0+# 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 PublicLicense
ts-openstack-tempest new file +3
-0+# along with this program. If not, see <http://www.gnu.org/licenses/>. + +use strict qw(vars);
Quoted 8 lines
ts-openstack-tempest line 24
Quoted 6 lines
ts-openstack-tempest new file +6
-0+use Osstest; +use Osstest::TestSupport; +use Osstest::BuildSupport; + +tsreadconfig(); +our ($ho,$gho) = ts_get_host_guest(@ARGV);And here like before just selecthost since you don't use $gho
Yes, I'll use selecthost.
Quoted 10 lines
ts-openstack-tempest
Quoted 7 lines
ts-openstack-tempest new file +7
-0+builddirsprops(); + +sub tempest() { + # The regex is the default one + avoid the two tests know to not work + # which are two variations of test_volume_boot_pattern. + target_cmd($ho, <<END, 7200); + $builddir/tempest/run_tempest.shIs $builddir here inherited from the previous script? I'm not sure how that works?
I think the genereted $builddir end up been the same as in the previous script, because it's generated based on the flight name and the job name. Both script (ts-openstack-devstack-deploy and ts-openstack-tempest) are part of the same jobs.
Quoted 6 lines
Quoted 3 lines
-V -- --concurrency=2
'(?!.*\\[.*\\bslow\\b.*\\]|.*test_volume_boot_pattern)(^tempest\\.(api|sc enario|thirdparty))'I think think ought to at least be in a variable with a comment explaining why each one is omitted.
I'll add a comment, and put this in a variable.
Quoted 1 line
It could go into a runvar, but I'm not too sure about that.
I don't see a good use of the runvar right now. But it could maybe used to bisect a single Tempest test, if that even possible. Anyway, I don't think I want to try to use a runvar for that right now.
Quoted 4 lines
Quoted 4 lines
ts-openstack-tempest new file +4
-0+END +} + +tempest();
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 5/6] ts-openstack-tempest: Run Tempest to check OpenStack
Quoted 10 lines · Anthony PERARD
Quoted 9 lines
ts-openstack-tempest
Quoted 6 lines
ts-openstack-tempest new file +6
-0+ +sub tempest() { + # The regex is the default one + avoid the two tests know to not work + # which are two variations of test_volume_boot_pattern. + target_cmd($ho, < + $builddir/tempest/run_tempest.shIs $builddir here inherited from the previous script? I'm not sure how that works?
Quoted 4 lines
I think the genereted $builddir end up been the same as in the previous script, because it's generated based on the flight name and the job name. Both script (ts-openstack-devstack-deploy and ts-openstack-tempest) are part of the same jobs.
I think all current build jobs happen to only have a single step which actually does the build.
So I'm not sure if this is deliberate or not. Ian?
Ian.
Quoted 25 lines
Quoted 9 lines
Quoted 5 lines
-V -- --concurrency=2
'(?!.*\\[.*\\bslow\\b.*\\]|.*test_volume_boot_pattern)(^tempest\\.(ap i|sc
enario|thirdparty))'I think think ought to at least be in a variable with a comment explaining
why each one is omitted.I'll add a comment, and put this in a variable.
Quoted 1 line
It could go into a runvar, but I'm not too sure about that.
I don't see a good use of the runvar right now. But it could maybe used to
bisect a single Tempest test, if that even possible. Anyway, I don't think
I want to try to use a runvar for that right now.Quoted 4 lines
Quoted 4 lines
ts-openstack-tempest new file +4
-0+END +} + +tempest();
Re: [PATCH OSSTEST v2 5/6] ts-openstack-tempest: Run Tempest to check OpenStack
Ian Campbell writes ("Re: [PATCH OSSTEST v2 5/6] ts-openstack-tempest: Run Tempest to check OpenStack"):
Quoted 10 lines · Anthony PERARD
Quoted 4 lines
I think the genereted $builddir end up been the same as in the previous script, because it's generated based on the flight name and the job name. Both script (ts-openstack-devstack-deploy and ts-openstack-tempest) are part of the same jobs.
I think all current build jobs happen to only have a single step which actually does the build.
So I'm not sure if this is deliberate or not. Ian?
It is fine for different steps in the same job to rely on the existence of paths on the build host. The job retains ownership of its share of the host.
And in principle there is nothing wrong with them `just knowing' the shared paths.
It might be worthwhile adding a comment, or perhaps passing the information in a runvar (which would make it easier to make jobs with different plumbing of the pieces).
Ian.
PATCH v2 6/6 Create a flight to test OpenStack with xen-unstable and libvirt
In reply to Anthony PERARD--- ap-common | 9 +++++++++ ap-fetch-version | 4 ++++ ap-fetch-version-old | 5 +++++ ap-print-url | 3 +++ cri-common | 1 + make-flight | 42 +++++++++++++++++++++++++++++++++++++++++- mfi-common | 5 +++++ 7 files changed, 68 insertions(+), 1 deletion(-)
ap-common +9 -0
@@ -57,6 +57,14 @@ : ${PUSH_TREE_OVMF:=$XENBITS:/home/xen/git/osstest/ovmf.git} : ${BASE_TREE_OVMF:=git://xenbits.xen.org/osstest/ovmf.git} +: ${TREE_DEVSTACK:=git://git.openstack.org/openstack-dev/devstack.git} +: ${TREE_OPENSTACK_REQUIREMENTS:=git://git.openstack.org/openstack/requirements.git} +: ${TREE_KEYSTONE:=git://git.openstack.org/openstack/keystone.git} +: ${TREE_GLANCE:=git://git.openstack.org/openstack/glance.git} +: ${TREE_CINDER:=git://git.openstack.org/openstack/cinder.git} +: ${TREE_NOVA:=git://git.openstack.org/openstack/nova.git} +: ${TREE_TEMPEST:=git://git.openstack.org/openstack/tempest.git} + : ${TREE_LINUXFIRMWARE:=git://xenbits.xen.org/osstest/linux-firmware.git} : ${PUSH_TREE_LINUXFIRMWARE:=$XENBITS:/home/osstest/ext/linux-firmware.git} : ${UPSTREAM_TREE_LINUXFIRMWARE:=$GIT_KERNEL_ORG/pub/scm/linux/kernel/git/firmware/linux-firmware.git}
@@ -84,6 +92,7 @@ fi : ${LOCALREV_RUMPUSERXEN:=daily-cron.$branch} : ${LOCALREV_SEABIOS:=daily-cron.$branch} : ${LOCALREV_OVMF:=daily-cron.$branch} +: ${LOCALREV_DEVSTACK:=daily-cron.$branch} : ${TREEBASE_LINUX_XCP:=http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}
ap-fetch-version +4 -0
@@ -89,6 +89,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $TREE_OVMF_UPSTREAM master $LOCALREV_OVMF ;; +openstack) + repo_tree_rev_fetch_git devstack \ + $TREE_DEVSTACK master $LOCALREV_DEVSTACK + ;; osstest) if [ "x$OSSTEST_USE_HEAD" = "xy" ] ; then git update-ref -m "Arranging to test HEAD" \
ap-fetch-version-old +5 -0
@@ -31,6 +31,7 @@ select_xenbranch : ${BASE_LOCALREV_RUMPUSERXEN:=daily-cron.$branch.old} : ${BASE_LOCALREV_SEABIOS:=daily-cron.$branch.old} : ${BASE_LOCALREV_OVMF:=daily-cron.$branch.old} +: ${BASE_LOCALREV_DEVSTACK:=daily-cron.$branch.old} : ${BASE_TREE_QEMU_UPSTREAM:=${TREE_QEMU_UPSTREAM/\/staging\//\/}}
@@ -97,6 +98,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $BASE_TREE_OVMF xen-tested-master $BASE_LOCALREV_OVMF ;; +openstack) + repo_tree_rev_fetch_git devstack \ + $TREE_DEVSTACK master $BASE_LOCALREV_DEVSTACK + ;; osstest) if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then git fetch -f $HOME/testing.git production:ap-fetch
ap-print-url +3 -0
@@ -64,6 +64,9 @@ ovmf) osstest) echo none:; ;; +openstack) + echo $TREE_DEVSTACK + ;; *) echo >&2 "branch $branch ?" exit 1
cri-common +1 -0
@@ -74,6 +74,7 @@ select_xenbranch () { ovmf) tree=ovmf; xenbranch=xen-unstable ;; distros-*) tree=none; xenbranch=xen-unstable ;; osstest) tree=osstest; xenbranch=xen-unstable ;; + openstack) tree=devstack; xenbranch=xen-unstable ;; esac if [ "x$tree" = xlinux ]; then linuxbranch=$branch
make-flight +41 -1
60 lines not on this page · raw message
mfi-common +5 -0
@@ -50,6 +50,7 @@ xenbranch_xsm_variants () { xen-4.3-testing) echo "false";; xen-4.4-testing) echo "false";; xen-4.5-testing) echo "false";; + openstack) echo "false";; *) echo "false true"; esac }
@@ -93,6 +94,7 @@ create_build_jobs () { rumpuserxen) continue;; seabios) continue;; ovmf) continue;; + openstack) continue;; esac case "$xenbranch" in xen-3.*-testing) continue;;
@@ -118,6 +120,9 @@ create_build_jobs () { " ;; esac + if [ "$arch" = i386 ] && [ "$branch" = openstack ]; then + continue + fi case "$arch" in *) suite=$defsuite;;
Signature · 1 line
Anthony PERARD
Re: [PATCH OSSTEST v2 6/6] Create a flight to test OpenStack with xen-unstable and libvirt
Quoted 21 lines · Anthony PERARD
Signed-off-by Anthony PERARD <[email protected]>--- ap-common | 9 +++++++++ ap-fetch-version | 4 ++++ ap-fetch-version-old | 5 +++++ ap-print-url | 3 +++ cri-common | 1 + make-flight | 42 +++++++++++++++++++++++++++++++++++++++++- mfi-common | 5 +++++ 7 files changed, 68 insertions(+), 1 deletion(-)ap-common +2
-0@@ -57,6 +57,14 @@ : ${PUSH_TREE_OVMF:=$XENBITS:/home/xen/git/osstest/ovmf.git} : ${BASE_TREE_OVMF:=git://xenbits.xen.org/osstest/ovmf.git} +: ${TREE_DEVSTACK:=git://git.openstack.org/openstack-dev/devstack.git} +:
Quoted 7 lines
${TREE_OPENSTACK_REQUIREMENTS:=git://git.openstack.org/openstack/requirem ents.git}
+: ${TREE_KEYSTONE:=git://git.openstack.org/openstack/keystone.git} +: ${TREE_GLANCE:=git://git.openstack.org/openstack/glance.git} +: ${TREE_CINDER:=git://git.openstack.org/openstack/cinder.git} +: ${TREE_NOVA:=git://git.openstack.org/openstack/nova.git} +: ${TREE_TEMPEST:=git://git.openstack.org/openstack/tempest.git}
Maybe these should all be TREE_OPENSTACK_FOO? And perhaps put git ://git.openstack.org/openstack/ into a variable (like $XENBITS or $GIT_KERNEL_ORG)
Quoted 45 lines
ap-common +1
-2+ : ${TREE_LINUXFIRMWARE:=git://xenbits.xen.org/osstest/linux -firmware.git} : ${PUSH_TREE_LINUXFIRMWARE:=$XENBITS:/home/osstest/ext/linux -firmware.git} :${UPSTREAM_TREE_LINUXFIRMWARE:=$GIT_KERNEL_ORG/pub/scm/linux/kernel/git/f irmware/linux-firmware.git}
ap-common +1
-0@@ -84,6 +92,7 @@ fi : ${LOCALREV_RUMPUSERXEN:=daily-cron.$branch} : ${LOCALREV_SEABIOS:=daily-cron.$branch} : ${LOCALREV_OVMF:=daily-cron.$branch} +: ${LOCALREV_DEVSTACK:=daily-cron.$branch} : ${TREEBASE_LINUX_XCP:= http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}ap-fetch-version +4
-0@@ -89,6 +89,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $TREE_OVMF_UPSTREAM master $LOCALREV_OVMF ;; +openstack) + repo_tree_rev_fetch_git devstack \ + $TREE_DEVSTACK master $LOCALREV_DEVSTACK + ;; osstest) if [ "x$OSSTEST_USE_HEAD" = "xy" ] ; then git update-ref -m "Arranging to test HEAD" \ap-fetch-version-old +1
-0@@ -31,6 +31,7 @@ select_xenbranch : ${BASE_LOCALREV_RUMPUSERXEN:=daily-cron.$branch.old} : ${BASE_LOCALREV_SEABIOS:=daily-cron.$branch.old} : ${BASE_LOCALREV_OVMF:=daily-cron.$branch.old} +: ${BASE_LOCALREV_DEVSTACK:=daily-cron.$branch.old} : ${BASE_TREE_QEMU_UPSTREAM:=${TREE_QEMU_UPSTREAM/\/staging\//\/}}
ap-fetch-version-old ovmf) · line 103
Quoted 6 lines
ap-fetch-version-old +3
-0@@ -97,6 +98,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $BASE_TREE_OVMF xen-tested-master $BASE_LOCALREV_OVMF ;; +openstack) + repo_tree_rev_fetch_git devstack \ + $TREE_DEVSTACK master $BASE_LOCALREV_DEVSTACK
This one should be pulling from the gate output on xenbits not from upstream. See e.g. BASE_TREE_OVMF.
Actually, I think you've missed the ap-push changes needed to populate that tree, you need this in order to have a baseline.
Quoted 9 lines
ap-fetch-version-old +4
-0if [ x$buildflight = x ]; then@@ -101,6 +108,20 @@ job_create_test_filter_callback () { *) return 1;; esac ;; + openstack) + if [ x$toolstack != xlibvirt ] ; then return 1; fi + case "$job" in + test-*-libvirt*) return 1;;
ap-fetch-version-old job_create_test_filter_callback () { · line 124
Quoted 10 lines
ap-fetch-version-old +10
-0+ esac + case $xenarch in + amd64) ;; + *) return 1;; + esac + case $dom0arch in + amd64) ;; + *) return 1;; + esac + ;;
Do you not want to only accept *-devstack here and reject everything else?
Otherwise don't you end up with various xl and HVM tests?
Ian.
Re: [PATCH OSSTEST v2 6/6] Create a flight to test OpenStack with xen-unstable and libvirt
Quoted 20 lines · Ian Campbell
Quoted 19 lines · Anthony PERARD
Signed-off-by Anthony PERARD <[email protected]>--- ap-common | 9 +++++++++ ap-fetch-version | 4 ++++ ap-fetch-version-old | 5 +++++ ap-print-url | 3 +++ cri-common | 1 + make-flight | 42 +++++++++++++++++++++++++++++++++++++++++- mfi-common | 5 +++++ 7 files changed, 68 insertions(+), 1 deletion(-)ap-common +0
-0@@ -57,6 +57,14 @@ : ${PUSH_TREE_OVMF:=$XENBITS:/home/xen/git/osstest/ovmf.git} : ${BASE_TREE_OVMF:=git://xenbits.xen.org/osstest/ovmf.git}
Quoted 13 lines
Quoted 9 lines
ap-common +2
-0+: ${TREE_DEVSTACK:=git://git.openstack.org/openstack-dev/devstack.git} +:${TREE_OPENSTACK_REQUIREMENTS:=git://git.openstack.org/openstack/requirem ents.git}
+: ${TREE_KEYSTONE:=git://git.openstack.org/openstack/keystone.git} +: ${TREE_GLANCE:=git://git.openstack.org/openstack/glance.git} +: ${TREE_CINDER:=git://git.openstack.org/openstack/cinder.git} +: ${TREE_NOVA:=git://git.openstack.org/openstack/nova.git} +: ${TREE_TEMPEST:=git://git.openstack.org/openstack/tempest.git}Maybe these should all be
TREE_OPENSTACK_FOO? And perhaps put git ://git.openstack.org/openstack/ into a variable (like $XENBITS or $GIT_KERNEL_ORG)
I'll do that.
Quoted 44 lines
Quoted 44 lines
ap-common +1
-2+ : ${TREE_LINUXFIRMWARE:=git://xenbits.xen.org/osstest/linux -firmware.git} : ${PUSH_TREE_LINUXFIRMWARE:=$XENBITS:/home/osstest/ext/linux -firmware.git} :${UPSTREAM_TREE_LINUXFIRMWARE:=$GIT_KERNEL_ORG/pub/scm/linux/kernel/git/f irmware/linux-firmware.git}
ap-common +1
-0@@ -84,6 +92,7 @@ fi : ${LOCALREV_RUMPUSERXEN:=daily-cron.$branch} : ${LOCALREV_SEABIOS:=daily-cron.$branch} : ${LOCALREV_OVMF:=daily-cron.$branch} +: ${LOCALREV_DEVSTACK:=daily-cron.$branch} : ${TREEBASE_LINUX_XCP:= http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}ap-fetch-version +4
-0@@ -89,6 +89,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $TREE_OVMF_UPSTREAM master $LOCALREV_OVMF ;; +openstack) + repo_tree_rev_fetch_git devstack \ + $TREE_DEVSTACK master $LOCALREV_DEVSTACK + ;; osstest) if [ "x$OSSTEST_USE_HEAD" = "xy" ] ; then git update-ref -m "Arranging to test HEAD" \ap-fetch-version-old +1
-0@@ -31,6 +31,7 @@ select_xenbranch : ${BASE_LOCALREV_RUMPUSERXEN:=daily-cron.$branch.old} : ${BASE_LOCALREV_SEABIOS:=daily-cron.$branch.old} : ${BASE_LOCALREV_OVMF:=daily-cron.$branch.old} +: ${BASE_LOCALREV_DEVSTACK:=daily-cron.$branch.old} : ${BASE_TREE_QEMU_UPSTREAM:=${TREE_QEMU_UPSTREAM/\/staging\//\/}}
Quoted 10 lines
ap-fetch-version-old ovmf) · line 103
Quoted 7 lines
ap-fetch-version-old +3
-0@@ -97,6 +98,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $BASE_TREE_OVMF xen-tested-master $BASE_LOCALREV_OVMF ;; +openstack) + repo_tree_rev_fetch_git devstack \ + $TREE_DEVSTACK master $BASE_LOCALREV_DEVSTACKThis one should be pulling from the gate output on xenbits not from upstream. See e.g.
BASE_TREE_OVMF.
OK.
Quoted 2 lines
Actually, I think you've missed the ap-push changes needed to populate that tree, you need this in order to have a baseline.
I'll try to change ap-push.
Quoted 14 lines
Quoted 14 lines
ap-fetch-version-old +9
-0if [ x$buildflight = x ]; then@@ -101,6 +108,20 @@ job_create_test_filter_callback () { *) return 1;; esac ;; + openstack) + if [ x$toolstack != xlibvirt ] ; then return 1; fi + case "$job" in + test-*-libvirt*) return 1;; + esac + case $xenarch in + amd64) ;; + *) return 1;; + esac
Quoted 8 lines
ap-fetch-version-old job_create_test_filter_callback () { · line 124
Quoted 5 lines
ap-fetch-version-old +5
-0+ case $dom0arch in + amd64) ;; + *) return 1;; + esac + ;;Do you not want to only accept *-devstack here and reject everything else?
Yes, that's probably going to be more simple. I'll see if I can change that.
Quoted 1 line
Otherwise don't you end up with various xl and HVM tests?
No, I managed to only have the few jobs needed. I've check by running ./standalone make-flight openstack, and checking the content of the database.
Signature · 1 line
Anthony PERARD
Quoted 4 lines · Anthony PERARD
Anthony PERARD (6):
ts-kernel-build: EnableCONFIG_NETFILTER_XT_TARGET_CHECKSUM
ts-kernel-build: CompileCONFIG_CRYPTO_XTSin
ts-xen-install: Adddom0_memrunvar to control dom0 memory
I stuck these 3 into osstest's pretest with the acks given.
Quoted 21 lines
ts-openstack-devstack: Deploy OpenStack on a host
ts-openstack-tempest: Run Tempest to check OpenStack Create a flight to test OpenStack with xen-unstable and libvirtap-common | 9 ++ ap-fetch-version | 4 + ap-fetch-version-old | 5 + ap-print-url | 3 + cri-common | 1 + make-flight | 42 ++++++- mfi-common | 5 + sg-run-job | 6 + ts-kernel-build | 8 ++ ts-openstack-devstack | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++ ts-openstack-tempest | 35 ++++++ ts-xen-install | 3 +- 12 files changed, 423 insertions(+), 2 deletions(-) create mode 100755 ts-openstack-devstack create mode 100755 ts-openstack-tempest