Commit Graph

228 Commits

Author SHA1 Message Date
Paul Belanger 9ae268fa89 Add zookeeper tls support
Now that tls support is required, add support for it.

Change-Id: I36f2c0a2b2209cfa974b4686c0c32f3fe32e9cae
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-22 08:51:00 -04:00
Paul Belanger 7b0af5bbfc Clean up bitrot
Do the things we need to do to get our testing working.

Change-Id: Ia9898a2406c601f45b07714b46a7d44632e229e5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2021-06-22 08:50:57 -04:00
Zuul f0cb0c8c8c Merge "Re-enable windmill-jobs" 2020-04-29 19:17:09 +00:00
Paul Belanger b56cd32994 Re-enable windmill-jobs
Depends-On: https://review.opendev.org/724372
Change-Id: I43e854a43c6ed9b111f775b9208f33ee78129936
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2020-04-29 12:23:21 -04:00
Zuul 663c7cb072 Merge "Fix deprecation warning" 2020-04-29 15:50:22 +00:00
Paul Belanger 93a28202bc Disable windmill / docker jobs
We need to disable windmill jobs, as we are currently wedged on fixing
jobs. Current fixes need to happen our a few projets, so once everythign
is working, we'll bring this back online and merge eveyrthing in at
once.

Docker jobs look to be broken, disable for now and maybe look to migrate
to podman.

Add pytest to test-requirements.txt

Change-Id: Ie7b89f4bf0089e8020a625d4c561089695d529c0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2020-04-29 11:06:40 -04:00
Paul Belanger 5929076e98 Fix deprecation warning
Depends-On: https://review.opendev.org/702969
Change-Id: I501ac43f643e47603885dc006049e2b7e0381866
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2020-04-29 14:10:59 +00:00
Paul Belanger 97ee6c828b Drop molecule support
This was an experiment to see if using molecule was something we wanted
to do. However, a lot of tihs logic is duplicated by zuul.

Change-Id: Ie59edff5825496bb1f34825ae2f916afdf198593
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-09-09 17:43:42 -04:00
Paul Belanger 93157d2f9e Clean up references to openstack.org
With opendev.org now online, we can start using it over openstack.org.

Change-Id: Ia28113926efd70bee28aec7b88edcfdb365e6665
Depends-On: https://review.opendev.org/654017
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-04-20 14:02:59 -04:00
OpenDev Sysadmins b6bf41a4da OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:52:08 +00:00
Paul Belanger deb34c3dd3 Create nodepool_pip_virtualenv_symlink variable
Expose the ability for a user to create a symlink to a nodepool
virtualenv, this is usually needed when you start trying to version
different virtualenv installs.

Change-Id: Id77609f696dcd4083001a101fdd22ba1634f4617
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-23 15:34:48 -04:00
Paul Belanger ae4f8c7134 Pass secure.conf by default to nodepool services
This file is used to contain information like zookeeper auth, by default
we should enable it for our systemd integration.

Change-Id: I9dec8aef178e4faf9038b49471d1534bbce22574
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-22 20:39:09 -04:00
Paul Belanger 17e04fb576 Switch to yamllint for tox -elinters
It was a lot of overhead, with little gain, to run molecule lint.
Switch back to just using yamllint.

Change-Id: Ie4e4d5d77dcb864f7b76cd356cab7adf9516d1b3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-08 10:10:34 -05:00
Paul Belanger b363f10c1e Move testinfra validate to run phase
Zuul now supports multiple run playbooks, lets use that over post-run.

Change-Id: Id6d591023ef9b351e08e4260c281d25eec0836cc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-02-16 19:48:48 -05:00
Paul Belanger 34bd22ca8b Add experimental installation from docker
This is our first attempt at running nodepool from docker, consider it
experimental.  The idea here, is you now have the option of using the
official docker images from https://hub.docker.com/u/zuul for nodepool.

Users themself will be required to manage / configure docker, this role
only installs / configures / starts nodepool.

