391 Commits

Author SHA1 Message Date
Vincent Untz
c18b965152 Add is_ubuntu function
This replaces all of the [[ "$os_PACKAGE" = "deb" ]] tests, except when
those tests are before straight calls to dpkg.

Change-Id: I8a3ebf1b1bc5a55d736f9258d5ba1d24dabf04ea
2012-12-04 18:30:13 +01:00
Jenkins
22d6799d73 Merge "Add a get_pip_command function" 2012-12-03 17:05:04 +00:00
Vincent Untz
8ec27220c5 Add a get_pip_command function
There are two places where we need to find the right command for pip, so
instead of having one version we fix and a buggy version we forget,
simply use a function :-)

Change-Id: I728c17ad7be5c86690c4d7907f77f1f98ec2b815
2012-12-03 17:00:39 +01:00
Monty Taylor
99fcd8184d A few more NOVA_BIN_DIR cleanups.
Change-Id: I1d1225c894f1857a3723e01f18d0f0dade670dc9
2012-12-02 13:07:39 -08:00
Sean Dague
93923ebeed fix typo in get_uec_image.sh
it's precise, not percise.

Fixes bug #1085233

Change-Id: I857c233c9b461b7cc6e2ac356aa6f2cd6be93ff5
2012-11-30 17:51:12 -05:00
Attila Fazekas
ed30160c04 Add OBJECT_CATALOG_TYPE to tempest config
* add OBJECT_CATALOG_TYPE

Change-Id: I776f7ce65e44ceef139e34a1b1aff52e069b90e6
2012-11-29 16:52:59 +01:00
Jay Pipes
596b906b63 Adds requisite changes to configure_tempest.sh for EC2/S3 tests
* Adds all the BOTO_XXX variables to the configuration file
  setup that are needed by https://review.openstack.org/#/c/14689/15

Change-Id: I44b2950705807fcfd026f1069fbe0d2727632760
2012-11-19 10:58:50 -05:00
jiajun xu
203edc569b Fix the parameter expansion issue in configure_tempest.sh
We need follow the syntax like ${parameter:-word} for OS_PASSWORD set.

Change-Id: I44f630007b578779658ddcd68417a778b242ed4d
2012-11-15 10:45:44 +08:00
Mate Lakat
da33982947 Remove hardwired ansolabs urls
Fixes bug 1078618.

The files are no longer available on ansolabs' servers. The files were
put on github, and this change modifies the location used in devstack.

Change-Id: I1f512ad3b52d6b04d0e28ce6a532e11bfede1462
2012-11-14 12:47:17 +00:00
Jenkins
fd802345d1 Merge "Enable Xen/DevStackDomU to have larger disk" 2012-11-13 17:39:49 +00:00
Jay Pipes
efcda85b7d Ensure BASE_SQL_CONN is set properly in tools/configure_tempest.sh
Recent changes to enable more than just MySQL to be used
in devstack moved some setup stuff to lib/database. While
this file was source'd in tools/configure_tempes.sh, the
BASE_SQL_CONN variable was not being set because
lib/database/initialize_database_backends was not called.

Change-Id: I53c3302097a94c842860fcb781e21383150bde7f
fixes: LP bug#1077056
2012-11-09 13:23:38 -05:00
Jenkins
c7ac694090 Merge "Fixed path for calling build_uec_ramdisk.sh from build_usb_boot.sh" 2012-11-08 17:59:48 +00:00
Stef T
f993b2353f Enable Xen/DevStackDomU to have larger disk
* Size of xvda can be specified via xenrc

  * Fixes bug 1076430

Change-Id: Ia4ffef98b01fa9572e43c46275a132b2b1e5f689
2012-11-08 10:49:32 -05:00
Jenkins
8ac888d7dc Merge "Few changes to get_uec_image.sh:" 2012-11-08 13:25:45 +00:00
Jenkins
3189611d2e Merge "Added options to improve offline usage." 2012-11-08 03:35:57 +00:00
Matthew Treinish
5233064713 Add multiple database support to configure_tempest
After support for multiple databases were added to devstack,
configure tempest would not work with update_database() in
localrc.

This sources lib/database before localrc is loaded so that
update_database is defined. Also, COMPUTE_DB_URI is now
replaced by BASE_SQL_CONN from lib/database.

Change-Id: Ifd791e5732898a661cc1237839bd18cef2f36f60
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
2012-11-07 17:02:03 -05:00
Maru Newby
3a87eddc7f Added options to improve offline usage.
* NOVA_ZIPBALL_URL can be set for a XS/XCP install to point to a
   non-standard zipball location.
 * PIP_USE_MIRRORS (default True) can be set to False to stop pip
   from attempting to use mirrors (useful for when using an offline
   eggproxy).

