Commit Graph

80 Commits

Author SHA1 Message Date
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
YuehuiLei 412197ad5e 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: Iff48ff530ab27325cc33b3c63d1330cd0d135842
2021-05-06 11:03:30 +08:00
Zuul 5238a34c7d Merge "Add hypervisor status polling health check" 2020-12-16 20:09:21 +00:00
Duc Truong 75c8450b1b Add hypervisor status polling health check
Add new health check type to health policy called
HYPERVISOR_STATUS_POLLING.  When set, it considers a node to be
unhealthy if the hypervisor on which the node is running has a disabled
status or down state.

Bump health policy version to 1.2 with the addition of
HYPERVISOR_STATUS_POLLING.

Change-Id: Ie558fb6ef7bf06cf4065fec5498e229d3146b0b2
2020-09-24 21:00:16 +00:00
wu.chunyang f36ae85370 Add py38 package metadata in project
trivialfix

Change-Id: I5dd1b52a76f10758fac06c867cfd8748a99d6c05
2020-08-18 22:28:55 +08:00
qiufossen 27b7b20903 Remove Babel requirement
Babel is not needed as requirement, remove it.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: Iaa5d5922f2d3ae1f77b988db43b10488d3aa2f08
2020-05-08 18:21:53 +08:00
Andreas Jaeger 20a434c862 Cleanup Python 2.7 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove ancient sections from setup.cfg
- Update requirements
- Remove unused import from conf.py

Change-Id: I87261d38992dedd87709ad8beff0bb533064e118
2020-03-27 17:35:47 +01: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
Erik Olof Gunnar Andersson f6f3d9d272 Move test driver to the tests folder
Moving the mock driver to the tests folder so
that it wont be included in the test coverage.

Change-Id: Ieb3792ca22962427ba9a93a8a7c015a992852a66
2019-12-15 14:11:29 -08:00
Erik Olof Gunnar Andersson 01eff94b76 Centralized configuration
Based upon the established conf paradigm used in Nova,
this patch moves the configuration to a central location.
Making config a lot easier to manage, as well a lot easier
to locate.

Additional changes
* Fixed missing notification section in example config.
* Moved external configs to generator config (e.g. osprofiler)

Change-Id: I8bca356768bd710d28361b50754ddcc249a32428
2019-12-03 11:08:44 -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
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
Corey Bryant 08a32789d3 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ie33b1b1916f99d42d4d091a9532b8608f1a6fc47
Story: #2005924
Task: #34246
2019-07-05 16:12:18 -04:00
Ghanshyam Mann 2ff270448c Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I1eb89d01f16be1b5db36d09c6c4dacf4fef13593
2019-04-16 17:20:14 +00:00
ZhongShengping 8f340b2e0e Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: Icb0d2ef017826571739c9605e1421991c100ea4b
2018-12-05 09:44:55 +08:00
whoami-rajat f529ffe610 Add senlin-status upgrade check command framework
This adds basic framework for senlin-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.

Change-Id: Ic890a04156abf201ac618ce71ccddcc4544d0acf
Story: 2003657
Task: 26154
2018-11-05 12:20:59 -05:00
Duc Truong 3e6a688db0 Support multiple detection types in health policy
This patchset changes the existing health policy to allow
NODE_STATUS_POLLING to be combined with NODE_STATUS_POLL_URL to provide
multiple detection types.

The existing implementation of NODE_STATUS_POLLING was changed to
directly perform a do_check on the node instead of doing a cluster check
operation. This was done to avoid locking the cluster as part of the
health check. When the cluster check was performed during a health
check, there was a potential lock contention problem if the user was
already performing other operations on the same cluster.

Implements: blueprint multiple-detection-modes
Change-Id: Iba0b043cc582e668a9066b0586ca8a0b201040e4
2018-09-25 22:27:33 +00:00
Duc Truong ae02a6e983 Treat sphinx warnings as errors
This enables sphinx to treat warnings as errors. With this change any
documentation format errors will be flagged in the CI sphinx job.

Change-Id: Ia0cc5a264f2c1db222156b655b706bc581f8820c
2018-07-12 18:01:19 +00:00
Nguyen Van Trung 7fe1c3a977 Add default configuration files to data_files
In order to make it simpler to use the default
configuration files when deploying services
from source, the files are added to pbr's
data_files section so that the files are
included in the built wheels and therefore
deployed with the code. Packaging and deployment
tools can then more easily use the default files
if they wish to.

This pattern is already established with similar
files for neutron, designate and glance as has
been mentioned in the related bug report.

