Commit Graph

98 Commits

Author SHA1 Message Date
OpenDev Sysadmins c50c962b48 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:49:18 +00:00
shilpa.devharakar 3ffd576b79 Fix masakari-monitor 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>
Change-Id: Ic10d1b380abc8b3b6cc38015c9c3bf4ab7705a0c
Depends-On: I24ec493f3333a5b3f6bfed9395c921fb28500065
Closes-Bug: #1779752
2018-09-04 18:12:28 +05:30
Nguyen Hai da40a2f881 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: I9298555dd7571f85b37abeed2291e94119721987
Story: #2002586
Task: #24310
2018-08-17 19:21:48 +09:00
OpenStack Release Bot e6ecb56232 Update UPPER_CONSTRAINTS_FILE for stable/queens
The new stable upper-constraints file is only available
after the openstack/requirements repository is branched.
This will happen around the RC1 timeframe.

Recheck and merge this change once the requirements
repository has been branched.

The CI system will work with this patch before the requirements
repository is branched because zuul configues the job to run
with a local copy of the file and defaults to the master branch.
However, accepting the patch will break the test configuration
on developers' local systems, so please wait until after the
requirements repository is branched to merge the patch.

Change-Id: I76939b6c0f1d866b5bb80e169226887ac40758dd
2018-03-03 13:51:48 +00:00
OpenStack Release Bot a44bbb2c9c Update .gitreview for stable/queens
Change-Id: I496502799b44f7ee7bb97306a88e9bbad39611fb
2018-03-03 13:51:42 +00:00
Sampath Priyankara 41653bc953 Use status_code instead of http_status
In exceptions.HttpException has no attribute 'http_status'.
Use status_code instead of http_status.In future, 'http_status'
parameter will be removed. For UT, use response object instead of
http_status.

Change-Id: Id0e3ae5377ea713cf2394975c827605dbc860143
Signed-off-by: Sampath Priyankara <sam47priya@gmail.com>
2018-02-15 14:38:52 +09:00
wangqiangbj a88eb502f0 fix misspelling of 'configuration'
Change-Id: Ia72c0a23f4c0a994cf9b8f2859272e68ccc06288
2018-01-16 19:45:31 +08:00
Jenkins 03c15cf743 Merge "Support specify connection uri for libvirt" 2017-09-04 07:23:56 +00:00
liyingjun d1c2ac2700 Support specify connection uri for libvirt
In some cases specific connection uri may needed to connect libvirt,
like libvirt and instancemonitor are running in seperated docker
container.

Change-Id: I8f4f89aa12850e4bcaf1a3874a8cc5605f0f22ca
2017-08-31 08:27:36 +08:00
OpenStack Proposal Bot cde057bc68 Updated from global requirements
Change-Id: I77a73d35df9009d0bc9ad64d919e47d7dc1c749a
2017-08-11 11:52:33 +00:00
Jenkins 994cdf8e20 Merge "Remove an extra word in process_list.yaml.sample" 2017-08-10 15:27:07 +00:00
Kengo Takahara 37fe44fdb8 Remove an extra word in process_list.yaml.sample
This patch removes an extra word in process_list.yaml.sample.

Change-Id: I5a2fb99e408a97dd65af725846bbdbf0a83460fd
Closes-Bug: #1707579
2017-07-31 15:58:59 +09:00
Dinesh Bhor 5f59145276 Use os-testr and add PY35 support
masakari-monitors 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. Python 3 don't have 'file' builtin method so
to make it compatible with Python 2 and 3 used 'open' builtin method.
Also fixed the failing test cases due to that.

Change-Id: Ib84b0b28a845e49eaef969d0fc995b1adbb7b29d
2017-07-26 16:19:24 +05:30
Jenkins ce5926ef0a Merge "Remove log translations" 2017-07-11 03:46:31 +00:00
Jenkins 9adc7f8d93 Merge "Change the required olso.privsep version" 2017-07-11 03:46:26 +00:00
Kengo Takahara 097d37d505 Add testcases of hostmonitor
This patch added missing testcases for hostmonitor directory.
And also improved existing testcases for them.

Change-Id: Iedc86123a2bc17299119ddb52824d0c449afa993
2017-07-04 16:51:42 +09:00
Kengo Takahara 0cdbbf669d Remove log translations
Log messages are no longer being translated. This removes all use of
the _LC, _LE, _LI and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Ic415d098199afb300eb7bd9967bf4a9acb457aec
2017-06-19 16:55:00 +09:00
Jenkins dbd53c13a7 Merge "Fix typo of hostmonitor" 2017-05-29 05:30:37 +00:00
dineshbhor 9350d457ef Pass correct parameters to '_get_connection' method
While getting the openstacksdk connection object, the
'project_domain_name' from conf file is passed to both
'user_domain_id' and 'project_domain_id' parameters.