Change-Id: I2f3aa301e626a7b09ff129a21a188cee06e31f18
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-02-07 16:15:03 -05:00
Paul Belanger 794a330d65 Remove setup.py / setup.cfg files
We don't actually needs these, as we don't pip install anything.

Change-Id: I607ab9eb2ff886de76f3292fa60696231ac5f0d9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-02-05 15:41:15 -05:00
Paul Belanger fa67753f17 Refactor distro vars include
We can simplify this logic a little.

Change-Id: Ib7429b7409e05af5b0b82e47c04633fe8e731cb8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-27 12:05:23 -05:00
Zuul 531d0960e8 Merge "Split nodepool service state into own task" 2019-01-21 00:21:25 +00:00
Zuul 9b03656504 Merge "Clean up punctuation" 2019-01-20 23:57:20 +00:00
Zuul 6b3053c0b2 Merge "Change openstack-dev to openstack-discuss" 2019-01-20 23:26:07 +00:00
Paul Belanger c3c980e21d Split nodepool service state into own task
It is possible we want to enable a service on boot, but don't want to
ensure it is currently running. This splits our systemd tasks into 2
different checks now.

Change-Id: Ib37371031a871d0d57b390e2430ea1efb3094171
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 18:23:39 -05:00
Paul Belanger 5d6af4997a Fix pytest fixtures for skipping docker
Change-Id: Id90fe8b2cc0e5f8351ed23610641a025dcf73817
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 17:04:07 -05:00
Paul Belanger d9a53413cf Clean up punctuation
Change-Id: Id8cb719c8b0117724c6829fab7ed17e839adc4be
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-01-20 16:53:13 -05:00
Paul Belanger 96ac665eaa Add manage toggle for logging config
Allow a user to toggle the installation of logging files, as we allow
them to disable services.

Change-Id: Ie354cb0547fa247f940aa15222bbf4994d4201ee
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-20 10:45:21 -05:00
Paul Belanger e961f43cc3 Stop gating on ubuntu-xenial
There is no issues running ubuntu-bionic, so stop gating on
ubuntu-xenial to save us CI resources.

Change-Id: I1caedaee17b67d27a7005a827be62a58c9739a49
Depends-On: https://review.openstack.org/623074
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-12-05 16:47:51 -05:00
kangyufei b44bb291e0 Change openstack-dev to openstack-discuss
Change-Id: I59648f3fd81a1ddf3f440dbe4503e490ce588ccc
2018-12-03 21:48:17 -05:00
Paul Belanger 28721e46e4 Create nodepool_user_home_mode variable
and default the value to 0755.

Change-Id: I2d5374c49d682a0e8b565e61d280e73fc4619863
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-23 17:27:49 -04:00
Paul Belanger 4666971ac5 Switch to molecule for testing
Molecule is the defacto testing tool for ansible roles. Switch to it to
make it easier for users to test.

Change-Id: I881e895877c9702e62c4415d48b0f33f34f7487b
Depends-On: https://review.openstack.org/593369
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-19 11:32:19 -04:00
Paul Belanger 48531f50f1 Fix truthy value should be true or false
While testing out molecule, the following warnings were raised with its
linter.  Lets fix them to keep it happy.

Change-Id: I698f65daa58822f7befc72b9dcbf1f2d668cab02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-17 12:31:28 -04:00
Paul Belanger efc9d57e2c Switch to testinfra for role validation
We can switch to using testinfra to help ensure ansible did everything
properly.

Change-Id: I9e21cd16f1149d76308043a97658c93e7f14ac42
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-16 20:26:51 -04:00
Zuul b5fd6f6672 Merge "Also collect journald logs" 2018-08-15 02:43:24 +00:00
Zuul 88c57bff4c Merge "Use new log collection process" 2018-08-15 02:17:51 +00:00
Paul Belanger 2d9363cba7 Also collect journald logs
Change-Id: I7a952f835d7f43e1e96e8024d17fa6756fe0cc48
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-14 21:58:34 -04:00
Paul Belanger 81b000901c Use new log collection process
While this isn't 100%, it is enough to actually get started using it.

