Commit Graph

187 Commits

Author SHA1 Message Date
ca5b5485d9 Merge "Make changes such that -o nounset runs" 2015-01-17 17:45:29 +00:00
537532931d Make changes such that -o nounset runs
This makes a bunch of variable cleanups that will let -o nounset
function, for the time being we hide nounset behind another setting
variable so that it's not on by default.

Because this is bash, and things are only executed on demand, this
probably only works in the config it was run in. Expect cleaning up
all the paths to be something that takes quite a while.

This also includes a new set of unit tests around the trueorfalse
function, because my change in how it worked, didn't. Tests are good
m'kay.

Change-Id: I71a896623ea9e1f042a73dc0678ce85acf0dc87d
2015-01-15 13:06:14 -05:00
b74e01c34d Add a group create function, and a sample group
Slowly trying to introduce more v3 concepts into a generic
devstack installation.

Work with description of none and description with spaces

Change-Id: I7d2fde58363698ff020f92f129f1ff7378f945a8
2015-01-14 14:37:13 -05:00
7b47c47308 Customizing tempest configuration for libvirt-lxc
In order to support the continued testing of the libvirt driver
with lxc virtualization, certain compute features must be disabled
including rescue, resize, and suspend.

Change-Id: I52150fef11ba6e3ab2fd0acacaa3c64413c0c0d1
2015-01-05 23:06:05 -06:00
f3e75bf979 Fixes Heat tempest issue due to hardcoded qcow2 extension
The orchestration image_ref is set incorrectly if the extension is not
qcow2, as a result tempest cannot find the Glance image and the
associated tests fail.

This patch fixes the issue by handling any extension.

Change-Id: I32ffe021714590a1b1bab232b1d4f5da238bd4d8
Closes-Bug: #1402774
2014-12-15 20:05:19 +02:00
bfed4850b7 Merge "Tempest allow_tenant_isolation in auth section" 2014-12-12 17:14:37 +00:00
d09a1db5a4 Merge "add shebang lines to all lib files" 2014-12-10 20:32:15 +00:00
3fe578d41d Merge "Tempest: configure exact set of extensions to test" 2014-12-10 16:33:28 +00:00
e263c82e48 add shebang lines to all lib files
With gerrit 2.8, and the new change screen, this will trigger syntax
highlighting in gerrit. Thus making reviewing code a lot nicer.

Change-Id: Id238748417ffab53e02d59413dba66f61e724383
2014-12-10 11:28:05 -05:00
099dd6ce8a Merge "Fix variable typo of use_syslog in lib/tempest" 2014-12-10 00:10:26 +00:00
00111b59d2 Merge "Fixes lib/tempest to accomodate Storage Protocol name with spaces" 2014-12-09 17:24:34 +00:00
b23cdf294b Merge "Configure boto.cfg in tempest to point to SSL bundle" 2014-12-09 17:24:30 +00:00
33e8ee20a4 Tempest: configure exact set of extensions to test
So far devstack configures tempest either for testing all extensions
or a specific subset. It does not allow users for specifying a set
of extensions which should not be exercised.

This patch adds this support. To this aim, the tempest configuration
process will scan API endpoints for active extensions using the
verify_tempest_config.py tool, and then will remove those extensions
which have been explicitly disabled by the user.

If an explicit subset of extensions to enable is passed to devstack,
tempest will use this subset, rather than the list of active
extensions.

Implements blueprint branchless-tempest-extensions

Change-Id: I263bcf04668953f414a4ef18cb98c1c373e142ad
2014-12-09 11:54:02 -05:00
82a7d93929 Fixes lib/tempest to accomodate Storage Protocol name with spaces
Change-Id: Ic711b2bb69f78b10ff6cb48e670df2d35646d8e9
Closes-Bug: #1278835
2014-12-04 14:09:16 +01:00
5a252d9a0e Fix variable typo of use_syslog in lib/tempest
TEMPEST_CONF is not set but used it. As a result the meaningless file
'DEFAULT' is created. So this commit fixes to use proper variable name.

