Commit Graph

7705 Commits

Author SHA1 Message Date
Pham Le Gia Dai ec5fae9976 Remove unused `WSGIService` class
This class have been stayed in source code for a long
time and not used since it created. The API service used `senlin.api.common.wsgi.Server`, not this class . It should be cleaned up.

Change-Id: I71196af4ad5ce0c975bec1c8c80be19b43ccbd2d
2024-04-08 07:46:51 +00:00
Zuul 02e4acdc6c Merge "Fix error can't do rebuild nova instances" 2024-04-05 11:18:38 +00:00
Bo Tran 450bd35136 Fix error can't do rebuild nova instances
Currently, the python openstacksdk changed rebuild_server function's
parameters. So, when the senlin-engine handle rebuild nova instance, it
will raise this error like: "rebuild_server() got multiple values
for argument 'image'"

This patch will fix above error

Change-Id: Ibc03fe6d5ca6db2b02ece5d0b3aab00dff157de1
2024-03-25 13:48:29 +07:00
Tyler Adams 4eda307207 The utils module and its LazyPluggable class are abandoned and need to be cleaned up. A search of the code base shows no from senlin.db import utils. Database calls are done through senlin.db.api
Change-Id: I89055876fab6d1a060b9609ce883f0e6812fc478
2024-03-23 18:05:24 +00:00
Zuul ae908758d8 Merge "reno: Update master for unmaintained/yoga" 2024-03-06 05:38:34 +00:00
Tyler Adams 6b15b97689 Remove executable permissions from files that don't need it
Many python files have their executable permissions flag set but they shouldn't Removed executable flag from files that did not need it

Closes-Bug: #2055736
Change-Id: Ic04051fdc597b2f915f76e4c4c47f392354ddfe1
2024-03-02 00:14:48 +00:00
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
Zuul 032eea8fda Merge "Fix: `TrustMiddleware` unable to fetch trusts/credentials from identity service" 2024-01-18 06:51:32 +00:00
Tony Breeds cb8b8f7676 Revert "bump eventlet to latest version that support python 3.12"
This reverts commit c2d0b6584d.

Reason for revert: This is too aggressive and needs wider community consultation.  The constraints change is being reverted.

Please revert ASAP.

Change-Id: I74bc67eb66f19e1eb2ac9d328eefafb7289fc1e7
2024-01-17 23:54:07 +00:00
Hervé Beraud c2d0b6584d
bump eventlet to latest version that support python 3.12
Change-Id: I4d9d5db934739213f07aadedfb590630913640ed
2024-01-17 16:28:44 +01: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
Zuul 5552e197b3 Merge "Fix: ServerProfile._validate_volume_type() missing 1 required positional argument: 'name_or_id'" 2024-01-14 18:50:11 +00: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
Pham Le Gia Dai eb1899b830 Remove SSL Middleware tests
The SSL Middleware got removed from the `oslo.middleware` lib.  Refer: 67b9c23f16
This cause zuul jobs failed.

Change-Id: Iba896057e16843739e3a395edf8df97fbac6107d
2024-01-14 16:20:57 +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
Zuul 5c0fae0453 Merge "Add upgrade test coverage" 2024-01-04 17:41:19 +00:00
Pham Le Gia Dai 541498724b TypeError: 'OSError' object is not subscriptable raised when terminate senlin-api process unexpectedly
When terminate senlin-api process the `evenlet.wsgi.server` raised OSError exception that is not a list or a tuple which make TypeError raised and the senlin-api process may not be terminated properly

Closes-Bug: #2047914
Change-Id: Id02befe51e9118c8d8dafc3c926398fbf7e1258e
2024-01-04 04:22:27 +00:00
Erik Olof Gunnar Andersson 3696403941 Add upgrade test coverage
Adding additional test upgrade coverage.

Change-Id: I14dfa9371070927b335649f00c15716d935da776
2023-12-31 00:01:51 +00: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
Zuul ca5a3b2876 Merge "Fix coverage issues with greenlet" 2023-12-20 08:24:49 +00:00
Thomas Goirand 9d36ff5c29 Use assert_has_calls not has_calls
has_calls was removed from Python 3.12, as starts failing in Debian
unstable. This patch fixes it.

Change-Id: Id594856ad39c17e2eb105e6ad5067fa9a66a04a3
2023-12-13 12:56:08 +01:00
Erik Olof Gunnar Andersson 4a43b55fce Fix coverage issues with greenlet
Change-Id: Ieeb67463400ff6cf8c0ebbda1513c1de27a7bf69
2023-11-08 04:42:04 -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
Dmitriy Rabotyagov 4125b34e0a Do not use deperecated MetaData.bind
Sqlaclhemy metadata bind is deperecated from version 1.4 and will
be removed in SQLAlchemy 2.0 [1]. It can be easily replaced with
metadata reflect which works for SQLAlchemy 2.0.

