← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1943155] Re: Replace "Inspector.from_engine()" with "sqlalchemy.inspect()"

 

Reviewed:  https://review.opendev.org/c/openstack/neutron/+/808103
Committed: https://opendev.org/openstack/neutron/commit/42fda206e9de45a4beda8688b06e1ba29a685722
Submitter: "Zuul (22348)"
Branch:    master

commit 42fda206e9de45a4beda8688b06e1ba29a685722
Author: Rodolfo Alonso Hernandez <ralonsoh@xxxxxxxxxx>
Date:   Thu Sep 9 15:14:06 2021 +0000

    Replace "Inspector.from_engine()" with "sqlalchemy.inspect()"
    
    Since SQLAlchemy 1.4, the method "Inspector.from_engine()" is
    deprecated.
    
    Error message:
    "The from_engine() method on Inspector is deprecated and will be removed
    in a future release.  Please use the sqlalchemy.inspect() function on an
    Engine or Connection in order to acquire an Inspector. (deprecated
    since: 1.4)"
    
    Minimum version of SQLAlchemy required is bumped to 1.4.23.
    
    Change-Id: I6cf5944ccb3a0532cbf123ddc0d7df6b6de80af1
    Closes-Bug: #1943155


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1943155

Title:
  Replace "Inspector.from_engine()" with "sqlalchemy.inspect()"

Status in neutron:
  Fix Released

Bug description:
  Since SQLAlchemy 1.4, the method "Inspector.from_engine()" is
  deprecated.

  Error message:
  "The from_engine() method on Inspector is deprecated and will be removed
  in a future release.  Please use the sqlalchemy.inspect() function on an
  Engine or Connection in order to acquire an Inspector. (deprecated
  since: 1.4)"

  Logs snippet: https://paste.opendev.org/show/809193/

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



References