Commit Graph

48 Commits

Author SHA1 Message Date
fa7ac3f9b0 Merge "Set lock_path for Tempest to TMPDIR" 2013-07-29 14:40:34 +00:00
859cc6800b Set lock_path for Tempest to TMPDIR
Tempest change I5376f977a110f502f0e4958cbccbd379539e006b syncs
lockutils from oslo. Tempest with testr needs to use external locks
which require a lock_path config option. This commit sets that option
for tempest to use devstack's TMPDIR.

Change-Id: I464edf9e11710e1931ed4f7b0262328a57e5b3de
2013-07-26 15:26:59 -04:00
b56d81d595 Set service_available config options in tempest
This commit loops over the list of services that tempest has config
options for in the service_available group and checks if the service
is enabled. Devstack will then set whether or not the service is
configured in tempest.conf.

Change-Id: Ib845d3e098fd3f45c8c26f5696af14cca1534e01
2013-07-24 10:03:45 -04:00
c373cf8b89 Update neutron_available config option.
Tempest change I5ee9ec816845de483fe88d76d1bb047e7bb1af7e changed
the behavior of the neutron_available config option. This commit
updates devstack to use it's new name and group.

Change-Id: I7d5074209fe81f6100f380512d7702fbc8e252ac
2013-07-22 20:57:57 -04:00
6094cdd56d Merge "Set the scenario/img_dir option for tempest.conf" 2013-07-08 23:10:56 +00:00
b05c876994 update for name change to Neutron
Note: Nova and Horizon are not updated until those projects have
migrated.

Change-Id: I256ef20e7caadd9c96e6dd908c5d8b69ca5c4aeb
2013-07-07 00:15:11 -04:00
24d866ef45 Set the scenario/img_dir option for tempest.conf
The default value does not work unless devstack is installed in
/opt/stack/new/devstack. This patch changes the img_dir option to point
to the correct install location.

Change-Id: Iea41d209dad10b2f9a7c97efd55c39a8d29347cc
2013-07-02 12:26:31 -05:00
16bfac4e76 Merge "Fix spelling mistakes" 2013-07-02 14:19:30 +00:00
4640026cc1 Fix spelling mistakes
git ls-files | misspellings -f -
Source: https://github.com/lyda/misspell-check

Change-Id: I7d63578734ca5cc1ec865a7d024c1a013d1ada87
2013-06-30 04:32:27 -07:00
7fa1902f9b Add cli_dir to tempest config
Add the cli_dir option to the generated tempest config.  This is
required on platforms such as RHEL where the binaries are not in the
standard location.

Note that to be fully operational this requires [1] in tempest so that
the cli path is created correctly.

[1] https://review.openstack.org/#/c/34302/

