Commit Graph

49 Commits

Author SHA1 Message Date
4415164d2f Merge "bug 985905: multi_host flag cunfusing settings" 2012-05-10 19:26:20 +00:00
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
255db3da19 Update quantum.sh for glance client change
Change-Id: Ib67301b26e1c3e1b68669eed6cd89e40687b14e9
2012-04-30 15:30:30 -05:00
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
b69536043c Merge "added sec_groups exercise" 2012-04-23 18:55:39 +00:00
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
dbdf6be879 added sec_groups exercise
Change-Id: Ib969efab4ef4c408fa59a44eff25d2c4ac56d024
2012-04-04 14:43:49 -04:00
fd1c87e830 blueprint host-aggregates
add some inital tests for the host-aggregates blueprint

Change-Id: I0c07f2e7fd123bbda6d26f4ff64bea3949e57157
2012-03-28 18:24:52 -05:00
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
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
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
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
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
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
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
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
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
a6bdfddd2b Use OS common cli auth arguments.
Change-Id: I80c9e42abb7060622d82cffc83d0108654a36562
2012-02-29 14:20:49 +00:00
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
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
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
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
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
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
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
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
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
75bbd75d91 Allow euca-upload-bundle to work with devstack
* modifies stack.sh to run nova-cert and nova-objectstore
 * adds exercises/bundle.sh to test for bundling
 * requires https://review.openstack.org/#change,3200

Change-Id: I850891948fbdfdf5890225f94df755e5dbc733d0
2012-01-25 15:40:40 +00:00
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
696ad331a4 Add some additional floating ip pool testing
Change-Id: I62cd6b43e3250dc28d66dc84d3759f47e81ff134
2012-01-12 16:32:24 -06:00
4b40c4d95f Merge "Use DEFAULT_INSTANCE_TYPE in exercises" 2012-01-03 18:32:04 +00:00
c384424e94 exercises/euca.sh timing fixes
Adjust timing in the script for testing on slower systems,
such as VMs on laptops.

Change-Id: I657fe54c7a4b75169b84ae1af37c88e2941e918a
2011-12-30 14:32:42 -06:00
1d6e0e196e Use DEFAULT_INSTANCE_TYPE in exercises
Change-Id: I5a98a3a4e8057f613a94054b08ff5439f1ccf7cd
2011-12-28 14:20:47 -06:00
2fcb3a85df Merge "Improve euca exercise to use floating ips and secgroups. This ensures that the full instance lifecycle gets 'worked.'" 2011-12-23 17:56:15 +00:00
abda427a10 Improve euca exercise to use floating ips and secgroups. This ensures that the full instance lifecycle gets 'worked.'
Change-Id: Ibf22054ae3fb864242ff3df2b8066985a43803d7
2011-12-16 20:36:51 +00:00
a8dda1709f Add volume.sh exercise
Change-Id: Ic339c34c85493d21f9fbf5280bb5ff1660644f98
2011-12-16 14:36:35 -06:00
9c7c9083a4 initial devstack + essex
* update horizon apache config
* updates apts for horizon
* better logging for horizon
* keystone conf settings
* only add swift endpoint if it is enabled
* new nova paste

Change-Id: I1edacbe5d8adc4bd5265d36abcaf01ce5490aefd
2011-11-23 11:26:39 -08:00
38df1228de revive working with subset of services
Change-Id: I645c5df457a2ac2c997ac32720d53cacc0fa109b
2011-11-20 09:55:44 -08:00
f6c09edf25 pause is admin-api, we shouldn't be testing it
Change-Id: Ia7b9d2f06aecb67f3e0c2f12687f18e3e386da3f
2011-11-17 15:14:43 -08:00
b74b74a2b3 permissions 2011-11-10 11:47:34 -08:00
16b6efab4c merge origin/master 2011-11-10 11:46:18 -08:00
3ef87eedce Merge branch 'toddexercises' of github.com:cloudbuilders/devstack into toddexercises 2011-11-05 11:05:56 -04:00
9a3066f9fd RUNNING_TIMEOUT = BOOT_TIMEOUT + ACTIVE_TIMEOUT 2011-11-05 11:02:34 -04:00
3e6ec236f0 Pull in swift testing from master. 2011-11-04 12:23:35 -04:00
9e9132ddaf Exercises: euca bugfix, output cleanup.
Don't log stderr per-exercise, because stdout is barfy anyway.
Move the state of skip/pass/fail to the end of the exercise run.
2011-11-04 12:09:54 -04:00
2599b3165a Wrap exercises with master script, with logs, and move common variables. 2011-11-04 10:31:37 -04:00
787af01bdd fix sourcing of openrc 2011-11-01 16:44:19 -07:00
9f1863450e docs 2011-11-01 16:05:40 -07:00
f670549186 move from exercise.sh to exercises/.. 2011-11-01 16:04:14 -07:00