Commit Graph

55 Commits

Author SHA1 Message Date
Erik Olof Gunnar Andersson 7ba518eee6 Replace cover job with simpler working job
Change-Id: I5f34f2e82c4157154f815ac3f537daf52823a933
2023-04-02 23:54:11 -07:00
“miaoyuliang” 1bace4641d Update error in install-rdo.rst and update default port
Nova placement use port 8778, to avoid confusion, Update
senlin default port from  8778 to 8777. And update
spelling mistakes in install-rdo.rst

Change-Id: I342b1badf3910ea07ea64523cdb8a19a8a0ccb06
2020-09-26 00:31:31 +00: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
Erik Olof Gunnar Andersson 4abe4041be Fixing openstack-tox-cover
Cover was broken as part of the switch to stestr.

Change-Id: Ia0eea9f966d15a62fffc1fcd76f8fd159808356f
2018-06-07 23:05:34 -07: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
ZhangHongtao 37ce0051dd Fix to use "." to source script files
Adhering to coding conventions. Refer to ``Code conventions`` at
https://docs.openstack.org/contributor-guide/ for details.

The previous patch [1] missing some places.

[1] https://review.openstack.org/#/c/498235/

Change-Id: Ic97130e296d9bf8c37851de1bb61c606430516a6
2017-08-28 17:27:21 +08:00
chenyb4 388dad36b8 Fix setup-service script error
replace service to services, Add create role services

Closes-Bug: #1676158
Signed-off-by: chenyb4 <cybing4@gmail.com>
Change-Id: Iaeec8aa1e0c10f21240d7ada5e7245939e408384
2017-04-13 21:40:42 -04: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
pallavi 8542ba8457 Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of senlin-api. The
purpose of this middleware is to set up the request URL correctly in
the case there is a proxy (For instance, a loadbalancer such as HAProxy)
in front of senlin-api.

So, when TLS connections are terminated at the proxy, and one tries to
get the versions from the '/' resource from senlin-api, one will notice
that the protocol is incorrect; It will show 'http' instead of 'https'.
So this middleware handles such cases, thus helping Keystone discovery
work correctly.

The HTTPProxyToWSGI is off by default and needs to be enabled via a
configuration value.

Change-Id: Ia65ecdcc07084514884258661f840e6edcb200a4
Closes-Bug: #1590608
Co-Authored-By: pallavi <pallavi.s@nectechnologies.in>
2016-12-14 20:46:01 -05:00
yanyanhu 151bb4580e Fix coverage test script
This patch fixes coverage test script by removing
existed cover-master folder before renaming cover folder.
Otherwise, "mv cover cover-master" will fail for target
folder "cover-master" is not empty.

Change-Id: Iebbc6b2138bc220419f1443e3fdec4bb81310f73
2016-08-29 22:28:11 -04:00
Jenkins c5ea0cec7b Merge "Some new typos need to be fixed" 2016-08-25 09:36:15 +00:00
lvdongbing 08eb7daa3f Revise tools/setup-service to make it work with keystone v3
Change-Id: I2c9f5240f161c5581d78395b8378391d74d0cc66
2016-08-25 02:38:53 -04:00
zhangyanxian bd3bbc7507 Some new typos need to be fixed
Change-Id: I6ae8a494c2e3632314c9c812bf505e26812fa338
Closes-bug: #1615874
2016-08-24 07:15:11 +00:00
tengqm 4ff266ec8a Move some config options into senlin_api group
This patch moves the following configuration options into the
`senlin_api` group. This is gonna make the configuration step a lot
easier.

This patch also fixes the problem of namespace used for config file
generation.

Change-Id: Ia58426c73c59ce29b2cb463a76e78b713721b4fc
2016-07-29 07:00:39 -04:00
Jenkins 474e61fbbd Merge "Consolidate configuration options" 2016-07-25 04:27:57 +00: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
yanyanhu 36f36cc691 Improve coverage test
This patch adds a test tool borrowed from Rally project
to enable test coverage comparison between master and
proposed branch. With it, coverage test will fail if
new proposed change reduces the unit test coverage.

