Commit Graph

106 Commits

Author SHA1 Message Date
likui 8d98a89b64 update ansible version
Update the version of ansible because ansible-core was updated to 2.13-2.14

[1] https://review.opendev.org/c/openstack/kolla-ansible/+/883525

Change-Id: If3223fe17f9e480a9782c2696ed945d24a8dae5e
2023-08-11 09:10:31 +08:00
Dr. Jens Harbott 4cfaadec59 Move lint requirements to dedicated file
These are not needed for unit tests and we want to avoid conflicts when
running with older python versions that we still test against.

We intentionally duplicate ansible and reno as requirements in order to
avoid having to install more items than necessary.

Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I0ec83c3e4ae38f911b922a3bade65429d91169eb
2022-04-12 08:45:16 +02:00
Maksim Malchuk 3169bdfb95 CI: pin ansible-lint to <6
ansible-lint 6.0.0 introduced requirement to use FQCNs

Change-Id: I3f27c6bcdd200252ebb089f6377294f7e3a911a0
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2022-03-16 13:13:21 +00:00
Radosław Piliszek 7372911a19 Add Ansible 5 aka core 2.12 support
Also bumps the minimum to 4.

Change-Id: Ia373f9cc3bb69eba0288bbb3e497e8cadb7cc4d3
2022-01-07 18:08:55 +00:00
Michał Nasiadka 1b650534c0 Bump up Ansible max supported ver to 4.x
This change bumps up max supported Ansible version
to 4.x (ansible-core 2.11.x) and minimum to 2.10.

Change-Id: I8b9212934dfab3831986e8db55671baee32f4bbd
2021-09-23 10:45:31 +00:00
Michał Nasiadka 1ccccbcf0a Bump up supported Ansible version to 2.10
Min version stays as 2.9

Change-Id: I7ec8c5eb36757248c9aa016dc7d4e495ec5bb635
2021-03-08 11:40:31 +00:00
likui ea348eafe2 Pin ansible in test-requirements
so that it matches what is tested otherwise.

Change-Id: I4eef9f89f1cd262ca2a96c20079756f5f1499ad3
2020-12-11 19:55:05 +00:00
Pierre Riteau c5c6d995d3 Bump minimum Ansible version to 2.9
Change-Id: I5befc72a4894d625ca352b27df9d3aa84a2f5b2c
2020-09-23 17:48:01 +02:00
Radosław Piliszek a90aa3e443 Skip broken ansible-lint
See [1].

[1] https://github.com/ansible/ansible-lint/issues/969

Change-Id: I5ac8f20a2157d880b63a4c70bf6c782d06014f41
2020-08-19 09:20:11 +02:00
Michal Nasiadka d8f31e0a5e CI: Add ansible-lint to tox
* Reworked tox pep8 into linters job, that runs:
  - pep8
  - bandit
  - bashate
  - doc8
  - yamllint
  - ansible-lint (validate-all-files.py + ansible-lint)

* Skip E701 - missing galaxy_info in meta and E602 see [1].
* Skip E301 and E503 - followup later in a separate change
* Added ansible-role-jobs to zuul.d/project.yaml which will run
  openstack-tox-linters job in check queue
* Fixed remaining style issue
* Made tox and docs reference the new env for linters
* Dropped pype environment (not supported)

[1]: https://github.com/ansible/ansible-lint/issues/457

Change-Id: I494b4b151804aac8173120e6c6e42bc2fdb00234
2020-05-17 17:02:38 +02:00
Ghanshyam Mann 7bb397a8eb Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I4b11eaad9eac9985342a00e583f16e379a2ad04a
2020-05-12 19:26:30 -05:00
Will Szumski 4fcbdd7740 Stop mocking ansible modules globally
This causes non-local side effects that are hard to track down. E.g:

--- import errors ---
Failed to import test module: tests.test_merge_yaml
Traceback (most recent call last):
  File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/home/will/code/kolla-ansible/tests/test_merge_yaml.py", line 19, in <module>
    from ansible.errors import AnsibleModuleError
ModuleNotFoundError: No module named 'ansible.errors'; 'ansible' is not a package

This `'ansible' is not a package` message occurs because ansible is a Mock.

Depends-On: https://review.opendev.org/#/c/726768/
Change-Id: Iddbdd3d855daadbf12536cc990559e6b8e123051
2020-05-11 13:47:12 +01:00
Radosław Piliszek 234272eb64 Cleanup py27 support
Removes and/or replaces all mentions of py27.

Cleans up obsolete requirements and their lower-constraints.

Separates test-requirements.

Makes lower-constraints pass outside of CI (MarkupSafe).

Adds FIXMEs about some hacky Mocks that may misbehave.

Change-Id: Ifc090bf3c1db17d8542ee591c91e8225a597bfe2
2020-04-26 12:16:44 +02:00
Andreas Jaeger 454489762c Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
during installation.