Also current metadata.bind does not result in fetching all tables from
the database, so metadata.tables is an empty mapping, which leads
to db_sync failures.

[1] https://docs.sqlalchemy.org/en/14/core/metadata.html#sqlalchemy.schema.MetaData.bind
[2] https://docs.sqlalchemy.org/en/14/core/reflection.html#reflecting-all-tables-at-once

Change-Id: I2b6f5f7e58567759b631baad87861d3a135f60fa
2023-08-23 11:53:24 +02:00
Bui Doan Dang a5c28aeec3 Add volume type to bdm_v2
This patch support user create volume with volume type.

Change-Id: I8f841cf3cd92bf901e218f92e553aa0b0405f3b6
2023-07-10 08:10:32 +07:00
Bui Doan Dang 6eee2f4153 Support create profile with subnet
This patch allow to define subnet in profile,
Default network port will find a random subnet to create port on, user can define specific subnet.

Change-Id: I8a29dcb7c8b92c8bd1b8c9111134c3ace6ea9a76
2023-04-26 14:01:40 +07:00
Erik Olof Gunnar Andersson 79d0d1f5f9 Add separate non-voting Zaqar job
Change-Id: I39fd83b89c560fd5084aee49dbef662348aaecc5
2023-04-03 19:20:23 -07:00
Erik Olof Gunnar Andersson 50cedc744f Fix old zuul gate jobs
Change-Id: I831006e733c6d211e9f17a9a772550f8451660bb
2023-04-04 02:20:07 +00:00
Zuul 6334ab0e0d Merge "Replace cover job with simpler working job" 2023-04-03 18:26:21 +00:00
Erik Olof Gunnar Andersson 7ba518eee6 Replace cover job with simpler working job
Change-Id: I5f34f2e82c4157154f815ac3f537daf52823a933
2023-04-02 23:54:11 -07: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
Erik Olof Gunnar Andersson f58827e6db Revert "Re-enable Zaqar testing"
This reverts commit 2a52924571.

Reason for revert: Zaqar is broken again

Change-Id: Ic86881eccb66e1c845097681c955db7cd05ecabf
2023-03-26 22:45:53 +00:00
Zuul c4420212e1 Merge "Add cleanup step for orphaned health checks" 2023-03-13 22:27:07 +00:00
Erik Olof Gunnar Andersson 55ac1c9928 Add cleanup step for orphaned health checks
This adds a cleanup task on the health manager to
help prevent orphaned health checks.

Change-Id: Ia5d7a3afdb1e610b0f8463857c69ce35efb966ed
2023-03-10 05:45:43 +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
Erik Olof Gunnar Andersson 83de2e97c0 Fix doc failing to build properly
Change-Id: If6a54855893af066a4489408ebeaeed6c5869204
2023-03-03 14:38:42 -08:00
Zuul d76152595f Merge "Re-enable Zaqar testing" 2023-01-23 18:54:34 +00:00
Erik Olof Gunnar Andersson 2a52924571 Re-enable Zaqar testing
Change-Id: I014fae2de854e637643328574d963f9f95e3d316
2023-01-21 16:00:30 -08:00
Tobias Urdin a6bc01a7f9 Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: Ibb44b96108ef6029fe693d0765d59aa15570107e
2023-01-21 15:45:44 -08:00
Erik Olof Gunnar Andersson 196aace962 Fix CI and temporarily disable integration tests
Zaqar is currently broken upstream. Until Zaqar is fixed
we need to temporarily disable the integration tests.

Change-Id: Ife54d48d41b7d1fd5b6129ccd4978e2eb46842ab
2023-01-03 13:48:28 -08:00
wangkuntian 0743b6ec7b Add the lost component when in installation
Change-Id: I88b261be4a421c53dfadcd5ea9291fd4c569b344
2022-11-10 10:18:08 +08:00
Kristi Nikolla 5bb85f6d3d
Update deprecated zuul syntax
Queues are now declared at the project level

https: //lists.openstack.org/pipermail/openstack-discuss/2021-November/025797.html
Change-Id: Ie3440cb649484f999fc37f4779d36033c96a45d7
2022-10-13 10:12:45 -04:00
OpenStack Release Bot 0c6c34f919 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: I4e0579f1085f3a79bbd3e76784396408e5968d59
2022-09-15 15:55:54 +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