Commit Graph

83 Commits

Author SHA1 Message Date
Zuul 88c07347b9 Merge "reno: Update master for unmaintained/xena" 2024-03-27 06:25:51 +00:00
Zuul d2b44cd706 Merge "reno: Update master for unmaintained/victoria" 2024-03-27 06:25:21 +00:00
Zuul a94fad707f Merge "reno: Update master for unmaintained/wallaby" 2024-03-27 06:25:19 +00:00
Zuul d585c1be0e Merge "reno: Update master for unmaintained/yoga" 2024-03-27 06:25:18 +00:00
OpenStack Release Bot f1cec3121d 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: I729ddc3c1f672c2c9840dce2982792154fd8f1ae
2024-03-14 07:20:45 +00:00
OpenStack Release Bot f4c64a88cd reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Id0ca4a9e31d855b927e65b707eff659ea12a2b45
2024-03-05 18:25:31 +00:00
OpenStack Release Bot ae08617ff8 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I8f8dc91cdff25db7170ac536f827725c26ee56f4
2024-03-05 18:24:50 +00:00
OpenStack Release Bot e40c832df8 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I9cdd67af7b2726646dc129ee25c985c349f93b9b
2024-03-05 18:24:07 +00:00
OpenStack Release Bot 73b48922f9 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Idbd1d1a09d99c8329229726b767f5b269acfbc28
2024-02-19 09:09:09 +00:00
Stephen Finucane 6823ea5ed1 db: Migrate to alembic
This is easier than Cinder, Nova etc. but more difficult than Heat.
Masakari hasn't had many database migrations in recent cycles but it did
have on in Antelope. This means we need to handle people doing
skip-level upgrades and validate which version of the legacy migrations
they are currently on. We support users coming from both Zed and
Antelope and anyone else will need to go through an older version of
Masakari to update their database migrations first. Other than this
difference, the logic is pretty similar: as with other projects, we
simply determine if we're upgrading a deployment that was previously
using sqlalchemy-migrate, upgrading a deployment that has already
migrated to alembic, or deploying a new deployment, and adjust
accordingly.

In addition, we also have to consider Taskflow's migrations. These were
previously being run once as part of the legacy
006_add_persistence_tables migrations. Since Taskflow uses Alembic under
the hood, it's safe to run every time. The presence of Taskflow does
force us to use a different table name in Masakari though.

Note that one curious side-effect of this is that the order than table
rows are purged change. This appears to be happening because the
notification table is now being created in the initial Alembic
migration, which alters the return value of 'MetaData.sorted_tables'.
In any case, the fix is simply a case of adjusting this order in the
tests.

Change-Id: I5285d7cc3c6da0059c0908cedc195b2262cb1fce
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-22 07:31:12 +00:00
Zuul 0b32d34379 Merge "releasenote for Masakari VMove" 2023-03-09 17:36:30 +00:00
suzhengwei 17ebad5397 releasenote for Masakari VMove
Change-Id: I640ea99f680b5ff4a773a58282a6d4e1c16366da
2023-03-07 18:10:45 +08:00
OpenStack Release Bot 4f37490995 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: I9c0c1aebda728918029eb05f307c285581d8f0d7
2023-03-06 09:14:05 +00:00
sue 7ec3edda1a Fix notfication stuck into running status when timeout
For instance or process failure workflow, the failure notification
would stuck into running status if timeout.

Closes-Bug: #1996835
Change-Id: I61e941ab9dd831369fcc46a132ae2b11c1dd23ba
2022-12-05 10:23:01 +08:00
Mitya_Eremeev 0837d7787c Handle host notification without host status
If an user sends host notification without host status:
openstack notification create COMPUTE_HOST <host> <date> '{"event": "STOPPED"}'
logging registers silly error like object None has not method 'upper' and
notification gets status 'running', host is set in maintenance status.
It's impossible to set manually host status to non-maintanence
until there are host-related running notifications.
Running notifications are expired in 24 hours by default.
The patch makes engine to set 'ignore' status for such
notifications.

Closes-Bug: 1960619
Change-Id: Id873b3300b6de49082805654c85414a8868dd925
2022-10-12 15:23:22 +00:00
OpenStack Release Bot 97ddf329a5 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: I20befc055a4d271bf0dd62434745c6bd4b67fa9d
2022-09-13 12:30:12 +00:00
suzhengwei 7241101163 Fix stopping stopped instances
Nova-compute would periodically sync the instance status. So in the
instance failure recovery workflow,it would stop instance random failed
because of conflict, which will terminate the recovery workflow.
This patch can catch the Confict exception and continue the recovery
workflow if the instance already stopped.

