767 Commits

Author SHA1 Message Date
Paul Belanger
c662ef5bd9 Fix typo with ansible_galaxy_info.token
Otherwise, we cannot get the token properly from the secret.

Change-Id: I5d2b761fbc94aab6077653b0bd2c209c53dbd322
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-10-12 16:59:20 -04:00
Zuul
8b2fe277e2 Merge "Create ansible-galaxy-import role" 2018-10-12 19:02:38 +00:00
Zuul
c195d514df Merge "Add ensure-python role" 2018-10-12 08:56:19 +00:00
Corey Bryant
42cf8e680a Add ensure-python role
ensure-python allows for installation of a specific version of
the python interpreter and development files. Add this role to
tox pre.yaml.

Change-Id: Ia56cba58c87aa48de3e8e3f3d28f6252f7dcd7c3
2018-10-11 21:45:00 -04:00
Clark Boylan
b570566334 Install docker from distro properly
The install-docker role was installing the wrong package name for distro
package based installations. docker-engine is ancient on debuntu and
appears to be called docker.io on both debian and ubuntu supported
releases now. Go ahead and install docker.io on the Debian family of
distros and docker on everything else (fedora, centos, suse, etc).

Change-Id: I0d7a9b8257bd6db86bc6e3d8bb3d6c3c021d7954
2018-10-11 15:38:52 -07:00
Zuul
055b96d5d7 Merge "Add zuul to the linters tox env" 2018-10-11 19:27:40 +00:00
Zuul
7275ce125e Merge "Retry failed git pushses on workspace setup" 2018-10-09 16:45:55 +00:00
Tristan Cacqueray
28f007d360 fetch-javascript-content-tarball: fix tarball relative path
This change fixes the tarball relative path to be absolute.

Change-Id: Ife78f91bca9fe1f010db2e0fbfd23b35ad306b1f
2018-10-09 00:22:32 +00:00
Paul Belanger
5e1a7e7234 Create ansible-galaxy-import role
Ansible Galaxy has the ability for user to import roles into it. This
role will leverage the ansible-galaxy CLI command to do this.  We'll
login via a github token (sorry only method) then trigger an import on
the remote API server.

Change-Id: I959c3051403929ef4927cf23fdbef14b45294aa2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-10-08 11:01:57 -04:00
Clark Boylan
b5ceee2004 Retry failed git pushses on workspace setup
We've seen network/ssh failures to push one of the many git repos into
the workspace. Followup pushes to other repos succeed. Considering that
subsequent pushes do succeed allow for 3 retries to get these workspaces
set up.

Logs below show this happening. The first push of the repo under test
fails (openstack/tripleo-heat-templates) then the push for openstack
requirements succeeds.

  LOOP [mirror-workspace-git-repos : Synchronize src repos to workspace directory]
  Timeout exception waiting for the logger. Please check connectivity to [158.69.64.232:19885]
  ubuntu-xenial -> localhost | ssh: connect to host 158.69.64.232 port 22: No route to host
  ubuntu-xenial -> localhost | fatal: Could not read from remote repository.
  ubuntu-xenial -> localhost |
  ubuntu-xenial -> localhost | Please make sure you have the correct access rights
  ubuntu-xenial -> localhost | and the repository exists.
  ubuntu-xenial -> localhost | ssh: connect to host 158.69.64.232 port 22: No route to host
  ubuntu-xenial -> localhost | fatal: Could not read from remote repository.
  ubuntu-xenial -> localhost |
  ubuntu-xenial -> localhost | Please make sure you have the correct access rights
  ubuntu-xenial -> localhost | and the repository exists.
  ubuntu-xenial -> localhost | To git+ssh://zuul@158.69.64.232//home/zuul/src/git.openstack.org/openstack/requirements
  ubuntu-xenial -> localhost |    66b2988..740ae1a  master -> master
  ubuntu-xenial -> localhost |  * [new branch]      stable/newton -> stable/newton
  ubuntu-xenial -> localhost |  * [new branch]      stable/ocata -> stable/ocata
  ubuntu-xenial -> localhost |  * [new branch]      stable/pike -> stable/pike
  ubuntu-xenial -> localhost |  * [new branch]      stable/queens -> stable/queens
  ubuntu-xenial -> localhost |  * [new branch]      stable/rocky -> stable/rocky
  ubuntu-xenial -> localhost |  * [new branch]      origin/HEAD -> origin/HEAD
  ubuntu-xenial -> localhost |  * [new branch]      origin/master -> origin/master
  ubuntu-xenial -> localhost |  * [new branch]      origin/stable/newton -> origin/stable/newton
  ubuntu-xenial -> localhost |  * [new branch]      origin/stable/ocata -> origin/stable/ocata
  ubuntu-xenial -> localhost |  * [new branch]      origin/stable/pike -> origin/stable/pike
  ubuntu-xenial -> localhost |  * [new branch]      origin/stable/queens -> origin/stable/queens
  ubuntu-xenial -> localhost |  * [new branch]      origin/stable/rocky -> origin/stable/rocky
  ubuntu-xenial -> localhost | ok: Item: Runtime: 0:00:01.828724
  ubuntu-xenial -> localhost | changed: All items complete

  ubuntu-xenial -> localhost | ssh: connect to host 158.69.64.232 port 22: No route to host
  ubuntu-xenial -> localhost | fatal: Could not read from remote repository.
  ubuntu-xenial -> localhost |
  ubuntu-xenial -> localhost | Please make sure you have the correct access rights
  ubuntu-xenial -> localhost | and the repository exists.

  http://logs.openstack.org/56/605356/17/check/openstack-tox-linters/4323abf/ara-report/result/bb14d3fe-338b-4d7a-852f-e66c60d13493/

