Merge "Move live_migration test hooks under gate/"

This commit is contained in:
Zuul 2019-08-30 05:37:46 +00:00 committed by Gerrit Code Review
commit c43ec6b471
7 changed files with 8 additions and 26 deletions

View File

@ -128,25 +128,7 @@
Config drive is forced on all instances. Config drive is forced on all instances.
run: playbooks/legacy/nova-live-migration/run.yaml run: playbooks/legacy/nova-live-migration/run.yaml
post-run: playbooks/legacy/nova-live-migration/post.yaml post-run: playbooks/legacy/nova-live-migration/post.yaml
irrelevant-files: &live-migration-irrelevant-files irrelevant-files: *dsvm-irrelevant-files
# We define our own irrelevant-files because we need to run
# this if there are changes to nova/tests/live_migration/.
# TODO(mriedem): Move the nova/tests/live_migration/ scripts to gate/
# so this job can use the standard dsvm-irrelevant-files.
- ^api-.*$
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^.git.*$
- ^doc/.*$
- ^nova/hacking/.*$
- ^nova/locale/.*$
- ^nova/tests/(?!live_migration/).*$
- ^nova/test.py$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tests-py3.txt$
- ^tools/.*$
- ^tox.ini$
- job: - job:
name: nova-lvm name: nova-lvm
@ -268,7 +250,7 @@
name: nova-grenade-live-migration name: nova-grenade-live-migration
parent: nova-dsvm-multinode-base parent: nova-dsvm-multinode-base
description: | description: |
Multi-node grenade job which runs nova/tests/live_migration/hooks tests. Multi-node grenade job which runs gate/live_migration/hooks tests.
In other words, this tests live migration with mixed-version compute In other words, this tests live migration with mixed-version compute
services which is important for things like rolling upgrade support. services which is important for things like rolling upgrade support.
The former name for this job was The former name for this job was
@ -279,7 +261,7 @@
- openstack/grenade - openstack/grenade
- openstack/devstack-gate - openstack/devstack-gate
- openstack/nova - openstack/nova
irrelevant-files: *live-migration-irrelevant-files irrelevant-files: *dsvm-irrelevant-files
- job: - job:
name: nova-multi-cell name: nova-multi-cell

View File

@ -16,9 +16,9 @@ source $BASE/new/devstack/functions
source $BASE/new/devstack/functions-common source $BASE/new/devstack/functions-common
source $BASE/new/devstack/lib/nova source $BASE/new/devstack/lib/nova
source $WORKSPACE/devstack-gate/functions.sh source $WORKSPACE/devstack-gate/functions.sh
source $BASE/new/nova/nova/tests/live_migration/hooks/utils.sh source $BASE/new/nova/gate/live_migration/hooks/utils.sh
source $BASE/new/nova/nova/tests/live_migration/hooks/nfs.sh source $BASE/new/nova/gate/live_migration/hooks/nfs.sh
source $BASE/new/nova/nova/tests/live_migration/hooks/ceph.sh source $BASE/new/nova/gate/live_migration/hooks/ceph.sh
primary_node=$(cat /etc/nodepool/primary_node_private) primary_node=$(cat /etc/nodepool/primary_node_private)
SUBNODES=$(cat /etc/nodepool/sub_nodes_private) SUBNODES=$(cat /etc/nodepool/sub_nodes_private)
SERVICE_HOST=$primary_node SERVICE_HOST=$primary_node

View File

@ -48,7 +48,7 @@
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi fi
function post_test_hook { function post_test_hook {
/opt/stack/new/nova/nova/tests/live_migration/hooks/run_tests.sh /opt/stack/new/nova/gate/live_migration/hooks/run_tests.sh
} }
export -f post_test_hook export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh

View File

@ -48,7 +48,7 @@
export DEVSTACK_GATE_TEMPEST_NOTESTS=1 export DEVSTACK_GATE_TEMPEST_NOTESTS=1
export DEVSTACK_GATE_TOPOLOGY="multinode" export DEVSTACK_GATE_TOPOLOGY="multinode"
function post_test_hook { function post_test_hook {
/opt/stack/new/nova/nova/tests/live_migration/hooks/run_tests.sh /opt/stack/new/nova/gate/live_migration/hooks/run_tests.sh
$BASE/new/nova/gate/test_evacuate.sh $BASE/new/nova/gate/test_evacuate.sh
} }
export -f post_test_hook export -f post_test_hook