Commit Graph

145 Commits

Author SHA1 Message Date
OpenStack Release Bot 9ea9424d3d reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I573f9273595d84f2f87abd003d1fa5369de924c3
2024-02-06 13:39:02 +00:00
Zuul 7fa6ae780c Merge "Removing CLUSTER_RESIZE from pre-op skip List at min threshold" 2024-01-18 06:52:10 +00:00
Pham Le Gia Dai 2d6f537b38 Fix: `TrustMiddleware` unable to fetch trusts/credentials from identity service
When using token to init a new openstacksdk connection, the SDK try to fetch
another token from it, causing keystone raise exception and return 500 status
response. Refer: https://bugs.launchpad.net/keystone/+bug/1959674
Switch from `token` to `admin_token` to make the SDK session use the provided
token directly instead of fetching a new one.

Closes-bug: #2048452
Depends-On: https://review.opendev.org/c/openstack/senlin/+/905555
Change-Id: I8f9b2db3d4851cf54c2113b2fb0ae97ae38ac286
2024-01-15 02:04:29 +00:00
Nguyen Ngoc Hieu 7ef513dd79 Removing CLUSTER_RESIZE from pre-op skip List at min threshold
Excluding CLUSTER_RESIZE from the list of actions that skip
pre-operation checks if the cluster is already at the minimum threshold.

When the cluster is at the minimum threshold, pre-op LB will function
with actions such as CLUSTER_DEL_NODES, CLUSTER_SCALE_IN, NODE_DELETE,
and will skip actions like CLUSTER_REPLACE_NODES and CLUSTER_RESIZE.

Closes-Bug: #2049191
Change-Id: I00a7ea40f69bafc94ca2bba9f268af7b03344997
2024-01-15 02:23:07 +07:00
Pham Le Gia Dai 3aa3959e08 Fix: ServerProfile._validate_volume_type() missing 1 required positional argument: 'name_or_id'
Pass `obj` param to `_validate_volume_type` method call in `_resolve_bdm` method.
Add missing param `ignore_missing` in `volume_type_get` of `cinder_v2` driver

Closes-bug: #2048726
Depends-On: https://review.opendev.org/c/openstack/senlin/+/905555
Change-Id: I667e2bf1ae5dbabbb9e75d59f10c56b4a355cb44
2024-01-14 16:42:16 +07:00
Zuul 29f2e885e7 Merge "fix: SCALE_IN action not honoring specified node count" 2024-01-10 06:37:50 +00:00
Nguyen Ngoc Hieu 23f3bd708b Skip pre_op LB if cluster is already at min size
In cases where the cluster's desired capacity equals
the minimum size, executing an action causing node
(exception: CLUSTER_REPLACE_NODES) reduction led to
premature removal of the node's IP from the load
balancer during the pre_op step.

The commit addresses this issue by introducing a check
to skip the pre_op step if the cluster is already at
its minimum size. Now, when desired_capacity equals min_size,
the pre_op step is bypassed, preventing unnecessary
removal of IPs from the load balancer.

Closes-Bug: #2048100
Change-Id: Ia7389e8c555497cfa5ccbdca77258f4165dfc62d
2024-01-07 04:57:27 +07:00
Nguyen Ngoc Hieu 2b66935763 fix: SCALE_IN action not honoring specified node count
The SCALE_IN action in the lb_policy module was removing only
one node from the load balancer, regardless of the specified
count when the count was greater than 1. This was due to a
hard-coded count of 1 in the _get_delete_candidates function.

The root cause has been addressed by updating the
_get_delete_candidates function to dynamically handle the count
for SCALE_IN. The count is now retrieved from the action inputs,
and if not specified or invalid, it defaults to 1.

Closes-Bug: #2048099
Change-Id: I9ff12dec26f4c558ef5ef84de87668e9668cec80
2024-01-06 14:14:49 +07:00
Erik Olof Gunnar Andersson de1ab6d96b Fixed sqlalchemy 2.x support
Re-arranged sessions to always be at the top level to make
it easier to know the origin of the current session. This
is important now that we no longer have autocommit enabled.

- Added zuul job testing sqlalchemy 2.x.
- Added new db api for service cleanup.
- Removed broken sqlite cleanup step during testing.

Change-Id: I168f3d9518611ac66cb9eec1132a7add19e92d5f
2023-12-29 12:06:57 -08:00
OpenStack Release Bot f4ed8899d0 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: I3642f2965f47092415eedc3712613cdd240a387d
2023-09-15 14:09:19 +00:00
XueFengLiu cef004c05b Remove duplicate note for db switch
Change-Id: Ica7d4dafe0ff1b65853155e79c11da7ab7e392ed
2023-08-31 07:35:20 +00:00
root f6edeaba3e Senlin release notes for Bobcat
Change-Id: I9c6f20bca9681a3076e30cb67155d5ba0ce56045
2023-08-30 10:35:51 +00:00
Erik Olof Gunnar Andersson 18540721f4 Switch Senlin to Alembic database migrations
sqlalchemy-migrate is no longer supported and we need to switch
to alembic for database migrations.