Change-Id: I0de9cf84eb82e1846aae57c35e33c8b789a629cc
2016-07-22 01:01:47 -04:00
tengqm 3a2352808b Tune health manager options
This patch massages the options related to periodic tasks. It is a
preparation for future improvement to the health manager. Note that the
options changes are all transparent to users, i.e. they still belong to
the [default] section.

Change-Id: I7317264ba2ac4aeeade8915a9cb4afedd50edc2a
2016-05-21 09:18:54 -04:00
yanyanhu 6131802e3f Minor tweak setup-service tool
This patch revises setup-service tool to make it get default
region name from environment variables when setting up senlin
service.

Change-Id: I654905915ce47be4b73847ac0e99bcf5f60b79d2
2016-02-22 21:45:15 -05:00
zhangguoqing 33342641a5 tools/setup-service: Add email info when user-create
Change-Id: Icca41fba41c4336b27bcf9c49a376a232b1ac65b
2016-02-15 23:05:34 +08:00
tengqm 4203e1a779 Refactor modules used by senlin-api
This patch moves wsgi into api module, merge JSON serializers and
deserializers into the same module for easier maintenance.

Change-Id: I579de8701c69ef6e231762b9eb3192dc3208a9de
2016-01-15 10:17:45 -05:00
lvdongbing 5fa6d711e8 Make health_mgr_opts auto generate to config sample
Closes-Bug: #1526582
Change-Id: I911d06a9bb3ea09fbedbc13b8a8c019eb6d9ed30
2015-12-15 21:02:14 -05:00
tengqm c75a6f6784 Revert to use keystone v2 based OSC
Reverting back to use keystone v2 based openstackclient command because
folks are getting confused about the command differences. The previous
'fix' doesn't work if without additional options.

Change-Id: I8a3cc69079d969f3ac13d80c0b02ee89bede071d
2015-12-07 21:43:44 -05:00
tengqm 6e4191d929 Fix service setup script for new endpoints
We are removing 'tenant_id' from the senlin endpoints. This patch fixes
the setup script to make it: 1. work with latest service change; 2. work
with new changes to openstackclient.

Change-Id: I12a5b7acbe76370ceab3e79a807d91da22707d60
2015-12-07 22:29:10 +08:00
tengqm 0cf9ccea76 Fix setup-service script for RC/role checking
This patch adds checking related to RC file sourcing and user role
checking. Without these pre-conditions, the script cannot run properly.

Change-Id: Icfc3dd241cc57449712a56e7a11ef0b1b47c0826
Closes-Bug: #1470757
2015-11-02 00:21:50 -05:00
tengqm 2c16cbeef5 Complete README file under tools subdirectory
The existing README file contains only some incomplete information
about the files. This patch adds info for all other files.

Change-Id: Id80fc7316d383d94bd44ec4d912ab609dcb4c606
2015-10-21 04:55:12 -04:00
tengqm eaaa9c67f0 Rename gen_pot to gen-pot-files
This is a change to make tools naming consistent.

Change-Id: I6b5b76d482ef4f74f28da8e77bcefc84bde2f386
2015-10-21 00:57:26 -04:00
tengqm 5d814a9837 Add missing namespace for config generator
Due to problems in oslo.service, configuration option generator is not
collecting all options from the source file. This patch adds some other
modules that contains configuration options.

Change-Id: I7940d7bb5a5e17cf2bfc0a6d950807bb2d5de186
2015-06-27 05:41:56 -04:00
tengqm 031293ffff Switch to use oslo.service
The 'oslo.service' has graduated now. We should switch to use it from
now on. Maintaining a copy of code we don't own is not fun.

Change-Id: I92372ae64ea6bb0a456b88218c1de91605377a19
2015-06-23 03:12:05 -04:00
Haiwei Xu 081f774e1f Delete domain option of 'user create' command
Openstack user create command doesn't have '--domain'
option now.

Change-Id: If36ae52e853fd70f1e7b54db8b6b8ade0b415968
2015-05-25 18:54:37 +09:00
tengqm 9c14bb6d60 Fix admin requirement in trust middleware
Due to default policy.json settings in Keystone, a non-admin user is not
allowed to call 'list_users' or 'get_user' APIs. However, Senlin only
knows the user name but it needs a user ID to create the trust between
service requester and the 'senlin' user. The only workaround today is to
have Senlin query its own user ID using its user name. After this is
done, the trust middleware will use the service requester's credential
to raise the 'trust create' request to Keystone.