Change-Id: I8e4bad97658f98ca5280eca694dc2d9cb4028ad1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-14 21:35:02 -04:00
Zuul b3cb4daef1 Merge "Switch to fedora-latest for testing" 2018-07-31 16:18:28 +00:00
Paul Belanger afd7ce2c9e
Add nodepool_user_shell variable
Expose the ability for a user to override the default shell.

Change-Id: I27d872ba6c626c65f2d66ab292cbeb10af3f5203
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-28 19:51:41 -04:00
Paul Belanger 5a49a8829e
Switch to fedora-latest for testing
This will make upgrading fedora nodes much easier for openstack-infra.

Change-Id: Ie29aedbc2b86fb546139235954b513c40682ffb5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-07-27 10:56:17 -04:00
liusheng 7ef2873b48 Support editable flag to pip installation
This is useful for deploying experimental CI system for testing.

Change-Id: I8f69f0b91c56bdcef125532c2725a00799382a0e
2018-07-03 09:41:42 +08:00
Paul Belanger ff4eaf2ade
Remove database section from secure.conf
This is no longer needed with zuulv3.

Change-Id: Ia015e1b5cc34af7819428dea9f155e1711502882
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-05-11 19:39:23 -04:00
Zuul 15ca7dd8ae Merge "Start gating on ubuntu-bionic" 2018-04-27 19:55:25 +00:00
Paul Belanger e4a7b6c70d
Limit linters to current working directory
Change-Id: Ia50f351327ba90be8b8d846318cfa014560067c0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-26 15:24:04 -04:00
Paul Belanger c3e15feb5a
Start gating on ubuntu-bionic
Now that ubuntu-bionic is released, we can gate on it.

Change-Id: I0ed8eb74daad2ed8f5d814b488998b47dc7d02ce
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-26 12:46:55 -04:00
Paul Belanger 7ff7731c89
Bump minimal version of ansible to 2.4.0
Currently 2.4.0 is the oldest release of ansible, everything later is
EOL. Update our meta data into include this and the platforms we
currently tests with.

Change-Id: Ice5b83492454123bb15cc7c22b5a23dd5bb90524
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 14:23:12 -04:00
Paul Belanger 5e57ef60e1
Remove tox functional
This is no longer needed.

Change-Id: Ia2a26a4109b3a7116dbc7453ca3367fcc5de1236
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-19 14:22:17 -04:00
Paul Belanger 4223967465
Pass list of packages directly to package task
There is no need to loop over the list of packages, this is actually
slower.

Change-Id: I38361ccc9a5c84b8d2cff8fe813475e115e47bf0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-14 16:39:37 -04:00
Paul Belanger 08f40aa7bd
Stop using pre-compiled wheels
We actually want to ensure users are able to use our roles outside of
openstack-infra. Since those users won't have wheel mirrors, disable
our jobs from using them too.

Change-Id: I0a3c44c81aff497bc1678b68fc7b1374f233901b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-13 15:00:42 -04:00
Paul Belanger 38affb57d6
Only require-projects openstack-infra/nodepool for src jobs
Because we pip install released versions of nodepool, there is no need
to require openstack-infra/nodepool on non src jobs.

Change-Id: I846bfdbdc2584c9bd97312accd60148ea1f29d1b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 21:04:54 -04:00
Paul Belanger 407d827893
Default nodepool_pip_executable to pip3
Moving forward, we'll only support nodepool under python3.

Change-Id: If0f9ed013819b68601e28ecfbeffa40a41d19ebc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 20:08:25 -04:00
Paul Belanger 3d96a9ae01
Default install method to pip
We want to encourge users to use the released versions of nodepool, so
flip the switch to pip.  We still support git and will continue to
test against it.

Change-Id: If45a1392b1caed8d1c181bd463bad30f91eab899
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 18:37:18 -04:00
Paul Belanger 6a95700860
Don't install nodepool_build_depends for pip
When installing nodepool from pip (pypi.python.org) there is no need
to install the build dependenies as we download the wheel.

Change-Id: I60c87135e8d5d83c3bf810835e18926d2ad0e103
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-12 18:31:58 -04:00