73 Commits

Author SHA1 Message Date
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
Eoghan Glynn
fc65cfed55 Directly create bootable volume based on image ID.
Now that a bootable volume can be created directly based on
image ID, we can dispense with the complexity around using
a builder instance to acheive the same effect.

Change-Id: Ied1f6863a4dd21685e2f135841b9e2c4d499675f
2012-10-20 14:18:06 +01: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
Vishvananda Ishaya
dc9e2880a3 Modify euca test to get zone using describe
This modifies the euca test to include describe-availability-zones
so that it is covered. This allows us to not need to hard-code a
zone name for the volume tests.

Change-Id: Iaae0589d4338d948981ca6e2229d2ceb73ff38ef
2012-09-21 23:20:06 +00:00
Vishvananda Ishaya
8efdbacce3 Change default zone back to nova
Change-Id: I9a097ab77c6b9fab3f33a245bca3bc0037f67fd1
2012-09-21 00:23:41 +00:00
Jenkins
026b305c3a Merge "Fix errors in client-* exercises" 2012-09-13 01:49:56 +00:00
Dean Troyer
834805350a Fix errors in client-* exercises
Change-Id: Ib100c7a2a4bb7f7c02cf4a66cb8bcf506aa11339
2012-09-12 14:45:48 -05:00
Chuck Short
37258958ce Add volume tests to exercises/euca.sh
Excercise euca2ools volumes commands when
exercising the other euca2ools as well.

Change-Id: Ia43bd233c63224eac5e851b3b8a3dbdbf3b5e1f0
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2012-09-11 09:24:04 -05:00
Dean Troyer
c5dfecd818 Fix RST formatting errors
Clean up some shocco RST errors

Change-Id: I9afa0f155f2bfcc73638ae11447c693579288355
2012-09-08 14:21:44 -05:00
Maru Newby
6c32c6edab Fix quantum exercise script to use private CIDRs.
* Addresses bug 1047024

Change-Id: Iba5a369b94a6c0e14edea9d13079a80a85adf907
2012-09-06 13:47:49 -07:00
Jenkins
6a1c849773 Merge "Fix aggregates test with multi host setup" 2012-09-05 18:15:24 +00:00
Mate Lakat
178b8402d9 Fix aggregates test with multi host setup
Fixes bug 1046222.

The aggregate exercise assumed that you have only one compute node, thus
it failed with syntax error for two hosts. With this fix, the exercise
will pick the first compute host, and use that for the tests.

Change-Id: I85d76552295d640e1a9d86fbbed781f15529d047
2012-09-05 10:42:10 +01: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
Dan Wendlandt
ea23e68664 Exercise quantum v2 api without namespace
Added quantum_v2.sh for quantum v2 api exercise.

Quantum exercise script requires the following settings:
- Q_USE_NAMESPACE=False
- LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver

And the following services enabled:
- quantum, q-svc, q-agt, q-dhcp

Change-Id: I5767f94c94187a4ca0fd189244fa6f5781519ab4
2012-08-22 05:53:17 -07:00
Monty Taylor
9fbeeddc3b Support the possibility of using entry-points.
If console scripts are generated via entry-points, they will go into
/usr/local/bin on python setup.py develop and they will not be found in
/opt/stack/$PROJECT/bin any more. This patch supports a transition to
entry-points console scripts, but should still allow the old thing too.

Change-Id: I816f5f796ad00ac55a8352743ba01723df140072
2012-08-17 19:04:54 -04:00
Jenkins
839d370c05 Merge "Improve exercises/aggregates.sh" 2012-08-15 20:35:57 +00:00
Devananda van der Veen
c0c6f00698 enable testing of openvz guests
This patch adds several options to allow using OpenVZ virt layer.
- modifies stack.sh and stackrc to recognize a new VIRT_TYPE option
- set IMAGE_URLS to an openvz image, if VIRT_TYPE == openvz

It also makes a few changes to some tests so that some implicit
defaults (such as the guest user account) can be overridden.

Change-Id: I0dde2dffbf3848fac1dd27eb37af84c0ac73d9aa
2012-08-03 18:15:01 -07:00
Joe Gordon
b7ef539b12 Improve exercises/aggregates.sh
* Update for blueprint general-host-aggregates
* Test for add/remove hosts
* Now uses nova host-list

Change-Id: Id6fef649c13032cf9148d7152fa2b28654717892
2012-08-01 17:18:39 -07:00
Jenkins
d79aa2c48f Merge "add TENANT_ARG to swift command line." 2012-07-13 21:21:55 +00:00
Armando Migliaccio
ea6b2d3f32 add TENANT_ARG to swift command line.
Fix bug 1020985.

Change-Id: I51733d37a50159a4b4872d61fa768d5bba3d6a03
2012-07-04 16:24:47 +01:00
Dean Troyer
ad101767b7 Cleanup exercise scripts
* whitespace and comment cleanups only

Change-Id: Iab9c2d9a25c3473f14190d60f2f2cf5be0ed59dc
2012-06-27 22:25:22 -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
Jenkins
4415164d2f Merge "bug 985905: multi_host flag cunfusing settings" 2012-05-10 19:26:20 +00: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
255db3da19 Update quantum.sh for glance client change
Change-Id: Ib67301b26e1c3e1b68669eed6cd89e40687b14e9
2012-04-30 15:30:30 -05: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
Jenkins
b69536043c Merge "added sec_groups exercise" 2012-04-23 18:55:39 +00:00
debo
8ad0351148 Updated CI test script
Debo~ Dutta@Cisco, Dave Lapsley@Nicira
 * original at https://review.openstack.org/#change,3682
 * Allow this exercise to be skipped if quantum is not enabled

