senlin/tools
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
..
config-generator.conf Migrate to oslo.policy 2015-04-09 11:30:29 -04:00
gen_pot Update pot file with a script for future use 2015-05-07 00:39:09 -04:00
gen-config Modified conf file path for config generation 2015-03-02 11:50:28 +08:00
README A small nit in tools README 2015-02-12 22:34:43 -05:00
senlin-db-recreate Add db_sync to senlin-db-recreate 2015-04-20 03:27:45 -04:00
setup-service Fix admin requirement in trust middleware 2015-05-08 03:53:50 -04:00

Files in this directory are general developer tools or examples of how
to do certain activities.

-----
Tools
-----

+ senlin-db-recreate
    - This script drops the Senlin database from mysql in the case of developer
      data corruption or erasing Senlin.
    - Users are expected to customize the 'MYSQL_ROOT_PW' and 'MYSQL_SENLIN_PW'
      according to their deployments