Commit Graph

39 Commits

Author SHA1 Message Date
Takashi Kajinami 04e053c5cb Retire PowerVMStacker SIG: Remove Project Content
Depends-on: https://review.opendev.org/c/openstack/project-config/+/909535
Change-Id: Icb1894348ef7b1602a3181dad3162df6d6ad53af
2024-02-20 22:52:00 +09:00
Ghanshyam Mann 2ddd028c6e Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I41c1f2b620a06298a0976d3f52faf65d74d78cae
2019-06-13 08:01:30 +00:00
amansi26 98630ef89e Fixing UT failure.
Change-Id: Ia733c160da57ab07149c48a3b886505c5c557d7c
2019-06-13 01:00:22 -04:00
Matthew Edmonds 7c47d01bb2 More py3.x support
The Stein supported runtimes proposal [1] has chosen py36 over py35
due to the communities move to testing on Ubuntu 18.04, where py36
is the default runtime. We update tox.ini and setup.cfg accordingly.

We also add a py37 option to the tox.ini to facilitate future-looking
tests per the resolution on keeping up with Python 3 releases [2].

The py35 option will eventually need to be removed from tox.ini, but
this keeps it for now in order to allow time for folks to transition.

[1] https://review.openstack.org/611080
[2] https://review.openstack.org/613145

Change-Id: Id77fbd969bee5a6f3636be13362a2b89cb5888e8
2018-12-11 13:06:43 -05:00
Matthew Edmonds e046d40963 tox: Don't create '.pyc' files
Our tox.ini was trying to use find but failing because it was not
added to whitelist_externals. Rather than correct that, we can
remove it entirely by adjusting tox to no longer create '.pyc'
files, so we no longer have to delete them.

Nova previously did this [1] to improve performance, but then had
to revert it [2] because of a tox bug. That bug has since been
fixed [3], so we should be ok to do this.

[1] 0d6d1616b9a05f1c3e1e34cb235fee327196d423
[2] 233160644f4f0a17177fffe8a1e6db1341e61ad4
[3] https://review.openstack.org/#/c/582392/1/tox.ini@28

Change-Id: I11cbf81160ba2eeefcce19ed25930c39e17449b7
2018-07-25 11:07:15 -04:00
Eric Fried fa64a93c96 Use tox 3.1.1 and basepython fix
tox 3.1.1 fixed https://github.com/tox-dev/tox/issues/477 which
mishandled the basepython directive. Require this version and remove the
workarounds.

http://lists.openstack.org/pipermail/openstack-dev/2018-July/132085.html

Change-Id: Iccc0284c725dc5dea18d1e30cc35bd185119535d
2018-07-12 16:36:27 -05:00
Matthew Edmonds 1013c8c5f2 Fix coverage job
The coverage job was only looking at nova, where we have very little
code. This updates it to also look at nova_powervm.

Change-Id: Ibf174024934f72edab9835e8a594d7fc6e580039
2018-07-05 15:57:38 -04:00
Matthew Edmonds 4134cec6f6 Fix requirements and lower constraints
We were using the lower-constraints.txt file from nova, but this
was masking problems. The check job doesn't seem to work properly
when the lower-constraints.txt file is in a different project, not
running at least some of its tests. This was seen when copying the
same file into nova-powervm cause the job to start complaining.

This copies nova's lower-constraints.txt file into nova-powervm
and then addresses the aforementioned issues by:

1) removing amqp from requirements.txt. We do not appear to
really require this.
2) adding bashate to lower-constraints.txt. Nova does not require
this but we do.
3) adding python-swiftclient to lower-constraints.txt. Nova does not
require this but we do. Also moved python-swiftclient from
test-requirements.txt to requirements.txt since our usage is not
limited to tests.
4) removing python-subunit from test-requirements.txt. We do not
appear to really require this.

Change-Id: I100181821ed4ffe622ed5ebeff403093e9cc32b8
2018-07-02 17:56:27 -04:00
Matthew Edmonds 4db7cda136 Move to stestr
Follows nova's lead in moving from os-testr to stestr.

