tacker/tacker
Hiromu Asahina 39925d1141 Remove deprecated attributes from context
The oslo.context emits a warning for attributes that are not listed in
[1] and considered to be deprecated. According to the warning message,
the policy file should be modified to use $(project_id)s instead of
$(tenant_id)s. Also, context.user is deprecated. We should remove lines
using context.user and use context.user_id only.

The following deprecation warnings are gone with the patch:

- context.py💯 DeprecationWarning: Policy enforcement is depending on
  the value of tenant_id. This key is deprecated. Please update your
  policy file to use the standard policy values.

- test_auth.py:75: DeprecationWarning: Property ‘user’ has moved to
  ‘user_id’ in version ‘2.6’ and will be removed in version ‘3.0’

[1] https://github.com/openstack/oslo.context/blob/master/oslo_context/context.py#L313-L327

Change-Id: Ib06cd0d54772d17838789943b6a09c581b899435
Closes-Bug: #1976219
2022-06-03 10:48:44 +09:00
..
agent from i18n import _ when quoting them 2019-08-09 09:59:48 +08:00
api Remove deprecated attributes from context 2022-06-03 10:48:44 +09:00
cmd Multi version API support 2021-09-16 01:19:51 +00:00
common Support specifying namespace for deploying CNF 2022-03-03 11:15:00 +09:00
conductor Use more reasonable default domain name 2022-04-26 05:49:24 +00:00
conf Support handling large query results by ETSI NFV 2022-03-10 18:13:14 +09:00
db Merge "Fix for subscription with OAuth 2.0 authorization" 2022-03-10 03:08:24 +00:00
extensions Change to use Helm cli during scale with helm 2022-03-01 00:09:11 +00:00
glance_store Use LOG.warning instead of deprecated LOG.warn 2021-12-15 01:28:39 +00:00
hacking Use LOG.warning instead of deprecated LOG.warn 2021-12-15 01:28:39 +00:00
keymgr Drop most of six importings 2020-10-19 12:10:05 +00:00
locale Imported Translations from Zanata 2020-10-24 08:58:53 +00:00
mistral Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-18 14:00:58 +00:00
nfvo Add missed parameters in auto-generated config 2022-03-16 16:34:31 +09:00
objects Merge "FT for multi tenant policy in LCM" 2022-03-10 21:58:55 +00:00
plugins Refactor constants in conductor 2022-02-21 11:58:26 +09:00
policies Remove deprecated attributes from context 2022-06-03 10:48:44 +09:00
privileged Fix failure of testing privsep 2022-03-18 19:25:11 +09:00
releasenotes/notes Support for Change External VNF Connectivity 2021-03-26 17:54:12 +09:00
services Drop most of six importings 2020-10-19 12:10:05 +00:00
sol_refactored Support handling of large query results 2022-05-18 00:31:29 +00:00
tests Remove deprecated attributes from context 2022-06-03 10:48:44 +09:00
tosca Fix UT and FT VNFD yaml because lack of properties 2021-04-01 13:32:28 +09:00
vnflcm Merge "Support CNF update with MgmtDriver" 2022-03-10 21:38:41 +00:00
vnfm Fix validate error when k8s resource init 2022-04-26 10:37:28 +09:00
__init__.py Drop most of six importings 2020-10-19 12:10:05 +00:00
_i18n.py Remove i18n.enable_lazy() call from tacker.cmd 2018-11-14 14:56:52 +05:30
alarm_receiver.py Use more reasonable default domain name 2022-04-26 05:49:24 +00:00
auth.py Merge "Add missed parameters in auto-generated config" 2022-03-18 09:30:23 +00:00
context.py Remove deprecated attributes from context 2022-06-03 10:48:44 +09:00
manager.py Sychronize vnf action tasks 2020-04-22 07:43:50 +00:00
policy.py Replace deprecated import of ABCs from collections 2021-08-31 13:59:17 +00:00
service.py Fix two-stage process launcher in tacker-server 2021-04-23 09:33:49 +09:00
version.py Cleanup vim settings 2016-03-28 13:03:56 +02:00
wsgi.py Fix required attributes when error happened 2021-07-30 16:16:02 +09:00