Commit Graph

67 Commits

Author SHA1 Message Date
OpenDev Sysadmins 45c2e8c8df 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:20 +00:00
shilpa.devharakar 287d3e2813 Fix masakari connection issue
From openstacksdk version 0.11.1 onwards, there is no way
you can add service to the connection. Hence we need to monkey
_find_service_filter_class method from sdk to allow
to point to thee correct service filter class from masakariclient.

Solution provided here is not going to work in sdk 0.9.19 and
0.10.0 versions. Because service descriptor is not supported
in 0.9.19 and 0.10.0 sdk versions and profile parameter doesn't
work correctly during connection initialization.

Also solution provided here is not going to work in sdk 0.13.0
and above, it will still fails with below error
"'Connection' object has no attribute 'ha'"
this is because 'Connection' object expecting instance_ha not ha

Co-Author: tpatil <tushar.vitthal.patil@gmail.com>
Depends-On: I24ec493f3333a5b3f6bfed9395c921fb28500065
Change-Id: Ib86d560a302a27640b6f41c78022cd7b2e8765c9
Closes-Bug: #1779752
2018-10-15 13:55:42 +09:00
Nguyen Hai 63009195d8 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: Ie00b9cd60060bcab73c0d9b173df862da0a28941
Story: #2002586
Task: #24310
2018-08-17 19:21:54 +09:00
Zuul 51b084b647 Merge "Update reno for stable/queens" into stable/queens 2018-03-13 08:00:34 +00:00
Zuul 6ebe2a314c Merge "Update .gitreview for stable/queens" into stable/queens 2018-03-13 07:59:26 +00:00
Sampath Priyankara 664e5b8ba5 Update reno for stable/queens
Change-Id: If98c9dbe747a710afa5ca7e062151c16f1971a87
Signed-off-by: Sampath Priyankara <sam47priya@gmail.com>
2018-03-13 12:14:17 +09:00
Sampath Priyankara a14449fb98 Update .gitreview for stable/queens
Change-Id: I643d90906822be38e38407e0984f7f06e4755a54
Signed-off-by: Sampath Priyankara <sam47priya@gmail.com>
2018-03-13 11:48:40 +09:00
Sampath Priyankara d8bb475ded Update UPPER_CONSTRAINTS_FILE for stable/queens
Change-Id: I9722c44a18cc0467f3ddde3961821fc62fa23f11
Signed-off-by: Sampath Priyankara <sam47priya@gmail.com>
2018-03-13 11:42:46 +09:00
Zuul 14dce21f82 Merge "Update for upcoming openstacksdk changes" 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
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
Jenkins aab673ee1a Merge "Improve command arguments" 2017-03-28 01:42:14 +00:00
Jenkins cc7cd31c1a Merge "Fix failing test case for PY3" 2017-03-10 03:18:39 +00:00
poojajadhav 1377d2251a Remove unnecessary return statement
__init__ method shouldn't return value. This patch removes the return
statement from the __init__ method.

TrivialFix

Change-Id: I1f5d9cf3ca04c27bc083a617d3d434456fe6a3b5
2017-03-08 17:08:55 +05:30
Kengo Takahara f684e7c6cd Improve command arguments
This patch has made the following improvements on command
arguments.
- Change the order of arguments which are output as Usage.
- Limits the value which specifies for the argument.

Change-Id: I3b69c922c35cef400a80a04dbd35d20f5f03d9db
2017-03-08 15:04:12 +09:00
poojajadhav fd1cb1d9cf Fix failing test case for PY3
On current master code test case failing on Python 3.x and gives
following error: RuntimeError as dictionary changed size during
iteration.

In Python 2.x calling items makes a copy of the items that you can
iterate over while modifying the dict. This doesn't work in Python
3.x because items returns an iterator instead of a list.

To fix this issue forced a copy of the items to be made by using
list() method.

NOTE:
Currently we don't have gate job for python3.x so this issue can
not be reproduced on gate.

Change-Id: If6ec61c735de71be21c0a55a1b165941ae5ac1a0
2017-03-07 15:50:15 +05:30
Jenkins 8615148918 Merge "Change the base class of osc.v1.DeleteHost" 2017-03-06 04:44:51 +00:00
Kengo Takahara 958f533485 Enable to specify name and ID when operating segments and hosts
This patch enables to specify segment name and ID when excuting
commands such as 'openstack segment', 'openstack segment host',
'masakari segment-*' and 'masakari host-*'.
And, also enables to specify host name and ID as well.
And, modified to output reserved column when executing masakari
host-list command.

Change-Id: I1f08c1bfbfa93464afef224b65fa7e5c4cb9d0c4
Closes-Bug: #1668530
2017-03-06 13:42:53 +09:00
ricolin bbb9b774e6 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Ic856cc4a75cb54b14b6d0e79d1aa68e45494b1d7
2017-03-02 22:24:35 +08:00
Kengo Takahara 9a47367e20 Change the base class of osc.v1.DeleteHost
Since the function to delete a segment host doesn't output
resources after processing, the base class of DeleteHost class
should be the osc_lib.command.command.Command class.
This patch modified the base class of DeleteHost class and
modified so that it doesn't return an unnecessary value.

Change-Id: I2fcce95ae25be94ee5c38b876574476b77fdedff
Closes-Bug: #1656762
2017-02-24 17:27:33 +09:00
dineshbhor 93296cbd43 Bump openstacksdk to 0.9.13
The patch[1] is submitted in python-openstacksdk which fixes
the bug: 1653108. This patch bumps the python-openstacksdk to
0.9.13 which includes that fix.