Change-Id: I048165d659d9cb194ee27072729076647dfc0710
2018-06-29 17:44:41 -04:00
Stephen Finucane b0256a71b2 docs: Modernize build process
Update the state of the art build process (TM), featuring an all new
theme, new requirements and much more.

Change-Id: I5d8724786361a820016cc02d8985f2438a1f9d57
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2018-06-29 16:21:54 +01:00
huang.zhiping 66e4917b60 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We can't set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36 due to https://github.com/tox-dev/tox/issues/425

Change-Id: I9eca1cc89f809a219636278bb72b65d61657db75
2018-06-11 17:44:32 +00:00
Doug Hellmann f52018bad8 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Add openstack-tox-lower-constraints job to the zuul configuration.

The nova-powervm project uses Nova's lower-constraints.txt file; it
doesn't need its own.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I637abb9624bf237ef2e1e70bf40bb1d64e77d354
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-05 14:22:05 +00:00
Matthew Edmonds 6f195f9451 Use py3 for pep8
Nova is moving to py3 for pep8 [1] to avoid issues like [2] and
we should do the same.

[1] https://review.openstack.org/#/c/558648
[2] https://review.openstack.org/#/c/557633

Change-Id: Ied9fcc96d4ddb154eb377c5a24d58ed4bc6247a9
2018-04-04 12:20:18 -04:00
Andreas Jaeger ce0d45daf4 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I05b7525dc0c39e703e1e8fa091d77c87d338673b
2017-12-02 17:03:14 +00:00
Matthew Edmonds b4eed72d1c force python2.7 for tox pep8
tox -re pep8 isn't working for systems that use python 3. Force tox
to use python2.7 for pep8.

Change-Id: I61468c3e3ab673dc84248dc72d1085c83ee57bc0
Closes-Bug: #1708163
2017-08-02 08:54:49 -04:00
Eric Fried 6cf382b960 Install nova test requirements for tox
Because nova-powervm follows nova at a development level, we have to
install the latest master branch, so we can't put nova in our
[test-]requirements.txt.  Instead, we put it in our tox.ini testenv
deps as a git clone and install.  This pulls in nova's requirements.txt,
but not its test-requirements.txt.

Change [1] moved nova's wsgi_intercept dependency from requirements.txt
to test-requirements.txt; but this didn't cause problems yet because
wsgi_intercept wasn't actually being imported in a path that mattered to
nova-powervm testing until [2].

This change set explicitly adds nova's test-requirements.txt, pulled
from the master branch, to the nova-powervm testenv deps.

[1] I0d8325e12ed7d5d022877782d6aa4ba4055c30db
[2] I03b3abea152d45575ac6dde22ccbe32b6acb4646

Change-Id: I9f4263f22fb73bf694bf0d2f766d1b921c1f2704
Closes-Bug: #1707951
2017-08-01 10:41:55 -05:00
Arundhati Surpur fcd6f1e0b8 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added
In tox.ini the python 3.5 is added

Change-Id: Ie2571e8778533e7f7601293ee2cfdac4acf8780e
2017-07-20 17:10:18 +05:30
Adam Reznechek c6d94844b8 Add tox_install.sh for pypowervm upper-constraints workaround
With the recent addition of pypowervm to upper-constraints, installs
of nova-powervm are now by default enforcing the version set there.
Since the master branch of nova-powervm depends on the develop
version of pypowervm, this causes installs to fail.

This changeset adds a wrapper script (tox_install.sh) that edits
the upper-constraints file and replaces the pypowervm version pin
then sets pypowervm to be installed from source instead.

Change-Id: Id8e117bc6a7b1b224a9e86e9b29821627adb51db
2016-11-16 18:05:56 +00:00
Drew Thorstensen 986e9ebb24 Use upper constraints
The tox.ini needs to make use of the upper constraints.  Failure to do
so is causing us to hit known issues with newer versions of packages.

