168 Commits

Author SHA1 Message Date
Monty Taylor
370b9b9dae Link to Contributing file in README
Change-Id: If18253fec2a4df735835c2a7b47c69069bf667d0
2020-05-13 09:18:33 -05:00
Monty Taylor
c0ded1303b Add contributing file
Change-Id: Iae015eae0931c5cd0d77990964fa57c5594e4bb6
2020-05-13 08:07:01 -05:00
Sagi Shnaidman
bcdf749938 Improve ansible-test sanity for collection
Check only things we build into collection.
Ignore sanity files from full CI jobs.
Add queens to gate because it's voting.
Add files to ignoring when building collection.
Remove non-required lines from ignorign sanity files.

Change-Id: I0dde756efa133cf75b67d072af78a1f8307ce932
2020-05-13 13:31:29 +03:00
Monty Taylor
e47c4671c7 Rename all of the modules
This is separate from the previous patch - it's just the results
of running the script so we can review the two a little independently.
We should probably squash them.

Change-Id: I838f15cf4a32455a5be20033c8ddc27db6ca15c0
2020-05-12 10:20:50 -05:00
Monty Taylor
52905480b8 Remove all of the os_ prefixes
The 2.10 transition has a routing.yml file that points each
individual module from ansible/ansible to a new location. That means
we can put:

    os_server:
      redirect: openstack.cloud.server

into lib/ansible/config/routing.yml in ansible/ansible and have
the result be the end user's playbooks still working with the
old names while providing new names that are less ugly.

This adds a routing file to our collection repo, as well as the
script used to generate the new mapping.

Change-Id: Ia5d18282b14ad0d86a347343be8bb477ae47130a
2020-05-12 10:19:28 -05:00
Monty Taylor
238387f2f8 Remove incorrect os_ prefix in documentation
The parameteres are project_domain_name and user_domain_name.

Change-Id: I509ae5d398ff8a93d3cbcd09edb21118a1ff03c3
2020-05-12 10:10:57 -05:00
Monty Taylor
6271268567 Run linters in a temp dir instead of an install
We can't run linters in an install because installs expand
symlinks to regular files so the ansible-test code that detects
symlinks can't work so it looks at docs for symlink aliases
as if they were real.

Change-Id: I0a5659a1f693261a21a5b29528f950b846205f2e
2020-05-12 09:04:54 +00:00
Zuul
7e027cb532 Merge "Ensure modules work with queens devstack" 2020-05-11 13:01:30 +00:00
Zuul
1906b85668 Merge "Updated allocation pool checks" 2020-05-10 14:21:01 +00:00
Sagi Shnaidman
47ac938475 Ensure modules work with queens devstack
Using master branch of openstackSDK

Change-Id: I43f260bbb26aa1d8e328911d9798316445849d7d
2020-05-10 13:07:55 +00:00
Ken Dreyer
25ad4882b0 os_server_action: pass imageRef to rebuild
Prior to this change, the os_server_action module could not rebuild
servers, because it passed no arguments to the "rebuild" object.

The imageRef parameter is mandatory. If the client does not specify
imageRef, Nova takes no action to rebuild the server.

Change-Id: I0edbdb634feb90d4c54476a4089fcb014c0b83b2
2020-04-29 14:56:49 -06:00
rawat
95dcd82cbb Updated allocation pool checks
As per the REST Networking API v2.0 (Subnet) docs, if subnets pools
are not specified, OpenStack networking automatically allocates pools
covering all IP addresses in the CIDR.

In custom vendor specific environments, subnets can be created without
allocation pools via UI due to which subnets will not have any existing
allocation pools. Under this scenario, module throws an
"IndexError: list index out of range" error.

Also, allow to add more allocation pools on top of existing allocation
pools.