Change-Id: I01a9944fe4c13c8cc8323a703f598bc498491b73
2012-11-07 19:49:12 +00:00
Dmitriy Budnik
3edca54923 Fixed path for calling build_uec_ramdisk.sh from build_usb_boot.sh
Bug desc: build_usb_boot.sh is unable to find build_uec_ramdisk.sh while being called from tools directory. Variable with correct path wasn't been used at all.

Change-Id: I5ddff3d587a495e6768163f6b282e5b5f7a40849
2012-11-06 10:11:06 +02:00
dmitriybudnik
0c49539288 Few changes to get_uec_image.sh:
Fixed typo in usage message

Fixed usage message to represent actual code

Set default minimum image size to 2000MB from 2000*BS

fixed bug not creating directory for downoladed files

Change-Id: Id736ac7984f88e61b685569b6ba5e9158bea5889

added percise and quantal

Change-Id: Id9cb74dded044ec998700c1b456a8077f76c96e8
2012-11-04 21:43:58 +02:00
Mate Lakat
32cce9ef3e Default values for live migration tempest tests
Related to https://review.openstack.org/#/c/13101/

Add tempest test variables, so tempest tests will be configured with
proper default values.

Change-Id: Iec13ec3492cbfa6dcce665a4e0723f1b941ae88a
2012-10-05 12:32:07 +01:00
Andrew Melton
98ab500c2c prepare_guest_template.sh fails when there are multiple xs-tools iso's in ISO_DIR
In the case of two iso's ('xs-tools-6.0.2.iso' and 'xs-tools-6.0.2-1111.iso'),
TOOLS_ISO gets set to 'xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso' This causes
'mount -o loop xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso $TMP_DIR' to get
called, which fails as it's meant to be called with only one file. This fix
simply sets TOOLS_ISO to the first iso that ls returns.

Change-Id: Id4d883e2b1e33b233c9ee907016b4ce117c28021
2012-09-12 14:06:47 -04: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
Dan Smith
88ae3761dd Support new allow_tenant_reuse parameter in tempest config
This adds support for setting the above-mentioned attribute, which
was added in tempest recently.

Change-Id: I14fe21f97d1c57f538254fa0420e9bc56115fc3b
2012-09-04 10:19:45 -07:00
Jenkins
09cc131c06 Merge "Splits out build config params in Tempest." 2012-08-30 17:00:46 +00:00
Dean Troyer
ca0e3d0230 Add tools/upload_image.sh
* moves the image upload logic from stack.sh to functions upload_image()
* tools/upload_image.sh which is a thin wrapper around upload_image()

Change-Id: I8746beebf50cf623b6fe903d6497e66e3fa5dda6
2012-08-17 12:12:46 -05:00
Jenkins
7d8f036662 Merge "Install XenServer tools from the iso on XenServer" 2012-08-16 17:15:08 +00:00
Jenkins
d85e965104 Merge "Make it easier to use Precise or Oneric with XenServer DevStack" 2012-08-16 17:14:55 +00:00
Devananda van der Veen
2700492c34 Fix tools/configure_tempest FLAVOR_LIST
Correct the grep expression in tools/configure_tempest.sh
which generates the FLAVORS that tempest will boot.

Fixes bug 1037347

Change-Id: I50352fd23ca1e5332592bb343821c6355b274e9f
2012-08-15 16:40:23 -07:00
Rohit Karajgi
2eb9a13cce Splits out build config params in Tempest.
The build parameters for instances and volumes should be configured separately.

This patch adds the following Tempest vars:
COMPUTE_BUILD_INTERVAL
COMPUTE_BUILD_TIMEOUT
VOLUME_BUILD_INTERVAL
VOLUME_BUILD_TIMEOUT

Change-Id: Ia5357114f8e4248a8de4bd0327e08323c487e897
2012-08-08 07:01:00 -07: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
John Garbutt
b6c8714408 Install XenServer tools from the iso on XenServer
Fixes bug 1032122 by ensuring, where possible, we use the tools
shipped with XenServer rather than downloading the tools from
images.ansolabs.com

Change-Id: I4592eca315b4700e73097d678309d00323923c8b
2012-08-03 17:57:41 +01:00
Jay Pipes
4ba6eeb53a Adds compute whitebox configuration options
Adds the following options to the tempest configuration
file:

COMPUTE_CONFIG_PATH
COMPUTE_SOURCE_DIR
COMPUTE_WHITEBOX_ENABLED
COMPUTE_PATH_TO_PRIVATE_KEY
COMPUTE_DB_URI
COMPUTE_BIN_DIR

These options are used in an upcoming Tempest patchset

