Commit Graph

430 Commits

Author SHA1 Message Date
Zuul eae384ac1d Merge "Inclusive jargon" 2021-02-09 22:33:47 +00:00
Martin Kopec dc84423b72 Inclusive jargon
Following stestr's example where arguments such as --blacklist-file,
--black-regex and --whitelist-file are deprecated since its
3.1.0 release, let's do the change here as well in order to
get tempest consumers some time for the transition.

This change deprecates the following arguments and replaces them
by new ones which are functionally equivavelnt:
* --black-regex is replaced by --exclude-regex
* --blacklist-file is replaced by --exclude-list
* --whitelist-file is replaced by --include-list

For now, Tempest will accept both (new and old) arguments to make
the transition smoother for all consumers.

The patch also bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I3e09b31f63d2cd7ea41c48e62432bd3bc54fcf44
2021-01-20 08:40:57 +00:00
Colleen Murphy cbac9379ad Add default RBAC personas to pre-provisioned creds
This change adds support for the nine default personas for the
pre-provisioned credentials provider, as well as a sample accounts.yaml
file. With this, service projects should be able to use either dynamic
or pre-provisioned credentials for testing new policy defaults that use
system, domain, or project scope and the admin, member or reader default
roles.

Change-Id: Ifda77fb8d875b18c4507da2c9d98f17bcdac2e21
2021-01-11 19:12:54 +00:00
Jordan Pittier 2e7ae7c6e5 Remove the Stress framework
It's not used anymore. There was general consensus in Feb 2016
to deprecate it (see [1]) and remove it in Newton.

[1]  [qa] deprecating Tempest stress framework

Change-Id: Ib229985ea2a1fee495c9492c9ce1781e6bac1dc6
2016-10-19 14:31:13 +02:00
ghanshyam 2bff1a133a
Remove deprecated Javelin CLI utilities from Tempest
Javelin CLI utilities has been deprecated in Jan 2016
- Ie4ab5258946271a16e96a070abeedfafa5423714
which is over 6 months of Tempest deprecation period.

This patch removes the javelin CLI and corresponding doc/sample
files etc.

Change-Id: Ia59d3e81f245f29a7bf0f56b690586dfc55f16a0
2016-08-01 21:14:42 -04:00
Matthew Treinish bdef1c77ab
Move oslo config generator config inside package
This commit moves the oslo config generator config file from living as
a data file, which makes it very difficult to rely on, to just living
in the package. By including it in the package we have a guaranteed
relative path we can rely on for building utilities on it, like the
tempest init command.

Change-Id: I5b9deae733f42fe3ed39418103304f71b43dccb3
Partially-implements: bp tempest-run-cmd
2016-06-22 14:39:42 -04:00
ghanshyam e4796f8de4 Remove Ceilometer tempest tests
Now Ceilometer and Aodh tempest plugins are implemented and all
tests and supported code is present in plugins.
-https://github.com/openstack/aodh/tree/master/aodh/tests/tempest
-https://github.com/openstack/ceilometer/tree/master/ceilometer/tests/tempest

NOTE- Need to keep config option 'CONF.service_available.ceilometer'
as it is being used in Congress tests in Kilo and Liberty branch and
Ceilometer tempest plugin is available since Mitaka.
If we remove that then, we will be breaking Congress gate for stable branches.

Change-Id: I0775bcc15dc9cbae6e075fe92f44b5f6c9b9d5d2
Depends-On: Ic0e6b72d8767d92cc63968c442c4ff65bb001cda
2016-04-22 16:24:34 +09:00
John Warren b10c6caa1a Fix V3 credential behavior, documentation
Fixing V3 credential behavior so that contradicting parameter combinations
do not result in unpredictable behavior.  Updating accounts.yaml.sample
file to reference the correct location of the credentials
classes and to describe the updated behavior of Identity V3 attributes.

Change-Id: I29efe778afcb1e4a55dffd6a8ed8212d62a4dd15
2016-03-10 18:10:27 -05:00
David Paterson 0bf52d497b Fix init command
Init command was not working properly as it could not locate the
configuration sample file.
Steps taken:
- Move config-generator.tempest.conf to etc so it will be installed
with pbr.
- Update all files with new path to config-generator-tempest.conf as
needed.
- Refactor init command so if it detects we are not in a virtual
environment, try to find the global config directory /etc/tempest.
If that fails fallback to [sys.prefix]/etc/tempest.

