- Jul 20, 2022
-
-
Arx Cruz authored
Make it compatible with new openstack sdk 1.0.0 Change-Id: I911eecd31ee69dbde1da02a74e152746c1e3edfa
-
- Jul 19, 2022
-
-
Zuul authored
-
Jakob Meng authored
This reapplies commit 4bfa135b [1] which got reverted in commit 1b59c19a [2] due to issues in how TripleO Quickstart installed the Ansible OpenStack collection. TripleO Quickstart has now been fixed and will install code from our stable/1.0.0 branch instead of master for all RDO branches which have openstacksdk <0.99.0 [3][4]. [1] https://opendev.org/openstack/ansible-collections-openstack/commit/4bfa135b20caeb6d6c2717049059ac52fd08e0e1 [2] https://opendev.org/openstack/ansible-collections-openstack/commit/1b59c19a24c55aa236d80552dcbf70c9c7b5088e [3] https://review.opendev.org/c/openstack/tripleo-ci/+/849500 [4] https://review.opendev.org/c/openstack/tripleo-quickstart/+/849620/ Change-Id: I918d776c1560f03a4a84df371feb013d47043aa0
-
Jakob Meng authored
No RDO release for CentOS8 will get a OpenStackSDK 1.x.x release. Change-Id: I728f0f282717c11a782be30859f999008f3fc8cb
-
- Jul 18, 2022
-
-
Jakob Meng authored
Build and install latest RPM for openstacksdk from its master branch instead of using the (pinned) RPM from RDO. This is necessary because openstacksdk in RDO is currently pinned to <0.99.0 for all RDO releases. Variable artg_change_list is used to define what code is being build from source. The RPM of the Ansible OpenStack collection does not have build from source because TripleO Quickstart installs the collection from job.required-projects [1]. The latter shadows the RPM release which is installed later by TripleO because it has a higher precedence in ansible.cfg [2][3]. Changed the job hierarchy to other base jobs tripleo-ci-centos-8-\ standalone-build and tripleo-ci-centos-9-standalone-build. This reduces the number of variables we have to define. It is also cleaner since our CentOS9 job is no longer based on the CentOS8 job which prevents issues with job variant collections due to our branched repository. Added more Ansible modules to files which trigger TripleO jobs, because Ansible role os_tempest [4] requires those modules and is called in TripleO jobs. Modules which have been added include: * openstack.cloud.compute_flavor * openstack.cloud.image * openstack.cloud.network * openstack.cloud.router * openstack.cloud.subnet Added tripleo-ci-centos-8-standalone-osa to experimental jobs so that we can actually run this job on demand easily. [1] https://opendev.org/openstack/tripleo-quickstart/src/commit/cb1595223b09c991c3e8451c6d1b332a78f65a94/quickstart.sh#L123 [2] https://opendev.org/openstack/tripleo-quickstart/src/commit/cb1595223b09c991c3e8451c6d1b332a78f65a94/ansible.cfg#L19 [3] https://opendev.org/openstack/tripleo-quickstart/src/commit/cb1595223b09c991c3e8451c6d1b332a78f65a94/quickstart.sh#L595 [4] https://opendev.org/openstack/openstack-ansible-os_tempest.git Change-Id: Ibde318678a3e44fdc297a6f29761eb0c7d77cbc9
-
- Jul 15, 2022
-
-
Jakob Meng authored
Replaced custom code for interface listing with call to openstacksdk. The original idea was to reduce the number of calls to the OpenStack API but this kind of optimization is better to be implemented in the SDK itself [1]. Reimplementing code like this increases our maintenance burden, does not help other SDK users and increases the likeliness of bugs. For example, variable allowed_device_owners introduced a bug, it is not 'network_router_interface_distributed' but 'network:router_interface_distributed'. [1] https://review.opendev.org/c/openstack/openstacksdk/+/849967 Change-Id: I9c52de03c53ef29d7cecdf26253c0c00a7cf3689
-
- Jul 12, 2022
-
-
Rafael Castillo authored
- Change sdk calls to use proxy objects - Convert return values to dict before updating - Adds additional test values Change-Id: I187a27af4a5b8aa7cd4b60a1a876b5e5e6975144
-
Jakob Meng authored
Signed-off-by:
Jakob Meng <code@jakobmeng.de> Change-Id: If8befd62ac59ef19debf0d63abe76f11b47c2da3
-
- Jul 06, 2022
- Jul 05, 2022
-
-
anbanerj authored
Updated documentation of return values and added test to verify return values Function self.conn.search_security_groups() cannot be used here. Arguments for filtering such as 'description' would have to be passed to self.conn.search_security_groups() in its 'filters' argument [1]. The latter is passed to both as query arguments to OpenStack API and later to _utils._filter_list() [2] for filtering the results. Some arguments such as 'any_tags' are only used as query arguments by openstacksdk [3] when querying OpenStack API. They are no valid attributes in security_group.py [4]. Whenever those non-attribute arguments are passed to self.conn.search_security_groups(), _utils._filter_list() [2] would drop all results because no result would have a matching attributes. [1] https://opendev.org/openstack/openstacksdk/src/commit/0898398415ae7b0e2447d61226acf50f01567cdd/openstack/cloud/_security_group.py#L31 [2] https://opendev.org/openstack/openstacksdk/src/commit/0898398415ae7b0e2447d61226acf50f01567cdd/openstack/cloud/_utils.py#L63 [3] https://opendev.org/openstack/openstacksdk/src/commit/0898398415ae7b0e2447d61226acf50f01567cdd/openstack/common/tag.py#L19 [4] https://opendev.org/openstack/openstacksdk/src/commit/0898398415ae7b0e2447d61226acf50f01567cdd/openstack/network/v2/security_group.py Change-Id: Ie7fe9d2e973d38751c48e71e6bd55e56a591ac1f
-
Jakob Meng authored
Previously, all security_group{,_info} and security_group_rule{,_info} modules were tested in the same Ansible role. This patch splits tests into two separate Ansible roles to increase readibility and prevent variable name conflicts, e.g. for expected_fields. Change-Id: Ifc28435147b3bfe88d4ee5e176469a53b7395dc0
-
- Jul 04, 2022
-
-
Vladimir Hasko authored
The solution is based on implementation of logging option in Open Telekom Cloud collections. Change-Id: Ie8b309d2aaa8da57794888848fc5414de207e54f
-
Rafael Castillo authored
- Update docs - Change calls from cloud to proxy layer - Make sure return value is a dict - Improve test coverage Change-Id: I857d7ba7b7ca1b23100ee7e85e90e98430d68462
-
- Jun 29, 2022
-
-
Rafael Castillo authored
Change-Id: Iba1604ee9c0b922b8fb7c6a278acf90d080a63e7
-
- Jun 28, 2022
-
-
Rafael Castillo authored
- Use proxy layer where possible - Image upload has some tricky logic so that stays in the cloud layer - Convert return value to dict - Document return values - Update visibility logic for glance v2 api - Increase test coverage - General refactoring to bring more in line with rest of collection - Deprecate is_public attribute which has been replaced with visibility. - Deprecate volume attribute which has been made obsolete with openstack.cloud.volume module. Removed examples showing the volume attribute since users are encouraged to use openstack.cloud.volume module. Change-Id: I1d8034a3b9a391444ea275b68b06ee3a291c73c3
-
- Jun 27, 2022
-
-
Zuul authored
-
Jakob Meng authored
Regions have IDs, but do not have names. Ref.: https://docs.openstack.org/api-ref/identity/v3/#regions Change-Id: I2512bbde6e96e2ab0f1fef0230295223f46105dd
-
- Jun 26, 2022
-
-
Jakob Meng authored
Module ansible.builtin.user in ansible-core 2.13.0 and 2.13.1 is affected by #78017 [1] which results in an exception being raised in ci/roles/keypair/tasks/main.yml [2]. Until this issue is fixed, we will exclude the broken versions 2.13.0 and 2.13.1 in requirements.txt [3]. [1] https://github.com/ansible/ansible/issues/78017 [2] https://opendev.org/openstack/ansible-collections-openstack/src/commit/802e46d554a1f899ad56be5574d2f7e2323ee6d6/ci/roles/keypair/tasks/main.yml#L72 [3] https://opendev.org/openstack/ansible-collections-openstack/src/branch/master/tests/requirements.txt Change-Id: I61bec4e62ecbcf357f3c1279a7373049077cb8d4 Signed-off-by:
Jakob Meng <code@jakobmeng.de>
-
- Jun 23, 2022
-
-
Arx Cruz authored
Make project_info module compatible with the new sdk 1.0.0 and also add ansible tests for project_info module Change-Id: I413200cf6a9b8bada7e5d78087246b888d53fac2
-
- Jun 20, 2022
- Jun 17, 2022
-
-
Dmitriy Rabotyagov authored
With this change we replace zuul.projects with zuul.project that will imply any project which will run the job. Also we read galaxy.yml as vars file to predict packed collection naming for futher upload. Change-Id: I66e27f3026689ad719384203fe66d65f5bca46ce Needed-By: https://review.opendev.org/c/openstack/ansible-config_template/+/846391
-
Jan Horstmann authored
Without any parameters supplied openstack.cloud.baremetal_node_info is supposed to gather and return information about all nodes. This is done with a call to cloud.list_machines(), which itself calls self.baremetal.nodes(). Unfortunately this will not return detailed information about each machine as the details parameter of self.baremetal.nodes() defaults to false. This commit rewrites the module to use the baremetal service proxy of openstacksdk to get machines with details and converts them using the `to_dict()` method. Story: 2010017 Task: 45207 Change-Id: Ib06aea5f59f799d6ed81b30264c8a168301c1a9b
-
- Jun 16, 2022
-
-
anbanerj authored
This makes keypair_info compatible with new sdk version Change-Id: I09c75717a620272904b023179c726a19c4bca000
-
- Jun 14, 2022
- Jun 08, 2022
-
-
Arx Cruz authored
This patch do the following: * Update catalog_service to use new openstacksdk * Add catalog_service role to test catalog_service module Change-Id: I6778f5e91cb0ead63cede28af0111d7ffbbf3ab1
-
- Jun 02, 2022
-
-
Sagi Shnaidman authored
Change-Id: I7625d696f6462a7a955008a5c7276f1548acbc2e
-
- Jun 01, 2022
-
-
Jakob Meng authored
Keep jobs with devel branch of Ansible non-voting to prevent Ansible from blocking our Zuul CI gates. Change-Id: I92668b37d42db758e2bae8e791357b72c131a899
-
Rafael Castillo authored
Change If8fda40780050d271c9d869d8959ef569644fd88 unintentionally broke our integration tests. This patch fixes the code and tests to make everything pass again. Change-Id: Ief8d1f9e1eec13a2d435e96a0d70e31a2b4431f2
-
- May 31, 2022
-
-
Zuul authored
-
Rafael Castillo authored
- Change the implementation to use the proxy layer - Update the module to return an aggregate object - Adds a role to test the module Change-Id: I6a98ba8466863b41fc996855fd12cf9f3097abe0
-
Rafael Castillo authored
- Change sdk calls to use proxy layer - Convert sdk results to dict before returning - General refactoring of module - Move recordset specific tests from the dns role to new recordset role - Adds additional tests to recordset role Change-Id: If8fda40780050d271c9d869d8959ef569644fd88
-
- May 27, 2022
-
-
Jakob Meng authored
Change-Id: I7a2867329f65af6330abccb1954bf49b92cd8721
-
- May 25, 2022
-
-
Jakob Meng authored
This reverts commit 4bfa135b [1] because it broke TripleO [2] and possibly other users which were using code from master branch with incompatible SDK releases. We will reapply this safety check later once dust has settled. Ref.: [1] https://opendev.org/openstack/ansible-collections-openstack/commit/4bfa135b20caeb6d6c2717049059ac52fd08e0e1 [2] https://bugs.launchpad.net/tripleo/+bug/1975646 Change-Id: I637f1b7c1b792adf6d3d17a27ccb42179f56a83b
-
- May 24, 2022
-
-
Jakob Meng authored
Alongside OpenStack SDK 1.0.0 we will release a new collection version 2.0.0 which is compatible to OpenStack SDK 1.x.x series only. Code in branch stable/1.0.0 will remain compatible to OpenStack SDK 0.x.x series only. Release candidates for the first major release of OpenStackSDK 1.x.x will be numbered using 0.99.x versions. At Ansible OpenStack modules PTG on 2022-04-07 it was decided to raise an error if one is using a incompatible releases of the OpenStack SDK with our collection. We decided against showing warnings only because they can be missed easily and functionality will be broken but probably hardly detectable when using the wrong SDK. This patch bumps the minimum required SDK versions to 0.99.0, so that an error will be raised when users try to use our collection with an incompatible SDK release, e.g. use code from our master branch with a OpenStack SDK 0.x.x release. Change-Id: I3974deabc516379745794806886352279dc4f4a7
-