13311 Commits

Author SHA1 Message Date
Ian Wienand
08a40ad129 Use ensure-pip for stackviz pip install
Infra is trying to move to nodes that do not come with pip/virtualenv
pre-installed on the image; for details see the spec at [1].

zuul-jobs include ensure-pip [2] to provide pip dependencies; use that
before installing stackviz.  Note that if pip is installed this is a
noop.

[1] https://docs.opendev.org/opendev/infra-specs/latest/specs/cleanup-test-node-python.html
[2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#role-ensure-pip

Needed-By: https://review.opendev.org/723762
Change-Id: I24925ab8e885404da64a3ecfca3848041b6dfc05
2020-05-05 14:12:12 +10:00
Zuul
66f1000004 Merge "Move the grenade-py3 job to new zuulv3 grenade job name" 2020-04-28 03:17:20 +00:00
Ghanshyam Mann
f8b8987c5b Move the grenade-py3 job to new zuulv3 grenade job name
'grenade' is zuulv3 native job for py3 (because devstack is default to
py3 since Ussuri) which replace the old 'grenade-py3'
legacy job. 'grenade-py3' job is alias to the new zuulv3 native
'grenade' job but that is only for migration time. Later once
all switch to new job name, we will remvoe the 'grenade-py3' alias
job.

Change-Id: Iea355514ec7cc2a52ed5e88c356bcb1cdeadd639
2020-04-27 20:58:17 +00:00
Zuul
a188178416 Merge "Add release notes page for version 24.0.0" 2020-04-24 03:04:59 +00:00
Zuul
4b471d664c Merge "Set TOX_CONSTRAINTS_FILE" 2020-04-23 23:55:41 +00:00
Ghanshyam Mann
5d7b43c009 Add release notes page for version 24.0.0
Tempest 24.0.0 has been released.
This commit adds a new page for 24.0.0 release notes.

Change-Id: Ia2b5f656a710db22677a7fec8c91897f42d5ae71
2020-04-23 17:05:25 -05:00
Zuul
c4f38583ab Merge "Fix typo in contributor guide" 2020-04-23 18:07:00 +00:00
Zuul
ed59023d39 Merge "Use the master constraint again in tox.ini" 2020-04-23 04:49:15 +00:00
Ghanshyam Mann
d9654dae59 Fix typo in contributor guide
There are few typo in contributor guide which were
added recently.

Change-Id: I0f3d18ee375ac32d83a019f3ce6194b332b2c9a1
2020-04-22 21:54:19 -05:00
Zuul
c73e6b11dc Merge "Create default network for compute rescue tests" 2020-04-22 15:40:19 +00:00
Andreas Jaeger
99b085bdb9 Set TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is deprecatedi[1], set the newer
TOX_CONSTRAINTS_FILE as well when interacting with other repos for the
transition.

Update internal use but not the tox.ini file, since users calling it
might use the old variable.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Iea09402cf918a6978120a341950643185c94ec85
2020-04-22 15:01:21 +02:00
Zuul
ace17c89a1 Merge "Use stable constraint in tox to release new tag for Ussuri" 2020-04-22 08:05:26 +00:00
Ghanshyam Mann
2c22e28331 Create default network for compute rescue tests
server rescue tests also create server without passing
the network to nova which further fail if more than one test network exists.

https://03399ed3bb928f8e37fb-954a4196d912d707c769d8596124df5e
.ssl.cf1.rackcdn.com/720042/1/check/nova-next/ba84dfc/testr_results.html

Change-Id: Ic9930172a1b6937cd038707afd4d0f6e3730efa1
Partial-Bug: #1844568
2020-04-21 21:39:58 -05:00
Ghanshyam Mann
6726b74f43 Use the master constraint again in tox.ini
WHile releasing the new tag for Tempest, we modified the
constraint in tox to be used of stable/ussuri
- https://review.opendev.org/#/c/720578/

Now new tag is released and we can bring back the master
constraint in tox.ini so that Tempest master us master constraint.

Change-Id: Ie17d4830cac1902371123c8acb4d3106ba2fd300
2020-04-21 15:15:02 -05:00
Ghanshyam Mann
b5b0cf4904 Use stable constraint in tox to release new tag for Ussuri
We are going to releease Tempest new tag to declare the start of
support for stable/ussuri. So that new tag use stable/ussuri
constraint in the tox env.

For example: if anyone use Tempest 24.0.0 in future say 1 year later then
tox env also should use the ussuri contstraint for compatibility instead
master.

These need to be move back to master constraint once release is done.

By using master constraint in tox for all the old tag is problem and
we faced the issue of constraint incompatibility due to that and we
have to work around it all over the devstack, tempest role, grenade to
set the stable constraint cia env var.

- I4268049ff91e5527e4b95fd8a70fa53ba27d56ed

Change-Id: I39e3e23a85a9abc1eda6848a6f4af77540cb81b6
2020-04-21 20:05:05 +00:00
Zuul
c042c88aeb Merge "Add releasenote to tag the Tempest for Ussuri release" 2020-04-21 00:42:52 +00:00
Zuul
e357481ffb Merge "[ussuri][goal] Update contributor documentation" 2020-04-20 17:36:37 +00:00
Zuul
e974f3b049 Merge "Catch json.loads exceptions in verify_device_metadata" 2020-04-20 17:36:26 +00:00
Zuul
f9a492ad52 Merge "Fix noVNC failed TCs" 2020-04-20 17:18:15 +00:00
Ghanshyam Mann
0f8dd6bf1d Add releasenote to tag the Tempest for Ussuri release
This commit adds the releasenote to tag Tempest for Ussuri
and needed for version 24.0.0 to release.

Change-Id: Ic9c06f6457b1b4d13d57a86a7c7ed0d0dca0c082
2020-04-20 11:39:36 -05:00
Ghanshyam Mann
95c410afc0 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38554

Change-Id: Ib54b16543eb428087555cd3411bae51244d1aa65
2020-04-19 17:44:59 -05:00
Zuul
414f2116a0 Merge "compute: Add stable device rescue tests" 2020-04-18 13:11:40 +00:00
Zuul
a21844a609 Merge "Document the policy for Tempest & its plugins release" 2020-04-18 02:45:02 +00:00
Zuul
9ef44fc97e Merge "[Trivial]Do not use self in class method" 2020-04-18 02:44:56 +00:00
Zuul
02a4abbbab Merge "[Trivial]Add space between words in log message" 2020-04-18 02:44:48 +00:00
Zuul
9fe0e9ea6c Merge "Adding description for testcases - identity part1" 2020-04-18 02:43:28 +00:00
Zuul
8ef110cf3e Merge "Adding description for testcases - volume part1" 2020-04-18 02:43:25 +00:00
Zuul
76415473b8 Merge "Adding description for testcases - compute part2" 2020-04-18 02:31:10 +00:00
Zuul
eb9d67e88b Merge "Add --worker-file option in tempest" 2020-04-17 21:37:30 +00:00
Zuul
476567f87a Merge "compute: Add missing 2.73 response schema validation" 2020-04-17 21:37:28 +00:00
Ghanshyam Mann
235c264457 Document the policy for Tempest & its plugins release
Tempest and its plugin are very tightly coupled for testing
Upstream or Production Cloud. Due to its branchless model,
one of the challenges we faced/facing is to provide their
compatible version set.

Since Queens release and with operator request, we started
doing a coordinated release of plugins along with Tempest
which will be marked as the First compatible version for
that particular release.

For example https://releases.openstack.org/train/index.html#tempest-plugins

We test our stable branch with master version of Tempest &
plugins until it is moved to Extended Maintainance state.
One stable release is in EM state, Tempest officially declares
the end of support tag so that we can use that as the last compatible
version for that EM stable testing. But we do not have the correct
last compatible version from plugins which can be used for testing
the EM branch. It should be with hash from the master at the time
stable release is moved to EM not the hash when the stable release
was done otherwise it will be incompatible with Tempest.

We have faced and fixed many issue due to that during py2-drop work
where we have to pick and try all different versions from plugin to
make it work against EM testing.

Change-Id: I99a6df0a2c02e19efaf484fcd97b875887f08d8e
2020-04-17 15:23:18 +00:00
Zuul
448ac79c21 Merge "Add logs for plugins data" 2020-04-17 03:11:56 +00:00
zhufl
c16883ff34 Adding description for testcases - identity part1
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.

There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.

BTW: some minor code refactor is done along with this patch.

Change-Id: I072bd2c86a7f50559e9e452dda3e1669fad3be00
partially-implements: blueprint testcase-description
2020-04-17 09:48:33 +08:00
zhufl
3fdd35ae69 Adding description for testcases - volume part1
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.

There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.

Change-Id: I9840ea976d290a8fd22d8c3bae17db9ed42f629a
partially-implements: blueprint testcase-description
2020-04-17 09:42:40 +08:00
Ghanshyam Mann
aa7c147492 Add logs for plugins data
While loading data form plugin like tests,
config options etc we do not have enough logs
to debug if any plugins is missed.

It is difficult to debug in such cases where we do not
find config options registered by plugins,
For example: https://review.opendev.org/#/c/706785

Adding more logs to know what all data we are loading from
all plugins.

Change-Id: I09d2349a0e32c2265e6beb3dad4619ad33782a51
2020-04-16 17:22:39 +00:00
Rodolfo Alonso Hernandez
f77b3e30ee Catch json.loads exceptions in verify_device_metadata
In case "TaggedBootDevicesTest.verify_device_metadata" "json.loads"
method returns an exception, catch it and return "False". This could
happen if, for example, the string to load is empty.

Because this function is called in an active wait loop, the content
string will be retrieved again and the check retried.

Change-Id: Id3a5b32f8ab197bcb1c59b5f6364dde4d8648eab
Closes-Bug: #1867904
2020-04-16 10:21:47 +00:00
zhufl
1b3b03d462 Adding description for testcases - compute part2
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, so we can add descriptions
with the format of doc string for every testcase, so later we
can generata such a testcase description list.

There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.

Change-Id: I3d1634fab5826928a45bd47c18aba6fc32021075
partially-implements: blueprint testcase-description
2020-04-16 13:50:41 +08:00
Zuul
8f3e503413 Merge "Adding description for testcases - compute part1" 2020-04-15 08:19:01 +00:00
Dmitry Tantsur
5c191faae7 Explicitly handle baremetal ports when checking if they are active
Currently we rely on [service_available]ironic which
1) will give incorrect results in a mixed environment
2) doesn't work in grenade jobs

