97 Commits

Author SHA1 Message Date
Andreas Jaeger
06dc01bcce Cleanup py27 support
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
2020-04-04 16:57:44 +02:00
Ghanshyam Mann
719d604667 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-masakariclient is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I299939dd0a1a0d0726574d6f32186d4ca818437d
2020-02-02 01:18:25 +00:00
Zuul
6cf24b423c Merge "Update master for stable/train" 5.6.0 2019-09-30 02:28:30 +00:00
6402965164 Update master for stable/train
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
2019-09-20 17:41:04 +00:00
Shilpa Devharakar
423b70dce3 Update operator guide documentation
Updated operator guide documentation for
1. added indexing to list sections appropriately
2. populated CLI section using 'cliff.sphinxext' extension
3. removed 'Module Index' section since displaying 404

Change-Id: I17061a1e5456d027a555dc94dc8ac1a6dd802421
2019-09-20 08:28:24 +00:00
Zuul
1702880902 Merge "Replace git.openstack.org URLs with opendev.org URLs" 5.5.0 train-em 2019-09-12 02:30:47 +00:00
Corey Bryant
ab6d47a732 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I968b523f20edb5e9900c99bd919a9a5ede324eac
Story: #2005924
Task: #34221
2019-08-30 15:35:13 +05:30
akhiljain23
19c1d1a683 [Gate Fix]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.

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
2019-08-28 14:23:28 +00:00
jacky06
4f73d5cbe9 Replace git.openstack.org URLs with opendev.org URLs
1. Replace git.openstack.org URLs with opendev.org URLs
2. Remove unncessary "=="
3. Update some URLs to latest