Change-Id: I065adf88c599ad91af3f29d02ccd225f5d07ffa9
Closes-Bug: 1637938
2016-10-31 09:33:38 -04:00
Drew Thorstensen 6c6c355705 Fix code for new pep8 rules
This change updates the code to comply with a new pep8 rule to defer the
string concatenation to the logger instead of doing it inline.

It also adds an ignore rule for conf options being outside of nova.conf.
Given that we are an out-of-tree driver, we can not put our conf options
in tree.  This is a temporary work around until the powervm driver is in
tree.

Change-Id: I8fe77e8250a2b59ae842cdacfa48baf66356ee50
Closes-Bug: #1632441
2016-10-11 16:50:08 -04:00
skseeker 9b35519f76 pep8 error resolved
Removes the H405 pep8 exclusion.

Change-Id: I9cea7c3b1b05ed737f6dd65853a6247a8e58ca17
2016-02-10 12:36:30 -05:00
Kyle L. Henderson 02b5c9f0d0 Port over pretty_tox.sh from Nova
Nova has a bash script that uses the ostestr package to format
the output from tox in a 'pretty' format.  It makes it much more
readable.  pretty_tox.sh is pulled from Nova as-is and enabled
in tox.ini.

Change-Id: Ib90791b1333044c98e20444953d7ccab21cd62ba
2016-02-08 08:28:54 -06:00
Kyle L. Henderson 18252f3f96 Initial seed of hacking rules
Change-Id: I17ccd8de73c9c5452897cc6f54fddcf1911971e0
2016-02-02 11:00:15 -06:00
Drew Thorstensen 07e6073f7b Update tox.ini flake8 rules
This change set brings our flake8 ignore rules in line with the core
nova team.  nova-powervm should always be a minimal subset of flake8
ignore rules to the broader nova project.  This change set removes some
old ignore rules that nova had, that they have removed in the past
couple of months.

Change-Id: I82cdcbc79dac7254f768e110d48c66d63274fc93
2016-01-22 08:37:46 -05:00
adreznec c86e558fd1 Change pypowervm repo location
Update the pypowervm repo location in code and docs
for the pypowervm->powervm github org rename

Change-Id: I95a5593af76ed0b164ed60a9d14b82f3a808078a
2015-11-18 14:49:48 -06:00
Drew Thorstensen 9b4123a11d Switch to develop branch for pypowervm
The master branch of nova-powervm should be paired to the 'develop'
branch of pypowervm.

Other stable branches (or release candidates) will point to version
levels that are published to PyPi (or to stable branches).

Change-Id: I963e20da759eeede6b1f115d15fdc276b3555538
2015-11-04 08:43:38 -05:00
Jenkins de2c6bed44 Merge "Add base devstack plugins support" 2015-10-30 02:32:56 +00:00
Adam Reznechek ecc4100bf1 Add base devstack plugins support
Add support for installing nova powervm through the devstack plugins
infrastructure. This allows you to simply enable the plugin in a
devstack localrc, provide any non-default config, and run stack.sh
to configure/install it.
- Added plugin files
- Added README and example config
- Added bashate to tox test environments for scripts

Change-Id: I3dfed189e60b0aa63fc9029e3f56f2d8b7785bd3
2015-10-29 21:43:01 -04:00
Kyle L. Henderson ded3c4b7ca Add nova-powervm translation domain
Since nova-powervm is not in tree with nova, it can't use nova's
translation domain.  This change introduces i18n.py and the
nova-powervm domain.

Change-Id: I9d3565e6ad1737629350fe02c7a41d56b0cf401a
2015-10-29 13:26:10 -05:00
adreznec 02f9f51cef Update documentation framework, add base devref details
- Add base support for devref generation to the project
- Add basic level of documentation, with TODOs for future updates
- Generate as part of tox run

Change-Id: Ic7a07ba7de0090383c652503453bafcd422a3eaa
2015-08-25 08:42:21 -05:00
Kyle L. Henderson f68cd4fa2f Fixes for Python 3
Nova is working on support for Python 3.4. via
https://blueprints.launchpad.net/nova/+spec/nova-python3