Change-Id: I7ef5ac8a89e94f5da97780198619b6facc86ecfe
2020-04-04 17:00:17 +02:00
Mark Goddard ef61c022ce Remove python clients from test-requirements.txt
These should not be necessary.

Change-Id: Ide02b7da2a2a2d528c171772f5552f4529ffe880
2019-10-23 13:27:45 +01:00
confi-surya b41309ef16 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Ie5e5417a1d8481bb59d516a320bd7cc1dd89591e
2018-12-27 04:44:49 +00:00
Vu Cong Tuan 47d88430ce Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I63079f352ff36dda4f3f64a8681431a319791f0e
2018-07-24 14:18:20 +07:00
chenxing 67675a5740 Remove openstackdocstheme from test-requirements.txt file
The openstackdocstheme is included by ``doc/requirements.txt``. We
move all doc requirements to ``doc/requirements.txt``.

Change-Id: I3e3acf07826a496b3d8514941afa908624fb74f4
2018-06-08 18:29:44 +08:00
confi-surya dbf754655f Following the new PTI for document build
For compliance with the Project Testing Interface [1]
as described in [2]

[1]
https://governance.openstack.org/tc/reference/project-testing-interface.html
[2]
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

doc8 command is dropped from docs tox envs.
So this affect nothing and run in PEP8.

Related-Bug: #1765348

Depends-On: Icc7fe3a8f9716281de88825e9d5b2fd84de3d00a
Change-Id: Idf9a16111479ccc64004eac9508da575822a3df5
2018-05-21 10:51:59 +01:00
ghanshyam ccd542f7ea Gate fix: Cap hacking to avoid gate failure
hacking is not capped in g-r and it is in
blacklist for requirement as hacking new version
can break the gate jobs.

Hacking can break gate jobs because of various
reasons:
- There might be new rule addition in hacking
- Some rules becomes default from non-default
- Updates in pycodestyle etc

That was the main reason it was not added in g-r
auto sync also. Most of the project maintained the
compatible and cap the hacking version in
test-requirements.txt and update to new version when
project is ready. Bumping new version might need code
fix also on project side depends on what new in that
version.

If project does not have cap the hacking version then,
there is possibility of gate failure whenever new hacking
version is released by QA team.

Example of such failure in recent release of hacking 1.1.0
- http://lists.openstack.org/pipermail/openstack-dev/2018-May/130282.html

Change-Id: I05790c5f946a4127fe6c8d9867cc618cb83d67fb
2018-05-09 01:01:53 +00:00
OpenStack Proposal Bot 76f1ad41df Updated from global requirements
Change-Id: Ib440c05aa88fcacbe64aadc6e1f9fd38c47d2d57
2018-03-15 07:04:48 +00:00
OpenStack Proposal Bot b066eb9eb8 Updated from global requirements
Change-Id: I836b0d6e915c32074d8062b5914277497ec4f444
2018-03-14 05:34:06 +00:00
OpenStack Proposal Bot 27b4ce4afc Updated from global requirements
Change-Id: Ie6fd05b52592ad48fd7acbd6b7e9a6f48ffd1150
2018-03-10 13:17:44 +00:00
OpenStack Proposal Bot 1429ddbdc6 Updated from global requirements
Change-Id: Ia9a7b76a9db4a149d9e0df16ac576ecd706df22b
2018-03-06 12:48:47 +00:00
OpenStack Proposal Bot 843937bbdc Updated from global requirements
Change-Id: If0f42f15d8a92ce77ec7988bc04f795d795e2d89
2018-01-24 00:57:53 +00:00
OpenStack Proposal Bot f0bc512815 Updated from global requirements
Change-Id: I6cf2fce6afbaea4bb8c63c1dd0acc61bf1cf477d
2018-01-17 20:37:50 +00:00
OpenStack Proposal Bot 790179e5c2 Updated from global requirements
Change-Id: I68a1f61af30f5cc3b0604fb988cf773107891b11
2018-01-16 04:10:19 +00:00
OpenStack Proposal Bot 874ca4db4c Updated from global requirements
Change-Id: Ica929fd8d3ef1972fec0daeb4ae2c00b9a9be3a0
2017-11-16 11:07:43 +00:00
OpenStack Proposal Bot d75ff332e8 Updated from global requirements
Change-Id: I89264d20cf97bab69ac6fb970c0a770a3b53bfe0
2017-09-26 03:06:52 +00:00
OpenStack Proposal Bot 9b5a01336f Updated from global requirements
Change-Id: Ia70a5296c557ec54cdb47a28b163c9365d03506e
2017-09-13 12:52:12 +00:00
OpenStack Proposal Bot 0a1a6f2a1d Updated from global requirements
Change-Id: I8d097af4a75bdc4225e0df04bfbdc555d1529aae
2017-09-12 14:02:52 +00:00
OpenStack Proposal Bot 582e5235e0 Updated from global requirements
Change-Id: I87ab7673dd74d9275dc043eb556ce980d353b810
2017-09-06 03:22:47 +00:00
OpenStack Proposal Bot 2cd9ae0fe4 Updated from global requirements
Change-Id: If20101daba52df4a41abe5e4606b317761bc936b
2017-07-27 19:11:23 +00:00
OpenStack Proposal Bot f68aa1d906 Updated from global requirements
Change-Id: Iaa85ff659906b438ef80efc70b51ee8b82755ddd
2017-07-14 04:59:46 +00:00
ZhongShengping a643acbf62 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use the
openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: Id63951348211bdcb2b189455968bdfed40857815
2017-07-02 15:54:05 +08:00
OpenStack Proposal Bot a6d90dd480 Updated from global requirements
Change-Id: I6bb90e40a4661663b2386506463dce4fb59018a8
2017-06-27 17:44:25 +00:00
OpenStack Proposal Bot ff1087fac1 Updated from global requirements
Change-Id: Ife8a3f6acee02c4af965a044cba2074f36223cc3
2017-06-06 01:49:08 +00:00
OpenStack Proposal Bot a62eb96c8f Updated from global requirements
Change-Id: I7e4c7fea9976dc854c212b0a2b79234fa73c1d1b
2017-05-22 15:48:05 +00:00
OpenStack Proposal Bot a3991939a7 Updated from global requirements
Change-Id: I14134cb07f7ca24ebb7e1c9a38f2d4f77cab3d73
2017-05-15 13:39:38 +00:00
Jenkins ad7c7f1bb2 Merge "Remove graphiz from test-requirements.txt" 2017-04-20 14:11:56 +00:00
Jenkins d0cc2cc154 Merge "Remove python-barbicanclient from test-requirements.txt" 2017-04-20 14:09:38 +00:00
Jenkins 49d0b205d8 Merge "Remove python-swiftclient from test-requirements.txt" 2017-04-20 14:09:02 +00:00
Mohammed Naser 034a0f5869
Remove graphiz from test-requirements.txt
With the split of kolla and kolla-ansible, it seems that this
dependency was carried over as it is used when generating
graphs for build sequences.

