18 Commits

Author SHA1 Message Date
Mark Goddard
611111b8bd Use unittest.mock instead of PyPI mock
Now that py2 is gone, oslotest dropped dependency on mock and will
soon affect Ussuri CI [1], let's use unittest.mock built in py3.

This also fixes py38 jobs and proactively prevents py36 and py37
failing due to [1]. This is because we never included mock in
test-requirements and instead relied on oslotest to bring it in.

[1] https://review.opendev.org/716322

Change-Id: I0c18b13c4e1fbaa9db41da4e2039ad908c28caa6
2020-04-03 10:22:39 +01:00
Mark Goddard
2fcdff101f Fix sphinx8 script used by pep8
We wrap doc8 to register the directives we use in our documentation.
Previously the 'app' argument was passed as None, however sphinx has
started to use the argument.

This change uses a mock object since we don't need to use the
application object.

Change-Id: Id9e8d5f6d09f14d294cd493538780456f98c7dbe
2020-02-13 11:32:50 +00:00
Zuul
b98728f3d6 Merge "Use {{ openstack_branch }} as version of kolla-ansible in ansible tests" 2019-12-12 12:39:01 +00:00
Pierre Riteau
225130a594 Use {{ openstack_branch }} as version of kolla-ansible in ansible tests
Instead of always checking out the master branch, use the kolla-ansible
branch with which this Kayobe version is meant to be used.

Change-Id: I074d4b9d444649ecf956d3cd92748862e8c89a5c
2019-12-06 17:29:45 +01:00
Mark Goddard
d81ffc2e28 Revert to yatesr.timezone role
In the 1.2.0 release the offending symlinks were removed from the role.

Also skip molecule tests from galaxy roles.

TrivialFix

Change-Id: I233e5468054e950a80355bdc2205bd6070a12297
2019-11-01 14:39:24 +00:00
Mark Goddard
7ed7b27bc4 Add retries to ansible galaxy install for all envs
Galaxy install often fails in CI, scuppering an otherwise good run.

Change-Id: I3d02afe33cdf32b1d285bd4bdc4a8074883113ca
2019-07-04 13:02:04 +00:00
Mark Goddard
4f5e87dbf2 Update release notes for stable/rocky
Also updates the release.sh script to support tagging release candidates
and development milestones. Adds zuul configuration to trigger a
Readthedocs webhook for the release notes.

Change-Id: Ia784b34fb0b740998de72599d4921f9303e41cac
2019-02-15 11:23:43 +00:00
Mark Goddard
b87135d3c3 Add release.sh, a script for creating releases
Also adds documentation on releasing to the developer guide.

Change-Id: Ic26daf362ce79fa1ea9ce217cf470d85c961affa
2018-11-18 17:41:43 +00:00
Mark Goddard
823e50cce7
Merge branch 'master' into molecule-kolla-openstack 2018-02-22 15:19:15 +00:00
Mark Goddard
d57969beb9
Merge pull request #84 from ktibi/ceph_tag
add storage group and ceph tag
2018-02-22 14:51:45 +00:00
Mark Goddard
318f73cc52 Add a tox environment & dependencies for running molecule tests 2018-02-20 18:48:28 +00:00
Mark Goddard
1999110bbc Fixes for ceph block device tagging (#1)
* 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.
2018-02-09 14:42:38 +01:00
Mark Goddard
6beb880486 Add bashate to pep8 tox environment 2018-02-06 11:54:12 +00:00
Mark Goddard
bca931693f Remove stale script configure-kayobe.sh 2017-11-17 09:11:49 +00:00
Mark Goddard
ee09ae8f4a Add sphinx8, a thin wrapper around doc8 that supports sphinx 2017-09-04 11:01:02 +01:00
Mark Goddard
1d9e8fc976 Separate the external network into external and public
Previously, the external network carried both public API traffic and
neutron external network traffic. In some cases is it useful to separate
these networks. The public network now carries the public API traffic,
leaving the external network to carry neutron external network traffic
alone. For backwards compatibility, the public network defaults to the
external network.
2017-08-29 13:12:47 +00:00
Mark Goddard
253ed034f0 Add tool to count LOC 2017-05-29 16:59:34 +01:00
Mark Goddard
caf9b52ac7 Add kayobe python module with CLI
The CLI replaces all existing shell scripts except for
configure-kayobe.sh. Other shell scripts are now removed.
2017-02-28 16:17:54 +00:00