Closes-bug: #1394969
Change-Id: If6e58f269319df3c4f71b4fc13aa855c63f7e3a3
2014-12-02 20:04:33 +00:00
f10c81869e drop tempest xml variable setting
tempest has dropped xml support, this variable no longer does
anything.

Change-Id: Iab4dbb88f6f01fe301fd54b3ac53995bed1c485a
2014-11-27 07:13:35 -05:00
90c2020908 Configure boto.cfg in tempest to point to SSL bundle
The boto client uses the ca_certificate_files value in the
Boto section of /etc/boto.cfg when making an SSL client
connection. Configure that to be the devstack SSL CA bundle
so the boto tests will pass when running against an SSL or
TLS-proxy configured devstack environment.

Change-Id: I55ae6d6e0c5b3adb4370ec93f40ae1cd47741457
2014-11-20 21:42:40 -05:00
86b65dd77b fix tempest-lib setup
The setup should have been with setup_dev_lib, which looks up the path
from GITDIR. This should let tempest-lib src jobs function.

Change-Id: Ia160708c089adce469d878030196b6fed8acc92d
2014-11-20 17:23:04 -05:00
e4e535b0bf Ensure syslog option is honored by neutron and tempest
Syslog settings were not configured at all for these two
projects. As a result, regardless of the value of the
SYSLOG environment variable, the use_syslog options for
these two projects was always set to False.

Change-Id: Iba6155d62beffa06e5bb9ac16b06082ec64d0926
Closes-Bug: #1394024
2014-11-19 01:39:00 +01:00
51c20e7361 Merge "apparently the upstream naming is tempest-lib" 2014-11-18 20:26:59 +00:00
91b229058c apparently the upstream naming is tempest-lib
tempest_lib was how this was generally referred to, however that meant
that the job naming wasn't specifying the correctly src
library. Change to tempest-lib to actually test these things before
release.

Change-Id: I4c0712156d7ff71ee43747f30ab940e249d12ebc
2014-11-18 07:13:35 -05:00
dc73d39a30 Add TEMPEST_ENABLE_NOVA_XML_API option
XML support of Nova API has been deprecated with the following
message:
  XML support has been deprecated and may be removed as early
  as the Juno release.
Now Kilo development cycle started, so we should disable Nova
API XML tests on Tempest.

This patch adds TEMPEST_ENABLE_NOVA_XML_API option for setting
Tempest test by devstack-gate. The default value is True because
of keeping the test coverage. After merging a devstack-gate patch
which specifes True for stable/icehouse and stable/juno, we will
set False for the master blanch.

I4acc15ce5f487738bb34a95c2261a5d05d827d8d is a Nova patch which
removes XML API support.

Change-Id: I2ab8f5c3d15b496e0b639c99bb8592533a69a265
2014-11-17 04:04:32 +00:00
d4732d76fc Merge "Allow installing tempest only with keystone" 2014-11-14 03:17:19 +00:00
c411fcfc92 Allow installing tempest only with keystone
Modify the lib/tempest to not fail
 if no nova or glance available.

* This allows performance test of keystone and neutron with
  tempest (or tempest stress runner) without having system
  noise from another components.
* Depending on not required components for tempest is bad practice,
  tempest service decorators expected to allow tempest,
  to run in more minimal system out-of-the-box.

Change-Id: Ifc40b1eb5c4b79d96a5fae919b88afecca642ca0
2014-11-10 11:50:51 +01:00
5cb190697c support installing clients at released versions
expand the devstack support for libraries from released versions to
support python-* clients and tempest_lib.

Depends-On: I81b0d228e7769758c61e5b0323ecfce8c8886d39

Change-Id: I26fac0ccf8fd4818e24618d56bf04b32306f88f6
2014-11-04 10:18:58 +01:00
2e34754325 Merge "Use ALT_INSTANCE_USER for image_alt_ssh_user" 2014-10-28 03:25:09 +00:00
26c9d02b31 Merge "Update multiple backend configuration in tempest script" 2014-10-23 11:50:08 +00:00
1c0628f83c Fix an issue with setting tempest volume vendor_name with spaces
If the volume vendor has spaces in it, for example “Open Source”, we
need to have quotes around the uses of the variables or the behavior
will not be as expected.