Related-Bug: 1384373
Change-Id: I6c34d1a6e34762f78b9dd2a2d2a07ceb131a64cc
2018-10-05 12:31:42 -07:00
Clark Boylan
43868ae828 Add test workspace setup role
This will allow us to test changes to this role which is used in base
and base-test.

Change-Id: I072eea647313aac5c5f1024db193b603ad91e010
2018-10-05 12:31:42 -07:00
Doug Hellmann
836cc85eec support passing extra arguments to bdist_wheel in build-python-release
Users of this role may want to pass extra arguments, such as the
--universal flag. Those arguments need to come after the bdist_wheel
argument to setup.py so that the command line processor understands them.

Change-Id: I38a3ef28b2c78821ec81a3f1adf0cfeef946d98f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-04 14:27:13 -04:00
Tristan Cacqueray
a327047c14 fetch-javascript-content-tarball: add create_tarball variable
This change enable publish job to also create the tarball before fetch.

Change-Id: If4b5a1be8d3ce61ff45b04be23cf80a802760ec8
2018-10-02 17:12:25 -05:00
James E. Blair
d661ad4042 Add zuul to the linters tox env
So that the syntax check which runs on playbooks can find zuul_return.

Add re2 library to bindep, it's needed for zuul.

Change-Id: I93213ee19652c0ec9f4bc699204e9445a1e891c8
2018-10-02 08:15:52 +02:00
Zuul
a01a13e49b Merge "Add Gentoo iptables handling" 2018-09-26 00:50:34 +00:00
Zuul
b61bca7f1e Merge "use find instead of ls to list interfaces" 2018-09-26 00:26:03 +00:00
Monty Taylor
d46fcf019e
Block twine 1.12.0 when we install it
1.12.0 is broken and a 1.12.1 fix is on the way. Don't install 1.12.0.

Change-Id: Ia54736b74d3306614869a9bcb0ecec524ce26f94
2018-09-24 12:57:13 -05:00
Zuul
9ce37ae54f Merge "create the pacage.use file..." 2018-09-24 07:17:13 +00:00
Matthew Thode
cfd13c561c
use find instead of ls to list interfaces
find is used instead of ls as we can select the 'link' type with find
only the link type is needed because files do not have interface
properties and directories are not used for this area of /sys
As an example, the bonding_masters exists in /sys/class/net/ as a file
without any 'subdirectory' of information to it.

Change-Id: Id31fcfb858c6abff4d44444e019f0d48e4f3c671
2018-09-24 01:57:03 -05:00
Matthew Thode
52da8a62fa
Add Gentoo iptables handling
Change-Id: I17a3a4dc68b189a5c8b8b48d7f5960b65d672405
2018-09-24 01:38:04 -05:00
Zuul
6c6fa7451c Merge "log-inventory: remove inventory_file usage" 2018-09-24 06:34:16 +00:00
Matthew Thode
7311980404
create the pacage.use file...
Change-Id: I7e2483f38270f7d51214a89037539325fd8ab0b3
2018-09-23 21:20:29 -05:00
Matthew Thode
ea5c35e8c4
lay down gentoo use file for openvswitch
Change-Id: I9d5637b0a00e3b302f98c18c113790c5a8801699
2018-09-23 15:22:23 -05:00
Matthew Thode
3566a6e9f1
add Gentoo vars for ovs
Change-Id: I732612b4d0cb08e851a00c7f7f85df2c9b67fcd2
2018-09-21 17:35:54 -05:00
Paul Belanger
d507ffca57 upload-logs-swift: Add trailing slash to zuul_return
This is so jobs like tox-docs are properly able to append information
with success-url.

Change-Id: Iabd967d8956d18727890823526064fb80f1b12ab
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-09-21 12:08:55 -04:00
Matthew Thode
4cfdae8188
notify needs a command
no action detected in task

Change-Id: I9bcb302b706c41ea5d2e792dc36108c924431c44
2018-09-20 22:02:55 -05:00
Zuul
5d40050672 Merge "update Gentoo cache" 2018-09-20 21:22:12 +00:00
Zuul
7fa35a338b Merge "emit-job-header: fix print node information" 2018-09-20 13:18:56 +00:00
Matthew Thode
06e8c0fac1
update Gentoo cache
Change-Id: Icf0e8551236ae690b7997217723622031b7648b7
2018-09-20 02:24:22 -05:00
James E. Blair
e202c9fc33 Indent add-fileserver docs more
There was inconsistent indentaton with the ":default:" tag here.

