← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1832164] Re: SADeprecationWarning: The joinedload_all() function is deprecated, and will be removed in a future release. Please use method chaining with joinedload() instead

 

Reviewed:  https://review.opendev.org/664193
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=658e35cad4598113dd94fb4c685a06c7439b5a36
Submitter: Zuul
Branch:    master

commit 658e35cad4598113dd94fb4c685a06c7439b5a36
Author: Takashi NATSUME <natsume.takashi@xxxxxxxxxxxxx>
Date:   Mon Jun 10 13:07:15 2019 +0900

    Replace joinedload_all with joinedload
    
    Replace sqlalchemy.orm.joinedload_all with
    sqlalchemy.orm.joinedload called within a
    new method _joinedload_all that makes multiple
    calls to orm.joinedload.
    
    'joinedload_all' has been deprecated since
    sqlalchemy version 0.9.0, and now makes a
    lot of warning noises.
    
    Change-Id: I7a30efa8ceb21e02e71d8c15bf979bb66470ef91
    Closes-Bug: #1832164


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

Title:
  SADeprecationWarning: The joinedload_all() function is deprecated, and
  will be removed in a future release.  Please use method chaining with
  joinedload() instead

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  The following warning is output in the unit tests.

      b'/tmp/nova/nova/db/sqlalchemy/api.py:1871: SADeprecationWarning: The joinedload_all() function is deprecated, and will be removed in a future release.  Please use method chaining with joinedload() instead'
      b"  options(joinedload_all('security_groups.rules')).\\"

  * http://logs.openstack.org/53/566153/43/check/openstack-tox-
  py36/b7edf77/job-output.txt.gz

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


References