Change-Id: Ie1e99b6d6de2313e5b5b5a5d3057c136c9b34601
2014-10-22 16:23:05 -07:00
09fb7baff5 Update multiple backend configuration in tempest script
Currently when we configure the tempest with multiple LVM
backends the backend names are created as LVM_iSCSI and
LVM_iSCSI_2 which fails since the backends created by cinder
are lvmdriver-1 and lvmdriver-2.

This patch updates the backend names. Added support for
CINDER_ENABLED_BACKENDS and added todo to remove
CINDER_MULTI_LVM_BACKEND once its formally removed

Closes-Bug:#1369946
Closes-Bug:#1369942

Change-Id: If44f5eb206616afb0fbaf333f3fa6a296d4650cd
2014-10-16 12:03:17 -05:00
014564873e Set Tempest storage protocol and vendor w/o setting driver
Set TEMPEST_STORAGE_PROTOCOL and TEMPEST_VOLUME_VENDOR if
they are changed from their defaults, or if
TEMPEST_VOLUME_DRIVER is changed.

This maintains the current behavior of setting these options if
TEMPEST_VOLUME_DRIVER is set to something other than "default".

Change-Id: I1fb7f5db0446f97de48b97a6f451882cc51c51a4
2014-10-14 18:58:29 -04:00
608f884edb Use ALT_INSTANCE_USER for image_alt_ssh_user
Change-Id: Ib9cfb6e989575d62c493cbe92fdefd8c90256bcd
Closes-Bug: 1377914
2014-10-03 22:50:57 +04:00
9241e36bf1 Merge "Remove Nova v3 API endpoint" 2014-09-28 02:24:26 +00:00
fa4ece89f7 Remove Nova v3 API endpoint
Nova v3 API has disappeared in Juno cycle, and we don't test the API
now on the gate since If63dcdb2d05aa0fab0b6848a1248b6678f1ee9ad .
This patch removes the endpoint of Nova v3 API.

Change-Id: I85f87b37558a15d1eaaa781b02fec5b02bd2ab44
2014-09-25 02:08:10 +00:00
18d4778cf7 Configure endpoints to use SSL natively or via proxy
Configure nova, cinder, glance, swift and neutron to use SSL
on the endpoints using either SSL natively or via a TLS proxy
using stud.

To enable SSL via proxy, in local.conf add

ENABLED_SERVICES+=,tls-proxy

This will create a new test root CA, a subordinate CA and an SSL
server cert. It uses the value of hostname -f for the certificate
subject. The CA certicates are also added to the system CA bundle.

To enable SSL natively, in local.conf add:

USE_SSL=True

Native SSL by default will also use the devstack-generate root and
subordinate CA.

You can override this on a per-service basis by setting

<SERVICE>_SSL_CERT=/path/to/cert
<SERVICE>_SSL_KEY=/path/to/key
<SERVICE>_SSL_PATH=/path/to/ca

You should also set SERVICE_HOST to the FQDN of the host. This
value defaults to the host IP address.

Change-Id: I36fe56c063ca921131ad98439bd452cb135916ac
Closes-Bug: 1328226
2014-09-24 18:36:37 -04:00
3472386273 Install tempest-lib as part of install_tempest
This commit adds support to devstack to install the newly created
tempest-lib project.

Change-Id: Ifcf56639757ec4814dcd31f791931afe61f5a672
2014-09-16 21:52:03 -04:00
887fb54013 Fix preparation of aki/ari/ami images on Ubuntu
The boto tests currently don't run because euca-bundle-image fails on
Ubuntu; e.g.

---
 ++ euca-bundle-image -r x86_64 \
  -i /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-vmlinuz \
  --kernel true \
  -d /opt/stack/new/devstack/files/images/s3-materials/cirros-0.3.2

 euca-bundle-image: error: No such file or directory: /opt/stack/new/devstack/files/images/s3-materials/cirros-0.3.2
---