Closes-Bug: #1491058
Closes-Bug: #1490670
Change-Id: I960bc711ff78ac2b0441ef63dff8ec4fb268fd3a
2015-09-23 09:42:07 -04:00
Matthew Treinish c8a39b488b
Stop gating on sample generation check
This removes the check on in tree sample generation to ensure the file
matches the config options. However, to counter the loss of the in-tree
the tempest init command will now automatically generate a new sample
config in the local etc dir when run. This will include all of the oslo
options that were previously included in the in-tree sample file.
Additionally, the docs now contain the complete text of the generated
sample output. These also get published on docs.openstack.org on each
commit to tempest. Between this 2 alternatives there shouldn't be a need
to keep the file in tree anymore, especially given the weekly headaches
with new oslo releases changing the config option help breaking the job.

Change-Id: Ie3bc368329d240ca9604cc2f9b2cac544b3ee715
Depends-On: I4064a041a965ed2419b68efc8dc31fce37b24cfd
2015-08-04 11:00:11 -04:00
Matthew Treinish d923eeca3b
Fix sample config yet again
This commit refreshes the sample config in-tree to unbreak the gate
once again. This weekly exercise is becoming tiring, hopefully we can
land the changes to stop gating on this before the next release that
breaks us.

Change-Id: Ife73aee1e191a999379a0f61a3c00cc22ee50593
2015-08-03 15:59:07 -04:00
Jenkins 6596af85b7 Merge "test_server_basic_ops: Test metadata service" 2015-08-03 04:17:58 +00:00
Jenkins 9458e89ec6 Merge "add initial check for nova event in ceilometer" 2015-07-31 20:12:08 +00:00
David Kranz 87fc7e9ac0 Allow v3 identity to work without the admin domain name
The problem was that the value of admin_domain_name was required in order to
use identity v3 even if no admin was being used.

A new option auth.default_credentials_domain_name
is used instead of admin_domain_name except when requesting admin creds.
This defaults to 'Default' which is the name keystone uses for compatibility
with v2.
Because tenant_isolation and pre-provisioned credentials are mutually
exclusive, and to avoid having too many config options, the new option is
used instead of tenant_isolation_domain_name as well.

Change-Id: I52f0d4c0cc7e5eafa896776b12315ed6154dfae2
2015-07-29 11:27:00 -04:00
Matthew Treinish 20e0214760 Update smaple config for new oslo.config release
The 2.1.0 release of oslo.config changed another default config value.
This causes the sample config job to break because the config options
not defined in the tempest repo to change. This commit fixes this for
the time being. However, as a long term fix the job must be changed to
only generate a sample config for in tree options, and leverage tempest
init to generate a full config for tempest plus the oslo libs.

Change-Id: I053d5d464d0b5eb5a7902338efa3cb25d2fd7f74
2015-07-27 16:47:28 -04:00
Matt Riedemann 778b5f9daf Add 'allow_duplicate_networks' to compute-feature-enabled options
Nova commit 322cc9336fe6f6fe9b3f0da33c6b26a3e5ea9b0c added the
neutron.allow_duplicate_networks config option in Juno and it defaults
to False. To test it, we need a feature toggle in Tempest so anything
testing against a default Nova setup doesn't fail.

Separate changes will be made to devstack.

Also note Nova change Ideeb3c137ff68a4497189670be33f6edbb0ccb76 which
deprecated the option in Kilo and change
Icb3510bcf0c30e11d0304a86ead91a43f37602ec which removed it in Liberty,
Once kilo-eol happens this is the default behavior in Nova and we can
remove the config option from Tempest.

Related devstack change: Ifd075420f57c9b60746f4a6af6520c0ef04800db
Co-Authored-By: Racha Ben Ali <benali@gmail.com>

Change-Id: I05f81d86cde249c23be06d5804fadbf40fc4a7f3
2015-07-21 00:27:44 +00:00
YAMAMOTO Takashi 1f62af2449 test_server_basic_ops: Test metadata service
Add a minimum test for metadata service.
Toggled via CONF.compute_feature_enabled.metadata_service.