The keystoneauth 'get_auth_plugin_conf_options('password')' [1]
also generates both 'user_domain_id' and 'project_domain_id' in
api section so no need to pass 'project_domain_name' to them we
can pass their respective values directly.

This patch fixes this by passing 'user_domain_id' and
'project_domain_id' to their respective parameters from api section
of conf file.

[1] https://github.com/openstack/masakari-monitors/blob/master/masakarimonitors/conf/api.py#L42

Closes-Bug: #1686896
Change-Id: I5b55db2eb0c1c1aa9a3d0123112d25c78eb38ea3
2017-04-28 11:41:10 +05:30
Jenkins 421976606c Merge "Fix typo of processmonitor" 2017-04-25 12:24:26 +00:00
Jenkins b65536d871 Merge "Add testcases of instancemonitor" 2017-04-25 12:21:48 +00:00
Jenkins f3d8664092 Merge "Add testcases of ha and processmonitor" 2017-04-25 12:21:45 +00:00
Kengo Takahara bc06c90e67 Fix typo of hostmonitor
There is a typo in hostmonitor's comment.
This patch fixed it.

Change-Id: Ia57bb5281e19f211bddcfab8f3289d3cd9bfead0
2017-04-19 18:30:44 +09:00
Kengo Takahara 962f30b628 Change the required olso.privsep version
This patch changed the required oslo.privsep version so that
the masakari-monitors don't take following bug.
https://bugs.launchpad.net/oslo.privsep/+bug/1674185

Change-Id: Iaa9bcd3d7d62f44ab2ee0e7fe329b241bf117cb0
2017-04-12 16:41:13 +09:00
Kengo Takahara 12f59d56d6 Fix typo of processmonitor
There is a typo in processmonitor's log message.
This patch fixed it.

Change-Id: Idb2ebbdf4979db083b8d810cec58d407a4f68487
2017-04-12 14:37:36 +09:00
Kengo Takahara 7aef952a41 Add testcases of ha and processmonitor
This patch added missing testcases for ha and processmonitor
directory. And also improved existing testcases for them.

Change-Id: Ifd9681b53b71122aa9ca738e6e6bf49f282b1f61
2017-03-29 18:33:32 +09:00
Kengo Takahara 899963d60a Add testcases of instancemonitor
This patch added missing testcases for instancemonitor directory.
And also improved existing testcases for them.

Change-Id: I5cf815a418d885a52e7f8dcb14607e49e2a9f5bc
2017-03-29 17:20:36 +09:00
Kengo Takahara 7e8c8558b4 Change the condition of success or failure of notifying
This patch fixed so that failure messages of notifying are output
when the retuen value of notifying is not 0.
With this fix, the success message is output only when the return
value of notifying is 0, and when the other return value, the
failure message is output.
And, this patch also fixed the problem of return value conditions
other than when notifying.

Change-Id: Ic72cf7226b226a045f5154ba91e2e9758e2cc9db
Closes-Bug: #1676338
2017-03-29 17:11:29 +09:00
Jenkins 2cd33fa3ee Merge "Fix syntax errors of README.rst" 2017-03-03 06:33:31 +00:00
Kengo Takahara ea02f744c2 Fix syntax errors of README.rst
README.rst had syntax errors.
This patch modified README.rst to the correct ReST format.

Change-Id: I1fb98e3ab101d2a3c331dcb416399f76b6b72295
2017-03-03 14:52:09 +09:00
Kengo Takahara 00a1bd3242 Remove data_files definition from setup.cfg
data_files definition of setup.cfg is unnecessary.
This patch removes the data_files definition of setup.cfg.

Change-Id: I224ae8b99c78ed1f3e1853047e1e50ff56ac5b6b
Closes-Bug: #1665524
2017-02-24 16:30:14 +09:00
Jenkins fff47b7105 Merge "Skip notification retry processing when HTTP status is 409" 2017-02-16 08:28:03 +00:00
Jenkins 5296bde48d Merge "Add warning messages about deprecation to process/host monitor" 2017-02-16 05:15:42 +00:00
Kengo Takahara 117f563252 Add README.rst
This patch adds README.rst of masakari-monitors.

Change-Id: I521c3f248d0931d736b7ebcaa84137a2b5939eeb
Implements: bp pythonize-host-and-process-monitor
2017-02-16 10:50:22 +09:00
Kengo Takahara b239514cbd Add warning messages about deprecation to process/host monitor
This patch adds warning messages to process/host monitor,
and adds a release note about process/host monitor.

