176 Commits

Author SHA1 Message Date
Jon Grimm
270bd7f8ce Move tempest to oslo-config-generator
Also fixes tempest reported bug with old generator in oslo-incubator,
when identical options are registered in different groups.

Change-Id: I274f48503c1b61ca09cabc8d8c50245ba1059943
Closes-bug: 1282887
2014-10-16 16:06:43 +00:00
Jenkins
cc6ca0d184 Merge "Make output from check_logs less verbose" 2014-09-20 07:32:35 +00:00
Jenkins
c6dac5315e Merge "Fail tempest if 0 tests are run" 2014-09-16 18:20:49 +00:00
Jenkins
24d946e188 Merge "Remove test start output in pretty tracer" 2014-09-16 07:24:45 +00:00
Matthew Treinish
178cc4a605 Fail tempest if 0 tests are run
This commit adds a check to subunit-trace to fail if the test run
doesn't actually run anything. Despite technically passing without
running anything, if you're passing a regex to testr that runs 0 tests
that is probably an error, so treat it as such. This also uncovered a
bug in the test_wrappers unit test where the test was using a bad test
regex but still passsing. Since we start enforcing it here the unit
test is also updated to use the proper regex.

Change-Id: I109a8cd6eb731e5b8daf5cc2d6a76498ddd48c6d
2014-09-15 20:13:44 +00:00
Clark Boylan
a5c669d7f0 Properly detect grenade in check_logs script
The check logs script was not properly detecting grenade and would fail
grenade jobs if the logs were not clean. We don't want to do this
because the upgrade process is not log clean yet. Correct this by
setting grenade flag to true only if the DEVSTACK_GATE_GRENADE variable
has content.

Change-Id: Id8a339d78d981376b9af3a80aae8e4e18a68a85f
2014-09-03 21:48:49 -07:00
Matthew Treinish
1179205dbc Make output from check_logs less verbose
This commit changes the output of check_logs.py to be a bit more
concise and clear. Instead of printing out every instance of errors
found in the log files it will only print out which individual files
had errors. If a file is marked as not allowing ERRORS or TRACES it
also prints that along with the filename. This should hopefully avoid
confusion around the operation of this script running in the gate.

Change-Id: Ib2a9a9736470cd3b445fb51a95a1a6c6696bb2cc
2014-09-03 21:42:59 -04:00
Robert Collins
b5e4a9872b Remove test start output in pretty tracer
Sean does not want and its currently broken.

Change-Id: I7c3cf17bfd8d273823774cd162ae011161c36d3d
2014-08-18 13:20:07 +12:00
Matthew Treinish
96e9e88dc0 Enable H407,H305,H307,E122 ignore E123
After bumping the hacking version to the 0.9.x series ignores were
added for several rules. This commit fixes the violations for a subset
of these rules and re-enables the checks.

E123 is ignored because this rule is ignored in the default pep8 by
default, due to a lack of consensus around it.

Change-Id: I8f14cd2ca6afc38d3fe8ee758272071111022896
2014-08-12 17:39:16 -04:00
Robert Mizielski
e1d8899945 Correct misspelled words
Correct some misspelled words:
responCe => responSe,
unkown => unkNown
infomation => infoRmation.

Change-Id: If0f8c2b71381be087694654969d7ea1483da7b17
2014-07-15 14:54:58 +00:00
Matthew Treinish
afeb91a5da Use config generator rc instead of wrapper script
This commit removes the generate_sample wrapper script and adds an
rc file for the config generator to specify the alternate path.
This makes console messages from the generator tooling point
consistent with what is actually being used. Before because a wrapper
was used error messages would recommend running the incorrect tool.

Change-Id: I0ac792454777af6e3f1d718836031f9a14850229
2014-06-19 16:54:48 +00:00
Matthew Treinish
4251685fac Update config generator from oslo-incubator
This commit pulls in the latests version of the config generator from
oslo.

Change-Id: I3a2b06dd9ca3285a3d93298ea5727b705f6109e4
2014-06-19 16:45:48 +00:00
Matthew Treinish
53eef72128 Add total runtime to summary output
This commit adds the total runtime in secs to the summary view from
subunit-trace.py