Change-Id: I07cbe1930f21e64bd4cb62035ffc6363cad04e6c
2018-09-13 17:12:51 -06:00
Tristan Cacqueray
7766406431 emit-job-header: fix print node information
This task may be failing when ansible_hostname is not available:
The task includes an option with an undefined variable.
The error was: 'dict object' has no attribute 'ansible_hostname'

Change-Id: I8d67d8aa284b6ce9ae012608e8f1b12784ce836b
2018-09-13 11:33:17 +00:00
Zuul
dd9ebadd6e Merge "add-build-sshkey: Remove only the master key" 2018-09-07 17:29:00 +00:00
Zuul
94cc113ade Merge "Log output and exception when traceroute fails" 2018-09-06 20:41:22 +00:00
Zuul
8abc8c1472 Merge "Remove trigger-readthedocs job" 2018-09-06 05:38:02 +00:00
Zuul
ef98aba00a Merge "Add guidelines on variable naming" 2018-09-06 02:12:06 +00:00
Andreas Jaeger
f0cff4d4e9 Add missing README.rst for roles
Newer zuul-sphinx check that a README.rst exists for each role, add
missing ones.

Change-Id: I8e884934a45219977f4389c9ff040e31aec63f18
2018-09-05 19:35:53 +00:00
James E. Blair
46389b5187 add-build-sshkey: Remove only the master key
This implements a module to directly interact with the ssh-agent
so that the master key may be removed from the ssh-agent without
removing any per-project keys.

Change-Id: Ife91ad8afa9b41b0e779a832e298aca8d61ae98b
2018-09-05 09:26:35 -07:00
Ian Wienand
c9b4b01187 Add guidelines on variable naming
This captures some discussion over the scoping of variable names
during some recent role development.  It tries to provide some
guidelines to prefixing of global variable names in roles and
"module-like" roles.

Since "deprecation.rst" is now holding a few different things, it
makes more sense as "policy.rst".

Reorganise to be nested in one more level, and add a contents section
to help find sections easier.

Change-Id: I0d551eefd33744ffa23418d0780769a7e52fe9cf
2018-08-31 09:28:34 +10:00
Zuul
ce56d5182a Merge "Promote test-emit-job-header change" 2018-08-28 18:42:22 +00:00
Ian Wienand
ab0508600a write-inventory: Add groups to created inventory
Add the groups from the "groups" ansible variable to the "children" of
the created inventory.

Change-Id: I6c797ff939f8198d5c0928558df8ed04bec14efd
2018-08-28 19:54:21 +10:00
James E. Blair
2cb237acef write-inventory: add ansible_python_interpreter variable
This is also a variable which may be important to copy over to
a new inventory in order for ansible to function correctly.

Change-Id: I7f4f1b2c631a4a02c258c9f518cd19511fa118da
2018-08-27 16:29:54 -07:00
Zuul
d1f9d6fa4f Merge "add-fileserver: fileserver_leading_path isn't from the secret" 2018-08-27 17:06:36 +00:00
James E. Blair
b160804ecd write-inventory: fix typo in README
Change-Id: I2972df27974a6c2e65572572a63b9e87f5ce4fd3
2018-08-24 07:48:13 -07:00
James E. Blair
fe358166db Add write-inventory role
Change-Id: Ife274ddcf78398eef730951635ca0a2a78096871
2018-08-23 15:39:18 -07:00
Zuul
6f22be2def Merge "Update docs build job" 2018-08-22 11:48:20 +00:00
Andreas Jaeger
002956ee54 Update tox-docs to follow build-sphinx better
The build-sphinx job uses compile and test bindep profiles, update tox-docs to use the same.

tox-docs used to run tools/test_setup due to inheriting from unittests,
remove that inheritance since we do not need it.

Update role bindep to have a default for zuul_work_dir. If this role is
used without unittests, zuul_work_dir is unset.

Change-Id: I5df8b9cd90bf5e4f4c84c7b4514fb9c575898e31
2018-08-22 07:54:42 +02:00
Andreas Jaeger
834cd2dd21 Update docs build job
Use sphinx-build in tox.ini.

Change-Id: I5c8af6341ac8e84bfe0aa0fb55be3cd78df797ca
2018-08-21 21:12:22 +02:00
Zuul
62e8e19a36 Merge "npm: add CI=true environment" 2018-08-21 05:33:13 +00:00
Zuul
95e9903799 Merge "Build releasenotes when tox.ini changes" 2018-08-21 05:33:13 +00:00
James E. Blair
74b5e0a1b3 htmlify: don't log
Don't log the complete stat output of every file we htmlify, it's
boring.

Change-Id: I72e6b6234361430a3a7a67f1235c797be4c0059e
2018-08-20 13:00:18 -07:00