Change-Id: I14b20c797fbcbe0f83f550d44ca8e4892bf9b606
2015-07-08 13:12:44 +09:00
Jenkins c531932238 Merge "Modify RemoteClient to use ssh validation config parameters" 2015-07-02 15:50:26 +00:00
Jenkins f6067a03e7 Merge "Add resource prefix string" 2015-07-01 03:08:32 +00:00
Jenkins 8ce7024a2c Merge "Add compute_feature_enabled.attach_encrypted_volume config option" 2015-06-30 04:14:42 +00:00
Matthew Treinish be15b877ca
Unbreak the world!
This commit contains 2 unrelated fixes, updates the sample config to
reflect changes in a recent oslo.log release and remove direct calls
to fixtures cleanUp(). Normally we don't want to do this and should
have only 1 fix per patch. However, because they are both breaking the
tempest gate at the same time and preventing anything from landing if
we don't land them in a single patch neither fix will be able to land.

The fixtures 1.3.0 release started enforcing that manually calling the
cleanUp() function for a fixture that was created using useFixture()
was a bad idea. It's basically saying we don't want to manage the
fixture lifecycle but at the same time want to manually run cleanUp().
This enforcement included in the new release has been causing several
unit test failures when running with that release. This commit
addresses this by removing all the uses of this call straightup as it
turns out it was unecessary, or changing the tests to not rely on it
anymore.

Change-Id: I24f6e20cc8e310ba69fb23510795e235218abb2d
Closes-Bug: #1469825
2015-06-29 16:35:43 -04:00
gordon chung ee23ddbae6 add initial check for nova event in ceilometer
this patch adds the ability to query ceilometer events and includes
a check that nova events are recorded.

Change-Id: I5ae2aa700ddd0c89255e07fe2f188d7742eb6406
2015-06-29 16:27:19 -04:00
Jenkins a96c9c2368 Merge "Added comment how to get list of network extensions in tempest.conf" 2015-06-26 07:34:09 +00:00
Andrea Frittoli (andreaf) 8def7ca397 Add resource prefix string
When running tempest several resources are created and afterwards
deleted. On systems where the cloud under tests is not destroyed
after the tests, it is useful to be able to associated resources
to specific test jobs and test runs.

The 'rand_name' function in tempest-lib exposes a prefix option,
which tempest does not use at the moment.

Adding a new configuration option to make the prefix configurable.
Creating a local version of the rand_name util, which passes the
prefix from configuration. Eventually all calls of rand_name
shall be redirected from tempest_lib to the local version.
In this patch, only the credentials provider is change to
validate that the mechanism is working. Follow-up patches will
migrate the rest of the code base.

Co-Authored-By: Fei Long Wang (flwang@catalyst.net.nz)

Change-Id: If15993f1ca0fd932e13d73c8ef9875ce13d79c53
2015-06-26 16:48:40 +12:00
nithya-ganesan 67da287113 Modify RemoteClient to use ssh validation config parameters
This patch implements changes needed to remove the usage of
deprecated tempest ssh configuration parameters and replace it
with the parameters set by ssh auth strategy blueprint

Partially implements: blueprint ssh-auth-strategy

Change-Id: I558a04b0bb61ecf8e428a0f682fbb42a67695318
2015-06-25 13:40:33 +00:00
Alexander Gubanov 36e1f9b815 Added comment how to get list of network extensions in tempest.conf
Change-Id: I1f0d819e0f9a73d0477a3665a9e6fc4394f69f72
Closes-bug: #1428942
2015-06-24 17:17:59 +03:00
Ken'ichi Ohmichi 3ecece8aad Fix the description in tempest.conf.sample
Ic2e5bd127c9f3a0f2807a25f29d8693baf3d65f2 of oslo.log has changed
the description of use_syslog, but current tempest.conf.sample does
not contain this change. As the result, the pep8 test continuously
fails on the gate now.
This patch fixes this description.

In addition, this patch adds fake body message to NotFound in
javelin test for avoiding the gate problem.

These gate problems happened at the same time, so this patch contains
mutiple purposes but that is necessary for fixing at the same time.

Closes-Bug: #1468141
Closes-Bug: #1468149
Change-Id: Iada215718651dc153b977008b376a956247ebc5d
2015-06-24 00:51:46 +00:00
Matt Riedemann 79b3b49527 Add compute_feature_enabled.attach_encrypted_volume config option
TestEncryptedCinderVolumes passes for the ceph job today but it's a
false positive since the rbd volume driver in cinder does not return the
'encrypted' key in it's connection_info dict from the
os-initialize_connection API to Nova, and Nova keys off 'encrypted' in
connection_info to see if it should run the volume encryption provider
when attaching the volume (in the case of the libvirt driver in Nova).

Cinder change I03f8cae05cc117e14f7482115de685fc9f3fa54a sets the
'encrypted' key in connection_info for rbd volumes which then makes Nova
attempt volume encryption but that fails for the rbd volume type since
it's not currently supported in Nova. Eventually the tests fail in
Tempest because the volume status does not go to 'in-use' since the
attach failed.

