Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase to resolve tempest run error #5

Open
wants to merge 93 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
4f4bc22
Start using CINDER_VOLUME_CLEAR to replace CINDER_SECURE_DELETE
Oct 29, 2015
78591f5
TRIVIAL: Fix some misspellings
Jan 5, 2016
4ee1b9d
Add tls-proxy as an available service
Jun 8, 2015
ad2170a
Fix '-f: command not found' error
Jan 22, 2016
98ccf40
Update IRC channel to use #openstack-qa
Jan 22, 2016
3630eae
Add support for ipmitool driver in Ironic
umago Feb 24, 2016
e0fa9fc
Update multinode setup doc to VXLAN
fungi Mar 1, 2016
2a65d2b
Set the bridge MTU dynamically
cboylan Mar 3, 2016
7026584
Merge "Add support for ipmitool driver in Ironic"
Mar 5, 2016
47c7161
Merge "Add tls-proxy as an available service"
Mar 7, 2016
ceb9cd1
Run tests in venv
dims Mar 8, 2016
ea710ee
Archive Ironic VM nodes console logs for 'old'
Mar 8, 2016
416f604
Generate a log with deprecation warnings
dims Mar 8, 2016
d10c22f
add mitaka and ocata branches to feature list
dhellmann Mar 9, 2016
410ad6f
Merge "Generate a log with deprecation warnings"
Mar 10, 2016
23f2dc4
Log deprecations in horizon and keystone
dims Mar 10, 2016
7596697
Use dd to create swapfile, ensure swap amount == 8GB
Mar 9, 2016
42712e1
Merge "Update IRC channel to use #openstack-qa"
Mar 10, 2016
15767df
Merge "Use dd to create swapfile, ensure swap amount == 8GB"
Mar 11, 2016
589ca4f
Fix bug in populating multiline env vars on reproduce
Mar 15, 2016
4fa266c
Remove deletion of ~/workspace-cache
Mar 16, 2016
a959020
Document prereqs/usage for reproduce script
jayofdoom Mar 17, 2016
935707e
Added env variable for subnode conf for multinode
Mar 18, 2016
be06eea
Adjust grenade branches for mitaka
sdague Mar 24, 2016
7447c61
Remove doubled configuration in local.conf
watanabeisao Mar 25, 2016
a9c64e3
Use the right stable branch
armando-migliaccio Mar 25, 2016
258d8c8
Log locale during setup_host
tbreeds Mar 29, 2016
4184fe2
Allow to pass TEMPEST_OS_TEST_TIMEOUT from the job
jumpojoy Mar 28, 2016
f34dab5
Save PROJECTS form the job defintion for use in reproduce.sh
tbreeds Feb 14, 2016
6126ef7
Merge "Document prereqs/usage for reproduce script"
Mar 30, 2016
eaed7ec
Merge "Save PROJECTS form the job defintion for use in reproduce.sh"
Mar 30, 2016
982fee1
Merge "Log locale during setup_host"
Mar 30, 2016
ad4efce
Merge "Remove deletion of ~/workspace-cache"
Mar 30, 2016
84db0f2
Merge "Allow to pass TEMPEST_OS_TEST_TIMEOUT from the job"
Mar 30, 2016
31b22af
Merge "TRIVIAL: Fix some misspellings"
Mar 30, 2016
34fb44b
Merge "Added env variable for subnode conf for multinode"
Mar 30, 2016
5fc004c
Merge "Log deprecations in horizon and keystone"
Mar 30, 2016
aaa0890
Use ntp-wait instead of ntpdate to set time
cboylan Mar 30, 2016
4abc5d6
Use journald when it is present
cboylan Mar 30, 2016
3254d68
Fail the test if the pre test hook fails
dougwig Mar 13, 2016
60d480c
Archive /etc/openstack/clouds.yaml in gate runs
Apr 10, 2016
bd3ca1f
support py3
eyalb1 Apr 12, 2016
fb87392
Consider to log a package list for pip3
fkakuma Nov 16, 2015
a8010da
Merge "Fail the test if the pre test hook fails"
Apr 21, 2016
41b076c
Increase default OS_TEST_TIMEOUT to 1200
jumpojoy Apr 13, 2016
033036e
Fixed link to l3 agent in tempest-logs
booxter Apr 28, 2016
5af29c0
Install and run StackViz during devstack-gate host cleanup
timothyb89 Feb 16, 2016
42a9a9d
devstack-vm-gate-wrap: pin paramiko==1.16.0
EmilienM May 2, 2016
32f6f17
Merge "Update multinode setup doc to VXLAN"
May 2, 2016
7c2a44b
Merge "support py3"
May 2, 2016
4b1f906
Merge "Fix '-f: command not found' error"
May 2, 2016
0307df7
Merge "Consider to log a package list for pip3"
May 2, 2016
1d64827
Merge "Remove doubled configuration in local.conf"
May 2, 2016
466d55b
Merge "Fixed link to l3 agent in tempest-logs"
May 2, 2016
d826c89
Merge "Increase default OS_TEST_TIMEOUT to 1200"
May 12, 2016
baf68bb
Do not set IRONIC_VM_COUNT from devstack-gate
jumpojoy May 10, 2016
103256b
Merge "Archive Ironic VM nodes console logs for 'old'"
May 18, 2016
cf8b7ae
Make reproduce function quiet
ianw Mar 23, 2016
6a80086
Merge "Start using CINDER_VOLUME_CLEAR to replace CINDER_SECURE_DELETE"
May 20, 2016
49cfda2
Merge "Make reproduce function quiet"
May 20, 2016
c0b7c9f
Print installed tempest-plugins after tempest run
mtreinish May 20, 2016
5322c4f
Merge "Do not set IRONIC_VM_COUNT from devstack-gate"
May 21, 2016
b81c4a6
Allow to set Ironic provision timeout from the job
jumpojoy May 12, 2016
3250b20
don't set libvirt cpu_model
sdague May 25, 2016
493c396
Merge "Print installed tempest-plugins after tempest run"
Jun 2, 2016
96b2355
Merge "don't set libvirt cpu_model"
Jun 4, 2016
40c2ba7
Stop using DevStack fwaas code
sc68cal May 25, 2016
0773145
Save tempest accounts.yaml in logs
afrittoli May 28, 2016
826d790
Merge "Install and run StackViz during devstack-gate host cleanup"
Jun 6, 2016
83c3392
Merge "Allow to set Ironic provision timeout from the job"
Jun 7, 2016
aafcf8b
Merge "Save tempest accounts.yaml in logs"
Jun 7, 2016
3ef48ce
Allow to pass OS_TEST_TIMEOUT for grenade job
jumpojoy May 16, 2016
8aa9194
Set read/search perms recursively
ianw Jun 17, 2016
4f3bc0e
Enabling Cinder multinode testing
Jun 9, 2016
0abeea1
Merge "Stop using DevStack fwaas code"
Jul 14, 2016
f5d3bdb
Configure infrastructure MTU with global_physnet_mtu
booxter Jul 15, 2016
e76e156
Always set br-ex mtu including for grenade runs
cboylan Jul 15, 2016
8adc996
Merge "Configure infrastructure MTU with global_physnet_mtu"
Jul 20, 2016
53170ea
Merge "Use ntp-wait instead of ntpdate to set time"
Jul 22, 2016
a35ab28
Use "arp -n" when finding gateway MAC for netconsole
ianw Jul 28, 2016
54b30a1
Use ntp wait time as 10 min instead of 100
sshnaidm Jul 31, 2016
59aeed2
Explicitly set IRONIC_BUILD_DEPLOY_RAMDISK
jayofdoom Aug 3, 2016
769e8f6
Merge "Enabling Cinder multinode testing"
Aug 9, 2016
dcd6902
Add sanity check on devstack generated tempest.conf
mtreinish Aug 9, 2016
88a41da
Add osc-lib and os-client-config to PROJECTS
emonty Aug 12, 2016
c6aad9f
Put the regex first
mtreinish Sep 10, 2016
f9435c0
Merge ZUUL_REF branch
Jun 13, 2014
2806659
Update to force stack to run on saucy
Aug 8, 2014
7c5a4dc
Remove heat, trove, sahara and ceilometer from XenAPI testing
Aug 27, 2014
c390079
Use sudo -H to install ansible to avoid permission failures.
Feb 26, 2016
0186169
Add support for xenserver neutron external CI
Annie-XIE Apr 8, 2016
46dc7ca
Skip multi-host setup for nova network setup
Aug 1, 2016
b035e74
Reduce the target swap size to avoid disk full.
Sep 20, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ You can file bugs on the storyboard devstack-gate project::

