yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #62064
[Bug 1660667] Re: placement API policy handling uses deprecated fields
Reviewed: https://review.openstack.org/427330
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5fb197914ab429e879ad88de98db404151441647
Submitter: Jenkins
Branch: master
commit 5fb197914ab429e879ad88de98db404151441647
Author: Chris Dent <cdent@xxxxxxxxxxxxx>
Date: Tue Jan 31 17:37:12 2017 +0000
[placement] Use modern attributes of oslo_context
user and tenant have been deprecated since version 2.6, replaced by
user_id and project_id respectively. requirements.txt requires at
least 2.9.0.
These changes are covered by existing tests. See
Ia62158e0eed50a34114718ee724b038f577c7e87 for the original addition.
Change-Id: I3f6b2da692810afe5a684bb5e878ea750b17db5a
Closes-Bug: #1660667
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1660667
Title:
placement API policy handling uses deprecated fields
Status in OpenStack Compute (nova):
Fix Released
Bug description:
When running tests of the placement API, the following deprecation
warnings are produced:
nova/api/openstack/placement/auth.py:74: DeprecationWarning: Property 'user' has moved to 'user_id' in version '2.6' and will be removed in version '3.0'
if ctx.user is None:
nova/api/openstack/placement/policy.py:63: DeprecationWarning: Property 'tenant' has moved to 'project_id' in version '2.6' and will be removed in version '3.0'
target = {'project_id': context.tenant,
nova/api/openstack/placement/policy.py:64: DeprecationWarning: Property 'user' has moved to 'user_id' in version '2.6' and will be removed in version '3.0'
'user_id': context.user}
We should fix this.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1660667/+subscriptions
References