Commit Graph

58 Commits

Author SHA1 Message Date
OpenDev Sysadmins 6faecd7b53 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
Nguyen Hai 537c13bf09 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: Ic476be9b94a39024912a6cc63b016ae4a93e21a8
Story: #2002586
Task: #24310
2018-08-17 19:21:38 +09:00
OpenStack Proposal Bot 69cf5cbf98 Updated from global requirements
Change-Id: I8118c531cbf6aeca4170cafb5f7c18a41c7f9973
2017-11-15 01:51:00 +00:00
nehaalhat 2af420284b 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
(cherry picked from commit f36c1c20d2)
2017-09-01 11:22:17 +00:00
nehaalhat 7d2c142204 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
(cherry picked from commit d4725667db)
2017-09-01 10:44:49 +00:00
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
Jenkins d4bc606051 Merge "Add masakari openstackclient host command" 2016-11-08 09:04:43 +00:00
Jenkins 8cd011b333 Merge "Change using openstacksdk libraries" 2016-11-08 08:56:20 +00:00
Jenkins e323d34943 Merge "Add masakari openstackclient segment command" 2016-11-08 08:48:48 +00:00
Jenkins 74573eaffd Merge "Add masakari openstackclient notification command" 2016-11-08 08:43:15 +00:00
Jenkins 0fcc9d1472 Merge "Add masakari openstackclient plugin base" 2016-11-08 08:32:34 +00:00
Jenkins 238a2c6dbe Merge "Change masakariclient initial module" 2016-11-08 08:27:15 +00:00
Rikimaru Honjo b2523cce0c Add masakari openstackclient host command
This patch adds following commands for openstackclient.

* openstack segment host create
* openstack segment host list
* openstack segment host show
* openstack segment host update
* openstack segment host delete

Change-Id: I786d0b93d529764d40547c77b77c9a6df61660dd
2016-11-08 02:49:20 +00:00
Rikimaru Honjo e8293403b2 Change using openstacksdk libraries
openstack.resource2, proxy2 is more modern than resource, proxy.
And, the majority of openstacksdk libraries are using resource2, proxy2.
So this patch modified existing commands to use resource2, proxy2.

Change-Id: Iedadb45ca756d50cb1fc3e2be200f02ab41d722d
2016-11-08 11:47:20 +09:00
Rikimaru Honjo 00c70fff39 Add masakari openstackclient segment command
Implemented to segment command for openstackclient.
This patch adds following commands.

* openstack segment create
* openstack segment update
* openstack segment list
* openstack segment show
* openstack segment delete

Change-Id: I8bfd07f77700974ccf4252ce5bbb16325e990e13
2016-11-08 09:54:07 +09:00