Change-Id: If56f2a048b3d1ab3d51425d5b3560e1f365a6c3a
2014-06-12 23:06:30 -04:00
Matthew Treinish
1d5f32b48e Change how tempest debug logs are displayed
This commit cleans up how tempest failure logs are displayed. We'll
no longer dump the failure information to the console as a test fails.
Instead all the failure logs will be printed after the tests are run.

Change-Id: I7ecdc349d913b43f4fb0505d5c17c66f811774b4
2014-06-10 15:19:49 +00:00
Jenkins
ad681f9655 Merge "Remove tempest_auto_config script" 2014-05-10 13:24:32 +00:00
Matthew Treinish
2adef1a87f Remove tempest_auto_config script
This script isn't being used by anyone to my knowledge nor has it
really been maintained since it was first added. We will be working
on a plan for automating tempest configuration soon and this
doesn't really fit the initial set requirements of requirements. It
also does not have any testing, so I expect that it has bit rotted
and probably doesn't work anymore.

Change-Id: Id896d9877312dfb6b12b54ea1c598a1940cdd9ce
2014-05-09 15:18:39 -04:00
Sean Dague
04867448e1 create test and worker summary report
a summary report that includes counts of the test results so far
as well as a worker report to let us understand how our workers
are balanced at the moment, as well as if we are missing worker
0 in our data (which seems to happen quite often).

Change-Id: Ide0b63b86e87f8a18c2f0e45264692ac3797c791
2014-05-08 10:25:38 -04:00
Jenkins
a5ddec8309 Merge "Removing unnecessary pass instructions" 2014-05-08 13:15:06 +00:00
Sean Dague
50af5d5ecc Add in a concurrency aware subunit filter
A live filter for subunit stream that will let us display the
concurrency of the streams as we go.

