Adopted to new oslo.context code to remove deprecation warnings
Adopted to new oslo.context code to remove deprecation warnings

The following deprecation warnings are gone with the patch:

Using the 'user' argument is deprecated in version '2.18' and will be
removed in version '3.0', please use the 'user_id' argument instead

Using the 'tenant' argument is deprecated in version '2.18' and will be
removed in version '3.0', please use the 'project_id' argument instead

Property 'tenant' has moved to 'project_id' in version '2.6' and will be
removed in version '3.0'

Property 'user' has moved to 'user_id' in version '2.6' and will be
removed in version '3.0'

Property 'tenant' has moved to 'project_id' in version '2.6' and will be
removed in version '3.0'

Property 'domain' has moved to 'domain_id' in version '2.6' and will be
removed in version '3.0'

Property 'user_domain' has moved to 'user_domain_id' in version '2.6'
and will be removed in version '3.0'

Property 'project_domain' has moved to 'project_domain_id' in version
'2.6' and will be removed in version '3.0'

Change-Id: I0acda6e319c261c31ec553169ac099cd2ab28743
Partial-Bug: #1744363

openstack/neutron-lib,openstack/neutron-lib,openstack/neutron-lib,openstack/neutron-lib