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
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
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>
replace service to services, Add create role services
Closes-Bug: #1676158
Signed-off-by: chenyb4 <cybing4@gmail.com>
Change-Id: Iaeec8aa1e0c10f21240d7ada5e7245939e408384
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>
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
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
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
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
This patch revises setup-service tool to make it get default
region name from environment variables when setting up senlin
service.
Change-Id: I654905915ce47be4b73847ac0e99bcf5f60b79d2
This patch moves wsgi into api module, merge JSON serializers and
deserializers into the same module for easier maintenance.
Change-Id: I579de8701c69ef6e231762b9eb3192dc3208a9de
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
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
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
The existing README file contains only some incomplete information
about the files. This patch adds info for all other files.
Change-Id: Id80fc7316d383d94bd44ec4d912ab609dcb4c606
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
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
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
This patch updates the pot file and adds a script that can be used to
generate/update the pot files easily.
Change-Id: I3a0769eb7795d3fb351353eb8e9fb32355cc3aab
We don't need an additional step to recreate tables. After all, an empty
database with no tables is useless.
Change-Id: Ic1b4a8ceffa61e1600b661bd0eaa10431962e44b