Change-Id: Ie4277b3b94cca5c99d1e40babb085922dabcc7b0
Closes-Bug: #1718356
2018-03-15 22:50:30 +07:00
Yuanbin.Chen a4de2b19eb Fix lb and delete policy not support 1.0 version
Change-Id: I8710d84736d384254619cfeedec3612161df81c7
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-02-09 18:42:32 +08:00
tengqm 9763e308f3 Decouple cloud backends
This is an attempt to fix stevedore confusion when loading plugins.
It also removes the ceilometer backend which is not used anywhere

Change-Id: Ic4f6165ca6c89daa24946126feeb23cdd431be0c
2018-01-31 06:05:00 -05:00
OpenStack Proposal Bot c1934ef8e9 Updated from global requirements
Change-Id: I2585d2225e97d6024f2a8407d09e63d1741a9649
2018-01-31 06:38:00 +00:00
Duc Truong 3dd9f3ecde Lifecycle hook implementation
* Added lifecycle hook properties to deletion policy
* Check if deletion policy has lifecycle hook properties during
deletion and perform lifecycle specific actions if it does
* Added complete lifecycle API endpoint
* Bumped microversion to 1.9
* Added unit-test cases for lifecycle hooks
* Added lifecycle hook notification
* Added lifecycle hook properties to deletion policy
* Modified node_action to process policy preop if it was a
derived action with lifecycle hook properties
* Modified LB policy to defer deletion of node until node_deletion
action is executed if lifecycle hook properties are defined in
deletion policy
* Added zaqar test driver
* Added documentation for lifecycle hook

Depends-On: Id7804abc351c063563b58fb69a66074d0d854ecf

Change-Id: I888a01c4f26959649121d6f82430017858a4c481
2018-01-30 17:31:43 +00:00
tengqm 270f5e38d3 Move openstack_test driver suite
This patch moves the openstack_test backend from test subdir to the
drivers subdir for better visibility

Change-Id: I2394c08705aa27d2ee9edb1ee5a5ce502e26ad92
2018-01-29 05:03:34 -05:00
Duc Truong fa1ac4caf2 Fix devgate
* add senlin-tempest-plugin as required project for zuul
* change senlin-dsvm-tempest-* to run against senlin-tempest-plugin
* remove entry points tempest plugin
* change entry point for openstack_test to point to senlin-tempest-plugin
* add missing methods in neutron test driver
* fix check of force option for cluster delete and node delete
* add zaqar-tempest-plugin in devstack for gate test
* fix bug with attached_volume property
* removed tempest
* updated readme

Depends-On: I4eb9a9dbc0a1bdd5e0864c147974cf8e371789c2

Change-Id: I39761f5d1dd7fa4c38cf76929e996aafa65297ca
2018-01-22 23:46:13 -05:00
ruijie 8e6e5cdf49 add endpoints as plugin
this patch adds the endpoints as the plugin of senlin, and make it
extendable and configurable.

Change-Id: I8539774bf65481189317d2d60eba8c14b5eef24d
2017-12-26 20:34:49 +08:00
Dai Dang Van 1eb39637ac Implement policy in code (1)
This commit will prepare for implementing policies in code [1].

Like oslo.config, with oslo.policy, we can define all of
default rules in code base and only change some rules
via policy file. Another thing that we should use yaml
format instead of json format.

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Change-Id: I8cd6e148d9b6bb1dc61e2cb1728acafc325bca65
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
2017-10-19 14:24:29 +07:00
melissaml 9842568200 Update URLs in documents according to document migration
Change-Id: Iff714c8382ea48ecf5306cb5adf06c831b040ae3
2017-07-14 10:53:54 +08:00
chenlx f7dbaef773 Optimize the link address
Use https instead of http to ensure the safety.

Change-Id: Ia9feb87c691dbe03bf6e92229f33d2cd6cc0adda
2017-05-03 17:11:10 +08:00
Jenkins 0c40b3544e Merge "Added CORS support to Senlin" 2017-03-20 04:08:36 +00:00
Aaron-DH e900491c79 Added CORS support to Senlin
OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html

Change-Id: Iedd14f7aebf0969e79b74ec3400e4362029d1b63
2017-03-14 09:25:10 +08:00
loooosy f9cb2f8721 fix setup.cfg Remove references to Python 3.4
Change-Id: Id4728b7ce91cd138d4d1e692088704eee642ce33
2017-03-10 17:14:10 +08:00
tengqm f1fe45d741 Add event dispatcher pluggin infrastructure
This patch adds support to load event dispatchers as plugins.

