* Fix lower-constraints with the new pip resolver
First, remove pep8 dependencies from test-requirements, they're not
needed there and are hard to constraint properly.
Second, bump keystoneauth to the version required by openstacksdk.
* Force updating libgcrypt to work around CentOS/RHEL 8.3 bug
https://bugzilla.redhat.com/show_bug.cgi?id=1840485
Change-Id: I65379a3d1b42e3607118bd785f580604bef7d10d
Versions of hacking from 3.1.0 until 4.0.0 NOT included are supposed
to require a safe version of flake8, so besides normale issues related
to minor version upgrades, we can safely use those versions.
Also forcing pycodestyle versions to be compatible with flake8 installed
by hacking.
Change-Id: I3573f9d360450eaa204f5e951fc9e56592c77af2
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: I214fef0669c63ce3476fe872ab2a91b55120cccf
Paramiko used to be required by ironic, now it's only used by ansible
and should be handled by its requirements.
Simplify the setuptools requirement to use the version from
Bionic as a minimum and pull in the latest exclusions from g-r.
Move PyYAML to requirements since it's used in production code.
Remove test requirements that are not referenced anywhere.
Change-Id: Idc9f1cd66b123c9c9325d7fd7a557475bfdbdd68
Shade is being phased out in favour of openstacksdk, which also allows
to simplify the authentication code.
Change-Id: I14210a720792c3f7f0669330ccb6d2f67d624246
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.
Change-Id: Ie260ace9bc1d8d5bc89e346c5eb4007fbbed2d14
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I219e2386aa957de3aafca7d76f3d0923e5fef1a9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I2707a1f2047f89d9f12ea282cec98411454e1f79
Use stestr for tests.
Also clean tox.ini and add check for flake8 H106:
Don't put vim configuration in source files.
Change-Id: Ia76961a091688372c6df363d5e1dcb29ff0f39bf
A lot of packages in lower-constraints.txt and requirement.txt
must change to suitable version. Which raised fail in following logs:
Validating requirements.txt
Validating test-requirements.txt
Validating lower constraints of requirements.txt
Package u'oslo.log' is constrained to 3.37.0 which does not match the minimum version specifier 3.36.0 in requirements.txt
Package u'paramiko' is constrained to 2.4.1 which does not match the minimum version specifier 2.0.0 in requirements.txt
Package u'setuptools' is used in requirements.txt but not in lower-constraints.txt
Package u'pbr' is constrained to 3.1.1 which does not match the minimum version specifier 2.0.0 in requirements.txt
Validating lower constraints of test-requirements.txt
Package u'sphinx' is constrained to 1.6.5 which does not match the minimum version specifier 1.6.2 in test-requirements.txt
Package u'coverage' is constrained to 4.5.1 which does not match the minimum version specifier 4.0 in test-requirements.txt
Package u'oslotest' is constrained to 3.3.0 which does not match the minimum version specifier 3.2.0 in test-requirements.txt
Package u'openstackdocstheme' is constrained to 1.20.0 which does not match the minimum version specifier 1.18.1 in test-requirements.txt
Package u'doc8' is constrained to 0.8.0 which does not match the minimum version specifier 0.6.0 in test-requirements.txt
Package u'reno' is constrained to 2.7.0 which does not match the minimum version specifier 2.5.0 in test-requirements.txt
Package u'testrepository' is constrained to 0.0.20 which does not match the minimum version specifier 0.0.18 in test-requirements.txt
Package u'testscenarios' is constrained to 0.5.0 which does not match the minimum version specifier 0.4 in test-requirements.txt
Package u'testtools' is constrained to 2.3.0 which does not match the minimum version specifier 2.2.0 in test-requirements.txt
*** Incompatible requirement found!
*** See http://docs.openstack.org/developer/requirements
ERROR
{
"delta": "0:00:09.290821",
"end": "2018-05-23 16:24:17.040257",
"failed": true,
"rc": 1,
"start": "2018-05-23 16:24:07.749436"
}
Change-Id: I5bcc2b3523c30126e88c0396a3ea080a70bb66bd
This change will help fix pep8 issues of all *.rst files
in the project and checking for new files.
Change-Id: Ib06aeb7fa76bd387d76c23bc3f8ecca89332d989
Co-authored-By: Hoang Trung Hieu <hieuht@vn.fujitsu.com>
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)
Change-Id: Ibcb61cc05e59cf201354cefeb717c3e869487174
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: Ifcfdaf8247ed52e57ed8ccb31338eb492df10e0e
When using the 'ironic' Bifrost inventory source to obtain an Ansible
inventory from ironic, if any nodes have multiple ports then the
resulting inventory contains a 'nics' list variable where each item has
the same MAC address.
This change fixes this issue by reinitialising each new_nic variable
such that all items in the nics list do not reference the same dict.
We also introduce a couple of unit tests for the ironic inventory
source - one to test the simple case of a single node with a single NIC,
another to test the broken case of a single node with multiple NICS.
Change-Id: I173fbbdbebafc05536a153dcf59e4b2f37aebdbc
Closes-Bug: #1671014
there are a number of requirements listed in requirements.txt that can
be dropped or moved around, especially since bifrost begins to support
installing/operating ironic on a remote host:
- six - not used directly. Is listed as dependency for os_ironic_facts
module, but so is shade which requires it anyway.
- Jinja2 - not used directly, is a dependency for Ansible
- Babel - not used directly as no strings use i18n in bifrost inventory,
and even when they begin to, this should be done through oslo.i18n instead.
It is also pulled in as oslo.log->oslo.i18n->Babel dependency anyway.
- PyMySQL - not used by bifrost inventory itself, is installed as part of
bifrost-ironic-install role.
- pycrypto - not used by bifrost itself, but will be installed as Ansible
dependency
- PyYAML - although used by bifrost inventory, in real usage we
should better rely on Ansible's dependency on PyYAML for that and use
whatever version Ansible developers declare as required.
Moved to test-requirements for running tests without installing
Ansible.
Change-Id: I8021ec10f82b17590dd86780da6e27589fdea1ba
Since everyone is going to reno, why not bifrost as well.
Adds basic substrate for reno, which may be incorrect, however
that can be addressed as time goes on.
Change-Id: I36caf7682de56917be90bed14e290c5509c7fa86
Use cookiecutter (https://git.openstack.org/openstack-dev/cookiecutter)
to generate config for tox so we can generate docs, run pep8, etc.
Also move CONTRIBUTING.rst to the root of the repository in keeping
with what seems to be the standard location. This move allows us to
easily generate the docs. Also include a tiny fix to allow pep8 to
run cleanly.
Change-Id: Ifbfc6d85c7b02bf4ab989974b491a3a1ae6f0900