Closes-Bug: 1980736
Change-Id: I59a1f9d7078614c1ddc8f4c362e967a15b8ec5e8
2022-09-09 11:24:41 +00:00
Mitya_Eremeev 9fef8807cf DLM to fix host notification race.
Two concurrent events that host is down
might be accepted by different instances of API
which triggers two evacuation workflows for instances.
Patch introduces distributed lock for creation of
host type notifications. It solves the issue.

Closes-Bug: 1961110
Change-Id: Ie8f10b14f29a8548181560cd8a26b4dc79afc3dc
2022-07-19 09:31:47 +00:00
OpenStack Release Bot 0f37e0e5f7 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: I41d60acdaffb3f3c770494914afbd07f77a133b8
2022-03-10 08:16:32 +00:00
OpenStack Release Bot 6b26d37b14 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: Id0f01f7d9197e8cdba5fc292aba6ef17b98c96d0
2021-09-13 19:48:47 +00:00
Zuul 958bbfe341 Merge "Set "disabled reason" for compute service." 2021-08-19 06:08:56 +00:00
Mitya_Eremeev c861437b52 Set "disabled reason" for compute service.
Masakari never sets reason why compute service was disabled.
"disabled reason" was added in config.

Closes-Bug: 1936181
Change-Id: I998f7884195b93927773c7186d61c13670a53662
2021-08-17 13:11:53 +03:00
Mitya_Eremeev 5c6fd44504 Fix Masakari API to properly return error codes
Change-Id: I538b9b143c868d9419709356daf0ffc48e2f0df9
Closes-Bug: #1932194
2021-07-23 18:46:50 +00:00
OpenStack Release Bot f3247244e1 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I1188a0375425fd0b73b7702ecbc93c4d7033e662
2021-03-26 15:56:13 +00:00
Zuul 3128ef748f Merge "[docs] Add "release notes" contributors' section" 2021-03-17 08:29:12 +00:00
Daisuke Suzuki d1850df674 Assign all aggregates to reserved_host
This patch fixes the code that assignes aggregates to the reserved_host.
The existing code only assigned a aggregate that first matched failed
compute host name.
By this fix, all aggregates that ware assigned to the failed host can
be assigned to the reserved_host.

Closes-Bug: #1856164
Change-Id: I8a727e3c50b71a5ad52d58d0ba3bde4f09446748
2021-03-16 21:22:21 +00:00
Zuul bccf9548de Merge "Add support for system-scoped tokens" 2021-03-16 11:22:01 +00:00
dineshbhor 30842faeaa Fix response of microversions API
If you request to show details of versions "v1/" API it returns 404
ResourceNotFound.

This patch fixes this issue by updating the v1 version correctly
as "v1.0" in versions controller which helps wsgi layer to find
the resource(controller) correctly. This way it returns the details
of version "v1" correctly instead of ResourceNotFound.

v1 show API response:

{"version": {"status": "CURRENT", "updated": "2016-07-01T11:33:21Z",
"links": [{"href": "http://<host-ip>:15868/v1/", "rel": "self"},
{"href": "http://docs.openstack.org/", "type": "text/html",
"rel": "describedby"}], "min_version": "1.0", "version": "1.0",
"media-types": [{"base": "application/json",
"type": "application/vnd.openstack.masakari+json;version=1"}],
"id": "v1.0"}}

This patch fixes the reported supported microversion as well
to avoid clients failing due to requesting too new version
(LP#1882516). It has to be fixed to pass tests.

APIImpact - versions "v1/" show API will return 200 OK now instead
of 404 ResourceNotFound.

Closes-Bug: #1685145
Closes-Bug: #1882516
Co-Authored-By: Jegor van Opdorp <jegor@leaf.cloud>
Co-Authored-By: suzhengwei <sugar-2008@163.com>
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Change-Id: If3943060b5d09bd153b6401d34c7d10d3dc864fe
2021-03-15 20:42:56 +00:00
nicolas.parquet 0a5ae8b402 Add support for system-scoped tokens
Since Ussuri, nova can be configured with new policy
defaults. These defaults enforce the need to use system-scoped
tokens for admin operations like listing hypervisors.
The new os_system_scope configuration allows masakari to
request a system-scoped token using keystoneauth1 to query nova.

Implements: blueprint support-nova-system-scope-policies
Change-Id: I5f5b3f05358c28d60cfd05bc62a388f9087d75ac
2021-03-12 16:48:53 +00:00
Zuul 4e031c6f26 Merge "add enabled to segment" 2021-03-04 02:01:09 +00:00
suzhengwei fe88eae9cb add enabled to segment
Sometimes, operators want to temporarily close instance-ha function.
This patch add 'enabled' to segment. If the segment 'enabled' value
is set False, all notifications of this segment will be ignored
and no recovery methods will execuate.

Change-Id: I561a2519626fa1beae1e3033a6de510cea8f3fac
Implements: BP enable-to-segment
2021-03-03 10:42:35 +08:00
Zuul 4698d74280 Merge "[goal] Deprecate the JSON formatted policy file" 2021-02-27 19:32:32 +00:00
Radosław Piliszek 9aad73d21c [docs] Add "release notes" contributors' section
This should help us write better release notes (or write them
at all in the first place :-) ).
This is an adaptation of the work I have done for Kolla in [1].