Change-Id: I8463f654fb85394d78dd01c93c7f7b2706511030
2012-04-13 09:35:29 -07:00
Ben Andrews
dbdf6be879 added sec_groups exercise
Change-Id: Ib969efab4ef4c408fa59a44eff25d2c4ac56d024
2012-04-04 14:43:49 -04:00
John Garbutt
fd1c87e830 blueprint host-aggregates
add some inital tests for the host-aggregates blueprint

Change-Id: I0c07f2e7fd123bbda6d26f4ff64bea3949e57157
2012-03-28 18:24:52 -05:00
Chmouel Boudjnah
408b009ccd Allow skipping exercises.
- Catch a special exit signal 55 to notify that we want to skip an
  excercise.
- Move is_enabled_service to functions.
- Fix bug 928390.

Change-Id: Iebf7a6f30a0f305a2a70173fb6b988bc07e34292
2012-03-28 11:34:51 +01: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
Chmouel Boudjnah
77b0e1d8ff Converts bundle exercise to use swift/s3
- Fix keystone s3token configuration (in admin api not public api).
- Set s3 service in keystone to swift if installed.
- Fixes a bug in bundle.sh
- Adds config options for nova to use swift as s3 store

Change-Id: Ic2fca5aba06a25c0b3a74f1e97d062390a8e2ab1
2012-03-15 20:59:45 +00:00
Jenkins
737320f999 Merge "Add exercises/client-args.sh to test the pending cli changes for Keystone, Nova, Glance and Swift." 2012-03-15 17:51:55 +00:00
Anthony Young
440be4b6a8 Add exercise that boots an instance from a volume.
* Launches a cirros builder instance
 * Mounts a disk to the builder instance
 * Creates a bootable volume from builder
 * Launches the volume-backed instance
 * Update glance syntax
 * Don't require instance-to-web communication (that only works with
   fully configured floating ips)
 * Add footer/header

Change-Id: Ia6dcf399ee49154aaf4e597b060164c2f41cf3d2
2012-03-13 23:28:26 -07:00
Dean Troyer
4d88347f59 Add exercises/client-args.sh to test the pending cli changes for Keystone, Nova,
Glance and Swift.

Change-Id: I05aeda9be61e9c556d23ebc33076477c71708460
2012-03-14 01:04:32 -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
0bd2410d46 Move all EC2 cred creation to eucarc
* Remove credential creation from files/keystone_data.sh
* Remove EC2 cert setup from openrc
* Remove sourcing of ec2rc from stackrc
* Collect the above in eucarc
* Allow rc files to be sourced from other directories; based on Chmouel's
  4881 proposal but is simpler and doesn't actually change the directory
* Create S3 endpoint
* Get EC2 and S3 endpoints from Keystone service catalog
* Add EC2 credential checks to exercises/client-env.sh
* exercises/bundle.sh and exercises/euca.sh use eucarc

Updates:
* remove readlink -f to stay bash 3 compatible
* use service catalog
* create S3 endpoint

Fixes bug 949528

Change-Id: I58caea8cecbbd10661779bc2d150d241f4a5822e
2012-03-09 21:41:00 -06: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
Chmouel Boudjnah
a6bdfddd2b Use OS common cli auth arguments.
Change-Id: I80c9e42abb7060622d82cffc83d0108654a36562
2012-02-29 14:20:49 +00: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
Chmouel Boudjnah
8534bcb6bb Update Swift configuration with keystone latest.
- Update Swift to use the new tokenauth and swift_auth from keystone.
- Drop swift-keystone2.
- Add swift3 / s3token in swift proxy pipeline (TODO: figure out
testing).
- Fix exercises/swift.sh (workaround until review #3712 get merged).

Change-Id: Ie85d30e14cee21c6f80043fccde92dfb229f0e80
2012-02-25 18:44:26 +01:00
Russell Bryant
5836b1533a Wait for VM to stop before deleting security group.
Related to bug 938853.

The patch for this bug prevents deleting security groups through the
OpenStack API if they are still in use.  This patch for devstack updates
the floating_ips exercise script to wait until the VM has stopped before
deleting the security group.

Change-Id: If42f85934c2b92d4d001c419cabb09e2e3dc1aae
2012-02-24 10:23:33 -05:00
Russell Bryant
243b26a84e Wait for instance termination to complete.
This patch waits for instance termination to complete before trying to
delete the security group.  The last change to simply move the security
group deletion to after euca-terminate-instance was not sufficient, as
it has to wait until the termination is complete.

Change-Id: Icba579534f324afb4d44abd42d8c755834dd2a57
2012-02-22 11:19:32 -05:00
Russell Bryant
e7ed17eea4 Delete security group after terminating instance.
This patch slightly modifies the order of operations in the euca exercise
script.  It moves the deletion of the security group to the end, after
the instance has been terminated.  The reason this change must be made
is because of this change proposed to nova:

    https://review.openstack.org/#change,4154

Without this change, when exercise.sh is run against this patch, the euca
exercises will fail when the security group is deleted.  Moving it to the
end should make it pass, as the security group will no longer be in use.

Change-Id: I9095a02c42173ed1837ec20b38d5ef00fe4474ec
2012-02-21 17:47:46 -05: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
a94784135e Not all distros include a symlink from euca-describe-group to euca-describe-groups
Change-Id: Iaba71c36b405d2891aebdb45c1b9fd84853988f5
2012-02-08 11:49:28 -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