This changeset moves from py33 to py34 in the tox.ini file to be
inline with Nova. It also incorporates changes produced from the
'sixer' tool run with 'all'.

sixer can be found at:
https://pypi.python.org/pypi/sixer

At the present time, the py34 environment does not run
successfully because it pulls in portions of Nova that have not
yet been fully converted to Python 3.

Change-Id: If84df3017a722d0ad3546e81f97e67f1a07a763f
2015-06-04 10:32:19 -05:00
Adam Reznechek 49fab10357 HEAD cleanup of repository before open sourcing
Removal of sensitive data from the HEAD before cleaning history.

Change-Id: I672d8fe3d86980e85d6bd42f86c12c62375d44b3
2015-01-26 13:56:39 -06:00
Drew Thorstensen 4cd7ffff4a Update nova-powervm to use new pypowervm path
Updating the project to refer to an updated pypowervm path.

Change-Id: I6785435f660060e4c7773ec7efd551050129b9c3
2015-01-16 15:42:20 -06:00
Drew Thorstensen fce316c42b Resolve concurrency issue with Tox
The swap to oslo for concurrency actually stopped the tests from running
properly.  This swaps back so that the tests are run once again.

Change-Id: I3ce060a2183820244aa5b4749e97c17c04a498a3
2014-11-13 08:28:51 -06:00
Drew Thorstensen 02fe8ddae5 Import python-powervm into nova-powervm
This change set suppoprts bringing in the python PowerVM REST API
library for initial use within nova-powervm

Change-Id: Ie8d53f86bd3faa9b3819adbb9b9f4f8d3e97bfd4
2014-10-31 10:09:28 -05:00
Kyle L. Henderson 2e5dfe7881 Get 'cover' working and remove pypy
Change nova-powervm to nova_powervm so 'cover' works.
Added a test case to improve coverage.
Removed pypy from environment list.

Change-Id: I337f2e8b762349f16ec8e6cd9489688970969486
2014-10-29 16:55:50 -05:00
Drew Thorstensen 4be982bf3c Initial scaffold of PowerVM virt driver
Initial driver that wraps the 'fake' implementation for PowerVM.

Also updates the tox.ini to match more of the pep8 rules that Nova
utilizes.

Provides an initial test case to validate that the driver can be
initialized.  This requires updates to the test framework to pull
in further dependencies of Nova.

Change-Id: I59407d14531635be567d2eea5d7e26ea895b5093
2014-10-28 19:51:13 -05:00
Drew Thorstensen eaad2c22e1 Updated Python Versions
Target the Python 2.7 and Python 3.3 versions to match the community
strategic levels.

Change-Id: I38f646a095ba1b2f5b898fffe6c6a3b53d7b0715
2014-10-21 15:27:42 -05:00
Drew Thorstensen 095e1c183b Initial Load of Nova PowerVM Project
Initial work to enable the Nova PowerVM project in git.

The work done here provides:
 - .gitignore - Indicate which files not to track within Git.
 - .gitreview - Input to the git-review command on how to send to
                Gerrit.
 - .testr.conf - Conf file input for the testr command (UT)
 - CONTRIBUTING.rst - Information on how to contribute.
 - HACKING.rst - Information on what needs to be done for updates.
 - LICENSE - The license for the project
 - README.rst - Information on what this project is.  Currently this is
                the blueprint.
 - openstack-common.conf - Required openstack configuration for all
                           projects
 - setup.cfg - Input to the setup.py on how to execute certain actions.
 - setup.py - Used for build of the project.
 - requirements.txt - Required packages (and levels) to run the code.
 - test-requirements.txt - Required packages (and levels) in addition
                           to the requirements, that indicates what is
                           needed to run the UT.
 - tox.ini - The input for the tox commands.

In addition, a base set of packages for the agent and unit tests were
loaded in.

Change-Id: Iaa186e449e7e0f75dc06a033d024a23d7faa0267
2014-10-21 15:03:58 -05:00