* This includes the worker id as {#} at the beginning of the lines
* Dumps out stdout/stderr if they are found inline (makes for easier
  debug
* Dumps out pythonlogging on failures if found inline
* Prints skip reasons

Based on I1b529546e005f47aba56b451e1c0d8b0da09fca3, but because
that started as Robert's I couldn't un Abandon it.

Change-Id: Icc99b652e4e8ae85b73bb905a3b704447a63195f
Co-Authored-By: Robert Collins <rbtcollins@hp.com>
2014-05-06 10:59:00 -04:00
Yaroslav Lobankov
4693783f7e Removing unnecessary pass instructions
There are some files in Tempest where code has unnecessary
pass instructions. This CR fixes that.

Change-Id: Ie32399d731edad8a4d0b9cdec8aa7e9444eda254
2014-05-06 14:14:44 +04:00
Matthew Treinish
f8b816af07 Add cmd entry point for verify_tempest_config
This commit moves the verify_tempest_config script from the tools dir
to tempest.cmd and adds a pbr entry point for the script. This means
that the script will in effect be a packaged binary for tempest.

Partially implements bp config-verification

Change-Id: I75b9743a8117d55c6c445db05eb39404b5708624
2014-04-30 17:36:12 +00:00
Matthew Treinish
f09717137a Add support for updating the config file
This commit adds a new flag to the verify_tempest_config.py script,
'-u' that will update the config file from values found during the
verification process.

Partially implements bp config-verification

Change-Id: I20b8bca7d3368b56da0a0496ed7aa3c1a6eacc9e
2014-04-30 13:35:29 -04:00
Matthew Treinish
2e439637f2 Add cinder api version detection to verify_tempest_config
This commit adds a check for the cinder api versions that are
supported and checks that with what is set in the config file.

Partially implements bp config-verification

Change-Id: Ifce002a6f42c1565992299965bcc490f20aa5887
2014-04-11 20:13:06 +00:00
Matthew Treinish
42d50f61e1 Fix service list in verify_tempest_config
This commit updates the service list for verify_tempest_config. The
list was not updated to include new options for marconi and trove. It
also wasn't updated for the sahara rename.

Partially implements bp config-verification

Change-Id: I00500e104dda34098cf445f4bbd522ea843fcabf
2014-04-11 20:13:06 +00:00
Matthew Treinish
1722f0b17c Fix url parsing for api version check
This commit fixes a couple of oversights in the common api version
check function. The previous version of the method would never work
because the url wasn't passed to urlparse, and the resulting endpoint
url would be missing a ':' even if it were.

Change-Id: I4b6bb47f0601063aa8164ded386ca71adc6ccc80
2014-04-11 20:13:06 +00:00
Sean Dague
ef2865af43 remove n-sch from the watch list
we've seen no n-sch errors in passing gate runs in the last week,
I consider this sufficient proof that we're clean on n-sch for now.

Part of bp:clean-logs

Change-Id: Ife0e0602767e155fc645e07546bed36c2c060a20
2014-04-10 07:26:09 -04:00
Matthew Treinish
864fe07b13 Add keystone api version detection to verify_tempest_config
This commit adds a check for the keystone api versions that are
supported and checks that with the config file. In the process of
adding the additional check the version verification code is reworked
to use a common get versions method.

Partially implements bp config-verification

Change-Id: Ibb15c53e2b2a1e2a2ad95351692d06389f2ebb06
2014-04-09 17:27:36 +00:00
Sean Dague
e2cda41ad5 ceilometer-collector now has errors
need to add this to the dirty list to make forward progress.

In order to make the results more readable we also need a line
break before the log file stanza.

Change-Id: I863a8a30384edf27a4ba761c707b5cf673c1f86e
2014-03-26 15:39:05 -04:00
Jenkins
fd5aa5e1cd Merge "Update Oslo config sample generator" 2014-03-26 08:29:33 +00:00
Jenkins
590cde1f79 Merge "Add service/endpoint discover to verify_tempest_config" 2014-03-21 23:02:12 +00:00
Jenkins
02b4c04697 Merge "change dirty logs to work off a whitelist" 2014-03-19 17:37:47 +00:00
Jenkins
2258bddb36 Merge "Add swift discoverable_api support to verify_tempest_config" 2014-03-19 09:02:01 +00:00
Sean Dague
5d407e2125 change dirty logs to work off a whitelist
instead of marking the logs that we think should be clean, mark
the ones we think should be dirty. This means no new services can
come in with unclean logs.

remove the whitelist data, as that's currently obsolete, we'll
remove the code for it later.

Change-Id: I4b15c932b78f54ec371aa67c7b4e8248b3f9c0eb
2014-03-18 18:50:24 -04:00
Matthew Treinish
90ac914ca1 Update Oslo config sample generator
This commit syncs the latest version of the config generator and all
it's dependency modules from oslo-incubator. The justification was
change Iee6cc05cad70963f2a151f595ac376c9338f5774 which adds the oslo
synced version of the check_uptodate script. Which among other things
does proper cleanup of the tempdirs

Change-Id: I56bdd239b328cc38a83f80d14e53cc62d4f97954
2014-03-17 15:04:12 +00:00
David Kranz
5274de426f Allow failing logs with errors on a per-log-file basis
Change-Id: I382a173b9e2ad4cf2d6c5761db62722cb8828e55
2014-03-07 15:12:51 -05:00
Jenkins
652a624635 Merge "add TRACE level to the items that are being flagged" 2014-03-04 21:17:34 +00:00
Matthew Treinish
221bd7f59b Add service/endpoint discover to verify_tempest_config
This commit adds a check to verify_tempest_config for which services
are available. This is used to do 2 things:

1. Verify that the entries in the service_availble group are set correctly
2. Use for filtering which checks inside the script are valid to perform

Partially implements bp config-verification

Change-Id: Ib0e55f21b83d0746994e7e7e1f9666524e1bb3b7
2014-03-02 03:48:51 +00:00
Matthew Treinish
c0120ba257 Add swift discoverable_api support to verify_tempest_config
This commit adds support to the verify_tempest_config.py script
for detecting which swift apis are enabled.

Partially implements bp config-verification

Change-Id: I7f4a1fdc41246b3584aa5d3faca5920ca5c2f6e5
2014-03-02 03:48:51 +00:00
David Kranz
002d684e0d add TRACE level to the items that are being flagged
Change-Id: I7f13829abe2f5c7a5f0b9173acf43b3c709b1a5e
2014-02-20 17:53:02 -05:00
Matthew Treinish
a508081055 Fix get versions call in verify_nova_api_versions()
This commit fixes the HTTP GET call to return the list of nova api
versions. The enpoint that the tempest clients use for servers
includes the api version. This is because nova registers each version
api as separate endpoints in keystone's catalog. So this commit fixes
the url to use the unversioned endpoint so the list of versions will
be returned.

Change-Id: Iaf4671d4d1dd285161aa5679648956c086a9119c
2014-02-18 20:37:11 +00:00
Jenkins
5e678848ca Merge "Rename Openstack to OpenStack" 2014-02-18 12:47:32 +00:00
tanlin
4956a64ce1 Rename Openstack to OpenStack
Change-Id: I64530a086f591a2f0e33ab734e4241b4c9846820
2014-02-13 16:53:04 +08:00
Jenkins
c86d2e3da8 Merge "Dump all log errors to console" 2014-02-12 03:05:09 +00:00
Andrea Frittoli
8bbdb1660f Multiversion authentication part1
Moves authentication from rest_client to an external auth_provider,
assigned to the client by the client manager.

The auth provider can decorate a request based on credentials (coming
from the client manager) and filters (region, service, endpoint_type)
given by the client. The auth provider can also return the raw
auth_data, which in the Keystone implementation is a tuple (token,
auth_data). The auth provider allows mixing multiple credentials
when decorating a request, possibly using empty or invalid credentials,
to facilitate negative tests.

The auth provider caches auth data, so that all API requests for a
specific set of credentials only require a single call to obtain a
token, unless the token expires or is forcefully deleted from the
auth provder.

Two implementations of the auth provider are included: Keystonev2 and
Keystonev3.  The Manager object behaves as factory of auth_providers,
building the correct one based on the configured auth_version, and on
the interface type (JSON or XML).

Fixes endpoint selection for v3 auth. Drops unused basic_auth.
Extends TokenClients to provide both token and auth data,
and accept different combinations of credentials for v3.
Removes redundant server_client_v3_auth.

Adapts tempest unit tests to work with modified rest client.

Introduces a configuration parameter for authentication version to be
used. That is used when instantiating the client manager, and it
applies to all clients used by api tests.

Next steps (next patches):
- move to credentials as dict (as opposed to tuple)
- expose a get_client method from the client manager
  and create clients only when requested
- remove redundant CustomizedHeader object storage clients
- supports keystone v3 in tenant isolation
- use Auth Provider in scenario tests
- use Auth Provider in CLI tests
- implement parsing of catalog XML format (?)

Partially implements: bp multi-keystone-api-version-tests

Change-Id: Icfa921e9051c01f339f8d2471b12d6ec950cc456
2014-02-05 11:34:53 +00:00
Matthew Treinish
d44fe033e4 Don't run extensions list if service isn't available
This commit adds a check to see if the service is available before
running the extension list verification.

Partially implements bp config-verification

Change-Id: I722440cf84a44d9c38536a3421972c1cb837969e
2014-01-31 20:07:24 +00:00
Jenkins
29269a641e Merge "Add a check for compute api versions to verify_tempest_config" 2014-01-28 01:34:19 +00:00
Jenkins
75ff64d085 Merge "Add neutron extension support to verify_tempest_config" 2014-01-25 19:28:07 +00:00
Jenkins
3597ac930e Merge "Rework extension verification in verify_tempest_config" 2014-01-25 19:27:59 +00:00
Jenkins
c36e2de175 Merge "Use install_venv from oslo to fix no post_process issue" 2014-01-25 17:06:10 +00:00
Masayuki Igawa
e8d31a0b80 Remove vim headers
We don't need to have the vim headers in each source files. We can set
it in our vimrc file instead. Also if set incorrectly, gate (pep8 check)
will catch the mistakes.

More discussions:
http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html

Change-Id: I43703e2289212389c7841f44691ae7849ed1f505
Closes-Bug: #1229324
2014-01-20 11:22:45 +09:00