Commit Graph

30 Commits

Author SHA1 Message Date
Paul Belanger d21c7c01a6 Fix CI issues
This is a catch all to get CI working again. In some cases, like
ansible-lint we will just ignore the warnings for now, and loop back to
clean them up.

Change-Id: I3e09f8c2b470062634d981f2667b913820c58f7f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2020-11-21 14:41:39 -05:00
Paul Belanger a67474e7e1 Switch to windmill for roles
Continue with the change from openstack to opendev for hosting.

Change-Id: I6d3ead6a49c3460484b18f672ead0022e1dc2858
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-04-20 15:55:18 -04:00
Paul Belanger 54990d1c2f Ignore ansible-lint 405 rule
This is a new rule for retries for downloads, ignore it for now until we
can properly determine best solution.

Change-Id: I84863276a439882342e7f13e946f9d34cf6bb0fe
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-04 18:10:28 -05:00
Paul Belanger ec7a464e2a Add yamllint to tox -elinters
This adds and enabled strict yamllinting on our playbooks / roles.

Change-Id: Ie66ab53c7d6ed4dee1d18a30bdadd9c679549d47
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-12 20:59:38 -05:00
Paul Belanger acdfa8785c Remove hardcoded ansible.cfg in tox
It is possible users want to use their own ansible.cfg file. Now we
default to what ever ansible-playbook can find. Also update our pre.yaml
file to install ansible.cfg into the home directory of the zuul user.

Change-Id: I354078caed5bee8954a7c21ebef98c8a540f6778
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-10 15:12:49 -05:00
qingszhao 63ba58b60b fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I57ea4a045f5514fc51970c3d199d96079b649333
2018-09-30 09:54:53 +08:00
Paul Belanger 2d1af77849
Simplify bindep envlist for tox
Rather then being a 2 step process, just run install_bindep.sh when we
call tox -ebindep.

Change-Id: I07bf6f03df547afca11737407c288e96685fef04
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-15 13:51:17 -04:00
Paul Belanger f2f1c07531
Add TERM to passenv for tox.ini
It is possible people want to see colors for ansible.

Change-Id: Ided8db1eed2c780ded41505c242d3d7e69106ca2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-11 21:30:25 -04:00
Paul Belanger d83d4ff315
Add support for ARA
ARA is a helpful tool to visualize previous runs of ansible. By
enabling it and adding it into the logs/ara-report folder, we get to
see the results hosted on logs.o.o.

Change-Id: I8bda0b94228821dc23fe63bc0c9eedc7d4bd9a0e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 13:19:13 -04:00
Paul Belanger 0a1b5f5834
Add windmill-tox-ubuntu-xenial
This refactors the existing windmill-tox-deploy job. We are basically
removing a lot of the logic from tox -edeploy and just using the venv
environment from tox.  It is very much possible we may remove the
dependency on tox in the future.

Change-Id: I29a1b06c4e02e3c5f588135042f77ccc4a031a7d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-10 10:56:46 -04:00
Paul Belanger bd142ffa4b
Add tox deploy job to validate bootstrap process
When a user tries windmill, they have a multiple options to actually
run ansible. However, we can atleast provide a basic way to bootstrap
a host and validate our playbooks and roles are in working order.

This could also be a simple way to try newer version of ansible, under
zuul gains the ability to support that.

Change-Id: I4e97b0f10437adf7a153148cc7fa5ae45e81d4de
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-03 11:08:35 -04:00
Paul Belanger 4231eb7cbb
Move inventory to top-level
Reorganize our inventory file into a top-level directory.

Change-Id: Ice7a72cb1e5dc04053e44af9a374639587c8f5c2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-27 21:14:16 -04:00
Paul Belanger a414ee93f3
Remove human_log plugin
This is no longer needed and now caused our jobs to fail from
zuul-executor.

Change-Id: I51916f981a2e3584d87991a8b1d1a8597d37c915
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-16 15:00:22 -04:00
Paul Belanger 63b99cc35c
Add human_log callback pluging for logging
Also ignore flake8 for now on human_log.py.  This is just copypasta
from upstream source.

Change-Id: Id19d72d804d525b7c8d188d94bd87c24a11ef234
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-30 19:22:15 -04:00
Paul Belanger f1456fe5dc
Switch nodepool / shade / diskimage-builder to python3
All three now are python3 compatible, so default to running them as
such.