This change only allows ports to be DOWN when they have VNIC type
of baremetal.

Change-Id: If24913b7097c5252a214bb780fc786aa0c3f983b
2020-04-14 17:10:20 +02:00
zhufl
5e5b8919a0 [Trivial]Do not use self in class method
This is to use cls in class method, instead of self.

Change-Id: I27738221d04df119d6b8ce988a44f78043b1a459
2020-04-14 15:28:58 +08:00
zhufl
747300b369 [Trivial]Add space between words in log message
This is to add space between words in log message in
wait_for_volume_attachment_remove.

Change-Id: I355bc829e7c0f01613fc907a6bf9e03b785ba3ea
2020-04-14 14:23:47 +08:00
zhufl
2a6dcdbd0c Adding description for testcases - compute part1
When Tempest is used in customer site, often we are required to
provide a testcase list including testcase names and descriptions.
Now no this kind of doc is available, however, we can extract info
from tempest code to create one, but, some testcases don't have
descriptions about what the testcases are testing, so, we can add
descrption for each testcase.

There are hundreds of testcases missing descriptions, so we can
add them gradually, and limit the modified files in one patch
for the convenience of reviewing.

Change-Id: Id90d6fedccc84aa9548fba62b5926a75050ab443
partially-implements: blueprint testcase-description
2020-04-14 07:46:39 +08:00
Zuul
3d13f07ed6 Merge "Fix deletion of network quotas" 2020-04-13 17:01:14 +00:00
Zuul
26062e4ac9 Merge "Add glare and taas to blacklist" 2020-04-13 04:43:50 +00:00
Zuul
fe28c849d8 Merge "Pass clients to compute base's create_test_server" 2020-04-13 04:43:48 +00:00
Masayuki Igawa
14d66b6a26
Add glare and taas to blacklist
This commit adds x/glare and x/tap-as-a-service to the BLACKLIST to
avoid sanity-job failures like following.

 Failed Plugins: x/glare, x/tap-as-a-service,
 + [[ -n x/glare, x/tap-as-a-service,  ]]
 + exit 1

