Commit Graph
15 Commits
Author SHA1 Message Date
Sagi Shnaidman 25325bfe79 Fix ansible-base case for Ansible devel branches
Change-Id: I4b8edf7d376c9110f0795b023091153b99628b18
2020-04-02 23:07:09 +03:00
Sagi ShnaidmanandMark Chappell 347347b46e Fix ansible sanity linter tests
Change-Id: I2d08fdc77d930378be515da697c1cf975dd8b4d2
2020-04-02 13:20:01 +02:00
Sagi Shnaidman 2753b5bc42 Add SDK version to tests conditions
Pass SDK version to ansible roles so we can skip testing of modules
which are not supported for current SDK version

Change-Id: I5d25c0a6827536434a8f17b2a0f7de0db4c78301
2020-03-28 16:11:05 +03:00
Sagi Shnaidman fbd03d187c Don't fetch subunit in jobs
Depends-On: https://review.opendev.org/#/c/714302/
Change-Id: I006051ec0aa7b4c98cc41cda097d085f6eea62c9
2020-03-23 03:33:21 +02:00
Sagi Shnaidman 42fbc640ee Add rocky, stein jobs
Add rocky and stein jobs to check and gate
and remove non voting jobs of ansible devel from gates.
Change-Id: Ib231a50fa5e8427ef39077bc49ac806aa0a5732e
2020-03-20 12:48:00 +02:00
Sagi Shnaidman f982797b94 Add dependencies for long jobs on linters
Run long jobs only if linters passed
Change-Id: I374bbdd2111073d4f6a9ace22bf11f58afe1c21b
2020-03-20 12:42:24 +02:00
Sagi Shnaidman 290c5329cc Add ansible 2.9 and openstacksdk train jobs
Change-Id: I5e096c056291b7abf5355ab366b3ba25a0f68385
2020-03-19 12:23:55 +00:00
Sagi Shnaidman 67466513da Add option for modules_default groups
It's possible in Ansible to set options for modules with
modules_default keyword[1]. For some of modules it's possible
to do with module_default groups, like cloud modules[2]
Add this option to OS modules.

[1]
https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html#module-defaults

[2]
https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html#module-defaults-groups

Change-Id: I31e36f3a6d600815152a116afb37f8e3e21bc282
2020-03-10 14:06:06 +02:00
Sagi Shnaidman 31b113d402 Add Openstack guidelines spec from Ansible
These may not be 100% perfect, but they are a good
starting place and we can improve them over time.

Change-Id: Ifb21554d67863b4e4e964f3e98263c3dafcb607f
2020-03-05 15:40:51 +00:00
Sagi ShnaidmanandArtem Goncharov ae0303d482 Make an OpenStackModule base class
In module_utils we have a bunch of factory functions that we expect
people to use in a certain combination to build a module, then we
pass around a reference to the SDK and to the connection we created.
That's largely just due to how this stuff grew organically.

Instead, create a base class to be used in the modules. For now it
allows us to clean things up a bit. But as a follow on - it should
maybe help us put in things like richer logging collection which
would otherwise need to be done with helper methods and whatnot.

Change-Id: I487e79fe18c0b9a75df7dacd224ab40ed7f4e1ab
2020-02-17 08:50:17 +00:00
Sagi Shnaidman cb2c6f403e Add rstcheck for ansible-test to lint RST files
Change-Id: I02e2ac73a6d56f83f0ec597d6c60c5757cec3f90
2020-01-28 17:23:00 +02:00
Sagi Shnaidman edefe417ae Add colleciton repo to required projects
Add collections repo to "required projects" so that we can run it
on amy repo, not only on collections.

Change-Id: I0e58b84a3688534fe61c6c88ff482630f6fbec93
2020-01-27 16:40:36 +02:00
Sagi Shnaidman 7c52b83b52 Run functional devstack job on ansible collection
Porting of job that was running on patches in Ansible.

Change-Id: Ifa5a6b40d6a0f1de9f2cbc917a55c2d0e8ac421d
2020-01-21 00:25:48 +02:00
Sagi Shnaidman 57b76835c9 Make collection tar file path version independent
Find collection TAR file by "ls".
Change-Id: Icf988005258b260b51e8de7e70b344275948b40b
2020-01-19 21:19:51 +00:00
Sagi Shnaidman 6ac08e7f0e Migrate openstack modules as a collection
Migrate accordin to Ansible guidelines [1[]] and tool
migrate.py [2]
Also fixed ALL ansible-test sanity issues

Add pep8 and linter job with runs ansible-test sanity test.

[1] https://etherpad.openstack.org/p/openstack-ansible-modules
[2] https://github.com/ansible-community/collection_migration

Change-Id: Ib2b1c8f23aacfca95304132bfe5c4cdedbea0520
2020-01-17 14:07:24 +00:00