Commit Graph

19 Commits

Author SHA1 Message Date
Monty Taylor 355f7090a6 Remove zuul v2 and jjb content
It's migrated, it can be removed now.

Depends-On: I6a89752d74ed7424267c3af3937ad01fb4bb8f86
Change-Id: Id67d0149b645bd23e460cef65719541f76f0967b
2017-10-24 08:50:05 +02:00
Monty Taylor b4fd783219
Remove unmatched single quotes from jenkins jobs
The v3 migration script can handle these just fine - but if we go ahead
and remove them the output can be predominantely shell rather than
script.

Change-Id: I440851a0149e1cc7f8c5c6e8a4e3e0b94088ee82
2017-09-20 09:27:26 -05:00
Felipe Monteiro 2e4a3de6b7 Remove UUID token from Patrole jobs
According to discussion in the mailing list [0] using UUID tokens
is currently resulting in errant Keystone-related bugs. Further,
UUID tokens are currently deprecated and will be removed during
R release [0]. So we should use Fernet tokens instead.

[0] http://lists.openstack.org/pipermail/openstack-dev/2017-August/121067.html

Change-Id: I34d324575c8117022724a944c034f089eb0c7541
Related-Bug: #1710237
2017-08-11 18:52:54 +00:00
Samantha Blanco 7040cd9fbb Set Tempest concurrency for non-multinode Patrole jobs
Sets Tempest concurrency to 2 for non-multinode Patrole jobs.

Change-Id: I582e4456bc7cde9ec7be0c8b0ad2333b436537dd
2017-07-11 16:23:41 -04:00
Felipe Monteiro cd837beb27 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
2017-06-12 13:56:51 +00:00
Felipe Monteiro 0afcb0dbf6 Move RBAC_TEST_ROLE env variable to local.conf
This is to move RBAC_TEST_ROLE={rbac-role} into the
localrc section of local.conf so the env variable
is properly set when devstack is running the patrole
plugin.

This commit also re-adds DEVSTACK_GATE_TEMPEST_ALL_PLUGINS
to the gate jobs because Patrole relies on site wide
packages for checking policy in code for (currently)
Nova and Keystone.

Change-Id: I3ff922f33590ae3b928eaa6b3c9c7f3d27038006
2017-05-30 15:27:08 +01:00
Felipe Monteiro b8839dd29f Clean up patrole.yaml jenkins jobs
Now that a patrole devstack plugin has been written [0], deploying and
testing patrole in the gates can be done exclusively using the
jenkins jobs and the devstack patrole plugin.

[0] https://review.openstack.org/#/c/468511/

Change-Id: I6c7ff9182a6e5792470eb5dfc95225a4d587f31a
2017-05-27 05:50:23 +01:00
Felipe Monteiro 65a57cbadb Disable swift service in patrole py35 gate
The new dsvm gate,
"gate-tempest-dsvm-patrole-py35-member-ubuntu-xenial-nv", is
failing during the execution of the main stack.sh script [0],
because glance fails to upload an image [1]. This is likely
because glance is using swift as the storage back-end,
which according to tempest's py35 gate template, should be
disabled, as "it isn't ready for python 3 yet" [2].

This patch disables swift for the py35 gate, along
with c-bak, as according to [2], it requires swift in the
gate.

[0] http://logs.openstack.org/71/462671/6/check/gate-tempest-dsvm-patrole-py35-member-ubuntu-xenial-nv/25dc23e/logs/devstacklog.txt.gz
[1] http://logs.openstack.org/71/462671/6/check/gate-tempest-dsvm-patrole-py35-member-ubuntu-xenial-nv/25dc23e/logs/screen-g-api.txt.gz
[2] https://github.com/openstack-infra/project-config/blob/master/jenkins/jobs/devstack-gate.yaml#L659

Change-Id: I092796b1b1eb7b4c1f011d6214fb1b03ad4f95aa
Closes-Bug: #1689960
2017-05-11 03:45:09 +01:00
Felipe Monteiro f2b6cbec96 Add py35 job to Patrole
QA's Pike goals include adding a py35 gate to Patrole [0]: this
patch accomplishes that goal. Only 1 py35 gate, for the Member
role, is added to Patrole, because:

  - Member role is less permissive than admin role
  - admin and Member roles are already covered by the voting gates
  - The purpose of the py35 gate is to check for py35 compliance

