Use keystone uuid tokens to optimize test run time

This commit does the following:
  - Overrides KEYSTONE_TOKEN_FORMAT to uuid in ``local_conf``
    sections of patrole.yaml because Patrole can be optimized
    to run faster in the gates using uuid tokens instead of
    fernet tokens [0][1]
  - Increases overall gate runtimes to 130 from 70, because
    while we want our jobs to run within 1 hour, occassionally
    our jobs fail prematurely due to limited resources, which
    only results in needless rechecking of jobs

[0] dc9ef55fc6/lib/keystone (L256)
[1] 03fd7903ee/patrole_tempest_plugin/rbac_utils.py (L85)

Change-Id: Idb8f7f1023b7bc05a258fb184d115d1ee59223dc
Closes-Bug: #1694848
This commit is contained in:
Felipe Monteiro 2017-06-02 19:52:07 +01:00
parent 2b8174484f
commit cd837beb27
1 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,7 @@
wrappers:
- build-timeout:
timeout: 70
timeout: 130
- timestamps
builders:
@ -21,6 +21,8 @@
TEMPEST_PLUGINS='/opt/stack/new/patrole'
# Needed by Patrole devstack plugin
RBAC_TEST_ROLE={rbac-role}
# Optimize test run time by using Keystone UUID tokens
KEYSTONE_TOKEN_FORMAT=uuid
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
@ -52,7 +54,7 @@
wrappers:
- build-timeout:
timeout: 70
timeout: 130
- timestamps
builders:
@ -68,6 +70,8 @@
TEMPEST_PLUGINS='/opt/stack/new/patrole'
# Needed by Patrole devstack plugin
RBAC_TEST_ROLE={rbac-role}
# Optimize test run time by using Keystone UUID tokens
KEYSTONE_TOKEN_FORMAT=uuid
# Swift is not ready for python3 yet
disable_service s-account
@ -110,7 +114,7 @@
wrappers:
- build-timeout:
timeout: 70
timeout: 130
- timestamps
builders:
@ -126,6 +130,8 @@
TEMPEST_PLUGINS='/opt/stack/new/patrole'
# Needed by Patrole devstack plugin
RBAC_TEST_ROLE={rbac-role}
# Optimize test run time by using Keystone UUID tokens
KEYSTONE_TOKEN_FORMAT=uuid
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true