Change-Id: Ib8becf5e958f1bc8e5c9fd76f1722536bf1c9f1a
2020-04-27 07:19:56 +10:00
Sagi Shnaidman
b824bf1c38 Convert os_server_info to use OpenStackModule
Change-Id: I864c767ff06d32dd79b72826cfc09e7203e5291d
2020-04-21 19:08:46 +03:00
Zuul
466f3d4a0a Merge "Moved openstack inventory script from community.general" 2020-04-20 11:22:52 +00:00
Zuul
d1ad72a068 Merge "Add properties for os_project" 2020-04-16 19:33:48 +00:00
Duc Truong
c1a2496e0f Add properties for os_project
Keystone supports setting custom properties for projects.  This changes add
properties to os_project to enable setting of custom properties.

Depends-On: https://review.opendev.org/715255
Change-Id: I23e2834d6b9d40ce86db4b32a0ed8bf76b3d9879
2020-04-14 10:11:12 -07:00
Abhijeet Kasurde
5576eea3ce Moved openstack inventory script from community.general
Moved Openstack inventory script from Ansible community.general to openstack collection.

Change-Id: I84f93888059ec09b182a03e751ade6810e133a29
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-04-13 15:22:18 +05:30
Zuul
2b51a58da2 Merge "New Module: os_keystone_federation_protocol_info" 2020-04-03 16:13:26 +00:00
Zuul
0424bb8ac1 Merge "New Module: os_keystone_federation_protocol" 2020-04-03 16:12:45 +00:00
Zuul
c5ff8f7073 Merge "Run Ansible-test from the devel ansible branch" 2020-04-03 15:03:55 +00:00
Mark Chappell
a3a571b113 Run Ansible-test from the devel ansible branch
In addition to running ansible-test from stable it's helpful to run
ansible-test from 'devel' where new sanity tests will land.  These
sanity tests are generally applicable to existing modules, but aren't
back-ported.

Change-Id: I8df3dd43cbc4cba643d7860e77a1089c15f5f092
Depends-On: https://review.opendev.org/717118
2020-04-03 09:41:47 +02:00
Sagi Shnaidman
25325bfe79 Fix ansible-base case for Ansible devel branches
Change-Id: I4b8edf7d376c9110f0795b023091153b99628b18
2020-04-02 23:07:09 +03:00
Mark Chappell
583770f597 New Module: os_keystone_federation_protocol_info
Add support for getting information about Keystone federation Protocols

Change-Id: Id389b094465967a2a8a0eff428f1f6679865c6f6
2020-04-02 17:27:06 +02:00
Mark Chappell
8729b8da72 New Module: os_keystone_federation_protocol
Add support for Keystone federation Protocols

Depends-On: https://review.opendev.org/714431
Depends-On: https://review.opendev.org/713461
Change-Id: I6dff6cebe72106e601834976e369e08583391c55
2020-04-02 17:26:31 +02:00
Mark Chappell
54c189063f os_keystone_mapping: fixup some minor nits found in followup reviews
Change-Id: I0c8995e8d52a993395e674c06c84f6398473754c
2020-04-02 17:23:27 +02:00
Zuul
bf4af7b1b9 Merge "New Module: os_keystone_identity_provider_info" 2020-04-02 14:42:08 +00:00
Zuul
9e2eeedaf3 Merge "New Module: os_keystone_identity_provider" 2020-04-02 14:42:08 +00:00
Zuul
d2379cd284 Merge "New module: os_keystone_mapping_info" 2020-04-02 14:35:51 +00:00
Mark Chappell
c85817dac9 New Module: os_keystone_identity_provider_info
Add support for fetching the information about federation IDPs

Change-Id: I36b7fa264866689e09b020b13b7bdc3843bfacfb
2020-04-02 13:59:14 +02:00
Mark Chappell
b74791754b New Module: os_keystone_identity_provider
Add support for Keystone Identity Providers