Change-Id: I2e51b4027f7af63944b5504ddcf50e9e48818259
2023-03-26 22:47:22 +00:00
OpenStack Release Bot d0d60d609f 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: If57c289b2e8e411504b187add037e7c1c1b0d54e
2023-03-09 06:51:02 +00:00
OpenStack Release Bot 08be6650ac 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: Idf86ef4c6d9b56e11cd4361cb5b7734f6ade9d37
2022-09-15 15:55:53 +00:00
wangjiaqi07 fddf48c9c4 remove unicode from code
Change-Id: I56e72f7bb4a6829ac9f96ec418b3359ae6cd8e3f
2022-08-25 09:34:35 +08:00
Zuul 5d3bc56e01 Merge "Imported Translations from Zanata" 2022-08-04 04:34:34 +00:00
Zuul 49a131f3fb Merge "Update python testing as per zed cycle teting runtime" 2022-08-04 04:34:32 +00:00
OpenStack Proposal Bot aee7ca33a7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4a53dc56d8a958ab0f9c1a1cf901d06613ce5eb4
2022-08-04 03:32:56 +00:00
OpenStack Proposal Bot 59c5ef4b45 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I009338d1b0a618eedba91d4763e2cc9d05148bb8
2022-06-21 04:15:54 +00:00
LeopardMa 57f239cc4d Update python testing as per zed cycle teting 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: I253757e2035dbe667905f011f9d05cc5d94e669e
2022-06-04 15:47:30 +08:00
OpenStack Release Bot 56bd524fb7 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: I9ed3ad805822f66c84e74a6dded060be44c77d0c
2022-03-11 11:22:24 +00:00
OpenStack Release Bot 9ab03ce93d 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: Iad49b18d00d9291fd3cbd4f74fa2494a2799ef5c
2021-09-16 10:42:32 +00:00
OpenStack Release Bot 69f1824b09 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: Iba672b724da00c56f738bd161f55f993835d8787
2021-03-26 18:36:10 +00:00
Ghanshyam Mann b5edbcbb6e [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: I9028875399b54ab961ae46ca13f9cf6e6fc7ad89
2020-12-25 15:39:08 +00:00
jonnary 6ff278642e Release notes for Victoria
Change-Id: I39a623ef149f2f65975671af60a5e90933fd9750
2020-09-29 11:56:48 +00:00
OpenStack Release Bot e0ef5cd2b8 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: I3bba1266c0ee7ce5fe41ead7fbda713f72344292
Sem-Ver: feature
2020-09-25 08:39:12 +00:00
melissaml c4d9ae77a7 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Set openstackdocs_auto_name to use 'project' 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.

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: I5db2dc63ea51f0005aa1244b5b9c692ec23ce314
2020-05-22 17:15:04 +08:00
OpenStack Release Bot 26fb70b4a6 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: Ia053c951a4767128af66aa7c31495e09a63901c8
Sem-Ver: feature
2020-04-24 18:19:41 +00:00
Adam Harwell d3bd9ef3f3 Allow LB creation with VIP_NETWORK *or* VIP_SUBNET
Octavia allows LB creation with only a vip_network_id specified. This is
necessary for things like routed-network environments where subnets are
often not exposed to users, or else not well understood by them, and
Octavia should retain responsibility for choosing the subnet.

Change-Id: Ic252cf7d5cc7277fa86bf12df8776dac27151f83
2020-03-16 12:43:30 -07:00
Adam Harwell 531283783e Add option to choose LB availability_zone
Octavia now supports availability zones for loadbalancers. Now it is
possible to pass this option through the LB policy.

Depends-On: https://review.opendev.org/#/c/710452/

Change-Id: Ib49b38490f83fea19307751ef1cd073307e352ae
2020-03-03 11:10:39 -08:00
Duc Truong be0cf7617b Ignore project_safe restriction for admin users
DB operations were previously restricted to resources belonging to the
project used for authentication. This change removes this restriction so
that admin users can access/modify resources belonging to any project.

Change-Id: I7882ebeb194137e682bdb7ab90f03587c636a7f8
2020-02-13 19:25:54 +00:00
Erik Olof Gunnar Andersson abdc171303 Update release notes to better reflect new configs
While the original release note is correct, we have
since deprecated num_engine_workers.

Change-Id: I9f9cced75c77dfe85ec496aca6129465c960f25a
2019-12-24 15:21:27 -08:00
Ghanshyam Mann 29c0e6fbdf [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Senlin 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: I0377788d0db0e60d44c35f1d26eefd58502a452a
2019-11-17 17:48:53 +00:00
pengyuesheng 9523029e02 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I432ae5415b9ab8ca7247fb5fb2a8b6e1819029ba
2019-11-15 02:47:26 +00:00
Erik Olof Gunnar Andersson 54997a14ea Split engine service into three services
This patch splits the engine into 3 services, conductor, engine and
health-manager.

The goal here is to make the engine more resilent by isolating the
pieces.

Before this patch each Engine worker could potentially be running many
thousands of threads and multiple thread groups, starving the process.
After this change each process would be limited to a single thread
group of 1000 threads, and more predictable and balanced workloads.

* Added two new services.
* Added workers opt to conductor and health manager.
* Merged Thread Group Manager into Engine Service code.

Change-Id: Id4a27ba934dc9777f7ae5b4d7d0a751318ea7877
2019-11-04 11:36:56 -08:00
Bo Tran 8a5460c591 Add cluster_id to action filter in API
Current, an action was created haven't information of a cluster.
When a specific action is created, we do not know what action this action takes
in a cluster and when we execute the query API:

GET http://senlin_host:8777/actions

so many actions are returned even though we can limit using parameters
such as name, target, action, status combined with limit and marker.
But, we can't just get the actions executed in a particular cluster.
So, I want us to be able to do this by enabling the query with a cluster_id parameter.
To accomplish this, I need to modify the schema of
action models and action tables in the database of senlin service.

Change-Id: I49d172414eecf9158192cf0869abb91822ee2226
2019-10-29 10:35:22 +07:00
Duc Truong e792d91935 Add tainted field to nodes
Allow users to marked nodes as tainted.  Tainted nodes will be selected
first for scale-in operations.

* Updated API microversion to 1.13
* Updated node table to add tainted field
* Updated docs

Change-Id: I3a391a31240b5206ad83cd054084b9946fbab24e
2019-10-22 21:27:55 +00:00
Zuul 2a2c4c5180 Merge "Update master for stable/train" 2019-10-14 18:41:31 +00:00
Duc Truong 60fd3ff874 Delete VMs in error state after creation
If a server create ends up with the server in error state, delete the
server.

Change-Id: I43afa5f393cd8475d2686f1e61d96ec79dac00cd
Closes-Bug: #1847676
2019-10-11 23:40:00 +00:00
OpenStack Release Bot 52536bc3fd 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: I2526621d67a927591fab8397249e26c676e8c8af
Sem-Ver: feature
2019-09-27 17:04:34 +00:00
jonnary e063a7c37b Release notes for Train
Change-Id: Ifdfc8f31a27e0b3d1a53cf053a1a9fd30705b67c
2019-09-02 00:06:54 +08:00
Zuul 5038ca746e Merge "Add webhook v2 support" 2019-05-22 14:09:20 +00:00
Duc Truong 7775928abc Add webhook v2 support
Previously webhook API introduced microversion 1.10 to allow callers to
pass arbritary data in the body along with the webhook call.  This was
done so that webhooks would work with aodh again.  However, aodh and
most webhook callers cannot pass in the header necessary to specify the
microversion.  Thus, I'm introducing webhook v2 here so that webhooks
behave like in microversion 1.10 but without the need to specify that
microversion header.

Closes-Bug: #1828856
Change-Id: I7f5cdb2ea19c6ca1a9ea68e64515804f219a73ee
2019-05-13 19:04:51 +00:00
Jude Cross e37e347771 Allow cluster delete to detach policies & delete receivers
This patch allows the cluster delete actions to detach policies
and delete receivers for the cluster being deleted. This
simplifies deleting clusters by not having to detach or delete
all dependancies from it beforehand.

Depends-On: https://review.opendev.org/657713/

Change-Id: I9c723516a65a43533e0589bc85bd485a6387711b
2019-05-08 16:03:06 -07:00
OpenStack Release Bot 38885d52c4 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

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

Change-Id: I292fb509cb6cefba182932fb99cdd3387ce13345
Sem-Ver: feature
2019-03-18 22:09:04 +00:00
Jude Cross 27ce61f6df Add release note for hm fixes
This patch adds the missing releease notes for
https://review.openstack.org/#/c/634811.

Change-Id: I767434f5d617d1eb0bdba625a052b16913d1849b
2019-03-05 12:24:52 -08:00
Zuul 71d9a66abe Merge "Fix Senlin performance issues" 2019-03-05 19:21:59 +00:00
Jude Cross 9f49cfdfb2 Fix Senlin performance issues
This patch fixes the interaction of Senlin with the database.
The standard model_query (joinload_all('*')) has been removed
in favor of using more distinctive join statements.

Additionally this patch removes the DB calls that were baked into the
to_dict() method for the Senlin objects and instead retrieves that
data with joins/single database calls. This allows cluster action
show to actually return within an appropriate amount of time.

This patch improves performance all around with considerably less CPU
usage.

Closes-Bug: #1817604
Change-Id: Ie5c1fca080c82833941edc130568e76701ce394c
2019-02-28 17:27:30 -08:00
Duc Truong 070ad9d7a0 Add release notes for Stein
Change-Id: I5600082a19d3b90c6fe36bd8328feae7426b3690
2019-02-25 18:05:01 +00:00