23 Commits

Author SHA1 Message Date
Russell Bryant
08e07fb4c8 Don't use $USERNAME in openrc.
Fix bug 967429.

Don't use $USERNAME as a variable in openrc.  It's commonly set by
default and can result in $OS_USERNAME getting set to something else
unexpectedly, resulting in an environment that doesn't work.

Change-Id: I6083a871209d30c81ca6876b1ef6c154aef7f598
2012-03-28 16:22:08 -04: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
4807df8e5b Update openrc to focus on current OS_* environment variables
* Support for NOVA_* variables removed
* Support for username and tenant on command line added

Change-Id: Icd50e8bd06eaeedbc4bfd10a67ad0329d72d5756
2012-03-02 17:53:01 -06:00
Vishvananda Ishaya
112a360128 Update incorrect comment about certs in openrc
Change-Id: I1efdf9f43572b169a5d35406195c2228bddc90e3
2012-02-26 17:14:58 -08: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
Vishvananda Ishaya
d1f5243d91 Uses keystone client instead of keystone-manage
* Depends on https://review.openstack.org/#change,3948
 * Depends on https://review.openstack.org/#change,3945
 * Fixes bug 928558

Change-Id: I83c337e3b92a9ab0dac254afe83673185867b7b0
2012-02-09 03:50:57 +00:00
Vishvananda Ishaya
658ac7a4cc create and store secret and access keys 2012-02-06 22:56:37 +00: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
Anthony Young
1097c7ca91 Port work on SERVICE_HOST from stable/diablo. Allows user to specify service endpoint host separately from HOST_IP
* Improve openrc comment

Change-Id: Ib542b39350bae8d92b6c3c4cf6b5d9aabff7a61c
2011-12-27 23:22:47 -08:00
Jesse Andrews
38df1228de revive working with subset of services
Change-Id: I645c5df457a2ac2c997ac32720d53cacc0fa109b
2011-11-20 09:55:44 -08:00
Todd Willey
9a3066f9fd RUNNING_TIMEOUT = BOOT_TIMEOUT + ACTIVE_TIMEOUT 2011-11-05 11:02:34 -04:00
Todd Willey
2599b3165a Wrap exercises with master script, with logs, and move common variables. 2011-11-04 10:31:37 -04:00
Vishvananda Ishaya
f56e395d82 Make ec2 credentials work properly 2011-10-24 16:31:19 -07:00
Jesse Andrews
f75d848ece openrc should use same variables as stack.sh 2011-10-24 13:38:52 -07:00
Jesse Andrews
f1bfba2722 document how to overwrite the debug settings 2011-10-24 10:56:10 -07:00
Jesse Andrews
9c85373163 typo - fixes issue #90 2011-10-21 19:05:40 -07:00
Anthony Young
d81ed0316f allow overrides for all params 2011-10-20 13:09:39 -07:00
Anthony Young
d4ddf3da2d Merge remote-tracking branch 'origin/master' into openrc
Conflicts:
	exercise.sh
2011-10-20 11:37:53 -07:00
Anthony Young
6ab10d46a8 add an openrc file so that users can easily use the client 2011-10-20 10:24:50 -07:00