When molecule runs, it installs ansible>2.8, which is version 2.10.0
since today. This now also installs the ansible-base package, currently
at version 2.10.1. Then it installs the version of ansible required by
kayobe, i.e. ansible>=2.8.0,<2.10.0 (currently 2.9.13).
We end up with a tox molecule venv containing:
ansible==2.9.13
ansible-base==2.10.1
This causes the following issue:
ERROR! Unexpected Exception, this is probably a bug: cannot import name 'AnsibleCollectionLoader' from 'ansible.utils.collection_loader' (/home/zuul/src/opendev.org/openstack/kayobe/.tox/molecule/lib/python3.8/site-packages/ansible/utils/collection_loader/__init__.py)
This commit adds requirements.txt to the molecule tox deps, which
ensures the correct version of ansible gets installed first.
Change-Id: I7ef890a2ae6fd67f53e1b8bca244a1c0d44fea53
requirements.txt is unnecessary when running `tox -e releasenotes` since
release notes requirements are in doc/requirements.txt. This PS removes
the requirements.txt from tox.ini and reuses [docs] deps.
Sync from kolla-ansible and kolla.
Change-Id: I9df2f98772c143a9662fd5c123cc9f6d5410c5e5
Switch all dependencies to use the OpenStack Ussuri release.
This commit should be reverted on the master branch once the
Kayobe stable/ussuri branch has been cut and RC1 released.
Change-Id: Id126ea109e6dfcba09b524129876985547ad368f
Removes and/or replaces all mentions of py27.
Cleans up obsolete requirements and their lower-constraints.
Update cliff minimum to 3.1.0 in requirements.txt, which has a fix for
story 2005891.
Change-Id: I52cffa2f1aee944f79c4618ea20b779755792f2a
Kayobe generates passwords.yml for Kolla Ansible, and can encrypt it
using the vault password. Previously this was failing on Python 3 due to
passing a string to file.write() which expects bytes.
This change fixes the issue by encoding the password string passed to
file.write().
This allows us to run the ansible role tests under Python 3.
Change-Id: I33813f79984a46f1967ef3aee455dcfbe7eb93da
Story: 2006574
Task: 39481
Cleanup requirement and set ignore_basepython_conflict = True
in tox to avoid python version conflict warning which going
to be error in future.
Change-Id: Ia4ce42a20417d69efd50ef563aabd8cffbb7b346
This reverts commit a93b85ba07113a77a6c0db498a59cef3bca15b94.
The local Python executable for Kolla Ansible is changed to Python 3
because Kolla Ansible master no longer supports Python 2.
Change-Id: I768ce8db9cec1c70d94f271997bbcc64d370403e
Switch all dependencies to use the OpenStack Train release.
This commit should be reverted on the master branch once the
Kayobe stable/train branch has been cut and RC1 released.
Change-Id: I6006e14df27a180f1438f9eb01b9ebefdddaff72
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
2. Cleanup the folders before run commands
[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045
Change-Id: Ib3133820a3d3ca3027ea2f9bc9b6907929cff8ed
Documentation build environments use doc/requirements.txt where sphinx
is already present. Use doc/requirements.txt in the pep8 environment
because sphinx is required by sphinx8.
Change-Id: I3a2c9ae392745e001c5bdd01212c996e54c44f0c
This reverts commit b46b2b72bbec2a076a8175fc0aff96cbdefcabff.
Switch dependencies and upper constraints back to master branch for
development after cutting stable/stein branch.
Change-Id: Ie7f588aab59e57efe240a58a3bd0a6f09fbcefb7
Switch all dependencies to use the OpenStack Stein release.
This commit should be reverted on the master branch once the
Kayobe stable/stein branch has been cut and RC1 released.
Change-Id: I50a39994c8ffa0c7d65e026ae765973541423476
The project infrastructure is now hosted at opendev.org.
Kayobe projects have been moved from the openstack/ namespace to x/.
Change-Id: I16b523285eb34c1cd0eaf920aa4512d0ae1b4f05
Adds two new variables, 'openstack_release' and 'openstack_branch',
in ${KAYOBE_CONFIG_PATH}/openstack.yml for setting the current OpenStack
release and branch in a single place.
Also uses the master branch for the molecule tox job.
Change-Id: I851a1e6eddc6738005c1813599445b38c0ae0d57
Use master branch of:
* Kolla
* Kolla ansible
* Bifrost
* IPA
* OpenStack services
* Requirements
Also, use the infra docker registry mirror at port 8082 which does not
have any path component in its URL, and so works with Docker CE.
Depends-On: https://review.openstack.org/#/c/651254/
Change-Id: Icdb62aa0083d9272a08421138719cf5f6b52ec5a
Story: 2001864
Task: 14316
Also change to use the py3 tox environment rather than specifying a
version explicitly.
Change-Id: I05d5d6f5718b39dc95b40efe44e9ebb3fb5b1311
Story: 2004959
Task: 30035
We run yamllint with the same configuration in kayobe-config, so we
should catch issues here before they are synchronised.
Change-Id: Ia2de07abc7c58040f99766adb950c477800ea56d
Use stable/rocky branch of:
* Kolla
* Kolla ansible
* Bifrost
* IPA
* OpenStack services
* Requirements
Also updates Kolla Ansible inventory template.
The seed deploy job has been made non-voting and non-gating, because we
are waiting for bifrost change https://review.openstack.org/#/c/618740
to merge, be released, and for the kolla bifrost image to use the new
package.
Change-Id: Id5e7fdbd196f96e1e75ffc68bc93aab18fa38aa7
Story: 2001864
Task: 27798
Depends-On: I58e4f951d4a3dd89e0784fd82d8a62dbba374f79
This allows us to remove the sudo from the tox molecule environment, since
the install-docker role correctly adds the zuul user to the docker group.
Change-Id: Ib7abd22c0caf793a8a59d38a4f63df7e60a7b69e
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: I9aaae4949e2cf6c8a33fb6fbf8be15e1d09cce44
The current approach of adding release notes to a single file means that
we end up with merge conflicts every time a change is merged. This is
wasteful of time and resources.
Change-Id: I19f956e4e3991e39252eaa3a1b97a3b2812858d2
Story: 2001637
Task: 6649
Use queens release of:
* Kolla
* Kolla ansible
* Bifrost
* IPA
* OpenStack services
Changes to kolla inventory files were made by comparing the multinode
inventory in kolla-ansible with the overcloud-services and
overcloud-components templates.
Kolla ansible added the concept of inner-compute and external-compute,
and these groups have been added to the top-level inventory.
We also synchronise globals.yml and kolla enablement flags.
Change-Id: I87b052f777567226e41294b955f736040e55e102
Story: 2001863
Task: 14315
Adds the following zuul job:
kayobe-tox-molecule
It runs ansible role tests using the molecule framework.
Note that we are currently running tox as root to work around issues
with applying docker group membership in the Zuul CI environment.
The ubuntu-1604 platform has been removed because the job takes a long
time to run even on one platform.
Change-Id: I8be24be828c0e124d822d7b39a02169c92b81eb3
Story: #2001637
Task: #6646
Kayobe is to become an OpenStack-related project, and as such will use
Gerrit for code reviews and Storyboard for issue and feature tracking.
The README and CONTRIBUTING documents have been updated to reflect that,
and a standard OpenStack HACKING document has been added.
Change-Id: Id03bcb5183bfbf6e84bb4d9c22f85d9418b6b4fc
Story: #2001637
Task: #6644
stestr [1] is a fork of the testrunner python test runner.
Coverage tests can be run using 'tox -e cover'.
Adds a job for checking coverage to Zuul check and gate.
[1] http://stestr.readthedocs.io/en/latest/
Change-Id: I25cd407677a4013d022f87d124c6db43ab6bb2e0
Story: #2001637
Task: #6648
* Install galaxy roles before running ansible tests
* Use package module in kolla-ceph to support Debian-based systems
This is required for running tests in TravisCI.
* Fix kolla-ceph unit test
* Add more tests for kolla-ceph
Journal tests are currently failing on my laptop due to partition labels
being truncated.
* Add .gitignore for stackhpc.parted-1-1 galaxy role
* Run all test cases
Run all test cases, collecting failures, then report at the end.