Fix SQLAlchemy warnings with version 1.4.14

Bug #1942621 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Rodolfo Alonso

Bug Description

Since [1], released in version 1.4.14, "TypeDecorator.cache_ok" is not defined by default. That will emit a warning message.

[1]https://github.com/zzzeek/sqlalchemy/commit/6967b4502079e199b12f5eb307d10d27ec92d537

Changed in nova:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/nova/+/807359

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.opendev.org/c/openstack/nova/+/807359
Committed: https://opendev.org/openstack/nova/commit/4c0d3b79ef8ba6625f95907816e2e6f861709b6e
Submitter: "Zuul (22348)"
Branch: master

commit 4c0d3b79ef8ba6625f95907816e2e6f861709b6e
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Sep 3 15:41:20 2021 +0000

    Set "cache_ok=True" in "TypeDecorator" inheriting classes

    By setting this flag to True, it is assumed that the parameters
    passed to the object are safe to be used as a cache.

    Closes-Bug: #1942621
    Change-Id: I582c89d8999db304923a51eb28c25f12046a4ebe

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 25.0.0.0rc1

This issue was fixed in the openstack/nova 25.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.