Change-Id: I556b1cfa6a39284f19b22a9a6da121c2e02d3bc2
Depends-On: I2e544f8bdd48cdbdb973dec844a2a9b56c473aae
Depends-On: Id2505dfd949e72f603f3db692a7dbc59912b1b59
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-30 15:12:50 -04:00
Paul Belanger b40a3b0f05 Revert "Zuul clone openstack-infra dependencies"
With zuulv3-dev.o.o now working, we no longer need to do this.  As git
repos will be pushed to the node already.

This reverts commit 6487d40e38.

Change-Id: I0e8e156261325a7cf5869f923009777c98db841d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-01 09:10:56 -05:00
Paul Belanger 6487d40e38 Zuul clone openstack-infra dependencies
This allows us to also support Depends-On for zuul, nodepool, shade,
and diskimage-builder.  Along side our ansible roles.

Change-Id: I0aea13cbbd6efa660c52d9b331b3031f6e656cca
Depends-On: Icc09164743da0d537c369040510998869486f3b3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-22 12:06:05 -05:00
Paul Belanger cfe248dd87 Fix buildimages entry point
We updated our JJB configuration, so tox.ini also needs to change.

Change-Id: I8ef1f49f0b965b3c23091e079fbb7fa2cdc01922
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-05 11:59:06 -05:00
Paul Belanger 666a2d4df1 Add entry point to tox to publish images
This allows use to gate in image builds, but only publish them in
periodic or post pipelines.

Change-Id: I09fd247f557a777f2b09f83a5e4d7f0206c04838
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-20 19:27:32 -05:00
Paul Belanger 5dd73001a4 Add tox-ebuild-images
Add an entrypoint for tox so we can only build diskimages.

Change-Id: I911789f97d5a17a1e64a36819f3b746887f675e1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-19 21:04:26 -05:00
Paul Belanger f58a4d2806 Initial support for bindep
Turtles all the way down! Install required ansible dependencies,
before we can actually use ansible.

Change-Id: I543798d2ef6cf9b1e624a7628a2992e99f2fd231
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-01 19:13:22 -05:00
Paul Belanger 61c570e3ad Add testenv:bindep for tox.ini
Change-Id: I1b1cb949e7749829cdbda39ae1215de3202fdeea
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-10-08 18:31:47 -04:00
Paul Belanger 698bba9a37
Only use requirements.txt for [testenv:deploy]
Change-Id: Ia2bbba34beae18069ecf02378eb47b93e296d9e2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-14 18:21:45 -04:00
Paul Belanger cd966cb47d Switch from localhost
Since we are using the loopback adaptor for single host testing, lets
use different virtual IPs for each node.

Change-Id: Ia4b7e14d1acfe40b15f458c1bbd0b1fd003485fb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-25 20:15:42 -04:00
Paul Belanger 443e65da19 Rework directory strucuture
We mistakenly created a windmill sub-directory when it really should
have been playbooks.  Since this is where we store our playbooks.

Change-Id: I390da5f887eb6581ccce9f39c3dfbd49dcf2363b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-15 11:31:44 -05:00
Paul Belanger 950f0b1987 Setup dynamic ansible_user
This will help people running windmill outside of the gate.

Change-Id: I9f5e853ee716186bf4a0e07e3478c358632e5611
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-12 14:42:29 -05:00
Paul Belanger 21f840a0f8 Update to tox -elinters
As this is the new entry point for openstack-infra.

Change-Id: Ic3f35620e97254a247d43a00dfefece693e3cf2b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-09 10:47:42 -05:00
Paul Belanger 0348996108 Add zuul node
Here is our first example node using zuul.  Currently, we simply
install zuul with no additional configuration.

Change-Id: I718007fb507013895844fcf2caf6de7219f09c70
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-02-02 11:01:45 -05:00
Paul Belanger 08a38c06d9 Add tox -eansible-lint
Currently, just run /bin/true until we actually have some playbooks
installed.

Change-Id: I62c5aafea8fa71fd64809ce8b5650dcfdaf51f8d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-29 16:21:08 -05:00
Paul Belanger a90bef81ba Initial commit
Add tox logic for tox -edocs and tox -epep8 for the gate.

Change-Id: Idfa0602edbf5f34e44d287e7511c02b34eab4e7f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-01-29 14:57:10 -05:00