trove/trove
Zhao Chao 3b726f3013 report_root should always use context.user
The RootHistory intends to record by whom and when the root user of the
underlying datastore backend was enabled. So the "user" column should
always be set to the context user, not the actual root user in the
database. But report_root(and report_root_enabled in
taskmanager.models) use the database user instead, this is not correct,
This patch will fix.

Also remove the "user" argument from Root.create() and
HistoryRoot.create() because the context is already passed in as an
argument when these methods are called.

Closes-Bug: #1546372
Change-Id: I3b4c8ee56c7e0876fb384f0c5841d2d391bd555d
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-07 17:05:54 +08:00
..
backup Remove log translations 2018-01-24 17:21:26 +00:00
cluster Merge "Use neutronclient to get networks." 2018-01-25 10:06:06 +00:00
cmd Fix gate error 2018-01-31 01:51:18 -08:00
common report_root should always use context.user 2018-02-07 17:05:54 +08:00
conductor report_root should always use context.user 2018-02-07 17:05:54 +08:00
configuration Remove log translations 2018-01-24 17:21:26 +00:00
datastore Merge "Fix some reST field lists in docstrings" 2017-06-15 06:41:52 +00:00
db Remove log translations 2018-01-24 17:21:26 +00:00
dns Handle log message interpolation by the logger part 6 2017-03-16 11:27:35 +01:00
extensions report_root should always use context.user 2018-02-07 17:05:54 +08:00
flavor Add support for Oslo Policies to Trove 2016-12-06 21:51:21 +00:00
guestagent report_root should always use context.user 2018-02-07 17:05:54 +08:00
hacking Remove log translations 2018-01-24 17:21:26 +00:00
instance Remove log translations 2018-01-24 17:21:26 +00:00
limits Handle isotime deprecation in oslo_utils.timeutils 2017-06-09 16:22:11 +00:00
module Remove log translations 2018-01-24 17:21:26 +00:00
network Remove log translations 2018-01-24 17:21:26 +00:00
quota Remove log translations 2018-01-24 17:21:26 +00:00
taskmanager report_root should always use context.user 2018-02-07 17:05:54 +08:00
templates Update the validation template for postgresql 2018-02-01 02:20:17 +00:00
tests report_root should always use context.user 2018-02-07 17:05:54 +08:00
volume_type Associate datastore, version with volume-type 2016-12-19 14:24:09 -05:00
__init__.py fix the version info of trove to use pbr 2015-11-05 11:04:46 -06:00
README Rename from reddwarf to trove. 2013-06-24 14:11:15 -07:00
rpc.py Merge "Change RPC dispatcher access_policy to DefaultRPCAccessPolicy" 2017-11-29 06:46:35 +00:00
version.py fix the version info of trove to use pbr 2015-11-05 11:04:46 -06:00
versions.py Removes XML api from trove 2014-03-10 00:16:49 +00:00

This is the trove code itself