Change-Id: I50409d03255b92f154112b57e96ad71f8542ac96
2012-08-03 09:56:16 -04:00
John Garbutt
d8f1a87a45 Make it easier to use Precise or Oneric with XenServer DevStack
This is a partial fix for bug 1009937

Change-Id: I1fc7059cd812bce1539a5050f60717db4cbd81ef
2012-08-03 12:44:08 +01:00
Jenkins
89ff452ad9 Merge "Adds parameter interpolation for Tempest config" 2012-08-02 17:59:30 +00:00
Dean Troyer
05530caf2c Source functions before stackrc
The enable_service() and disable_service() functions in
https://review.openstack.org/9407 require the functions
file be sourced before stackrc.

* exercise.sh
* samples/local.sh (this will require manual addition to the user's
  local.sh if they based it on the sample)
* tools/build_bm.sh

Change-Id: I1bed687867e870bef5748289d712376435a776af
2012-08-01 20:03:01 -05:00
Rohit Karajgi
5ef9047593 Adds parameter interpolation for Tempest config
Adds Tempest variable for Volume catalog Type

Change-Id: I4ab968f30146bd9e40533d67dba49114649f029d
2012-07-31 06:22:29 -07:00
David Kranz
686f98ea10 Add flag for availablility of change password API.
Change-Id: Ic63754050ef4a5838144edd1d24a2e9206cc0fa5
2012-07-24 09:17:20 -04:00
Jenkins
798da01906 Merge "Update info.sh" 2012-07-18 18:45:32 +00:00
Jenkins
94906c48d5 Merge "Fix bug 1020513 by downloading xenapi plugins from correct place" 2012-07-17 18:02:51 +00:00
John Garbutt
7fc6dcd092 Fix bug 1020513 by downloading xenapi plugins from correct place
Change-Id: I2fc9c55b444bac355347f0d53b5971d4b809fbff
2012-07-16 10:02:48 +00:00
Dean Troyer
a9e0a488cf Update info.sh
* Works properly on Fedora 17 now, possibly other RPM-based distros
* Add GetDistro() function taken from logic in stack.sh
* Source functions in tools/info.sh
* Use GetDistro() and get_packages() in tools/info.sh
* Report all installed pips
* Don't sort localrc output as order is important

Change-Id: I1b3e48e94786378c7313a0a6bea88d5cf9d0f0c0
2012-07-09 14:59:52 -05:00
Jay Pipes
3edd5b41bc Adds new parameter interpolations for tempest config
Tempest recently added a number of new config variables
and this patch merely adds those variables to the
template replacement process in tools/configure_tempest.sh

This needs to go in before this:

https://review.openstack.org/#/c/8738/2

Additionally, this patch sets the build_interval to 3
and the build_timeout to 400. This faster status check
interval should allow Tempest to run a bit quicker in the
Jenkins gate job.

Change-Id: I8835ccdee6af58da66c6327ddae8a05b6789d454
2012-07-08 21:04:12 -04:00
Jenkins
e76fb89bbf Merge "Cleanup tools scripts" 2012-07-06 15:41:31 +00:00
John Garbutt
70edafc9d3 Fix bug 1020474 by correcting substitutions in configure_tempest.sh
This is caused by the following commit in tempest:
f38eaace9cb39d98b1203bd4c86b33d20501b7a3

Change-Id: I0cf6b49e81b696411a0c01f66c2b89508dc701b9
2012-07-03 10:39:32 +01:00
Jenkins
8d618ca855 Merge "fix syntax error in the if test" 2012-06-28 14:04:20 +00:00
Dean Troyer
e62ba4d312 Cleanup tools scripts
* whitespace and comment cleanups only

Change-Id: I4e631e9a9b8151758dc8c96b3aef76b963d5ea7e
2012-06-27 22:25:56 -05:00
Jenkins
7aea1758fc Merge "Remove unused tools/rfc.sh" 2012-06-14 20:18:21 +00:00
Armando Migliaccio
1f8efd93d9 fix syntax error in the if test
switch to using -f rather than -a. This has been overlooked
in a review recently merged. Without this fix, devstack on
XenServer is broken.

Change-Id: I1882cc70528772287241848adea3a520738d4144
2012-06-02 01:47:27 +01:00
Jenkins
e959dbc132 Merge "Move the ubuntu template generator to use Squeeze." 2012-06-01 19:21:06 +00:00
John Garbutt
37826bc8c8 Move the ubuntu template generator to use Squeeze.
Newer versions of XenServer don't have lenny templates, so moving
to use Squeeze.

Change-Id: I95473d4cdc6caad86bc53799fe2ecbedd9223026
2012-05-25 13:09:38 +01:00