It looks the root cause is related to pg_config installation but not
sure. So, this commit just blacklists them as a workaround.

 Error: pg_config executable not found.

Change-Id: I03c6f01593b8e414b5e111d0e0c971ae156da715
2020-04-13 09:32:11 +09:00
Lee Yarwood
c0ad55ccdc compute: Add stable device rescue tests
This change adds a simple set of tests to exercise the stable device
rescue feature. A new [compute-feature-enabled]/stable_rescue
configurable is introduced to control when these tests are executed,
defaulting to False.

Change-Id: I0680fe4a6590aa3c4887d338a02b04fabfcdbb11
2020-04-12 11:15:14 +01:00
Lee Yarwood
803b4a7e83 compute: Add missing 2.73 response schema validation
Microversion v2.73 was introduced in Nova by I46edd595e7417c58410648
changing the request responses of ``GET servers/{server_id}``, ``GET
/servers/detail``, ``POST /servers/{server_id}/action``  where the
action is rebuild and ``PUT servers/{server_id}``.

Change-Id: I8c800f6e280ec6fdf204d344124d994a25d0af19
2020-04-12 11:15:09 +01:00
Zuul
91f0e00882 Merge "Keystone - List user groups 'membership_expires_at' attribute" 2020-04-10 00:18:33 +00:00
Jason Li
ca0fad075d Fix noVNC failed TCs
- Fix noVNC failed TCs tempest.api.compute.servers.test_novnc.NoVNCConsoleTestJSON.test_novnc:
  * Current noVNC request miss the / prefix in GET header in the websocket upgrade request.
  * Current GET header GET ?token=xxx HTTP/1 can cause "HTTP/1.1 400 Bad Request" error.
  * Fix the issue by adding / prefix and
  # updated request format is: GET /?token=xxx HTTP/1.1 or GET /websockify HTTP/1.1

Change-Id: I38a91b8e293e39625d08073e2b898451b6126ecb
2020-04-09 12:41:33 -05:00