This change adds a config option so that the encrypted cinder volume
tests can be skipped in the ceph job until rbd volume encryption is
supported in Nova.

An alternative to a new config option would be to check if the
CONF.volume.storage_protocol is 'ceph' and raise a skip exception for
bug 1463525, but given the number of other cinder volume drivers that
might have this same issue I figured it was best to make Tempest
configurable rather than hard-code all of the invalid storage protocols
in the test.

Related-Bug: #1463525

Change-Id: I48eba7c645cc1c979fd766ae9c05efb00957f787
2015-06-20 14:24:36 -07:00
David Kranz 968f1b3a0b Provide a config option to customize remote shell command
Our remote ssh code makes all kinds of assumptions about the shell and
path of the guest. Recently some code was added to the command to generate
errors more promptly but it does not work if the shell is /bin/sh. This
commit allows the user to configure tempest with a desired prologue to handle
this case. It does nothing to solve the more general problem and, like the
other image-related options, cannot be customized individually for various
images that tempest may use.

Debug logging of remote commands was also added.

Change-Id: I669dd4386ffb539dad88a9487bef6c172b5d65fa
Closes-Bug: #1465682
2015-06-18 16:58:18 -04:00
Jenkins 9f435ec85b Merge "Add support for image deactivate and reactivate" 2015-06-10 04:12:26 +00:00
bkopilov 81aaae7fc2 Add support for image deactivate and reactivate
https://wiki.openstack.org/wiki/Glance-deactivate-image
Adding the api support for these commands.
Deactivate and reactivate image action is done by admin tenant.

- Added admin folder to image tests
- Added support for admin image classes for v1 and v2
- Added config deactivate_image , this feature is not running on
  icehouse
- Added a testcase for image deactivate.

Depends-On: Ia1d3d811bd57d3de16d397cfab341e8d0f17cb69
Change-Id: I7880f0e2646ce8660e035ebaa19a60f5bf271b64
2015-06-02 07:07:17 +03:00
Devananda van der Veen d1e52a940b Raise baremetal.unprovision_timeout default to 300 sec
In Kilo, Ironic introduced Node cleaning - an optional (but default
enabled) step which is performed after deletion and before returning a
node to the available pool.

Devstack change https://review.openstack.org/#/c/168175/ overrides the
default to 300 already. This patch is just copying that default into
Tempest's config.

Co-authored-by: SHIGEMATSU Mitsuhiro <shigematsu.mitsuhiro@lab.ntt.co.jp>
Change-Id: Icd5fe47bbaba189ef446f976f01309a7e3560a69
2015-05-29 19:51:06 +09:00
Matthew Treinish 2219d3828b Add config option to disable network isolation
This commit adds a new config option to the auth section,
create_isolated_networks, to disable tenant isolation from attempting
to create an isolated network stack on each created tenant. This is
needed because in certain neutron configurations the extra resource
creations are not need or not allowed.

Change-Id: I0899a43709a0cb2967376e914248d2ad4a37773a
Closes-Bug: #1447829
2015-05-27 22:14:44 +00:00
David Kranz 7068d88a65 Fix sample conf file based on new oslo.log release
This commit updates the tempest sample config file to
include changes in the latest oslo.log release, 1.2.0.
This is needed to unblock the sample config generation
job which is failing because the in-tree tempest sample
config file differs from what is generated with a fresh
venv.

Change-Id: Id40310712ecda13d65cfd68bdaf4ea91dc7687fe
2015-05-27 20:58:34 +00:00
Jenkins a4758e2a53 Merge "Added test of default domain in Keystone" 2015-05-25 16:36:08 +00:00
Jenkins 0e64c1afa5 Merge "Image properties in scenario tests" 2015-05-25 09:52:38 +00:00
Martin Pavlasek 4c3f2ab56e Added test of default domain in Keystone
Default domain is part of Keystone APIv3 domains feature added in Grizzly
backward compatibility for APIv2 which is not aware of domain concept.

Summary of scope this change:
* added new variable 'default_domain_id'
  in tempest.conf (default value 'default')
* new test: default domain must exists (backward compatibility)