I noticed this in debugging why Fedora tests are running slower.  I
think that the version of euca-bundle-image in Fedora must create the
directory if it doesn't exist, while the Ubuntu one fails.

I also think this doesn't get caught by errexit because it's running
in a special sub-shell to use other credentials.

Change-Id: I79125e956088353aa76a3f7d6d81af1e4f6a27d4
2014-09-14 23:57:25 +00:00
62a66f7121 Merge "Configure enabled and disabled extensions in tempest" 2014-09-12 17:41:51 +00:00
38417fc9e0 Merge "Migrate from using glance image-list to openstackclient" 2014-08-25 14:05:53 +00:00
6f579e66fd Merge "Set suspend feature flag in tempest for ironic" 2014-08-25 13:58:05 +00:00
3046bc68c0 Configure enabled and disabled extensions in tempest
This patch adds support for configuring the api_extensions
option of the various feature-$service-(enabled|disabled)
sections in tempest's configuration file.

Please note that enabled extensions for the object storage
service are specified in tempest using the discoverable_apis
configuration options.

Partially-implements: Blueprint branchless-tempest-extensions

Change-Id: Ib64c0a474b153f42f3a4a427d86275c85f107997
2014-08-21 15:41:33 -07:00
33dc8699e6 Latest tox should work for openstack now, use it
Remove the tox pin that was in place to avoid issues with tox 1.7.0 and
1.7.1. Latest tox (1.7.2) is compatbile with openstack's tox.ini files
again and should work with tempest. This change is self testing and will
confirm this.

Making this change is important so that devs can stop worrying about
package version pins and helps ensure we don't get left behind by
upstream.

Change-Id: Ibf2102d6ad439dd354ae687f7aafec9ceca6cf9c
2014-08-19 22:37:10 -07:00
122a16fb95 Tempest allow_tenant_isolation in auth section
Tempest change 107685 moves allow_tenant_isolation from compute
group to auth group, making the old format deprecated.
Switching to the new format.

Change-Id: Iff79986c2564610efde4791b7e61df3db859e199
2014-08-14 17:16:58 +01:00
cf21b71024 Set suspend feature flag in tempest for ironic
Suspend isn't a feature supported by ironic/baremetal.

Change-Id: I49b3b07f9ffd3fcbda8e32e48dcf20062ac7f7d8
2014-08-13 07:03:58 -04:00
1316ff1140 Merge "Enable custom BUILD_TIMEOUT" 2014-08-12 06:43:14 +00:00
fdfe7a010e Set Tempest feature flags for Ironic
Many features tested by Tempest are not relevant to baremetal deployments.
This sets compute-feature-enabled flags accordingly.

Change-Id: I8a1820946bfc5d8f8c25692f9db67df59506126e
2014-08-06 16:42:01 -07:00
5c206c2b7d Migrate from using glance image-list to openstackclient
Modify instance of `glance image-list` to `openstack image list`,
in an effort to migrate all commands to unified CLI.

Change-Id: Ieef661d209606e088fbf6a3a394f9a6577667618
2014-08-04 17:00:18 -04:00
8827d2f61d Merge "Fixes tempest script to accomodate Storage Vendor Names with spaces." 2014-08-04 14:59:41 +00:00
2f23d75733 Fixes tempest script to accomodate Storage Vendor Names with spaces.
Change-Id: Ic651fbffaba9a9723ab572e8e8b732f6bea6d1c6
Closes-Bug: 1329597
2014-07-29 14:42:27 -06:00
1bde9b4baf Enable custom BUILD_TIMEOUT
The BUILD_TIMEOUT is hardcoded in lib/tempest. This patch
enables people to pass a custom BUILD_TIMEOUT parameter

Change-Id: I260c32e7ed6bf9a49a6bc40272a5535afbca2731
2014-07-28 12:48:50 -03:00
5397153987 Add architecture to tempest configuration
Cirros may be also built in other architectures other than
x86_64 (ex: ppc). This option should be broader,
so adding a new variable CIRROS_ARCH

Change-Id: I9fcd3f15e04bb581cf647ad49172c7d698e8e574
2014-07-22 17:49:13 -03:00