[1] https://review.opendev.org/c/openstack/kolla-ansible/+/759254

Change-Id: I60ff41d721117a9e973c02e3e2a2fdf6550960a7
2021-02-27 19:00:10 +01:00
nirajsingh d7f47f2627 Allow segment description to be multiline
This patch allows user to pass a multiline description for
a failover segment.

Closes-Bug: #1776385
Change-Id: I25afb76aec10a507312b8d99b0c882ca9f6bcd81
2021-02-24 12:31:28 +01:00
Radosław Piliszek 7f76081ccf Add missed renos
Change-Id: I5d0a890209887b5795727af66ba8beed3a059a22
2021-01-29 21:42:46 +01:00
songwenping ab8b1eae4e remove unicode from code
Change-Id: Id3b9bad4bc617c168200d34d69bbe760a24dfcf0
2021-01-04 01:02:06 +00:00
Zuul 716f28406b Merge "Fix endless periodic looping call after failed evacuation" 2020-12-28 07:35:20 +00:00
Mark Goddard df63714b03 Fix endless periodic looping call after failed evacuation
Fixes an issue where a failed evacuation could result in a periodic
looping call to run forever. This happened because the periodic call was
not stopped after a timeout occurred.

Change-Id: Id3b9bad4bc617c168200d34d69bbe760a24dfcf9
Closes-Bug: #1897888
2020-12-25 16:37:51 +08:00
Ghanshyam Mann 513c29078f [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Iad942530b5d540af3d3c074e9944687b93bcd7f2
2020-12-23 00:47:36 +00:00
OpenStack Release Bot 30fcf89b75 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I218cadae63065fb650e1a52ea9ced3c1a27441ed
Sem-Ver: feature
2020-09-28 15:43:34 +00:00
Zuul 6e9c6d468f Merge "Search in nova services instead of hypervisors" 2020-09-23 09:08:10 +00:00
Dmitriy Rabotyagov 4322968b89 Search in nova services instead of hypervisors
Nova services and hypervisor naming can differ, as they retireve node
names in different way.
In the meanwhile we operate with nova.services while enabling/disabling
nodes duringh the incident. So we're supposed to have in database record
matching to what we have in service list, but not in hypervisor list.

Closes-Bug: #1839715
Change-Id: I9c591d33f17a8d5950bdb1fc2d686e2301fc6d95
2020-09-16 20:06:31 +02:00
Zuul a405139e2d Merge "Add ha_enabled_instance_metadata_key config option" 2020-09-16 02:06:41 +00:00
Radosław Piliszek f12052a9a4 Fix files to pass linting
The multiline change is about CR being removed.

Change-Id: I54268c61b3f341fa0c373dda090cef1192acbb78
2020-09-11 17:24:16 +00:00
Radosław Piliszek 4397088da7 Add ha_enabled_instance_metadata_key config option
Previously Masakari enforced a common instance metadata key that
controlled how the HA protection applied to the instance:
"HA_Enabled".
Moreover, it was the same whether considering the instance or host
failure.
There are cases where users (operators) would like to independently
configure it per failure class and in general customize its name.

This patch implements the requested behaviour.
New tests are included.

Change-Id: I9dddf784da422f239ec304a2c0b8f24625914fc5
Implements: blueprint customisable-ha-enabled-instance-metadata-key
2020-08-16 10:15:00 +02:00
Andreas Jaeger 7020fc48eb Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ib8c912844becebbfef3bf6579ebea9350676a322
2020-06-01 15:08:16 +02:00
OpenStack Release Bot 36e2b5dcf2 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I8d23a06952a74d7605d78d540e59a03128afebc5
Sem-Ver: feature
2020-04-23 15:43:45 +00:00
Ghanshyam Mann d46ea6b110 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Masakari 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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I144571286343e6be2518e3fe72e33c86a0fd0dfe
2019-11-16 14:24:16 +00:00
OpenStack Release Bot 3a6f76b562 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: I1a3bd45beb70175765afc8082729047e3f35ef3b
Sem-Ver: feature
2019-09-27 17:44:10 +00:00
Sean McGinnis 0e100304a7
Switch from oslosphinx to openstackdocstheme
The oslosphinx package is not compatible with the current Sphinx 2.0
release. Migration has been happening to openstackdocstheme for some
time. To fix build failures for docs and releasenotes jobs, this
switches masakari jobs to use openstackdocstheme.

Uncapping jsonschema to pass requirements check so it matches global
requirements.

Change-Id: Ic74e8b075aa67d410617dac3346bf1c903995da7
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-10 09:07:04 -05:00