Depends-On: https://review.opendev.org/714122
Depends-On: https://review.opendev.org/713461
Change-Id: I9d4ba6b9e7b1e618f985a8264fb0238fe3cbc7bd
2020-04-02 13:59:14 +02:00
Mark Chappell
1b7ecc7a4a New module: os_keystone_mapping_info
Change-Id: I716c00b7f3cde7df6a220c20a8c0652ccbe8bdce
Depends-On: https://review.opendev.org/716908
2020-04-02 13:43:31 +02:00
Sagi Shnaidman
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
Monty Taylor
a55f3fd1ca Ignore more things for the final artifact
We don't need tox or ci scripts in the collection, only in git.

Change-Id: Ie96dab9b7d9adac878e8c2e753a08f7ed794fc10
2020-03-26 15:22:14 -05:00
Mark Chappell
cde068ca70 New Module: os_keystone_mapping
Depends-On: https://review.opendev.org/713633
Depends-On: https://review.opendev.org/713461
Change-Id: I6842b7d10fca292a6779043b50fb95bd0d93e584
2020-03-26 07:18:46 +01:00
Zuul
23d2617ea1 Merge "Update the badge shown in galaxy" 2020-03-25 06:42:34 +00:00
Monty Taylor
8ab6942d12 Update the badge shown in galaxy
Galaxy shows the README, which currently shows a "failing" badge
pointing at github actions. That's obviously not right for us.

Update this by using the zuul:gated badge and pointing to the
builds for the repo in the Zuul Dashboard.

Change-Id: I7f1254f882486514cd29a52bf05ebf5a972da490
2020-03-24 18:31:17 -05:00
Monty Taylor
0a6894e9de Add ansible-collections-openstack to the required-projects
When this is run outside of the repo, we need this repo itself
in the job content.

Change-Id: Id75617b1a723bd310c86b3e6ea45b274652b9d9b
2020-03-24 17:18:31 -05: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
Monty Taylor
cf7011a742 Cleanup functional tests
Use the openstacksdk base functional test instead of going all
the way back to devstack for our base. Also - defining a job
starting with openstacksdk in this repo is not ok - but that
probably just came from the original copy-pasta coming from the
sdk repo.

Use tox-siblings more and stop doing tox requirements of ../
things. The system is there and we can use it.

Add jobs to test against released openstacksdk and ansible, as well
as a non-voting to test against ansible devel branch.

Add openstacksdk to the test-requirements because it's super
required.

Move zuul.yaml to .zuul.yaml. This isn't a zuul jobs repo so
we should just make it a hidden file rather than a non-hidden.

Change-Id: I658bd1728629cd358bc17a7f00d282d04530d8fe
2020-03-19 12:05:57 +00:00
Monty Taylor
75cc5012e3 Update os_client_config to use openstacksdk
This never got migrated but should. os-client-config is only
on life support.

Change-Id: I2d77c9f7d147900b79a410c17cce197108c0a69b
2020-03-17 13:35:45 -05:00
Mark Chappell
e39c5d0a9a Fixup elements related sanity failures
Change-Id: I6f2bba929af5a148a1f52df26916e00efcc14a07
2020-03-16 15:49:49 +01:00
Mark Chappell
63e444a324 Ensure documented choices match spec
Change-Id: Ia40e846f970a05a894601a7a37af0231f136bab6
2020-03-16 14:15:04 +01:00
Mark Chappell
f52598dd90 Use dict rather than complex for os_quota return type.
Change-Id: Ib8275a88eefb46ace471ddd12fadb018b4adbf9b
2020-03-16 13:56:58 +01:00
Mark Chappell
f16eda89dd Ensure defaults match spec
Change-Id: Ie5c499d7e035a0e9c3ac32e5dc5d57151c1745ed
2020-03-16 13:56:58 +01:00
Mark Chappell
aeb0e78148 Clean up doc-required-mismatch
Change-Id: Ia1449c50295f6b3551f176edf9bd439ace65ec90
2020-03-16 13:56:58 +01:00
Mark Chappell
1849f8bd47 Add missing type information to docs
Change-Id: Iac23d54512b23f031460d1b7281ccb8d93e20cad
2020-03-16 13:56:58 +01:00