https://storyboard.openstack.org/#!/project/712

And you can chat with us on Freenode in #openstack-dev or #openstack-infra.
And you can chat with us on Freenode in #openstack-qa or #openstack-infra.
46 changes: 38 additions & 8 deletions devstack-vm-gate-wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ source $WORKSPACE/devstack-gate/functions.sh

start_timer

# Save the PROJECTS variable as it was passed in. This is needed for reproduce.sh
# incase the job definition contains items that are not in the "global" list
# below.
# See: https://bugs.launchpad.net/openstack-gate/+bug/1544827
JOB_PROJECTS="$PROJECTS"
PROJECTS="openstack-infra/devstack-gate $PROJECTS"
PROJECTS="openstack-dev/devstack $PROJECTS"
PROJECTS="openstack-dev/pbr $PROJECTS"
Expand Down Expand Up @@ -71,10 +76,12 @@ PROJECTS="openstack/neutron-vpnaas $PROJECTS"
PROJECTS="openstack/nova $PROJECTS"
PROJECTS="openstack/os-apply-config $PROJECTS"
PROJECTS="openstack/os-brick $PROJECTS"
PROJECTS="openstack/os-client-config $PROJECTS"
PROJECTS="openstack/os-cloud-config $PROJECTS"
PROJECTS="openstack/os-collect-config $PROJECTS"
PROJECTS="openstack/os-net-config $PROJECTS"
PROJECTS="openstack/os-refresh-config $PROJECTS"
PROJECTS="openstack/osc-lib $PROJECTS"
PROJECTS="openstack/oslo.cache $PROJECTS"
PROJECTS="openstack/oslo.concurrency $PROJECTS"
PROJECTS="openstack/oslo.config $PROJECTS"
Expand Down Expand Up @@ -163,8 +170,15 @@ export DEVSTACK_GATE_TEMPEST_DISABLE_TENANT_ISOLATION=${DEVSTACK_GATE_TEMPEST_DI
# Set to 1 to enable Cinder secure delete.
# False by default to avoid dd problems on Precise.
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1023755
# TODO(mriedem): CINDER_SECURE_DELETE is deprecated in devstack as of liberty.
# Remove after kilo-eol happens in devstack.
export DEVSTACK_CINDER_SECURE_DELETE=${DEVSTACK_CINDER_SECURE_DELETE:-0}

# Should cinder perform secure deletion of volumes?
# Defaults to none to avoid bug 1023755. Can also be set to zero or shred.
# Only applicable to stable/liberty+ devstack.
export DEVSTACK_CINDER_VOLUME_CLEAR=${DEVSTACK_CINDER_VOLUME_CLEAR:-none}

# Set to 1 to run neutron instead of nova network
# Only applicable to master branch
export DEVSTACK_GATE_NEUTRON=${DEVSTACK_GATE_NEUTRON:-0}
Expand Down Expand Up @@ -269,6 +283,9 @@ if [[ -n "$DEVSTACK_GATE_GRENADE" ]]; then
export GRENADE_NEW_BRANCH="stable/liberty"
elif [[ "$GRENADE_BASE_BRANCH" == "stable/liberty" ]]; then
export GRENADE_OLD_BRANCH="stable/liberty"
export GRENADE_NEW_BRANCH="stable/mitaka"
elif [[ "$GRENADE_BASE_BRANCH" == "stable/mitaka" ]]; then
export GRENADE_OLD_BRANCH="stable/mitaka"
export GRENADE_NEW_BRANCH="$GIT_BRANCH"
fi
;;
Expand Down Expand Up @@ -296,8 +313,11 @@ if [[ -n "$DEVSTACK_GATE_GRENADE" ]]; then
elif [[ "$GRENADE_BASE_BRANCH" == "stable/liberty" ]]; then
export GRENADE_OLD_BRANCH="stable/kilo"
export GRENADE_NEW_BRANCH="stable/liberty"
else # master
elif [[ "$GRENADE_BASE_BRANCH" == "stable/mitaka" ]]; then
export GRENADE_OLD_BRANCH="stable/liberty"
export GRENADE_NEW_BRANCH="stable/mitaka"
else # master
export GRENADE_OLD_BRANCH="stable/mitaka"
export GRENADE_NEW_BRANCH="$GIT_BRANCH"
fi
;;
Expand Down Expand Up @@ -416,7 +436,7 @@ fi
if ! function_exists "gate_hook"; then
# the command we use to run the gate
function gate_hook {
$BASE/new/devstack-gate/devstack-vm-gate.sh
$WORKSPACE/devstack-gate/devstack-vm-gate.sh
}
export -f gate_hook
fi
Expand All @@ -434,7 +454,9 @@ set -x
# Install ansible
sudo -H pip install virtualenv
virtualenv /tmp/ansible
/tmp/ansible/bin/pip install ansible==$ANSIBLE_VERSION
# NOTE(emilien): workaround to avoid installing cryptography
# https://github.com/ansible/ansible/issues/15665
sudo -H /tmp/ansible/bin/pip install paramiko==1.16.0 ansible==$ANSIBLE_VERSION
export ANSIBLE=/tmp/ansible/bin/ansible

# Write inventory file with groupings
Expand Down Expand Up @@ -468,7 +490,7 @@ $ANSIBLE all -f 5 -i "$WORKSPACE/inventory" -m file \
-a "path='$WORKSPACE/logs' state=directory"

# Record a file to reproduce this build
reproduce
reproduce "$JOB_PROJECTS"

# Run ansible to do setup_host on all nodes.
echo "Setting up the hosts"
Expand Down Expand Up @@ -552,15 +574,23 @@ fi
# devstack-vm-gate-wrap.sh will not automagically run the hooks on each node.
# Run pre test hook if we have one
with_timeout call_hook_if_defined "pre_test_hook"
GATE_RETVAL=$?
if [ $GATE_RETVAL -ne 0 ]; then
echo "ERROR: the pre-test setup script run by this job failed - exit code: $GATE_RETVAL"
fi

# Run the gate function
echo "Running gate_hook"
with_timeout "gate_hook"
GATE_RETVAL=$?
if [ $GATE_RETVAL -eq 0 ]; then
echo "Running gate_hook"
with_timeout "gate_hook"
GATE_RETVAL=$?
if [ $GATE_RETVAL -ne 0 ]; then
echo "ERROR: the main setup script run by this job failed - exit code: $GATE_RETVAL"
fi
fi
RETVAL=$GATE_RETVAL

if [ $GATE_RETVAL -ne 0 ]; then
echo "ERROR: the main setup script run by this job failed - exit code: $GATE_RETVAL"
echo " please look at the relevant log files to determine the root cause"
echo "Running devstack worlddump.py"
sudo $BASE/new/devstack/tools/worlddump.py -d $BASE/logs
Expand Down
Loading