33 Commits

Author SHA1 Message Date
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
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
Vishvananda Ishaya
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
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
696ad331a4 Add some additional floating ip pool testing
Change-Id: I62cd6b43e3250dc28d66dc84d3759f47e81ff134
2012-01-12 16:32:24 -06:00
Jenkins
4b40c4d95f Merge "Use DEFAULT_INSTANCE_TYPE in exercises" 2012-01-03 18:32:04 +00:00
Dean Troyer
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
Dean Troyer
1d6e0e196e Use DEFAULT_INSTANCE_TYPE in exercises
Change-Id: I5a98a3a4e8057f613a94054b08ff5439f1ccf7cd
2011-12-28 14:20:47 -06:00
Jenkins
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
Anthony Young
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
Dean Troyer
a8dda1709f Add volume.sh exercise
Change-Id: Ic339c34c85493d21f9fbf5280bb5ff1660644f98
2011-12-16 14:36:35 -06:00
Jesse Andrews
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
Jesse Andrews
38df1228de revive working with subset of services
Change-Id: I645c5df457a2ac2c997ac32720d53cacc0fa109b
2011-11-20 09:55:44 -08:00
Vishvananda Ishaya
f6c09edf25 pause is admin-api, we shouldn't be testing it
Change-Id: Ia7b9d2f06aecb67f3e0c2f12687f18e3e386da3f
2011-11-17 15:14:43 -08:00
Jesse Andrews
b74b74a2b3 permissions 2011-11-10 11:47:34 -08:00
Jesse Andrews
16b6efab4c merge origin/master 2011-11-10 11:46:18 -08:00
Todd Willey
3ef87eedce Merge branch 'toddexercises' of github.com:cloudbuilders/devstack into toddexercises 2011-11-05 11:05:56 -04:00
Todd Willey
9a3066f9fd RUNNING_TIMEOUT = BOOT_TIMEOUT + ACTIVE_TIMEOUT 2011-11-05 11:02:34 -04:00
Todd Willey
3e6ec236f0 Pull in swift testing from master. 2011-11-04 12:23:35 -04:00
Todd Willey
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
Todd Willey
2599b3165a Wrap exercises with master script, with logs, and move common variables. 2011-11-04 10:31:37 -04:00
Jesse Andrews
787af01bdd fix sourcing of openrc 2011-11-01 16:44:19 -07:00
Jesse Andrews
9f1863450e docs 2011-11-01 16:05:40 -07:00
Jesse Andrews
f670549186 move from exercise.sh to exercises/.. 2011-11-01 16:04:14 -07:00