* Update masakari-monitors from branch 'master'
to 0a28779d93cc2fbe072842c8790093bc01efdca9
- Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.
Sem-Ver: feature
Change-Id: I2241227bdfc49f42c38a4e4720b1b4403700ab4e
* Update masakari-monitors from branch 'master'
to 782a940480c9a722bb158e4921203e60f078484f
- Merge "Update python classifier in setup.cfg"
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg
Change-Id: Ief1bff470b060f9c0b9d9c8934c6bff19c74a1ab
* Update masakari-monitors from branch 'master'
to f4769d3177f83f8ab878917f068c133fe70095a5
- Honor libvirt.connection_uri in introspectivemonitor
Do not use default uri, pick up from parameters.
Change-Id: I8620aeab224ab37096656d20c4bcc3fe7e7f3f18
* Update masakari-monitors from branch 'master'
to 2d0e36eb1c7e70dc0292ddd72ffac959dbc81019
- Merge "Fix pep8 for new hacking"
- Fix pep8 for new hacking
Change-Id: I0bf55e6289fdbfcb6c564976f9040278fc8f9d71
* Update masakari-monitors from branch 'master'
to b85834c8a88c53d54fa5fde4c0d0c913ce91e4d0
- Merge "Update master for stable/2023.2"
- Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.
Sem-Ver: feature
Change-Id: I946bc9f843b4f2701ebf5dbfd26f8b681c1383f4
* Update masakari-monitors from branch 'master'
to 58cbb346effc0aa5484815823939241fb5658905
- Honor test-requirements.txt for pep8 checks
Setup requirements for pep8 checks according to specification
in test-requirements.txt. Is needed to pin hacking.
Change-Id: I6fb44a1e42181cb56e8206783c9681d7eb49e060
* Update masakari-monitors from branch 'master'
to 4aa998d492143f63d5ac32c6c000dff81e69a7af
- Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.
Sem-Ver: feature
Change-Id: I1c2ebb1beeebc2b764fa242bcc76452af371ab48
* Update masakari-monitors from branch 'master'
to cf646dfce2db86f01dd49349e1803da23de4ec85
- not retry to send notification for specific http exception
When the host not added in the failover segment, it will raise 400(host
with name *** could not be found). It should not retry to send
notification in this case.
Change-Id: I24a6aba97b834ae92dabe85196f01d27bb518b3c
* Update masakari-monitors from branch 'master'
to f8f5bc103dd8f30f64c25359d23f7bbc6d096648
- Fix tox4 issues
New tox version 4 has changed interpretation of tox.ini
The passenv parsing requires the list to be comma-separated.
Since the names are case-insensitive, duplicates are removed.
skipsdist is now a synonym of no_package and avoids the
installation of the package in all cases.
However, some environments require it (for setup metadata).
Fix allowlist_externals where appropriate.
Change-Id: I929afe0d13a64caac5abf15a16d56fdb713537e5
* Update masakari-monitors from branch 'master'
to d911b4fc0fb496925cce5fd3833e24ddf2594638
- Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I1c2bd7a915d8794d81dfc8c873168c95878e33d6
* Update masakari-monitors from branch 'master'
to 81281540c2a4a42b22cde94a7e89b4567ff48764
- Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.
Sem-Ver: feature
Change-Id: I288daacb023570eb47822ba5a2392b390fa61dc0
* Update masakari-monitors from branch 'master'
to afcf34decc7dc55adc55ab366e03fbf472cd52ad
- Use daemon property instead of setDaemon method
The setDaemon method of the threading.Thread was deprecated
in Python 3.10 (*).
Replace the setDaemon method with the daemon property.
*: https://docs.python.org/3.10/library/threading.html#threading.Thread.setDaemon
Change-Id: I643251c0394b8e8ede8198f580549ef6f260a9de
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Update masakari-monitors from branch 'master'
to b42b5e5b5467aa1f635634d3c2a096d74150c013
- Merge "Update python testing as per zed cycle testing runtime"
- Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.
[1] https://governance.openstack.org/tc/reference/runtimes/zed.html
Change-Id: I9795f0ddf38c1521e6996d9ff0c2c0193193d96a
* Update masakari-monitors from branch 'master'
to f46f67be1aeea9a3afaa8b4a803b9ce9818150e1
- Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I3117872c091b60446771ec0239032c0e3f3280b7
* Update masakari-monitors from branch 'master'
to 723171a04a09acbf23d1bfc9c1d17e4bef3f0966
- Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.
Sem-Ver: feature
Change-Id: I4f80fbd6a0fee7dc691629a4aa43e1fb043514df
* Update masakari-monitors from branch 'master'
to a89511e088488bb3122a44d191730ebf0b059005
- Merge "host monitor by consul"
- host monitor by consul
This is a new host monitor by consul. It can monitor host connectivity
via management, tenant and storage interfaces.
Implements: bp host-monitor-by-consul
Change-Id: I384ad70dfd9116c6e253e0562b762593a3379d0c
* Update masakari-monitors from branch 'master'
to 89c067a4d8c9e634193142e8d155a46aeffaedfa
- Merge "connection too much when large scale failure"
- connection too much when large scale failure
When large scale failure, there would be too many host or instance
failure notifications in a very short time. Each time when one
notification to be sent to masakari, it needs to make client, which
brings great pressure to keystone.
This patch keep the client reusable when it is made. Until exception
it will be made again.
Change-Id: I39795bc796d3e2402881b8116cdc241aa2d60a9f
* Update masakari-monitors from branch 'master'
to 741cffdfe7a5188dfbd1e471d5b6d56f522ff85e
- Use LOG.warning instead of deprecated LOG.warn
The LOG.warn method is deprecated[1] and the LOG.warning method should
be used instead.
[1] https://docs.python.org/3/library/logging.html#logging.warning
Change-Id: I7e3dc5d1897cd10b94e0a5a5a06db667cba7d443
* Update masakari-monitors from branch 'master'
to 45adf21e016ebcbeb61287c248734663274821a1
- Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime has been updated to add py39
testing as voting.
Change-Id: Ia9712770714d95c01ab2b8694e624885c2023926
* Update masakari-monitors from branch 'master'
to 857df761c72c25e82269a0c06f5b8268a1b91bbd
- Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job
- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286
this commit updates the classifier in setup.cfg file.
[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html
Change-Id: I38ed7a0367be9a9c0e01f59b8fb7bbd62300d0f7
* Update masakari-monitors from branch 'master'
to 50677c2ca836b97a048cee3c3ceac096291fe84d
- Fix a typo
This patch fixes a typo.
Change-Id: Ib72b08823e6a086ef0efbb956a3c2cdb4366c217
* Update masakari-monitors from branch 'master'
to 5198a3c910789cae691d907583a24e055347d736
- Fix some typos
This patch fixes some typos.
Closes-Bug: #1949540
Change-Id: Iddb519719f3aca80286e9ca1666040ac202e037e
* Update masakari-monitors from branch 'master'
to 8143920095a35f055e796b09b3c8c5015d13f227
- Merge "Add Python3 yoga unit tests"
- Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: Ic01adf80d034d50ecec0d98f135e25fffc596356
* Update masakari-monitors from branch 'master'
to 529315bd77081dece6bfd8a9a3bc96cbce9182df
- Merge "Update master for stable/xena"
- Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.
Sem-Ver: feature
Change-Id: Ie6e7755350983bb26a7c73ba958fbb4b8bc7eed4
* Update masakari-monitors from branch 'master'
to 7bece969652c6938753034ecea1414b0106025fb
- Add note for package maintainers in requirements.txt
Change-Id: I7549ea76acd6ac12efa12fd53ef8b52220effc59
* Update masakari-monitors from branch 'master'
to c2d9a4f9cb050faf5b863acb0b5225195a8c6fe8
- Fix hostmonitor to respect quorum
Both cibadmin-based and crm_mon-based host status queryings were
affected, allowing partitioned cluster to tell Masakari to
evacuate hosts from the other partition (which nota bene include
all remotes if applicable).
Closes-Bug: #1878548
Change-Id: I0b1ca8a011ee4da162a2c3a986c1dab9a3d38190
* Update masakari-monitors from branch 'master'
to 1cee543f93c100e11b4f607225eaed5334ee760e
- [CI] Run cover jobs
Like in masakari.
Change-Id: Id954a1c0e61b9b4927f3f7b34bf8f80a1686e75b
* Update masakari-monitors from branch 'master'
to 924596326043ac99bdadfcc284e55f9d4fc37859
- Merge "Use some better linting"
- Use some better linting
Lints docs and yaml files in addition to Python.
This also fixes the encountered issues.
Change-Id: I111cc93939ae4cd2e878e7f863c1a45db51cdbbe
* Update masakari-monitors from branch 'master'
to 1ddc821bdcc6d3e71182c814239bf71b7bb9a30b
- Merge "Generate PDF documentation"
- Generate PDF documentation
For PDFLaTeX, remove the irrelevant parts (contributing,
search).
Change-Id: I78e2baa51a523ef4e8b76a5f7b2ad5cda1085b8a
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
* Update masakari-monitors from branch 'master'
to 9a351efcec3a67ea429bc437f6aa71861dfcce1f
- Use pre-provided libvirt-python
This is to satisfy both libvirtd compatibility and recent pip
sanity checks that started failing in DevStack jobs after [1],
impacting the main Masakari gate.
[1] https://review.opendev.org/c/openstack/devstack/+/802642
Change-Id: I448b9d2535bfaffa5a3bb77307baa0527a005144
* Update masakari-monitors from branch 'master'
to 5299d5fab4203e70f3a7527c48e47b28807c817d
- [doc] Add config reference guide
Masakari monitors are missing available configuration options
in its documentation which makes hard to configure them for users.
This patch adds automaticually generated reference about
available configuration options with their descriptions and defaults.
Change-Id: I2abc2afa6ae207c64186ab34b51a13c174cbf235
* Update masakari-monitors from branch 'master'
to 981cda7e8386cd1a2e834c1d091ea6d5bce00f59
- Merge "Remove conditionals for an ancient openstacksdk"
- Remove conditionals for an ancient openstacksdk
Change-Id: I4b035925b212236e5a31cd3752d08d281501c26d
* Update masakari-monitors from branch 'master'
to 339218d0af448dbc603d90a5e25a7785d55dfce0
- move DriverBase to the base dir
Move the driver.py one level up, so that new monitor driver can reuse
it.
Change-Id: I3ec98682056d07c777d592e01d290af9d06d7ff1
* Update masakari-monitors from branch 'master'
to 6e84289a530b86007550e447172b9bdb0f9c149b
- Merge "Fix hostmonitor hanging forever after certain exceptions"
- Fix hostmonitor hanging forever after certain exceptions
The hostmonitor, like other Masakari monitors, starts as an
Oslo service (based on eventlet). The main thread is supposed
to run a loop that has an internal wait mechanism (instead of
reusing periodic_tasks from oslo_service). However, the loop
could be broken, if an unexpected exception appeared, and it
never ran again but the process was still alive (due to
oslo_service not stopping). The example mentioned in the bug
report is about unavailability of the Masakari API (and/or
Keystone API) before notification sending. This exception is
not caught early because SendNotification._make_client is
called outside of the try block (unlike the actual notification
sending). The exception bubbles up and stops the main loop,
leaving a useless hostmonitor process. The user is unaware
unless they notice the logs are no longer growing.
While the general design begs for a revamp (we might get away
with that by using Consul in the first place), the easy fix is
to prevent exceptions breaking the loop completely so that the
hostmonitor can continue to work and try to regain health.
At the very least it will keep posting ERROR messages in the log
which is more likely to be spotted in comparison to lack of logs
(which is, unfortunately, less commonly considered an alerting
situation).
This change also fixes, adapts and robustifies the two relevant
unit tests.
Closes-Bug: #1930361
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Change-Id: I7e3447dcddc7998e3e3c30f4f0019d91a99c79ce
* Update masakari-monitors from branch 'master'
to 76d9e894c73f6e62389f85f87e3e167900a6599d
- Fix several code comment errors in process monitor.
Change-Id: I21617a0952c2d6704e7adb8397d032a21ba38d8e
* Update masakari-monitors from branch 'master'
to 6a496e78713fb8db56ccc1a6ad6ab007b88d102e
- Replace "split(' ')" with "split()" in masakari-monitors
By default, if split's step is None, runs of consecutive whitespace
are regarded as a single separator. So there is no need to use
split(' ').
Change-Id: Idcda8dfcaf5fd5abfab106238f91acdd3166883f
* Update masakari-monitors from branch 'master'
to fe5247c228087dd70a7c43f76eed4b445ef10ad2
- [community goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].
[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38536
Change-Id: Ib2e9cd7b736a7488ebad350aa2eb95311fd99f5c
* Update masakari-monitors from branch 'master'
to b558651cd0d50983bc472506f5d530b03cbba0db
- setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: I66440018ae3e16962639976b00c9f65475d8223e
* Update masakari-monitors from branch 'master'
to bc624feecdf249a896994d742a34a0909dc8e198
- Merge "Replaces yaml.load() with yaml.safe_load()"
- Replaces yaml.load() with yaml.safe_load()
Yaml.load() return Python object may be dangerous if you receive a YAML
document from an untrusted source such as the Internet. The function
yaml.safe_load() limits this ability to simple Python objects like
integers or lists.
Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html
Change-Id: Ic1b19423f7a9d93e9bc76bf94b5d5e3101f8341d
* Update masakari-monitors from branch 'master'
to 761d9a4607b706b1d57402433e20a1a843d583e1
- Merge "Fix one reno"
- Fix one reno
Change-Id: I9ca9854832e1a3f4a8af5089e5dff1377cecb9da