← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1822729] Re: DeprecationWarning: Property 'tenant' has moved to 'project_id' in version '2.6' and will be removed in version '3.0'

 

Reviewed:  https://review.openstack.org/649234
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c3af63472a9e1cba81592b37718a905e63baaa1b
Submitter: Zuul
Branch:    master

commit c3af63472a9e1cba81592b37718a905e63baaa1b
Author: Takashi NATSUME <natsume.takashi@xxxxxxxxxxxxx>
Date:   Tue Apr 2 16:14:53 2019 +0900

    Fix a deprecation warning
    
    Replace context.tenant with context.project_id
    to fix the following warning.
    
      DeprecationWarning: Property 'tenant' has moved to 'project_id'
      in version '2.6' and will be removed in version '3.0'
    
    Change-Id: I7ae02d7f25486ee7a424c96e6c61b66461a01f09
    Closes-Bug: #1822729


** 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/1822729

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

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  The following test outputs DeprecationWarning. Is should be fixed.

  
  {5} nova.tests.unit.network.security_group.test_neutron_driver.TestNeutronDriver.test_list_with_all_tenants_not_admin [0.016566s] ... ok

  Captured stderr:
  ~~~~~~~~~~~~~~~~
      b"/tmp/nova/nova/tests/unit/network/security_group/test_neutron_driver.py:140: DeprecationWarning: Property 'tenant' has moved to 'project_id' in version '2.6' and will be removed in version '3.0'"
      b'  tenant_id=self.context.tenant)'
      b''

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1822729/+subscriptions


References