Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg:
* Some other sections are obsolete
- Update classifiers
Change-Id: I7e92b3e00e3a7e2cf057071f82eed341cce65bcf
Add file to the reno documentation build to show release notes for
stable/train.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.
Change-Id: I5f65365b1837dec45e86be4f5fd94574009537ec
Sem-Ver: feature
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.
This commit also updates Sphinx version in requirement.txt
Also, switch from oslosphinx to openstackdocstheme
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I1d4071d5154f1f24f57b05a46771f9c243bb56b6
Add file to the reno documentation build to show release notes for
stable/stein.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.
Change-Id: I0b13a84dae029d97b2209ae6b85d11656e3d0144
Sem-Ver: feature
Small cleanups:
* Use openstack-lower-constraints-jobs template, remove individual
jobs.
* Sort list of templates
Change-Id: I041513b43e21a42cdf73211e15400b5de144a1d4
Needed-By: https://review.openstack.org/623229
Added 1.1 microversion support which will display `progress_details`
of the notification.
Note: Referred APIVersion class from python-novaclient [1].
[1]: https://github.com/openstack/python-novaclient/blob/master/novaclient/api_versions.py#L42
Depends-On: I93c1b7d88823e02d9a02855cabb8b22c9e40a7d5
Implements: bp progress-details-recovery-workflows
Change-Id: I9ba787bc8ef9528a7cff5b4c1411dffa454b66d2
All Masakari supported APIs are now available in OSC so it's time to
deprecate python-masakariclient.
This point was discussed during Stein PTG [1] and
masakari weekly IRC meeting.
[1]: https://etherpad.openstack.org/p/masakari-ptg-stein
Change-Id: I02a48f2a3a14ed5588ad64ecaed0b35de7ea0b3e
Presently, "OpenStack-API-Version" is not passed to the masakari
service.
Added support to pass "OpenStack-API-Version" in the request
header.
Change-Id: I7cc2a0c220c3e06aaedeada7a9d87ffee0d0cd8a
If you pass non-existing segment-id to segment delete command, then
it shows `NoneType' object has no attribute 'to_dict` error on the
command console.
This patch fixes the above issue by passing `ignore_missing=False`
parameter to the segment and host delete client API so that it will
raise ResourceNotFound exception. Added unit tests for the same.
Closes-Bug: #1801905
Change-Id: I9aa0d5818cc8669b2f54fdc69ace3db2ea36e96d
If you have installed openstackclient and masakariclient on your
machine, then none of the openstack commands work as it fails to
load the masakari plugin.
Added 'API_NAME' global constants which osc clientmanager expects
during initialization of masakari plugin.
Change-Id: Id33bd45ee1625a23ae43090a45d8b0f9ff2bf56a
Closes-Bug: #1801689
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: If94bb46e1993af57cc75804b8dc7a610dd949c24
Story: #2002586
Task: #24310
Added --os-region-name option so that operator can run masakari
commands against multiple regions. By default, keystoneauth always
tries to connect to the 'public' interface of endpoint so added
--os-interface option as well as in most cases, operator will configure
only "internal" interface.
Co-Author: tpatil <tushar.vitthal.patil@gmail.com>
Change-Id: I7194ed62d3df9760af61a505a43239097549f3d2
Closes-Bug: #1764931
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 do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I317540f293dfb65b3010cafa5aa97e6e9c3c92f9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: Ifb8977e8aa32ae4802bc81bfd4c2516663688fb4
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Change I9b2d140065390d94dda532c39777cf691775e21e has added masakari
commands to openstacksdk and those are available in openstacksdk
version 0.13.0. So the respective sdk resource proxy class implemented
in masakariclient is no longer required.
This patch fixes below:
- Removes the proxy class from masakariclient, and modifies to use the
proxy class implemented in openstacksdk.
- Related bug: #1756047
Closes-Bug: #1756047
Change-Id: I5ecc4f8edc283e16cc7a1bd83a0a21735135199c
The resource2/proxy2 migration is finally done, so resource2/proxy2 will
be resource/proxy in the next openstacksdk release.
In the release after that, Profile is going away as are entrypoints
plugins. This handles fixing most of that in a way that should work with
both old and new.
There are two additional places where it is problematic due to profile
in the API. I've left a TODO note there and will send in a followup
patch to handle those.
Note: The masakari command doesn't work yet with this fix.
Co-Authored-By: Kengo Takahara <takahara-kn@njk.co.jp>
Change-Id: I0c7145c7726e8a5895451ec4e08ae3bf6f324c7a
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: I387f9aa8a44a7bb0908097f799b98990989b18db
As of now segment can be created with only 'auto', 'reserved_host'
recovery-methods.
Added support for rh_priority and auto_priority.
Closes-Bug: #1713971
Change-Id: I88e4145d3e38301ce363c65409c646297b50d01a
This patch re-factors test_segment and test_host modules.
The common code is moved to a private method (_test_take_action)
and called from respective methods to reduce the code footprint.
Change-Id: I1577c66f8a59eb86fb488d8201a0b2da42be5d97
Recently we added python-masakariclient to global-requirements [1]
as a requirement library for masakari-monitors. python-masakariclient
itself is a library and adding upper constraints support to libraries
is slightly more complex than services as the libraries themselves are
listed in upper-constraints.txt which leads to errors that you can't
install a specific version and a constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove python-masakariclient.
This patch is a copy of commit: 78f113780510b741bc974c69eb9b0718cd657c1d
For failing jobs please refer: https://review.openstack.org/#/c/492989/
[1] 1cd2c8da1a6534c23959cd0a4035e7f530471386
Change-Id: I9376ee14ebfb9186c1480276b47939c3ffc30108
python-masakariclient should use os-testr instead of testr as
it is more powerful and provide much prettier output than testr.
This patch also disables the use of PY34 and adds PY35 for in tox
as the gating on python 3.4 is restricted to <= Mitaka in OpenStack.
This is due to the change from Ubuntu Trusty to Xenial, where only
python3.5 is available.
Change-Id: I1029be8dedd8d4530586c2b4b852c7ddc1d03cf7
There are test cases in which there is no assertion in the UT code.
In that test case, the proper test has not been done.
This patch adds assertions to the test cases to test them properly.
Change-Id: Idb7c602e3c73908ad04c587a2e3eb53b0a3e70b2
Closes-Bug: #1668886