[0] https://etherpad.openstack.org/p/pike-qa-goals-py35

Co-Authored-By: Samantha Blanco <samantha.blanco@att.com>
Change-Id: Iee8163595708f042ee5a53c3d6abe8f23764d93e
2017-05-09 16:00:32 +01:00
Felipe Monteiro b578a641c2 Remove the patrole heat job
Now that Tempest is removing Heat tests, Patrole should follow
suit.

Change-Id: Ifd150ef113988e7a3721ee174f0453f99ce198f6
Needed-By: I169e74a3af4957248cda26d108b61ff187ae4b1d
2017-05-03 03:30:45 +01:00
Felipe Monteiro a78da3ca2e Create heat-specific patrole gate
Creates a heat-specific patrole gate, because heat's policy.json
uses different roles than most projects: heat_stack_user, in
particular.

Change-Id: I05a53ce80453b7488233bf765951837a3d86209f
2017-04-18 18:42:55 +01:00
Felipe Monteiro 2eec3c1f19 Remove enabled_services=tempest from patrole gate jobs.
Currently, ENABLED_SERVICES=tempest is contained in the gate jobs
for patrole. This appears to be causing problem when setting
up the multinode devstack environment [0], because

  tempest verify-config

is executed, which fails because:

  AttributeError: 'Manager' object has no attribute 'image_client'

which probably happens because tempest isn't set up on the other nodes,
causing tempest verify-config to fail.

Other multinode setups do not contain ENABLED_SERVICES=tempest:
for example [1]. Regardless, tempest is added to ENABLED_SERVICES
automatically by a script, apparently after devstack is done [1].

[0] http://logs.openstack.org/68/452768/2/check/gate-tempest-dsvm-patrole-multinode-admin-ubuntu-xenial-nv/6401f12/logs/devstack-subnodes-early.txt.gz
[1] http://logs.openstack.org/41/452041/7/check/gate-tempest-dsvm-neutron-scenario-multinode-ubuntu-xenial-nv/5907cf4/logs/devstack-subnodes-early.txt.gz

Change-Id: I0d59d6b956ff50e18364775054e16be79c39d799
2017-04-03 17:24:39 +00:00
Felipe Monteiro 836096b466 Enable multinode topology for slow Patrole tests.
Multinode topology can be used to test migrate/evacuate server
tests, including other tests that require multiple hosts. These
should just be run on the slow tempest gate.

Change-Id: I876ec12b5f0c2c05842eaf355f695ccfa6e6f797
2017-04-01 16:56:45 +01:00
anthony.lin 2722de0c1a Add Test Types to Patrole Jobs
Allow handling of both "fast" and "slow" gate for Patrole

Change-Id: Id660240c3e9c90b2845f62015d46b474cb00d146
2017-03-23 16:20:23 -05:00
Rick Bartra 5281d3831b Enable Heat in Devstack for Patrole
This commit enables Heat in the Devstack that Patrole uses. This
allows Heat tests to run in Patrole.

Change-Id: Icc30b7da4a955491e34eed26279a70bba6af5e32
Closes-Bug: #1673121
2017-03-16 16:26:29 -04:00
Felipe Monteiro efe7108a6b Enable DEVSTACK_GATE_TEMPEST_NOTESTS for patrole.
This change is the last needed to correctly execute patrole
tempest jobs. This flag needs to be set to 1, so that no
automatic tempest tests are executed in devstack-vm-gate.sh
because they are instead executed in post_test_hook.sh in
patrole's repo.

Change-Id: Id74a10d91b05090d27a5dedd73de65efbd66ec44
2017-03-08 09:41:16 -05:00
Felipe Monteiro 1145cbaba0 Add post test hook to patrole.
Change-Id: I0cd889a97115c9f8ff185a3d85ae07c95bcd7ff4
2017-03-07 03:26:19 +00:00
Felipe Monteiro e780e5dd37 Update patrole tempest devstack gate to use pre_test_hook.
Change-Id: I13b2f830919ab025a6b5739c7f505a477246e457
2017-03-03 10:35:48 -05:00
Felipe Monteiro 2f7edbea05 Add patrole tempest job.
Change-Id: Ib2a35ab1578a8635eaa63ffda7672793c8ae6e55
2017-03-01 10:11:22 -05:00