Change-Id: Ic7369193f1434974366cfabc7550e8545de244cd
2013-06-25 14:11:48 +10:00
c42ed258b4 Fix syntax error in lib/tempest
Fix syntax error in lib/tempest:
 Created tempest configuration file:
 21:06:30 ++ CINDER_MULTI_LVM_BACKEND=False
 21:06:30 ++ '[' False == 'True ]'
 21:06:30 /home/stack/devstack/lib/tempest: line 278: [: missing `]'

Change-Id: Ib4e393dad12751bdfb0e6f8fac3accd380a1f760
2013-06-17 13:23:44 +10:00
f756470f0d Merge "Ensure flavor_ref_alt is different from flavor_ref" 2013-06-14 16:15:06 +00:00
c377145632 allow overwriting of http_image in tempest.conf
the default http_image variable is an upstream cirros url in
tempest. However, in the gate this can cause flakey failures if
that has connection issues.

Ensure that we can override this from devstack-gate to be
something we are sure is going to work.

Partial fix for bug #1190623

Change-Id: Ie06fc231725c235f5ee8fd17fc87d3305bc845a3
2013-06-13 14:44:53 -04:00
97e1bd0323 Enables the multibackend Cinder tests in tempest when useful.
The change adds in lib/tempest an optional dependency on the var
$CINDER_MULTI_LVM_BACKEND which, if set, enables the multibackend
tests in the tempest config.

Change-Id: Iccafd00f5adabbbc2309fa72664bf29440744d91
2013-06-12 10:12:26 +02:00
bae0233cf9 Decrease the tempest build interval
Decreasing the build interval leads to faster state change detection,
so it will speed up the gating jobs.

It may increase the possibility of a "hidden" issues causes
indeterministic test results.

Change-Id: Ida5e7296e4ea53d761e0efef34376699337d8377
2013-06-08 15:57:48 +02:00
63a71a2316 Ensure flavor_ref_alt is different from flavor_ref
For tempest, server resize tests needs different values
for flavors to pass. Ensure different values in tempest.conf
for flavor_ref_alt and flavor_ref.

Change-Id: I2f8ee92967abc767637e334ae483b540dd7d5b78
Fix: bug 1187768
2013-06-06 09:00:20 -04:00
26824b0546 Run heat tempest tests if heat is enabled in devstack.
Change-Id: I6a5d1bae99982a8f0201885abd1203e1a8d78dcc
2013-06-04 13:19:02 +12:00
cc6b443545 Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
2013-04-09 14:05:32 -05:00
584d90ec56 add emacs shell-script tagging
for files that don't start with a #! or end in .sh, the added tags
are nice for emacs users to automatically switch to the right mode.

Change-Id: If4b93e106191bc744ccad8420cef20e751cdf902
2013-03-29 14:36:49 -04:00
7ddbea25c4 Don't directly pip install tempest pip-requires
This code:

    # Tempest doesn't satisfy its dependencies on its own, so
    # install them here instead.
    pip_install -r $TEMPEST_DIR/tools/pip-requires

causes us to do:

    Found existing installation: oslo.config 1.1.0
     Uninstalling oslo.config:

so rather than 1.1.0 installed, we end up with 1.1.0b1 and everything
goes kabloomy.

It looks like this comment came from a time (commit 9a352daf) before
tempest included proper install_requires (tempest commit 5abb253c3).

It should be safe to delete this and allow setup_develop() do all the
work just like the other projects.

Change-Id: I869f727900bb08c72e5e8f4e84858a9c77049715
2013-03-13 06:57:19 +00:00
4a20f9a175 add quantum_available flag to tempest
this ensures that if we setup quantum, we are explicit about it
in tempest. This is important so that nova tests which require
quantum features have any idea if they should function.

Change-Id: I5e6be9ff325676f25b2c391430dd66ff64a7a833
2013-03-01 07:23:38 -05:00
d5c0b66206 Merge "replace use of cirros 0.3.0 with 0.3.1" 2013-02-22 12:22:23 +00:00
cde655acb0 replace use of cirros 0.3.0 with 0.3.1
cirros 0.3.1 images have several significant improvements over 0.3.0, including:
 * newer kernel (3.2.0-25.40)
 * support for more filesystems (vfat, iso9660)
 * support for configdrive (config-drive-v2) as a datasource
 * acpi reboot/shutdown
 * curl with https support (previously there was no way to get https urls)

Change-Id: Idd7bef0cebb941f77d1cead9dc990fa0b03ff46b
2013-02-20 12:33:39 -05:00
2bccb8604e Remove ssh tests diabling as #1074039 is fixed
Removed the setting completely so that this is
left under control of tempest.conf.sample

Fixes LP# 1130750
Change-Id: I710f1c111e66834f4bc7020cad82c04bf495441c
2013-02-20 16:45:57 +00:00
25c42f6eb4 Remove old tempest configuration variables
Change-Id: I4c15c876514e1a8071a557ce79f56266a83b24b8
2013-02-14 15:00:02 +01:00
a52095b18c allow resize tests to run
resize tests were turned off explicitly, which they shouldn't be
turn these back on in a default config as we've set nova to allow
resize_to_same_host.

Change-Id: Iacedf11e56aff3a541f1b67b208e8ed3a30b2c44
2013-02-09 07:24:33 -05:00
6c678fe328 Merge "Renames old $devstack_dir to $TOP_DIR" 2013-01-30 01:14:17 +00:00
95fb0d440c Run setup_develop for tempest.
This setups the development environment for tempest. Without
running setup_develop for tempest import tempest.* breaks
outside of the tempest directory.

Change-Id: I6954733d68125dd116cc9bfa58b9aece674405c3
2013-01-28 16:24:56 -05:00
b0b98b7096 Renames old $devstack_dir to $TOP_DIR
This patch renames $devstack_dir which is no longer defined
to $TOP_DIR. Fixes problem where initialisation of ec2 images
for tempest testing was failing.

Change-Id: Ie0cd43209e58c903b1fe6cc528a4971896e6fab1
2013-01-23 21:17:19 +10:30
3c52922f4f Use the correct directory for image files in tempest
Change-Id: Ic40065a04b8015333b4cb6844211e9a0afb9d4c1
2013-01-21 06:50:33 +01:00
97d3d202ff Support Tempest config file format transition
* Identity server location just configure by an URI
* Image service location resolved by service endpoint
* Credentials will be defined only in the identity section
* Whitebox gets it's own section
* ssh username is per image option

Change-Id: I3b0d51a323560451c5636363896cadb39e0ea2d6
2013-01-20 08:49:04 +01:00
1d29d8bcf7 Add basic uec image preparation to tempest
Add uec image preparation to lib/tempest.
cirros as image is hard coded at the moment.

If the images does not exists or the system is not able to use uec images the
image prepare step will be skipped and tempest will skip the related
tests as well.

Setting ssh username correctly.
Setting instance type for the boto test.

Change-Id: I0d36ac7834e1eb677007e2c92dfc375d134a6023
2013-01-15 14:23:07 +01:00
31c94ab510 Improve quantum l3 and tempest config.
* Previously, configuration for the q-l3 agent was creating a
   tenant-owned router.  This change maintains that behaviour if
   namespaces are enabled, but creates a public (not tenant-owned)
   router if namespaces are disabled.  Since the L3 agent can only
   manage a single router if namespaces are disabled, the change
   ensures that the single router can be shared by multiple tenants.
 * Add tempest configuration for the public router.

Change-Id: I2878a7eb9797bfd71082a55d4773519dc5198abc
2013-01-14 21:30:31 +00:00
02c0bcc38c Increase tempest memory
32 MB not enough for boot correctly

Change-Id: I58ca4c7e8dd303450a9970136d6f60661ea70f67
2013-01-14 19:10:17 +01:00
7bf1dd351f Tempest should create his own flavors
* Decrease memory usage caused by tempest significantly

Change-Id: I0ea59d9bb1fbeb93f04353bc6b4e148637edf945
2013-01-13 01:10:52 +01:00
ceaa38b329 Fix tempest flavors and DEFAULT_INSTANCE_TYPE
The flavor selection was broken if DEFAULT_INSTANCE_TYPE is defined
but not yet created, for example when it is created in local.sh.
This also has the side effect of setting flavor_ref_alt to the first
flavor where it was unset in the previous code.

Change-Id: I1fa48b3f90af45144c92298b6b07a4f7ee3b499f
2013-01-10 08:31:42 +00:00
29acb1745b Merge "Turn off tenant_isolation in tempest for quantum" 2013-01-08 02:05:04 +00:00
06fac37d06 Turn off tenant_isolation in tempest for quantum
Current tempest didn't create networks for each tenant, so let
tempest use demo tenant for tesing if we enable quantum.

Change-Id: I5f139b5f1bdf5c176130b8db9e896e2cb48b4420
2013-01-07 12:22:45 -08:00
b1f2d84d1f Merge "Fix selection of image(s) tested by tempest." 2013-01-04 19:07:35 +00:00
6d04fd7ba5 Holiday docs and comment formatting cleanup
Change-Id: Ia4ca88c67d3b94e306a79a669805a2fa1b0dc069
2012-12-28 18:03:10 -06:00
66afb47cb9 Refactor quantum installation
* Move quantum installation to lib/quantum
* Refactor quantum configuration
* Move Quantum service account creation from keystone_data.sh to lib/quantum
* Define generic functions to install third party programs

* Minor cleanups related to Quantum
  * Kill dnsmasq which watches an interface 'ns-XXXXXX' in unstack.sh
  * Set default_floating_pool in nova.conf to make default flaoting pool
    work when PUBLIC_NETWORK_NAME is other than 'nova'
  * Make tempest work even when PRIVATE_NETWORK_NAME is other than 'private'

Change-Id: I4a6e7fcebfb11556968f53ab6a0e862ce16bb139
2012-12-26 23:41:38 +09:00
c24e23b43e Fix selection of image(s) tested by tempest.
The variable DEFAULT_IMAGE_NAME is set to 'cirros-0.3.0-x86_64-uec' by default.
This will cause configure_tempest to 'exit 1' and abort stack.sh if an image
with that name is not uploaded to glance. According to the relevant code
comment, this behaviour is incorrect. Updated code to match behaviour described
in comment: If image with name matching DEFAULT_IMAGE_NAME exists, use it for
both primary and secondary test image otherwise select first image and, if
available, second image listed by glance. Will still 'exit 1' if no images
are available at all (though it probably shouldn't).

Change-Id: I92773d4afd52cf533d16772ae2a087e23e206f8c
Fixes: bug #1092713
2012-12-21 02:25:16 -05:00
a5c774ea62 Add tempest config support for quantum.
* Supports fix for 1043980

Change-Id: I047989dacc263b30992a90181fb07a5ac47787d4
2012-12-14 17:46:08 +00:00
65c0846e37 Local variable cosmetic changes in lib/tempest
Change-Id: I5e83531c32968bc734abb0f9a8d03e2f9500a074
2012-12-07 14:25:06 +01:00
2aa35174b0 Move tempest config to lib/tempest
* Using iniset
* Config based on the tempest.config.sample
* tools/configure_tempest.sh is pending for removal

Change-Id: Ia42e98ba4b640b89bcd2674008090909d88a2efb
2012-12-06 11:35:04 +01:00
d75bc1f3c1 use pip_install to install packages for tempest
Change-Id: Ia892e0bc3c8c16119686daf26595c2b82d7e27b0
2012-12-05 14:19:30 +08:00
9a352daf89 Install Tempest's dependencies along with it.
* lib/tempest(install_tempest): Directly install Tempest's
tools/pip-requires list after cloning the repo.

Change-Id: I5c508faab8756d5cdfec53193e08e3440fda1b2c
2012-11-28 18:22:33 +00:00
d093121f3a clone tempest if enabled
add auto cloning of the tempest tree if it's an enabled service
just reduces one step in getting tempest up in a new environment

Change-Id: Ia8a2feee96f26dffe96c87d572a31735d90cdabb
2012-10-05 13:36:11 -04:00