28 Commits

Author SHA1 Message Date
Nachi Ueno
07115eb5c0 Refactor error logging
It is hard to grep errors in current log. so in this patch,
I'm updating die function which also writes log for
screen_log_dir/error.log.
In future, we may categolize negative fault by using
this error.log.

Change-Id: I70a8cfe67ed408284f5c88c762c6bb8acb8ecdb2
2013-02-28 11:54:24 -08:00
Dean Troyer
da85cdadd9 Exercise cleanup
* Make common steps consistent
* Make comments consistent

aggregates.sh
boot_from_volume.sh
client-args.sh
client-env.sh
euca.sh
floating_ips.sh
sec_groups.sh
swift.sh
volumes.sh

Change-Id: Ib93dcdfdead93c259e3cd184fbc5ccc0a4a87c9a
2013-02-15 12:34:33 -06:00
Dean Troyer
15bda3e463 Handle existing security group rules in volume exercise
Change-Id: I0aa3bc0c6179f92a12c1e9bbace61597778ffa1f
2013-01-11 15:09:14 -06:00
Adam Gandelman
756c842a77 Properly wait until volumes are gone in volumes.sh
A logic error in volume exercise's wait for volume deletion
causes the test to do the opopsite, and continue on even tho
the volume is in in the 'deleting' state.  If using a volume
backend that can quickly delete volumes (ceph), and the volume
is gone before entering the wait, the loop will spin, timeout
and fail the test.

Change-Id: I8e3d2aaa04e6a165e0dee32bedac97d35e13d5eb
2013-01-04 13:37:49 -08:00
Armando Migliaccio
b0d8a8288b make volume size parametric in boot_from_volume
Fixes bug #1090007

Change-Id: Ifa13b0b7b62be75805db2730cb7154406f0c1b94
2012-12-13 17:02:24 +00:00
Nachi Ueno
8bc21f6476 move setup_quantum to stack.sh
sudo is only allowed in stack.sh on the CI, so move setup_quantum code
to the stack.sh.
also fixes quantum debug command setup for linuxbridge and ryu

Change-Id: I11bc0aa242a690e25acc088b3e9f483ceab38f26
2012-12-05 17:55:08 -08:00
Jenkins
7a51891cb4 Merge "Remove support for nova-volume" 2012-11-14 21:58:47 +00:00
Joe Gordon
6fd2811726 Remove support for nova-volume
* nova-volume has been removed in Grizzly
* part of delete-nova-volume

Change-Id: Iba91d69950767823d77aaaa93243b0f476dbb04d
2012-11-14 13:21:58 -08:00
Jenkins
b459d0e3ba Merge "Make exercise.sh with quantum work" 2012-11-14 16:30:55 +00:00
Nachi Ueno
5db5bfa28f Make exercise.sh with quantum work
- added support for quantum-debug command
- added ping and ssh method for quantum

Change-Id: Iebf8a0e9e2ed2bb56bee6533e69827e6caa2bc82
2012-11-13 10:40:59 -08:00
John Griffith
161e2807a9 Update devstack exercises to call cinderclient
Exercises use nova volume-* commands still.  This works fine,
however moving forward now that cinder is the default volume service
we should use the cinderclient explicitly for the applicable calls.

Attach/Detach are still novaclient commands, however the others
(create, delete, list, etc) should be cinderclient.

Change-Id: I336de1b69a32eee6c91655b0a5bf8541b243f2f0
2012-11-05 15:13:36 -07:00
Nachi Ueno
fda946e3eb Added ping_check and ssh_check functions and use it in exercise.sh
Change-Id: I69d41c9db527f60f250b6af36b2d8e9d0dd39684
2012-10-25 21:52:31 -07:00
John Griffith
082a3da01f Remove extraneous timing messages from volumes.sh
Change: I3bbcc5b9f8a4da2fcdb9f6f70913c2d6bc6e2b9b
added some timing messages around the volume operations in
exercises/volumes.sh.  This was a good idea, but some
useless timing info was added to failed cases, this patch
pulls that back out.  The only parameter used to detect
failure is a timeout, so outputing the time elapses in
these cases is useless.

Change-Id: I609a803a7293aa8a8e3cec186984de59bfe9b409
2012-10-06 22:26:39 -06:00
John Griffith
496ffc74bb Add timing info to volume exercises.
Looking at some failures lately in Jenkins/Devstack runs and it would
be handy to see if failures were time-out related versus flat out failed
operations.

More interestingly it might be worthwile to harvest the completion time
info from the jenkins logs and keep track of any significant deviations
introduced by code changes.

Change-Id: I3bbcc5b9f8a4da2fcdb9f6f70913c2d6bc6e2b9b
2012-09-26 15:11:11 -06:00
Dean Troyer
96288ba9a9 Clean up security groups in exercises
* fix problem with deleting security groups too early in
  floating_ips.sh and euca.sh
* create and clean up security groups
* cosmetic cleanups

