Have OpenStack tested on top of xen's master and libvirt's master.
v7 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.
The ts-openstack-deploy script does prepare a bit more the host, clone devstack and other OpenStack trees, then run ./stack.sh, which is a bit like raisin and deploy OpenStack on the host. Once the machine is ready, the integration test suite from OpenStack, Tempest, is started by ts-openstack-tempest.
Thanks.
Changes in V7:
- few changes detailed in patches
Changes in V6:
- rebased
- fix ts-openstack-deploy script to work with newer devstach and new debian.
Change in V5:
- on small change in patch 1, but I keeped the acked-by
- few changes in the way the flight is created (in the last patch)
Change in V4:
few changes listed in second and third patch, mostly cleanup.
Change in V3:
- Track Nova tree instead of devstack.
Nova is the service we care about from a Xen point of view. Also it is updated much more often than devstack.
- Cleanups, see change log in patches.
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 (3):
ts-openstack-deploy: Deploy OpenStack on a host with devstack
ts-openstack-tempest: Run Tempest to check OpenStack Create a flight to test OpenStack with xen-unstable and libvirt
ap-common | 18 +++++++ ap-fetch-version | 4 ++ ap-fetch-version-old | 5 ++ ap-print-url | 3 ++ ap-push | 5 ++ cr-daily-branch | 8 ++++ cr-for-branches | 2 +- cri-common | 1 + make-flight | 48 +++++++++++++++++++ sg-run-job | 6 +++ ts-openstack-deploy | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++ ts-openstack-tempest | 64 +++++++++++++++++++++++++ 12 files changed, 295 insertions(+), 1 deletion(-) create mode 100755 ts-openstack-deploy create mode 100755 ts-openstack-tempest
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH v7 1/3 ts-openstack-deploy: Deploy OpenStack on a host with devstack
This script installs any necessary packages and clones all of the OpenStack trees which are used by devstack to deploy OpenStack.
---
Changes in V7:
- reindent
- fix style
- remove many workaround, there are not needed anymore.
- create bug report upstream
Changes in V6:
- rebased
- fix issues due to new debian and newer devstack:
- add missing libvirt group
- switch back to old nova-network instead of neutron
- have devstack use 'service' instead of 'systemctl' to restart services
Only change in V5:
- edit stackrc from devstack file to change the hardcoded path DEST
No change in V4:
- acked
Change in V3:
- Use host as argument to run the job.
- Use selectjob() and get rid of the unused $gho.
- Use target_jobdir() instead of builddirsprops().
- Remove GIT_BASE from devstack config.
- Rename the script to ts-openstack-deploy (from ts-openstack-devstack).
--- sg-run-job | 5 ++ ts-openstack-deploy | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100755 ts-openstack-deploy
sg-run-job +5 -0
@@ -474,6 +474,11 @@ proc run-job/test-rumprun {} { ts-guest-destroy-hard host $g + } +proc need-hosts/test-devstack {} { return host } +proc run-job/test-devstack {} { + run-ts . = ts-openstack-deploy host +} + if {[file exists sg-run-job-adhoc]} { source sg-run-job-adhoc }
ts-openstack-deploy new file +132 -0
132 lines not on this page · raw message
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [OSSTEST PATCH v7 1/3] ts-openstack-deploy: Deploy OpenStack on a host with devstack
Quoted 4 lines · Anthony PERARD
This script installs any necessary packages and clones all of the OpenStack trees which are used by devstack to deploy OpenStack.
Signed-off-by Anthony PERARD <[email protected]>
.. snip..
ts-openstack-deploy line 3
Quoted 9 lines
ts-openstack-deploy new file +3
-0@@ -0,0 +1,132 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2015 Citrix Inc.
2016.
Quoted 83 lines
ts-openstack-deploy new file +83
-0+# +# 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 packages () { + target_install_packages($ho, qw(git sudo)); +} +sub checkout () { + prepbuilddirs(); + build_clone($ho, 'cinder', $builddir, 'cinder'); + build_clone($ho, 'devstack', $builddir, 'devstack'); + build_clone($ho, 'glance', $builddir, 'glance'); + build_clone($ho, 'keystone', $builddir, 'keystone'); + build_clone($ho, 'nova', $builddir, 'nova'); + build_clone($ho, 'requirements', $builddir, 'requirements'); + build_clone($ho, 'tempest', $builddir, 'tempest'); + + my $vg = target_choose_vg($ho, 10*1024); # 10GB + target_putfilecontents_stash($ho, 60, <<END, $builddir.'/devstack/local.conf'); +[[local|localrc]] +# Everything should be cloned by osstest, so devstack don't have to do it +ERROR_ON_CLONE=True +USE_SCREEN=False +ADMIN_PASSWORD=secretadmin +DATABASE_PASSWORD=secretdatabase +RABBIT_PASSWORD=secretrabbit +SERVICE_PASSWORD=secretservice +SERVICE_TOKEN=atokenserviced +# make it small because there is no way to not have this lvm volume created +VOLUME_BACKING_FILE_SIZE=50M +CINDER_LVM_TYPE=default +DEST=$builddir +DATA_DIR=\$DEST/data +SERVICE_DIR=\$DEST/status +SUBUNIT_OUTPUT=\$DEST/devstack.subunit +LOGFILE=\$DEST/logs/stack.sh.log +LOG_COLOR=False +LIBVIRT_TYPE=xen +disable_service horizon +disable_service n-novnc +disable_service dstat +enable_service n-obj +# Disable neutron and switch back to nova-network +disable_service q-svc +disable_service q-dhcp +disable_service q-meta +disable_service q-agt +disable_service q-l3 +enable_service n-net +[[post-config|\$CINDER_CONF]] +[lvmdriver-1] +volume_group = $vg +END + + # libvirt is already installed, but not as a package, so avoid installation of + # the libvirt package with devstack + # https://bugs.launchpad.net/devstack/+bug/1641144 + target_editfile($ho, "$builddir/devstack/files/debs/nova", sub { + while (<EI>) { + next if m/.*libvirt.*/; + print EO or die $!; + }
ts-openstack-deploy line 96
Quoted 10 lines
ts-openstack-deploy new file +10
-0+ }); + target_editfile($ho, "$builddir/devstack/lib/nova_plugins/functions-libvirt", sub { + while (<EI>) { + next if m/install_package.*libvirt.*/; + print EO or die $!; + } + }); + + # devstack blindly assume that systemd is used if systemctl is present + # https://bugs.launchpad.net/devstack/+bug/1641112
Would it make sense to put xen-devel as an CC on those bugs so when there is an resolution these changes would be removed?
Or would we keep them forever (which looks to be OK).
Quoted 11 lines
ts-openstack-deploy new file +11
-0+ target_editfile($ho, "$builddir/devstack/functions-common", sub { + while (<EI>) { + if (m#\[ -x /bin/systemctl#) { + s#\[ -x /bin/systemctl \]#false# + } + print EO or die $!; + } + }); + + # OpenStack needs access to libvirt from a user. + target_cmd_root($ho, <<END);
ts-openstack-deploy line 117
Quoted 10 lines
ts-openstack-deploy new file +10
-0+ addgroup --system libvirt + cat >> /etc/libvirt/libvirtd.conf <<EOF +unix_sock_group = "libvirt" +unix_sock_ro_perms = "0777" +unix_sock_rw_perms = "0770" +EOF + service libvirtd restart +END + + # devstack is going to setup the host, install some dependency.
You mean give it access to install whatever it wants.
Quoted 23 lines
ts-openstack-deploy new file +15
-0+ target_putfilecontents_root_stash($ho, 100, <<END,"/etc/sudoers.d/devstack"); +osstest ALL=(ALL) NOPASSWD:ALL +END +} + +sub deploy() { + target_cmd($ho, <<END, 1800); + cd $builddir/devstack + ./stack.sh +END +} + +packages(); +checkout(); +deploy();Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [OSSTEST PATCH v7 1/3] ts-openstack-deploy: Deploy OpenStack on a host with devstack
In reply to Anthony PERARDAnthony PERARD writes ("[OSSTEST PATCH v7 1/3] ts-openstack-deploy: Deploy OpenStack on a host with devstack"):
Quoted 2 lines
This script installs any necessary packages and clones all of the OpenStack trees which are used by devstack to deploy OpenStack.
Thanks. I have only trivial comments.
sg-run-job proc run-job/test-rumprun {} { · line 479
Quoted 3 lines
sg-run-job +3
-0+proc need-hosts/test-devstack {} { return host } +proc run-job/test-devstack {} { + run-ts . = ts-openstack-deploy host
^
Should have a `+' here I think. Sorry for not spotting this before.
Quoted 1 line
+ # libvirt is already installed, but not as a package, so avoid installation of
Comment has too-long lines.
ts-openstack-deploy line 88
Quoted 9 lines
ts-openstack-deploy new file +9
-0+ # the libvirt package with devstack + # https://bugs.launchpad.net/devstack/+bug/1641144 + target_editfile($ho, "$builddir/devstack/files/debs/nova", sub { + while (<EI>) { + next if m/.*libvirt.*/; + print EO or die $!; + } + }); + target_editfile($ho, "$builddir/devstack/lib/nova_plugins/functions-libvirt", sub {
Code has too-long lines.
ts-openstack-deploy line 118
Quoted 5 lines
ts-openstack-deploy new file +5
-0+ service libvirtd restart +END + + # devstack is going to setup the host, install some dependency. + target_putfilecontents_root_stash($ho, 100, <<END,"/etc/sudoers.d/devstack");
Too-long line.
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH v7 2/3 ts-openstack-tempest: Run Tempest to check OpenStack
In reply to Anthony PERARDThis script runs the OpenStack integration test suite, Tempest.
---
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
sg-run-job +1 -0
@@ -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]} {
ts-openstack-tempest new file +64 -0
64 lines not on this page · raw message
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [OSSTEST PATCH v7 2/3] ts-openstack-tempest: Run Tempest to check OpenStack
Quoted 52 lines · Anthony PERARD
This script runs the OpenStack integration test suite, Tempest.
Signed-off-by Anthony PERARD <[email protected]>Acked-by Ian Campbell <[email protected]>Acked-by Ian Jackson <[email protected]>---
Changes in V7:
- reindent
- ackedNo 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 thenjoin()
- use variables to store common prefix
- rewrite commentsChange in V3:
- Use host as argument of the script.
- Useselecthost()and get rid of $gho.
- Usetarget_jobdir()instead ofbuilddirsprops().
- 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-tempestsg-run-job +1
-0@@ -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]} {ts-openstack-tempest new file +0
-0
ts-openstack-tempest line 3
Quoted 3 lines
ts-openstack-tempest new file +3
-0@@ -0,0 +1,64 @@ +#!/usr/bin/perl +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2015 Citrix Inc.
2016.
Quoted 33 lines
ts-openstack-tempest new file +33
-0+# +# 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.
ts-openstack-tempest line 46
Quoted 10 lines
ts-openstack-tempest new file +10
-0+ 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?
Quoted 4 lines
ts-openstack-tempest new file +4
-0+ 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";
ts-openstack-tempest line 60
Quoted 10 lines
ts-openstack-tempest new file +10
-0+ + # 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?
Quoted 12 lines
ts-openstack-tempest new file +4
-0+END +} + +tempest();Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [OSSTEST PATCH v7 2/3] ts-openstack-tempest: Run Tempest to check OpenStack
Quoted 7 lines · Konrad Rzeszutek Wilk
ts-openstack-tempest line 46
Quoted 3 lines · Anthony PERARD
ts-openstack-tempest new file +3
-0+ # 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?
It was a patch series, I don't know if I can find it again. I thought pointing to a release was enough.
I think iSCSI have other terms for 'server' and 'client', maybe 'target' and something else. But those two sides are running in dom0, in this test.
Quoted 9 lines
Quoted 9 lines
ts-openstack-tempest new file +9
-0+ 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);
Quoted 8 lines
ts-openstack-tempest line 60
Quoted 5 lines
ts-openstack-tempest new file +5
-0+ 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?
By default, this number is equal to the number of cpus. I think it would be too much, and increase the failure rate of openstack it self, which I don't think it would be usefull to test.
For their CI loop, I think this is equal to half the number of cpus. We could do that but I don't know if it's going to be usefull.
We do use 2 on the XenProject OpenStack CI loop, because I don't think it can do more than that.
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH v7 3/3 Create a flight to test OpenStack with xen-unstable and libvirt
In reply to Anthony PERARDThis patch should create a flight "openstack-nova", with those jobs:
build-amd64
build-amd64-xsm
build-amd64-pvops
build-amd64-libvirt
test-amd64-amd64-devstack
test-amd64-amd64-devstack-xsm
About the runvars revision_* of test-*-*-devstack:
only REVISION_OPENSTACK_NOVA is set, the others are unset. Empty revision_* runvar would clone the default branch, which should be master for every openstack repos.
---
Changes in V7:
- metaprograming
- reindent
Change in V6:
- rebased
Change in V5:
- rename flight openstack to openstack-nova
- add -xsm variant of the test
- run test-devstack only on openstack-nova flight
Change in V4:
- also skip build-*-oldkern in make flight
- fix select_xenbranch
- set revision_*=$REVISION_OPENSTACK_* in make-flight
(was revision_*=master before)
only REVISION_OPENSTACK_NOVA is set, the others are unset. empty revision_* runvar would clone the default branch, which should be master for every openstack repos
Change in V3:
- Switch to "track" Nova tree instead of devstack. Nova is the service we care about from a Xen point of view. Also it is updated much more often than devstack.
- Use TREE_OPENSTACK_ as prefix for all trees variables.
- Change the filter, keep only *-devstack jobs.
- Add stuff into ./ap-push
- Add stuff into ./cr-daily-branch.
- Add 'openstack' into ./cr-for-branches.
--- ap-common | 18 ++++++++++++++++++ ap-fetch-version | 4 ++++ ap-fetch-version-old | 5 +++++ ap-print-url | 3 +++ ap-push | 5 +++++ cr-daily-branch | 8 ++++++++ cr-for-branches | 2 +- cri-common | 1 + make-flight | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 93 insertions(+), 1 deletion(-)
ap-common +18 -0
@@ -54,6 +54,23 @@ : ${PUSH_TREE_OVMF:=$XENBITS:/home/xen/git/osstest/ovmf.git} : ${BASE_TREE_OVMF:=git://xenbits.xen.org/osstest/ovmf.git} +define_openstack_trees() { + local openstack_trees=(cinder glance keystone nova requirements tempest) + local tree + local url + + : ${GIT_OPENSTACK_ORG:=git://git.openstack.org} + : ${TREE_OPENSTACK_DEVSTACK:=$GIT_OPENSTACK_ORG/openstack-dev/devstack.git} + for tree in ${openstack_trees[@]}; do + url=$GIT_OPENSTACK_ORG/openstack/$tree.git + eval ": \${TREE_OPENSTACK_${tree^^}:=$url}" + done +} + +define_openstack_trees +: ${PUSH_TREE_OPENSTACK_NOVA:=$XENBITS:/home/xen/git/osstest/openstack-nova.git} +: ${BASE_TREE_OPENSTACK_NOVA:=git://xenbits.xen.org/osstest/openstack-nova.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}
@@ -82,6 +99,7 @@ fi : ${LOCALREV_SEABIOS:=daily-cron.$branch} : ${LOCALREV_OVMF:=daily-cron.$branch} : ${LOCALREV_XTF:=daily-cron.$branch} +: ${LOCALREV_OPENSTACK_NOVA:=daily-cron.$branch} : ${TREEBASE_LINUX_XCP:=http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}
ap-fetch-version +4 -0
@@ -106,6 +106,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $TREE_OVMF_UPSTREAM master $LOCALREV_OVMF ;; +openstack-nova) + repo_tree_rev_fetch_git openstack-nova \ + $TREE_OPENSTACK_NOVA master $LOCALREV_OPENSTACK_NOVA + ;; osstest) if [ "x$OSSTEST_USE_HEAD" = "xy" ] ; then git update-ref -m "Arranging to test HEAD" \
ap-fetch-version-old +5 -0
@@ -35,6 +35,7 @@ check_ap_fetch_placeholders : ${BASE_LOCALREV_XTF:=daily-cron.$branch.old} : ${BASE_LOCALREV_OVMF:=daily-cron.$branch.old} : ${BASE_TAG_LIBVIRT:=xen-tested-master} +: ${BASE_LOCALREV_OPENSTACK_NOVA:=daily-cron.$branch.old} if info_linux_tree "$branch"; then repo_tree_rev_fetch_git linux \
@@ -114,6 +115,10 @@ ovmf) repo_tree_rev_fetch_git ovmf \ $BASE_TREE_OVMF xen-tested-master $BASE_LOCALREV_OVMF ;; +openstack-nova) + repo_tree_rev_fetch_git openstack-nova \ + $BASE_TREE_OPENSTACK_NOVA xen-tested-master $BASE_LOCALREV_OPENSTACK_NOVA + ;; osstest) if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then git fetch -f $HOME/testing.git production:ap-fetch
ap-print-url +3 -0
@@ -67,6 +67,9 @@ ovmf) osstest) echo none:; ;; +openstack-nova) + echo $TREE_OPENSTACK_NOVA + ;; *) echo >&2 "branch $branch ?" exit 1
ap-push +5 -0
@@ -41,6 +41,7 @@ TREE_RUMPRUN=$PUSH_TREE_RUMPRUN TREE_SEABIOS=$PUSH_TREE_SEABIOS TREE_OVMF=$PUSH_TREE_OVMF TREE_XTF=$PUSH_TREE_XTF +TREE_OPENSTACK_NOVA=$PUSH_TREE_OPENSTACK_NOVA if info_linux_tree "$branch"; then cd $repos/linux
@@ -129,6 +130,10 @@ ovmf) cd $repos/ovmf git push $TREE_OVMF $revision:refs/heads/xen-tested-master ;; +openstack-nova) + cd $repos/openstack-nova + git push $TREE_OPENSTACK_NOVA $revision:refs/heads/xen-tested-master + ;; osstest) git push $HOME/testing.git $revision:production if [ x"$TREEBRANCH_OSSTEST_UPSTREAM" != x ] ; then
cr-daily-branch +8 -0
@@ -207,6 +207,10 @@ if [ "x$REVISION_LINUXFIRMWARE" = x ]; then determine_version REVISION_LINUXFIRMWARE linuxfirmware LINUXFIRMWARE export REVISION_LINUXFIRMWARE fi +if [ "x$REVISION_OPENSTACK_NOVA" = x ]; then + determine_version REVISION_OPENSTACK_NOVA openstack-nova OPENSTACK_NOVA + export REVISION_OPENSTACK_NOVA +fi if [ "x$branch" != "xxen-unstable" ]; then export REVISION_LINUX_OLD=disable
@@ -260,6 +264,10 @@ ovmf) realtree=ovmf NEW_REVISION=$REVISION_OVMF ;; +openstack-nova) + realtree=openstack-nova + NEW_REVISION=$REVISION_OPENSTACK_NOVA + ;; *) NEW_REVISION='' wantpush=false
cr-for-branches +1 -1
@@ -31,7 +31,7 @@ scriptoptions="$1"; shift LOGFILE=tmp/cr-for-branches.log export LOGFILE -: ${BRANCHES:=osstest xen-4.0-testing xen-4.1-testing xen-4.2-testing xen-4.3-testing xen-4.4-testing xen-4.5-testing xen-4.6-testing xen-4.7-testing xen-unstable qemu-mainline qemu-upstream-unstable qemu-upstream-4.2-testing qemu-upstream-4.3-testing qemu-upstream-4.4-testing qemu-upstream-4.5-testing qemu-upstream-4.6-testing qemu-upstream-4.7-testing linux-4.1 linux-3.18 linux-3.16 linux-3.14 linux-3.10 linux-3.4 linux-arm-xen seabios ovmf xtf ${EXTRA_BRANCHES}} +: ${BRANCHES:=osstest xen-4.0-testing xen-4.1-testing xen-4.2-testing xen-4.3-testing xen-4.4-testing xen-4.5-testing xen-4.6-testing xen-4.7-testing xen-unstable qemu-mainline qemu-upstream-unstable qemu-upstream-4.2-testing qemu-upstream-4.3-testing qemu-upstream-4.4-testing qemu-upstream-4.5-testing qemu-upstream-4.6-testing qemu-upstream-4.7-testing linux-4.1 linux-3.18 linux-3.16 linux-3.14 linux-3.10 linux-3.4 linux-arm-xen seabios ovmf xtf openstack-nova ${EXTRA_BRANCHES}} export BRANCHES fetchwlem=$wlem
cri-common +1 -0
@@ -82,6 +82,7 @@ select_xenbranch () { ovmf) tree=ovmf; xenbranch=xen-unstable ;; distros-*) tree=none; xenbranch=xen-unstable ;; osstest) tree=osstest; xenbranch=xen-unstable ;; + openstack-nova) tree=openstack-nova; xenbranch=xen-unstable ;; esac if [ "x$tree" = xlinux ]; then linuxbranch=$branch
make-flight +48 -0
72 lines not on this page · raw message
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [OSSTEST PATCH v7 3/3] Create a flight to test OpenStack with xen-unstable and libvirt
Anthony PERARD writes ("[Xen-devel] [OSSTEST PATCH v7 3/3] Create a flight to test OpenStack with xen-unstable and libvirt"):
Quoted 1 line
This patch should create a flight "openstack-nova", with those jobs:
Did I already ask for a diff of the output of
standalone-generate-dump-flight-runvars
before and after ?
You probably want
AP_FETCH_PLACEHOLDERS=y eatmydata ./standalone-generate-dump-flight-runvars
Your new shell code is mostly good. I have a style comment:
ap-common line 58
Quoted 2 lines
ap-common +2
-0+define_openstack_trees() { + local openstack_trees=(cinder glance keystone nova requirements tempest)
The use of an array variable here is not necessary since none of these contain spaces. I don't object, except that:
Quoted 1 line
+ for tree in ${openstack_trees[@]}; do
This sets off my style alarm because of the lack of "" around a ${something[@]} (which off course doesn't matter here.
Can you either add the " ", or switch to a plain (space-separated) variable.
Quoted 1 line
+ for tree in ${openstack_trees[@]}; do
Here too.
Aside from that, and assuming the runvars diff is good, this is looking good.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [OSSTEST PATCH v7 3/3] Create a flight to test OpenStack with xen-unstable and libvirt
Quoted 6 lines · Ian Jackson
Anthony PERARD writes ("[Xen-devel] [OSSTEST PATCH v7 3/3] Create a flight to test OpenStack with xen-unstable and libvirt"):
Quoted 1 line
This patch should create a flight "openstack-nova", with those jobs:
Did I already ask for a diff of the output of
standalone-generate-dump-flight-runvars
before and after ?
You asked that on my patch set :-)
Perhaps it should be part of the README.devel?
Quoted 20 lines
You probably want
AP_FETCH_PLACEHOLDERS=y eatmydata ./standalone-generate-dump-flight-runvarsYour new shell code is mostly good. I have a style comment:
ap-common line 58
Quoted 2 lines
ap-common +2
-0+define_openstack_trees() { + local openstack_trees=(cinder glance keystone nova requirements tempest)The use of an array variable here is not necessary since none of these contain spaces. I don't object, except that:
Quoted 1 line
+ for tree in ${openstack_trees[@]}; do
This sets off my style alarm because of the lack of "" around a ${something[@]} (which off course doesn't matter here.
Can you either add the " ", or switch to a plain (space-separated) variable.
Quoted 6 lines
Quoted 1 line
+ for tree in ${openstack_trees[@]}; do
Here too.
Aside from that, and assuming the runvars diff is good, this is looking good.
I concur. I used his patchset to grok the OSSTest.
Quoted 7 lines
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel