251 Commits

Author SHA1 Message Date
Zuul
8f28435e35 Merge "Don't install bindep if there's no bindep file" 2017-09-07 18:00:31 +00:00
David Shrewsbury
520f8a6059 Fixes for fetch-zuul-cloner
Remove the delegate-to, use elevated privs, and add new task
to make sure the destination directory exists.

Change-Id: I258d39afd77dd090198456950d873c99f98dbda7
2017-09-07 12:52:54 -04:00
Zuul
c54f8b5e4e Merge "Create fetch-zuul-cloner role." 2017-09-07 15:52:35 +00:00
Zuul
04ca878a94 Merge "Revert "Fix lint issue"" 2017-09-07 15:22:39 +00:00
David Moreau Simard
83bdedd4b2 Revert "Fix lint issue"
This also adds an exception to ansible-lint, ANSIBLE0006, because
we want to use "apt-get update" for updating the apt cache [1]

[1]: https://review.openstack.org/#/c/492716/

This reverts commit 5fe5b6ca1a2777989413d8375b8e98a649e03ab8.

Change-Id: Icd79198964e86c7a2c73102f3e4d845d161b924d
2017-09-07 10:29:14 -04:00
Zuul
421b815069 Merge "Fix lint issue" 2017-09-07 14:15:38 +00:00
David Shrewsbury
167a423370 Create fetch-zuul-cloner role.
Moves the zuul-cloner shim from the zuul repo to this repo as a
role, and templates the script to allow specifying the Zuul repo
source directory.

Change-Id: Id1609ce069cce6018b53025b1bd148ad0c36ae13
2017-09-07 10:09:15 -04:00
Zuul
0ee9398ce4 Merge "Delete unused run-cover role" 2017-09-07 05:50:59 +00:00
David Moreau-Simard
5fe5b6ca1a Fix lint issue
Use apt: update_cache=yes instead of an apt-get command.

Change-Id: I18c602e576f3895575fa807b1bbf5a389d6c57f1
2017-09-06 22:54:47 -04:00
Monty Taylor
5cdacdfbf4
Handle floating ips in multi-node-known-hosts
Nodes (and ansible) don't know about floating ips because they are
external. However, they are valid interfaces over which nodes might talk
to each other- especially if we're re-using the inventory generated for
the jobs.

Start off by grabbing all of the addresses from nodepool, if they exist.
Then do the loop for finding the addresses we want. Then collapse
that list with set and do a pass to create the actual list of hosts and
keys needed.

Change-Id: I748fae1c86d7bb9333dc251991308282858811a4
2017-09-06 16:33:28 -05:00
Monty Taylor
19f5dd08b1
Actually use fetch-stestr-output in unittests base job
We need to fetch stestr output if it's there at the end of the unittests
base job.

Change-Id: I1cd47056ed6b2b1e5fee0b54a8ea1494d86ddb13
2017-09-06 16:02:41 -05:00
Zuul
ac0e58dcca Merge "Ignore errors from ara generate" 2017-09-06 17:52:52 +00:00
Monty Taylor
789796a9ef
Delete unused run-cover role
Change-Id: Ic1a5600d43428534d604028c093878968c05445b
2017-09-06 07:54:20 -05:00
Monty Taylor
a18999e002
Don't install bindep if there's no bindep file
Change-Id: I60f229f06e9655bead1f38a8e2d70c3048c0269b
2017-09-05 21:50:09 -05:00
Zuul
5083adc2a8 Merge "Only do the bindep_command if bindep_file is defined" 2017-09-05 22:37:14 +00:00
Zuul
d026155ca0 Merge "Pass correct variables to install bindep" 2017-09-05 22:31:31 +00:00
Zuul
aa40f8225e Merge "Update tox/test-requirements" 2017-09-05 21:49:34 +00:00
Jamie Lennox
60328fef8c Only do the bindep_command if bindep_file is defined
If there is no bindep file at all in the repository (which is likely
because tox depends on bindep and won't always be useful) then
bindep_file is never set. Then when the set_face bindep_command comes
around it tries to reference the unset bindep_file and fails.

Change-Id: I7be6be88209810eed715daaa4bb41315e838272d
Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
2017-09-05 16:22:24 +10:00
Jamie Lennox
4ac946c4f2 Pass correct variables to install bindep
The result of creating a temporary directory for bindep is a dictionary
of data include mode, uuid, and other things. When installing bindep
into that new directory we only want to specify the path to that dir.

Change-Id: If98f87ff44356911b78984eb884f7cd65660cebb
Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
2017-09-05 10:40:08 +10:00
James E. Blair
a35c2ad35e Ignore errors from ara generate
If we use emit-ara-html in a base job post playbook, and it fails,
we won't upload the log files that we *do* have.

Ignore errors from ara generate and compress.

Also, let's call a space a space.

Change-Id: Ie6d41e829b0edb105d205997766c5d87022a16b5
2017-09-04 16:08:15 -07:00
Tristan Cacqueray
4fdad7a741 upload-logs/bindep: fix indentation
These roles are failing yamllint:
  roles/upload-logs/tasks/main.yaml
  23:5      error    wrong indentation: expected 6 but found 4  (indentation)

  roles/bindep/tasks/install.yaml
  7:3       error    wrong indentation: expected 4 but found 2  (indentation)

Change-Id: I189dd08c4d1c091d1e53ca87d52dbaf3f89ba45f
2017-09-03 01:11:30 +00:00
Monty Taylor
82af975879
Update tox/test-requirements
In working on a different patch it became clear that flake8 wasn't
actually running such that it found errors. Updated the
test-requirements to match what's in zuul and all started working (and
failing) properly.

Change-Id: Icfdb1fedbd92ff49484b116a0879686581274a25
2017-09-02 14:17:32 -05:00
Zuul
88cd3b6c58 Merge "Add role to do a vos release on an AFS volume" 2017-09-01 23:24:19 +00:00
Zuul
7991570267 Merge "Remove project stanza" 2017-09-01 23:10:53 +00:00
Monty Taylor
7d7782cac2
Add role to do a vos release on an AFS volume
We need this for the wheel mirror and also for the package mirrors.

Change-Id: I2b7ace2ec2c318534ae98532736b56850d89eca5
2017-09-01 16:40:40 -05:00
Monty Taylor
da026aae58
Rename tox_command_line in docs to tox_extra_args
tox_command_line is documented but not actually used. Replace it with
tox_extra_args in the zuul.yaml docs.

Change-Id: I9773a0297cd29f4d35b27c4b136a26d6027a932a
2017-09-01 14:52:17 -05:00
Paul Belanger
ce252a9051
Fix python3 encoding issues with zuul_afs
NamedTemporaryFile mode is mode='w+b' by default. Make sure we encode
utf8 and write bytes to our temp file.

Change-Id: I0b31abcd52c049efc7d95d6d6e39dfb5d0860620
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-01 13:36:22 -04:00
Paul Belanger
cc59ca16ab
Allow user to select source directory in fetch-sphinx-output
It is possible doc/build/html is not the output path for sphinx. So
default to it but allow a user to override the value.

Change-Id: Ifdb258a9342216d9a2ea0162d7d00dbf0ad7fdeb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-31 19:34:33 -04:00
Paul Belanger
957cd57ea9
Fix syntax issue with NamedTemporaryFile
We need to use filter_file.name to get the actually path.

Change-Id: I130284fdaccd1ace139d71b8a3395e9e9fa0df76
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-31 18:35:23 -04:00
Zuul
efe8957ee2 Merge "Remove no_log from fetch-sphinx-output" 2017-08-31 20:46:12 +00:00
James E. Blair
44e8254679 Fix error in mirror-workspace-git-repos
Change-Id: I24d8fd400362ea6a20bc068617e863f98c3e3170
2017-08-31 11:51:10 -07:00
Zuul
eef9bdac59 Merge "Handle pushing to non-bare remote repos" 2017-08-31 14:57:53 +00:00
Zuul
b82189a282 Merge "Add roles for adding and removing launchpadlib credentials" 2017-08-31 14:49:03 +00:00
Zuul
adb567379b Merge "Remove bindep_command and bindep_fallback references" 2017-08-31 14:46:58 +00:00
Monty Taylor
dd6bf58d66
Handle pushing to non-bare remote repos
When we're pushing to a non-bare repo, git has a sad if we push to the
branch that's checked out. But that's ok - we're going to update the
checked out state anyway as a follow up. Tell git it's ok.

Then, after we've pushed, we need to reset after having pushed branch HEAD
to a non bare repo. Clean up after ourselves by removing the config
setting we added to allow the push in the first place.

Change-Id: Id84e9af9d33519e515b8e6d330b375a8e17c14f5
2017-08-31 09:38:49 -05:00
Paul Belanger
5b420a9a44
Remove no_log from fetch-sphinx-output
Lets display the data in job-output.txt, it will help with debugging.
I belive we also want to filter this potentially in the webui
streaming.

Change-Id: If0d24fe135838a2f57aeaa4c3fe13b3436384d19
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-30 20:50:21 -04:00
Monty Taylor
47d1b3a715
Add roles for adding and removing launchpadlib credentials
Change-Id: I5bf80922026d9e68a396effe89bb2d6ea5cbdec0
2017-08-30 18:53:21 -05:00
Zuul
113c14aad5 Merge "Fix checkout in mirror-workspace-git-repos" 2017-08-30 23:20:12 +00:00
Zuul
b6d86ef245 Merge "Fix error in mirror-workspace-git-repos" 2017-08-30 23:09:22 +00:00
Zuul
c88dac861b Merge "Move name from block to tasks in the block" 2017-08-30 23:00:46 +00:00
James E. Blair
1451be950a Fix checkout in mirror-workspace-git-repos
This task happens on the remote node.

Change-Id: I68ac25fb69a0f7468f73ae856ace2545154eacae
2017-08-30 16:00:31 -07:00
James E. Blair
e8b82ac4de Fix error in mirror-workspace-git-repos
The project src_dir contains 'src/', so use work_root instead of
src_root.

Change-Id: I3017dded1a8baf7fcad0b47a759dfc9f7355d0b1
2017-08-30 15:53:08 -07:00
Monty Taylor
f6eb7b2fc8
Move name from block to tasks in the block
block allows adding a name - but it's not actually emitted anywhere in
the logging. So while this documents the source code, it's not reflected
in logging.

I just happened to learn this elsewhere.

Change-Id: I95362ed94418144e332f7289b1bfa5b2ade68de7
2017-08-30 17:30:38 -05:00
James E. Blair
be405d46b7 Remove project stanza
The gating configuration for this project is in project-config to
make this repo easier to consume.

Change-Id: Iacc9fc4d510d3740d2fc089d0bada192f17870f2
Depends-On: Iaa8a8eec7746b2d59be41390462b85735de80a7a
2017-08-30 12:38:15 -07:00
James E. Blair
dae413bc34 Revert "Make a docs-on-readthedocs project-template"
This reverts commit f8e746cb14646cc86885f9f7a0a817d9da864ac3.

We shouldn't add project-templates to this repo since they reference
site-specific pipelines.

Change-Id: I4392480ed97082e947a65d2a4ca3450072568227
2017-08-30 12:34:52 -07:00
Zuul
859f524104 Merge "Partially Revert "Add comment to top of zuul.yaml pointing to other files"" 2017-08-30 19:28:45 +00:00
James E. Blair
62cda711b4
Partially Revert "Add comment to top of zuul.yaml pointing to other files"
This reverts commit c462e1a2dfbd6c5e98dfc115dff038c9d762a841.

This repo is meant to be universally applicable; it's not fair for
us to put comments about our own configuration in it.

Also remove the entire comment about OpenStack vs. tox-docs job.

Change-Id: I6369bf31548ca2e32c5135f6c4733bd06a4483d0
2017-08-30 09:38:27 -05:00
Zuul
48735f590e Merge "Move .pypirc into tmpfs" 2017-08-30 14:29:59 +00:00
Zuul
2cdb4ab2b0 Merge "Delete .pypirc file at end of task" 2017-08-30 14:29:59 +00:00
Zuul
e729d86985 Merge "Add a role to remove an ssh private key" 2017-08-30 14:23:28 +00:00