Change-Id: Ie45e03f889c540ec83f27a02b10e787060c5d4d7
2012-09-04 17:56:16 -05:00
Dean Troyer
67787e6b4c Add cinder support
* using the new functional pattern: cinder_XXX functions are in
  lib/cinder
* enable with 'c-api,c-sch,c-vol' in ENABLED_SERVICES, n-vol is still the default
* exercises/volumes.sh runs for cinder and n-vol
* move config to /etc/cinder
* change volume_group to stack-volumes; this also renames the backing file
  to /opt/stack/data/stack-volumes-backing-file.
* removes osapi_volume from nova.conf enabled_apis
* integrates cinder + keystone
* launches c-sch
* tweaks for multi node
* move enabled_apis substitution to init_cinder

18Jun2010
* restored & rebased
* update setup.py to use setup_develop() in lib/cinder

Change-Id: I1e1aa4387031c56e4fa239eb73bea2af8cef0e38
2012-06-20 14:11:19 -06:00
Armando Migliaccio
7d13f309bc bug 985905: multi_host flag cunfusing settings
switch to using trueorfalse for parsing MULTI_HOST values.

Change-Id: I289563e0cd05cda014198cf21b3c88897aba5d4f
2012-05-02 15:33:54 +01:00
Dean Troyer
45495258d6 Add glance client
* python-glanceclient overrides the old client shipped with glance in /usr/local/bin
* start adding exercises

Change-Id: I460ed5749bca69425f23d328c0537c2ef91f84a4
2012-04-25 21:24:30 -07:00
Dean Troyer
27e326995a Simplify die_if_error
* Replace die_if_error() with the simpler die()
* Attempt to clean up unnecessary trace output
* Formatting cleanups on all exercise scripts

Change-Id: I72a542b3a59ee9bf12bee6bcc605edd7579205e0
2012-03-19 10:06:15 -05:00
Dean Troyer
51fb454f71 Create exerciserc to configure exercises
* Move timeouts from openrc to (new) exerciserc
* Update all exercise scripts
* Update HACKING.rst

Fixes bug 951315

Change-Id: Icc4ff03a7dcf0cc711e204046176fb5186990c17
2012-03-12 11:44:32 -05:00
Dean Troyer
489bd2a62b Improve exercise robustness
* Test returns and exit codes on most command invocations
* Add start and end banners to make output easier to find in
  long log files
* Adds die_if_error(), die_if_not_set() and is_set() to functions
* Add some function tests

Fixes bug 944593

Change-Id: I55e2962c5fec9aad237b674732b1e922ad37a62e
2012-03-02 17:55:37 -08:00
Vishvananda Ishaya
854d8c93b8 Add a helper method to volumes test to get fields
* The way we retrieve data from cli output is janky, this
   improves it slightly by creating a helper method.

Change-Id: Ib0889fd56f6a78bed85dad4c5e9e6e34bac9fb0d
2012-02-28 01:15:57 +00:00
Dean Troyer
80756ea71a Blueprint cli-auth
* Add proper test for swift in client-env.sh
* Remove all VERIFY variables; nothing beyond the 4 OS_ vars is set now
* Update exercises for Keystone 2.0 auth
* swift understands Keystone 2.0 auth now, don't download custom binary
* cleanup uploaded bundle in bundle.sh

Change-Id: I99c818d81534bbf93c0e142513acb80e5fe613ea
2012-02-13 23:49:15 -06:00
Dean Troyer
10670d1bad Add support for OS_* environment vars
Add the OS_* env variables to mirror the NOVA_* vars; example:
setting OS_USERNAME will override NOVA_USERNAME in the clients and
tools, but if left unset it defaults to NOVA_USERNAME.

Adds exercises/client-env.sh to test operation of command-line
clients with only the OS_* variables set

Addresses bug 897304, http://wiki.openstack.org/CLIAuth

Change-Id: I72450153541072fe8026a82748cfcd1cf5ed31d8
2012-01-31 12:26:28 -06:00
Adam Gandelman
ce05e03213 exercises: Multihost support for Glance client
floating_ips and volumes exercises both access Glance directly, but
assume it is running locally.  To better accomodate exercising a
multi-host cloud, specify glance host via GLANCE_HOST setting which
defaults to HOST_IP to maintain current single-node functionality.

Change-Id: Iad06044af031083afa477204d446ada5161ca521
2012-01-30 14:46:25 -08:00
Dean Troyer
751c15243f Increase exercise robustness
* increase some timeouts
* tolerate existing security groups and rules
* add optional DEFAULT_IMAGE_NAME to select the image to boot
* fix image lists via glance

Change-Id: I31ae743e602f69a2c9f872273273f542fc4afda3
2012-01-19 14:49:08 -06:00
Dean Troyer
1d6e0e196e Use DEFAULT_INSTANCE_TYPE in exercises
Change-Id: I5a98a3a4e8057f613a94054b08ff5439f1ccf7cd
2011-12-28 14:20:47 -06:00
Dean Troyer
a8dda1709f Add volume.sh exercise
Change-Id: Ic339c34c85493d21f9fbf5280bb5ff1660644f98
2011-12-16 14:36:35 -06:00