1162 Commits

Author SHA1 Message Date
Monty Taylor
98c073171b
Move node debug information into a directory
Putting it all directly into logs is a bit noisy.

Depends-On: I9f03ea408085e3da3ddeb231264e45b1c1fb6896
Change-Id: I82289ec0b66502995278eb897257f345b6c44878
2017-07-09 11:26:50 -05:00
Monty Taylor
869d7f5744
Fail if traceroute doesn't work
If neither traceroute works, this is a host with broken networking and
doing anything else is a waste of time.

Change-Id: I042357c2d55596296ce2d570aa54433195a31b82
2017-07-09 11:26:49 -05:00
Monty Taylor
8b86f76ffd
Clean up debug-ansible role
Copy in the openstack info, generalize it, and get it to stop
spamming stdout. We'll use a python module to do this so that we can
control what's going on.

Change-Id: Iec3bcec75f28451284c3c7d94593bfca3830bc8b
2017-07-09 11:25:47 -05:00
Monty Taylor
242f0bfff4
Rework bindep role to be more ansible and less shell
There's still a chunk of shell, because it's honestly better than doing
the equiv with package manager modules would be.

Also, make zuul_work_dir a parameter we pass in from the playbook. The
bindep role itself is otherwise totally non-zuul specific.

Change-Id: I95e78dd25a1a54b3ce5f2ddb18228a183d3c06ad
2017-07-09 09:27:09 -05:00
Monty Taylor
1ba3e583f3
Make sure bindep is on the node
OpenStack nodes pre-install bindep, but other nodes may not. Check to
see if bindep is on the node. If so, use it. If not, make a temp dir
that we remove at the end of the role and install bindep into a virtualenv
in that tempdir.

Change-Id: I3f34c178254add2143dc7f1b9758844480d7d914
2017-07-09 07:46:07 -05:00
Monty Taylor
651c735a33
Delete run-bindep role
It's a leftover duplicate. The role is called bindep now.

Change-Id: I4c9f3dd74dc8a16ec421aaba468269ffea00f28c
2017-07-07 17:13:00 -05:00
Monty Taylor
055de47b4e
Add zuul_work_dir default to one-project roles
We'd like to be able to make some jobs that run tox on other projects
for ease of testing. This should allow us to do that.

Change-Id: I774a76eaaea16d8ea218b439a099b5c9335c2fc5
2017-07-07 17:04:46 -05:00
Monty Taylor
3dc03ee0d6
Rename zuul-revoke-sudo to revoke-sudo
Depends-On: If639d35ded59621c38d0ecb16344817fd176c31c
Change-Id: I51454b86b5d8b6c3c26615437a3b7ce386134435
2017-07-06 19:14:53 -05:00
Monty Taylor
4b9fc09a1c
Port in tox jobs from openstack-zuul-jobs
The original idea was that we'd have a "python27" job. But it turns out
that "python27" isn't actually as universal as you might think.
"tox-py27" on the other hand is a thing that can and should always work
for people who want to run tox with the py27 env.

Port in the jobs we had in openstack-zuul-jobs.

Also, copy in the text of the old shell scripts so that we can iterate on
them and make them better piecemeal.

These are named zuul-tox not tox because we already have tox jobs
defined elsewhere. We'll need to do the naming dance while we work on
them.

Change-Id: I813f3f2ae138c07918556bc81655518023527131
2017-07-06 11:18:47 -05:00
Monty Taylor
10a959d5e6
Add run-bindep role and add it to unittests pre
Before we revoke sudo, we need to run bindep in the project. Add
the run-bindep role.

Copy the content of the jenkins script for now. This way we can iterate
on the content in smaller chunks.

Change-Id: Ib893b06d05039af078e6eea22e882f6f1efae226
2017-06-27 15:32:36 -05:00
James E. Blair
7e0d13d1cb Add extra-test-setup role
Change-Id: Icad9896e524c69e92e9ceabd86c6ca28360887fa
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2017-06-08 16:14:32 -07:00
James E. Blair
46684654cb Add revoke-sudo role
Also add a .gitignore and establish a documentation pattern.

Change-Id: Ib447ac13d03de4ab61171d50b19117ff654ad329
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2017-06-08 15:19:43 -07:00