[1] I6d728abbcc5e914b5bd025bc4e059cdcb13e2109
Closes-Bug: #1653108
Change-Id: I109e05cd413bf7bdf39a54992b36b0db660220c8
2017-02-22 21:07:03 +00:00
Jenkins d875c0206f Merge "Improve logging" 2017-02-14 01:40:03 +00:00
Jenkins 14b8b0ac02 Merge "Fix to be able to specify the name of the resource" 2017-02-14 01:38:33 +00:00
Jenkins da67205b52 Merge "Implemented the host subcommands masakari CLI" 2017-02-14 01:35:59 +00:00
Jenkins 6c78cfe1c7 Merge "Implemented the segment subcommands masakari CLI" 2017-02-14 01:35:47 +00:00
Jenkins 3b00dff235 Merge "Implemented the notification subcommands masakari CLI" 2017-02-14 01:35:41 +00:00
Jenkins 070828e374 Merge "Update to match latest global-requirements" 2017-02-13 01:59:23 +00:00
Jenkins 8b77590713 Merge "Fix incorrect help info for segment, host and notification list" 2017-02-13 01:59:16 +00:00
Keiji Niwa fc32cb2dfc Improve logging
This patch resolve following issues.
- Debug logs had not been enough.
- Error messages of update/delete operations had not been clearly.

Change-Id: I988a6f35c5308ca5eab5cc537ee5334ada0cea2c
Closes-Bug: #1656185
2017-02-03 15:20:50 +09:00
Takahiro Izumi 82cab8ee35 Fix to be able to specify the name of the resource
The segment subcommand and host subcommand can specify
 the name of the resource.

Change-Id: I3fbdbdbcc21cc0f7b13351a9970631fc994b897f
Closes-Bug: #1643759
2017-01-25 18:48:51 +09:00
Takahiro Izumi 03653f09da Implemented the host subcommands masakari CLI
This patch adds sub commands of host.

Change-Id: I4dac9cc7cf9dbc5bcd8573cf0c9e3ade91dc9329
Implements: bp implement-masakari-cli
2017-01-25 17:39:27 +09:00
Takahiro Izumi 0bf1059912 Implemented the segment subcommands masakari CLI
This patch adds sub commands of segments.

Change-Id: I7b168cf62b2a98f8539d37a3818d4ef6057f0fe9
Implements: bp implement-masakari-cli
2017-01-25 16:57:19 +09:00
Keiji Niwa 1257f0985c Implemented the notification subcommands masakari CLI
This patch adds sub commands of notification.

Change-Id: I8f756ebad2f7d470e5c229b2416d59a5d9943810
Implements: bp implement-masakari-cli
2017-01-24 01:14:59 +00:00
avnish 605096150a Update to match latest global-requirements
Update requirements to the levels defined in OpenStack
global-requirements on 2016-1-10.

Change-Id: Ib032cb6b101cea4db16bd946c5e475f21a0e6aeb
2017-01-19 14:37:27 +05:30
hussainchachuliya d05654203b Fix incorrect help info for segment, host and notification list
Optional arguments like --limit, --marker and --filters were
showing incorrect help information for segment, host and
notification list commands.

Corrected the help message to show relevant information.

Change-Id: I409dd57c65cfe3b4582f9c113db0bf39d50c46c1
Closes-bug: #1653199
2017-01-10 12:50:59 +05:30
Dinesh Bhor 8b222138a9 Add sorting and filters support to the list apis
Following list apis doesn't support sort_key, sort_dir and filters:
    [1] segment list
    [2] segment host list
    [3] notification list

For these apis sort_key, sort_dir and filters if passed from command
line are omitted and the whole list is returned without filtering.

This patch fixes the sorting and filtering issue. Now, it is possible
to get results from masakari service in the order you want based on the sorting
parameter you pass to the above apis.

Closes-Bug: #1654521
Change-Id: I21a42ffff31104aa29f8cd7d5d4cb45556b972be
2017-01-10 11:44:49 +05:30
Jenkins 17105e660e Merge "Fix status not displayed in response for notification" 2017-01-06 06:54:14 +00:00
hussainchachuliya c86460edef Remove name attribute from help of notification show
Notification does not have name attribute and it can be retrieved
using UUID only, so it should not show name in the help message of
notification show.

Corrected help message of notification show to display UUID only.

Closes-bug: #1653090

Change-Id: Ifc12997e677f8cdbf802cb9adac01e13ba50a9ea
2017-01-03 15:16:52 +05:30
Dinesh Bhor 66fbfa580b Fix status not displayed in response for notification
Command openstack notification list, create, show doesn't display status
in the response.

Added 'status' field in the notification resource and 'columns' list
of _show_notification() method to fix this issue.

Closes-Bug: #1653098
Change-Id: Idcbc7310c20c333072ea02836ae3c29f836970af
2016-12-30 17:12:17 +05:30
Takahiro Izumi 3b01ed458e Change Service Type vmha to ha
This patch changed service type vmha to ha.

Change-Id: I23645a349d05e9e9172a4e36894cdd5aaa5cce3b
Closes-Bug: #1642213
2016-11-21 13:29:52 +09:00
Keiji Niwa 2dd88c3ace Add masakari CLI Implemented the masakari CLI code
Subcommands are not implemented.

Change-Id: I755357b5c57e6a4b9f642d22eb1679298a16d6de
2016-11-08 10:12:39 +00:00