This patch removes it as the build process is not part of this
project anymore.

Change-Id: I7fd59fe703c2f06c003c8acda15f2a06d3fd7f3f
2017-04-06 16:55:44 -04:00
Mohammed Naser 85b9da4577
Remove python-swiftclient from test-requirements.txt
It seems that it was added back in Liberty where an effort was
started to setup functional tests, however it is not used at the
moment.

This patch removes it from the list of dependencies.  With time,
Tempest should handle all integration checks.

Change-Id: I9e1990e93abc6e3001f499ccc8d40b6104ed2d93
2017-04-06 16:53:20 -04:00
Mohammed Naser d6bd9e6b3c
Remove python-heatclient from test-requirements.txt
It seems that it was added back in Liberty where an effort was
started to setup functional tests, however it is not used at the
moment.

This patch removes it from the list of dependencies.  With time,
Tempest should handle all integration checks.

Change-Id: Ieb3a000eda58dcb642cbd099273c91ad355bfb85
2017-04-06 16:50:49 -04:00
Mohammed Naser c014d69b9b
Remove python-barbicanclient from test-requirements.txt
It seems that it was added back in Liberty where an effort was
started to setup functional tests, however it is not used at the
moment.

This patch removes it from the list of dependencies.  With time,
Tempest should handle all integration checks.

Change-Id: I9dddd470db9dc42a6fa7dbe138c0c6189d8afdd7
2017-04-06 16:48:10 -04:00
OpenStack Proposal Bot 2e63113efb Updated from global requirements
Change-Id: Ie2ff57cb04d5f2331d22838d9a627900e5b1f8a2
2017-03-29 18:43:05 +00:00
OpenStack Proposal Bot 6f6186a656 Updated from global requirements
Change-Id: If087141fbbef3339f49193cd1558e0d9a246b99d
2017-02-15 20:46:37 +00:00
RobiJoe 566ef56167 Build deploy guide files and tox environment
* This patch moves the tox environment and deployment
guide placeholder files introduced in https://review.openstack.org/#/c/422931
from the kolla/ repository to the kolla-ansible/repository
* Remove or add content as needed

Change-Id: I10cf4b5baaf7f7fed7df800194a0c326372a22fb
2017-01-28 09:33:19 +10:00
Surya Prakash Singh 7b36b042dd Cover environment for kolla-ansible
Enabled the cover environment for kolla-ansible in tox

Change-Id: Ic9f0dbc14ff9f4ef3d82bd06eb58fc145cb121d9
Closes-bug: #1655948
2017-01-16 11:02:20 +00:00