This necessitates two changes to the current code, one is to relax
Keystone's policy setting to allow a user with 'service' role to do user
list and user get (proposed here: https://review.openstack.org/181298);
the other one is to have Senlin trust middleware to raise user ID
checking request using 'senlin' credential.  This patch contains the
second part.

Since devstack doesn't provide a function to modify default policy
settings, we will wait to see if the patch to Keystone will be accepted.
If Keystone refuse to accept that change, we need to hack the devstack
plugin and 'setup-service' tool to modify the policy.json file.

Anyway, we need 'senlin' user to have a 'service' role in the
requester's domain (default to 'demo').

Change-Id: I87146a54f79e32a9175755f42da1e4406842c0b7
2015-05-08 03:53:50 -04:00
tengqm 3706f8eddf Update pot file with a script for future use
This patch updates the pot file and adds a script that can be used to
generate/update the pot files easily.

Change-Id: I3a0769eb7795d3fb351353eb8e9fb32355cc3aab
2015-05-07 00:39:09 -04:00
tengqm 5d232003f0 Added user/role create for service setup
This part was missing from a manual setup process.

Change-Id: I0d230186d1a833351ab03324129b3ad8d5d63993
2015-05-05 23:46:02 -04:00
tengqm 1bd3dd8c9b Add db_sync to senlin-db-recreate
We don't need an additional step to recreate tables. After all, an empty
database with no tables is useless.

Change-Id: Ic1b4a8ceffa61e1600b661bd0eaa10431962e44b
2015-04-20 03:27:45 -04:00
tengqm c1d9ee8dca Migrate to oslo.policy
This patch removes the dependency to policy in oslo incubator because
oslo_policy has graduated.

Change-Id: I14966d1d3bd50a1e077a49c117e29230755ffb85
2015-04-09 11:30:29 -04:00
Ethan Lynn a672e60813 Fix setup scripts in tools folder
Fix some error when I using these tools.

Change-Id: Icf6b3546741f4e5d3e8b1d550c1462d0ad59e2ca
2015-04-09 00:35:18 +08:00
Jenkins d661877917 Merge "Add missing oslo.log module into config generation" 2015-03-30 23:27:51 +00:00
tengqm f7580db929 Revised tool for service setup
This is based on the latest openstack-client. It also adds checking
if host IP is specified.

Change-Id: Ic387f280066689f5951eca297c48b6c828ac7474
2015-03-30 11:10:00 -04:00
tengqm 411a2402bc Add missing oslo.log module into config generation
The oslo.log module was missed from the configuration generator.

Change-Id: Ia75b2902e1c914d3ba30a899d6cc023699a4f2cd
2015-03-30 10:56:50 -04:00
yanyanhu 7adf2dfdc4 Make setup-service tool work. 2015-03-02 03:12:07 -05:00
tengqm 86873fd7cf Modified conf file path for config generation 2015-03-02 11:50:28 +08:00
tengqm 1136d683eb Remove log from namespace 2015-03-02 11:43:54 +08:00
tengqm 9b7f2e8856 Fixed config gen namespace error 2015-03-02 11:41:43 +08:00
yanyanhu 686ba1c205 A small nit in tools README 2015-02-12 22:34:43 -05:00
tengqm c750553c79 Remove clients package from config generator 2015-02-01 13:40:22 +08:00
tengqm 17fb019cfc Move configuration file generation into tools
Generating configuration files using tox.ini environment may be buggy.
The tox venv may be different from the system wide environment.
2015-01-23 21:53:24 +08:00
tengqm e6a6b4f36e Initial version script for service setup 2015-01-19 16:01:24 +08:00
tengqm fdd2655c19 README file for tools subdirectory 2015-01-03 12:22:17 +08:00
tengqm 61d724f136 Revised password 2014-12-25 18:49:39 +08:00
tengqm 72ff3cf966 Renamed script to be more accurate 2014-12-18 18:12:53 +08:00