Change-Id: Iceebfcb0ce2b07335c9ee7ea196bddb4abbf9bee
partial-blueprint: generic-event
2016-12-04 03:47:11 -05:00
lvdongbing 354784bcb8 Add support to have Senlin API run under Apache
Add scripts for running Senlin API service under apache2, will add
related devstack support in another patch.

Implements bp: run-senlin-api-under-apache

Change-Id: I18872546a653c5de26360b6289dd1f5886c4a2b7
2016-11-09 09:44:24 -05:00
RUIJIE YUAN d8004994ff action handler support batch policy
This patch for the action handler layer.
The action will update the cluster by the plan
we created if user bind batch policy to the cluster.

Change-Id: I42fc8cf2d255580c57990d686c24b620abd1cde8
Implements: blueprint support-batching-policy
2016-10-25 09:11:32 +08:00
jonnary 1896742b5f Revise lb_policy version
Example lb_policy.yaml version has been updated to 1.1.
When use example lb_policy.yaml to create policy, it will relpy:
"The specified policy_type (senlin.policy.loadbalance-1.1)
could not be found."

Change-Id: Ica03442b87fcff7be61149faa70a869dd4088839
2016-10-16 09:10:10 -07:00
Jenkins e5a9c8065d Merge "Update the home-page info with the developer documentation" 2016-07-26 13:50:33 +00:00
zhangyanxian f6f82d31aa Update the home-page info with the developer documentation
Change-Id: Id0098dc1201be5ff11490df6f0ed9aeb203874f2
2016-07-25 01:08:46 +00:00
tengqm cccdf92f14 Add docs for configuration options
This patch adds documentation for the senlin configuration options.

Change-Id: I55eabc17ebbacfb01bfb07c37cee6f971a993b5c
2016-07-23 08:11:27 -04:00
tengqm b2c5a2c3cd Consolidate configuration options
Consolidate all senlin configuration options into a single module.

Change-Id: I8a2d3121c7beca162280a7409babe4d9866527fb
2016-07-23 06:54:56 -04:00
PanFengyun ebd9715308 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.

Change-Id: I87d6445a451e380a290f4a6cf9364c621dc293e5
2016-07-15 10:43:34 +08:00
yanyanhu d3c4e236db Fix oslo.config.opts in setup.cfg
This match fixes some incorrect entry_points of
oslo.config.opts in setup.cfg.

Change-Id: I1a428fb2f4249289b2c3190e1669f5c4247e2b69
2016-06-21 03:07:53 -04:00
yanyanhu f0464b1b0d Relocate openstack_test driver
This patch relocates openstack_test driver for coming
functional test refactoring.

Change-Id: I7d4f16f2ed68947de1533aa69dacaf8a779b35ce
2016-06-17 02:53:21 -04:00
tengqm 928327ea43 Rename container profile
This patch rename docker profile to 'container.dockerinc.docker' to
better reflect the namespace.

Change-Id: I366c808f5a357a1c5199c8e76662ef9de9061d26
2016-05-19 05:39:45 -04:00
xu-haiwei e4e7419dc6 Add support for container profile
This patch creates a new container type profile, currently
only support docker.

blueprint container-profile-support

Change-Id: I7ff2c77f1e0fd06f26bb46c80d17c616f361e1bc
2016-05-13 11:21:39 +09:00
Ethan Lynn 3b04d3701c Rename tempest_tests to tempest
Rename tempest_tests to tempest

Change-Id: Ia8285afb3b8eba51fe3160643c5c04097839c92b
2016-04-12 14:34:03 +08:00
Ethan Lynn d1668339fc Initial tempest plugin framework
Tempest plugin framework provides more flexibility for projects.
With this plugin, it's not requiring the tests live in the tempest
tree.

Blueprint: tempest-plugin-interface
Change-Id: Iaa3ee3aa3bf5d1d42912a97693ab60e8c81c3085
2016-04-08 11:53:07 +08:00
tengqm cf4d6cde59 Support to affinity policy
This patch adds support to nova server affinity policy. The policy was
adpated from the previous vSphereDRS policy. It is now registered and
enabled.

Change-Id: Id8e2926893dc719d06185baf7bec6844e5b85a95
2016-03-02 21:59:44 -05:00
tengqm b4c24d970b Remove version from setup.cfg
We now allow the pbr to manage the version info.

Change-Id: Ib5b1bf2878300603434a8d6acb935b12b5e3e5d9
2016-01-22 22:10:52 -05:00