Change-Id: I6527438fca457eb2ec6d7ca224520d7a8748394e
Implements: bp pythonize-host-and-process-monitor
2017-02-15 11:16:01 +00:00
Kengo Takahara 16245388c4 Skip notification retry processing when HTTP status is 409
If the HTTP status of the notification is 409, monitors should
not retry notification processing.
This patch modified to skip the notification retry processing
if the monitors receives 409 HTTP status.

Since this problem exists only in the monitors implemented
with python, no need to modify the monitors implemented with
bash shell script.

Change-Id: I267c5676a5057d5d7a8e0ef718ea01c914c9a99d
Closes-Bug: #1664498
2017-02-15 11:02:53 +00:00
Jenkins b3e4d97467 Merge "Fix global name '_' is not defined" 2017-02-15 07:04:41 +00:00
poojajadhav e5651f5291 Fix global name '_' is not defined
If serve method from service module is called twice, it will raise
error as '_' is not imported.

Imported '_' from i18n module to resolve this issue.

Change-Id: Ia2d9b6f6153373d6fa77267f3a9da43a47a38a27
2017-02-14 19:35:52 +05:30
poojajadhav b18793c672 Return user-friendly error message when monkey_patch enabled
If user has enabled “monkey_patch” config option and kept the default
“monkey_patch_modules” config option as is, then service gives
ValueError at the time of starting itself. The default value given to
the “monkey_patch_modules” config option is not according to the format
expected which results into ValueError at service starting.

This patch fixes this issue by making monkey_patch_modules's correct
default value and if user wants to apply monkey patching then syntax
must be correct so handled that value error.

Closes-Bug: #1660545
Change-Id: I637a36eacdabca8c4edbba201d491744690869ef
2017-02-14 19:34:36 +05:30
poojajadhav f8c25dd2aa Add hacking check to ensure _ is imported
Added hacking check to ensure that _ is imported and allows multiple
imports from i18n module per line.

Change-Id: Ieffabd6f2fe866000c5dc1d9ce83acd2f9ab0450
2017-02-14 18:38:08 +05:30
Kengo Takahara 7cfa3917a4 Add implement of calling pre and post script
This patch add implementation of script calling pre and post
on starting and restarting processes.

Change-Id: Id492fab44413d86c27a6e2f188b7fe84780a553c
Implements: bp pythonize-host-and-process-monitor
2017-02-13 04:37:17 +00:00
Kengo Takahara d565c47fb1 Add implement of sending notification
This patch adds implementation of sending a notification.

Change-Id: I56f592e9ce91447ac35fb14073c0c94cb9677472
Implements: bp pythonize-host-and-process-monitor
2017-02-13 04:37:05 +00:00
Kengo Takahara 1a0b96caf7 Add implement of preventing split-brain
This patch adds implementation of preventing split-brain.
The part that captures packets of corosync is not impelemented yet.

Change-Id: I6bedd28928ac53dfa30b889d2442d748edad2f9c
Implements: bp pythonize-host-and-process-monitor
2017-02-10 20:30:04 +09:00
Kengo Takahara 826d909e59 Add implement of sending a notification
This patch adds implementation of sending a notification.

Change-Id: I2582ca76e1aeb897b908b35e3de4074e9cabc640
Implements: bp pythonize-host-and-process-monitor
2017-02-10 20:22:54 +09:00
Kengo Takahara fc8a8568dd Add implement of comparing host status
This patch adds implementation of comparing if host status
changed.

Change-Id: Ibd009a27765acd4673ff75ffb097088c091f101b
Implements: bp pythonize-host-and-process-monitor
2017-02-10 11:10:55 +00:00
Kengo Takahara 29d82c3ce2 Add implement of monitoring host
This patch adds implementation of monitoring host.

Change-Id: I066a0b632389e261dcd8e5ca6e7067d47be9eab1
Implements: bp pythonize-host-and-process-monitor
2017-02-10 11:10:32 +00:00
Jenkins 3caf57eaba Merge "Add unit test codes of instancemonitor" 2017-02-10 07:49:27 +00:00
Kengo Takahara fc187a8cbf Add implement of restarting processes
This patch adds implementation of restarting processes

Change-Id: I1d88127ec9316c2721f2a1cafc9c7a55b3534875
Implements: bp pythonize-host-and-process-monitor
2017-02-09 19:12:55 +09:00
Kengo Takahara f7bf003c84 Add implement of monitoring processes
This patch adds implementation of monitoring processes

Change-Id: I0778599b8997d4b6d9a728e746bf0f8232609da5
Implements: bp pythonize-host-and-process-monitor
2017-02-09 18:22:02 +09:00
Kengo Takahara 869db63668 Add unit test codes of instancemonitor
This patch adds unit test codes of instancemonitor.

Change-Id: I35a569a51e9b300803f97c628f330dd9dc20565d
2017-02-06 11:01:19 +00:00