Change-Id: Ib77d259e2f377ff19e2cf40fa164f42c0669ea56
2015-05-21 23:56:25 +02:00
Jenkins 278f8744ab Merge "To test bootable flag in a cinder volume" 2015-05-21 04:59:58 +00:00
Evgeny Antyshev 7ba0d5fc8a Image properties in scenario tests
Some images require additional properties.
This change adds dictionary option "img_properties"
to the "scenario" config section.
For example, to work with Parallels Containers, specify vm_mode:
img_properties = vm_mode:exe

By occasion, we fix handling properties in _image_create in scenario/manager.py:
disk_format is an x-image-meta-* option, and kernel_id, ramdisk_id are properties.

Change-Id: I2d3714eb899faad67a867a630c1d72d1fd8ee74f
2015-05-13 08:14:58 +00:00
bkopilov 8a657ae252 To test bootable flag in a cinder volume
This commit adds to cinder client a bootable capability
supported flags are  True or False.
And a testcase for changing the bootable flag from true to false.

Update bootable volume is not supported on icehouse
Added new flag under config.py - to enbale this feature by request
Change-Id: Ia23cab169c46d631444399ab1edd93c43cfb7ef5
2015-05-13 08:36:43 +03:00
Matthew Treinish e5cca002ef
Add new config option to globally trigger resource validation
This commit adds a new config option to the config group to trigger
all the validation code. It also deprecates the run_ssh option in the
compute group since this will eventually be used globally. The intent
of this option is so that it will trigger both the creation of any
validation resources as well as used as run_ssh was originally
intended, to trigger ssh into nodes when needed.

Closes-Bug: #1453936
Partially-Implements: bp ssh-auth-strategy
Change-Id: I7d04f81457fc564ed82872e602746c8162fef24c
2015-05-12 09:54:46 -04:00
OpenStack Proposal Bot 8fba8d3f46
Updated from global requirements
Change-Id: I9b8c81e622f1dacbc7005ba4f7a97c6500120565
2015-05-11 22:25:46 -04:00
Jenkins eefcdd33cf Merge "Test live migrate on a paused instance" 2015-05-08 20:00:27 +00:00
Matthew Treinish 464d287f5b
Remove CLI testing once and for all
The cli tests have been marked for removal for ~6 months and the
framework was the first thing included in tempest lib. There has
been more than enough time for all the projects to pick this up
in the client repos. So let's remove it all!

As part of this a couple of missing entries for tempest's
requirements.txt were found. These dependencies were being installed
by the clients so the fact they were missing was never noticed prior
to this. This commit also adds these missing entries back into the
requirements file.

Change-Id: I4f8638f1c048bbdb598dd181f4af272ef9923806
2015-05-07 14:17:44 -04:00
Matt Riedemann bb9f704ac8 Test live migrate on a paused instance
Nova change Ib38eaf412cb51a9cbfc443c5ec15c5797265ddae adds support for
doing live migration of a paused instance, this adds the test to cover
that scenario.

This also depends on a series of devstack-gate changes to support
multi-host testing in the experimental queue. Specifically, this is
tested in the check-tempest-dsvm-aiopcpu-full job.

Depends-On: I89b7e390bf1cf4f2eccabca2e31a9d1b6b270677

Co-Authored By: "Matthew Gilliard <matthew.gilliard@hp.com>"
Related-Bug: #1305062

Change-Id: I5c6fd3de7ea45d1851bb40037c64ad7fb5e6dc48
2015-04-30 14:09:43 +01:00
Peter Sabaini de28ce7bdb Fix logging.conf sample
Use formatter from oslo_log instead of tempest.openstack.common.log
which got removed as of 583ce2c043

Change-Id: I0d9334c51d50f649fdb7e34fd7c2f3d807b80601
2015-04-29 17:15:32 +02:00
Jenkins 7f63f7d383 Merge "Cleanup some details about the accounts files" 2015-04-27 14:18:07 +00:00
Matthew Treinish 9329985d47
Cleanup some details about the accounts files
This commit cleans up some details in the accounts.yaml sample file
and the tempest configuration guide to provide missing details about
how to create and use an accounts file. Specifically it adds more
detailed comments to the sample file about each section, and in the
config guide it removes obsolete sections and adds some missing
details.

Change-Id: Ic11335fe1215ab0625ea2308ccc75d22a284c432
Closes-Bug: #1447851
2015-04-24 09:58:18 -04:00
Jenkins bf9f6117a0 Merge "Adding port_admin_state_change option to config" 2015-04-20 22:24:10 +00:00
Jenkins ad7f455cf4 Merge "Add network support to the accounts providers" 2015-04-16 21:59:51 +00:00