manila/manila/share
kpdev fbc2b4d289 Integrate OSprofiler and Manila
*) Add osprofiler wsgi middleware

This middleware is used for 2 things:
1) It checks that person who want to trace is trusted and knows
secret HMAC key.
2) It start tracing in case of proper trace headers and add
first wsgi trace point, with info about HTTP request
*) Add initialization of osprofiler at start of serivce.

You should use python-manilaclient with this patch:

https://review.opendev.org/#/c/769731

Run any command with --profile SECRET_KEY

  $ manila --profile SECRET_KEY create NFS 1 --name <share> \
    --description <share_description> --share-network <network> \
    --share-type default
  # it will print <Trace ID>

Get pretty HTML with traces:

  $ osprofiler trace show --html <Trace ID> --connection-string \
   <connection_string> --out <output.html>
  e.g. --connection-string can be redis://localhost:6379

Note that osprofiler should be run from admin user name & tenant.

Implements: blueprint manila-os-profiler
Change-Id: I3bce1f04d1cfebfacd78ed135a949a068c78987d
2021-02-25 04:59:19 +01:00
..
drivers Merge "[Native CephFS] Add messages for async ACL ops" 2021-02-01 20:50:46 +00:00
hooks Add share hooks 2015-09-04 19:04:34 +03:00
__init__.py Switch to using oslo_* instead of oslo.* 2015-01-27 09:19:50 +01:00
access.py Fix cannot deny ipv6 access rules 2017-08-02 18:16:33 +00:00
api.py [NetApp] Fix kerberos security service issues 2021-01-22 09:29:29 -02:00
configuration.py Trivial: Remove unused logging import 2015-12-28 21:44:26 -05:00
driver.py Add share server migration 2020-09-10 08:52:08 -03:00
drivers_private_data.py Remove "host" from driver private data 2016-07-26 14:57:34 +08:00
hook.py Remove log translations in share and share_group 4/5 2017-03-31 10:20:11 +08:00
manager.py Integrate OSprofiler and Manila 2021-02-25 04:59:19 +01:00
migration.py Add share server migration 2020-09-10 08:52:08 -03:00
rpcapi.py Add share server migration 2020-09-10 08:52:08 -03:00
share_types.py Add update share-type API to Share Types 2019-09-10 14:43:07 -07:00
snapshot_access.py Fix multiple issues with revert to snapshot in LVM 2017-08-02 16:48:40 -04:00
utils.py Fix Host-assisted Share Migration with IPv4+IPv6 2018-02-06 17:23:16 -05:00