372 Commits

Author SHA1 Message Date
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
Joe Gordon
819d2bed1d Remove unused tools/rfc.sh
OpenStack now uses git-review from pip

Change-Id: If9f59738b807f36168076dc5b1c6bfb8cc780536
2012-05-23 19:07:54 -07:00
John Garbutt
030fb2362f Make devstack work with xcp-xapi package on Ubuntu 12.04
- allow you to configure the xenapi_user (often other than root)
- allow you to disable the guest installer network
- install the plugins in the xcp-xapi location
- use alternate webserver location when adding the preseed file
- skip the centos specific ip forwarding configuration
- make use xcp inventory, if no xensource-inventory is found
- correctly deal with kpartx to mount the VM VDI in manage_vdi

Change-Id: I8d51725fc97f0bcaa27a46f7a7ced13c369c809e
2012-05-22 18:12:43 +01:00
John Garbutt
daadf744ed Improvements to DevStack's XenServer scripts
I have ensured:
- template gets re-used on second run
- template includes XenServer tools, and custom user accounts
- take snapshot before first boot, for easy re-run
- make host_ip_iface work with either eth2 or eth3
- make ssh into domU checks looser
- above is all ground work for improved jenkins tests
- added some more comments to make it scripts clearer

Change-Id: I5c45370bf8a1393d669480e196b13f592d29154f
2012-05-22 18:12:43 +01:00
Jenkins
461203b2c8 Merge "Add script to delete templates" 2012-05-16 20:06:04 +00:00
Jenkins
368bfa2252 Merge "bug 988550: devstack installer for xenserver to support user-defined ubuntu mirror" 2012-05-16 18:45:32 +00:00
Renuka Apte
d7ed417fec Add script to delete templates
This is a common operation on XenServer, which seems to be a three
step process.

Change-Id: I125b9c11ace0b3454b7c974f9209aca01cdd7ed2
2012-05-10 15:42:29 -07:00
Jay Pipes
b297d2d0a8 Fixes LP #996571 - Alternate Tempest user
Adds an alternate user to Keystone for Tempest

Tempest has a number of tests that are skipped if
the compute.alt_username is the same as compute.username
or None. Here, we modify files/keystone_data.sh to add
an additional regular user called alt_demo if Tempest
is enabled in stackrc. We also make corresponding changes
to the tools/configure_tempest.sh script to make use
of this alternate user credential

Change-Id: I551f3b378f843c62fffcf6effa916056708d54d3
2012-05-10 11:25:39 -04:00
Armando Migliaccio
1040a65fb9 bug 988550: devstack installer for xenserver to support user-defined ubuntu mirror
add support for local mirrors by:

- making sure the preseed file points to a local mirror.
- the apt sources mounted in the DevStack VM will point automatically to the same mirrror

Change-Id: I33052ac5c10387db7206ce2210ee2cbe9096df47
2012-05-10 01:04:26 +01:00
Sean Dague
0f5da00168 Regenerate tempest.conf every time
Select for active images

If we don't do this, repeat devstack installs won't be
able to use this script.

Change-Id: I95746ffebfa7163c80161d26de1e575c0fc5d39c
2012-05-03 11:53:52 -04:00
Jenkins
e716416c2e Merge "Add host/port/api_version to tempest.conf" 2012-04-30 23:03:08 +00:00
Jenkins
de2f505a04 Merge "Fixes typo on ADMIN_XXX variables" 2012-04-30 21:29:29 +00:00
Jay Pipes
c0e1ef520c Add host/port/api_version to tempest.conf
* Something exposed by LP #992096 was that the image
  tests were broken because the URL returned from the
  service catalog was no longer including a version
  identifier. The fix in Tempest was to pass the configure_via_auth=False
  parameter to the glance.client.Client constructor. However, in order
  for this to work, the host/port in the [image] section of the
  Tempest configuration file needs to be set

Change-Id: I9f661a02270a1ad52c10f2233baf899e5f706c82
2012-04-30 15:56:13 -04:00
Jay Pipes
a1c87388a4 Fixes parsing of glance(client) image-list.
There are still failures when tempest runs because
of recent changes with glanceclient, but at least
this patch gets the tools/configure_tempest working
again.

Change-Id: I73a5042dac2c930998663c478fb2ccd907c3ef87
2012-04-27 17:47:47 -04:00
Jay Pipes
1a61bf96d6 Fixes typo on ADMIN_XXX variables
Change-Id: Idae7b0db7d2cbc28873d613dd31cf2fff20b7855
2012-04-24 16:05:08 -04:00
Jay Pipes
678a188e2d Tempest - Remove Kong support and fix images
* Removes (non-working) Kong config.ini support
* Replaces copy/paste code from stack.sh that was not
  properly grabbing image UUIDs with a call to glance
  index
* Grabs any non-kernel non-ramdisk images and properly populates
  the IMAGE_UUID_ALT variable if more than 1 image is
  available

Change-Id: Ieaf892b8b3fb4ef4fe2e6168f7a53bbe42dd684c
2012-04-24 14:25:39 -04:00
Jenkins
2468d661c4 Merge "bug 980725: multi_host is always set to True with virtdriver=xenserver" 2012-04-23 19:16:48 +00:00
Armando Migliaccio
7a5f7f2d91 bug 986401: xe vm-shutdown expects running instances in os_install_domU.sh
do not fail if the instance is already halted.

Change-Id: Id080535c1eb008c9fc7335c9004318bbfb41e1f7
2012-04-23 16:57:16 +01:00
Jenkins
9105368bb0 Merge "Make required changes to tempest.conf build" 2012-04-18 16:16:29 +00:00
Renuka Apte
668d9cb9fd XenServer: Allow static network config for install
Change-Id: Ief24e21fcd8d4cd61296e4b81051d3332314d45c
2012-04-14 23:24:05 -05:00