Change-Id: I57998a8923473eb4e139b5fb29f340951478e685
2019-06-13 16:55:39 +08:00
OpenDev Sysadmins
2de25b5f64 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:29:19 +00:00
d7b15fccd7 Update master for stable/stein
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
2019-03-18 14:52:56 +00:00
Zuul
96613b9b05 Merge "Use template for lower-constraints" 5.4.0 stein-em 2019-03-08 08:18:03 +00:00
Zuul
1fbf629bf0 Merge "Update the outdated URL in HACKING.rst" 2019-03-08 08:15:40 +00:00
Zuul
fa680f347a Merge "Add Python 3.6 classifier to setup.cfg" 2019-03-08 08:09:50 +00:00
samp
4d5def0a1f Use template for lower-constraints
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
2019-03-08 08:47:53 +01:00
openstack
2475bf1ba2 Display progress_details of the notification
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
2019-03-08 07:20:00 +00:00
bhagyashris
2da44c7b1f Deprecate masakari CLI
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
2019-03-07 11:57:26 +09:00
Zuul
4f88d41ed3 Merge "Add api_version support" 2019-02-26 04:25:39 +00:00
shilpa.devharakar
9d10469ddc Add api_version support
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
2019-02-21 07:21:44 +00:00
openstack
6257e96d6f Run all jobs by default using python3
This patch implements the community wide goal to run all jobs by
default using python3.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ie819fff9c792ea1b82262a8ec67caccf24592f8d
2019-02-19 08:35:48 +00:00
Zuul
60dfc77868 Merge "Change openstack-dev to openstack-discuss" 2019-02-13 04:55:25 +00:00
Zuul
44bb59f0e7 Merge "Update the hacking to latest" 5.3.0 2018-12-11 04:33:53 +00:00
jayashri bidwe
e334d93583 Delete segment and host shouldn't ignore not found error
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
2018-12-07 14:23:15 +05:30
ZhijunWei
ebd20ce193 Update the hacking to latest
Change-Id: I4fdae4df2b5c36fc3611c8bad4482c6019428726
Closes-Bug: #1798156
2018-12-06 15:20:30 +00:00
sunjia
3b1f5957f8 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I1ab666b21770a2f33e11b9deea16d8e1defcc5ba
2018-12-03 21:44:59 -05:00
qingszhao
5f5769658f Add Python 3.6 classifier to setup.cfg
Change-Id: I1626fafbec9193234bde80f609f6a4bee633c00c
2018-11-30 07:00:57 +00:00
tpatil
71ce1fbb4a Fix osc command issue
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
2018-11-06 16:19:46 +09:00
Zuul
dd72283e1e Merge "Add --os-interface and --os-region-name options" 2018-10-02 05:06:21 +00:00
melissaml
b1ca7de86a Update the outdated URL in HACKING.rst
Change-Id: I5ff13e021c52f6d4863a99ac8fe54721b6ffe0c4
2018-09-25 00:35:20 +08:00
Nguyen Hai
4ff13d9b9f import zuul job settings from project-config
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
2018-08-17 19:21:03 +09:00
Kengo Takahara
8b6d55ff01 Add --os-interface and --os-region-name options
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
2018-08-15 14:02:05 +09:00
930d448f30 Update reno for stable/rocky
Change-Id: I5be7cbe607d0bc0c4e91c00f82ef426ccfce0e53
2018-07-26 13:49:35 +00:00
Zuul
319bfb3fb9 Merge "add lower-constraints job" 5.2.0 rocky-em 2018-07-25 15:28:24 +00:00
Doug Hellmann
4d7d0881ea 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 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>
2018-06-06 17:58:18 -04:00
Doug Hellmann
84055649b0 add lower-constraints job
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>
2018-06-05 15:34:43 +09:00
Kengo Takahara
6d61f0a103 Remove masakariclient's proxy class
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
5.1.0
2018-05-16 02:11:04 +00:00
OpenStack Proposal Bot
ac2fa48113 Updated from global requirements
Change-Id: Ia9eb7086a8781e5dd1f3c748e5dd4cb83eef3826
2018-03-23 01:48:22 +00:00
OpenStack Proposal Bot
e09f680c54 Updated from global requirements
Change-Id: I7df0b9baac33512345ee88847e3f04703910327e
2018-03-13 07:26:46 +00:00
Zuul
14dce21f82 Merge "Update for upcoming openstacksdk changes" 5.0.0 2018-02-23 08:43:24 +00:00
Monty Taylor
1b55986c23 Update for upcoming openstacksdk changes
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
2018-02-23 15:58:39 +09:00
OpenStack Proposal Bot
569b3c9d80 Updated from global requirements
Change-Id: I641a06aa5825279f268c3c820d137c969bc21eb3
2018-01-18 03:29:05 +00:00
Andreas Jaeger
61dcbfbcb6 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: I387f9aa8a44a7bb0908097f799b98990989b18db
2017-12-02 17:00:12 +00:00
nehaalhat
f36c1c20d2 Add support for auto_priority, rh_priority recovery method
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
2017-08-31 11:13:17 +05:30
nehaalhat
d4725667db Re-factor test cases to reduce code
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
2017-08-21 18:47:41 +05:30
Dinesh Bhor
32eb12e676 Fix failing gate jobs by fixing constraints support
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
4.0.0.0rc1 4.0.0.0rc
2017-08-11 20:22:05 +05:30
Jenkins
39b5eae33e Merge "Remove inproper comment for APIs." 2017-08-10 16:07:35 +00:00
Dinesh Bhor
7e21abfc1d Use os-testr and add PY35 support
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
2017-07-26 16:17:30 +05:30
Kengo Takahara
445aab9cdb Add assertions to UT code
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
2017-06-21 19:34:15 +09:00
ericxiett
c12c72faec Remove inproper comment for APIs.
Remove duplicate 'POST' APIs. Add 'PUT' and 'DELETE' API.

Change-Id: Idc21bc030a189cbd11a7e6e1f6b3b8c8056a88ac
2017-06-13 16:34:52 +08:00
Jenkins
bd4c9251f7 Merge "Enable to specify name and ID when operating segments and hosts" 2017-03-28 01:47:07 +00:00