tacker/tacker
Hiromu Asahina 2625c00375 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
(cherry picked from commit 39925d1141)
2022-07-04 15:40:12 +09:00
..
agent from i18n import _ when quoting them 2019-08-09 09:59:48 +08:00
api Remove deprecated attributes from context 2022-07-04 15:40:12 +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 Add missed parameters in auto-generated config 2022-03-21 03:16:51 +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-21 03:16:51 +00:00
objects Suppress Warnings for SQL Alchemy IN operator 2022-04-04 09:00:50 +09:00
plugins Refactor constants in conductor 2022-02-21 11:58:26 +09:00
policies Remove deprecated attributes from context 2022-07-04 15:40:12 +09:00
privileged Fix failure of testing privsep 2022-03-21 03:18:13 +00: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 Basic Lifecycle Operations of CNF v2 API 2022-03-21 03:17:52 +00:00
tests Remove deprecated attributes from context 2022-07-04 15:40:12 +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 Add missed parameters in auto-generated config 2022-03-21 03:16:51 +00: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 Fix to encrypt password print in debug logs 2020-11-17 02:17:02 +00:00
auth.py Add missed parameters in auto-generated config 2022-03-21 03:16:51 +00:00
context.py Remove deprecated attributes from context 2022-07-04 15:40:12 +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 usage of deprecated .best_match() 2022-06-23 22:52:53 +09:00