use warning to avoid DeprecationWarning

Bug #1529913 reported by LiuNanke on 2015-12-29
This bug report is a duplicate of:  Bug #1508442: LOG.warn is deprecated. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Undecided
LiuNanke
Manila
Undecided
Ravi Shekhar Jethani
OpenStack Compute (nova)
Undecided
LiuNanke
OpenStack DBaaS (Trove)
Undecided
LiuNanke
OpenStack Dashboard (Horizon)
Undecided
LiuNanke
OpenStack Identity (keystone)
Undecided
Ankit Agrawal

Bug Description

Python 3 deprecated the logger.warn method, see:

https://docs.python.org/3/library/logging.html#logging.warning

so we prefer to use warning to avoid DeprecationWarning.

LiuNanke (nanke-liu) on 2015-12-29
Changed in glance:
status: New → In Progress
assignee: nobody → LiuNanke (nanke-liu)
Changed in keystone:
assignee: nobody → Ankit Agrawal (ankitagrawal)
Changed in manila:
assignee: nobody → Ravi Shekhar Jethani (ravishekar-jethani)
Changed in nova:
assignee: nobody → Ravi Shekhar Jethani (ravishekar-jethani)
LiuNanke (nanke-liu) on 2015-12-30
Changed in keystone:
status: New → In Progress
status: In Progress → New
Changed in horizon:
assignee: nobody → LiuNanke (nanke-liu)
status: New → In Progress
Changed in keystone:
status: New → In Progress
LiuNanke (nanke-liu) on 2015-12-30
no longer affects: horizon
LiuNanke (nanke-liu) on 2015-12-30
Changed in nova:
assignee: Ravi Shekhar Jethani (ravishekar-jethani) → LiuNanke (nanke-liu)
status: New → In Progress
LiuNanke (nanke-liu) on 2015-12-30
Changed in horizon:
assignee: nobody → LiuNanke (nanke-liu)
status: New → In Progress
Changed in trove:
assignee: nobody → LiuNanke (nanke-liu)
status: New → In Progress

Reviewed: https://review.openstack.org/262232
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=1ee6814457e454dd86d263563d7cadd15dce3113
Submitter: Jenkins
Branch: master

commit 1ee6814457e454dd86d263563d7cadd15dce3113
Author: LiuNanke <email address hidden>
Date: Tue Dec 29 22:45:10 2015 +0800

    Using LOG.warning replace LOG.warn

    *Python 3 deprecated the logger.warn method, see:
    *https://docs.python.org/3/library/logging.html#logging.warning
    *so we prefer to use warning to avoid DeprecationWarning.

    Closes-Bug: #1529913

    Change-Id: Iae9e13e89bb9566c2482017f631408a95ffe002d

Changed in trove:
status: In Progress → Fix Released
Changed in manila:
status: New → In Progress
janonymous (janonymous) wrote :

i think this issue is similar to : https://bugs.launchpad.net/ironic/+bug/1508442

Reviewed: https://review.openstack.org/262126
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a566ba7713077c4f34531444cb810f3c9b88af0c
Submitter: Jenkins
Branch: master

commit a566ba7713077c4f34531444cb810f3c9b88af0c
Author: LiuNanke <email address hidden>
Date: Tue Dec 29 12:39:36 2015 +0800

    Python 3 deprecated the logger.warn method in favor of warning

    Python 3 deprecated the logger.warn method, see:
    https://docs.python.org/3/library/logging.html#logging.warning, so we
    prefer to use warning to avoid DeprecationWarning.

    Closes-Bug: #1529913

    Change-Id: Ief1ebbbc8198d2d7a01a5ec41b61d8b6d466da1f

Changed in horizon:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/262123
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d49a78e9f895be36eeeb3da88e2472cf773cb105
Submitter: Jenkins
Branch: master

commit d49a78e9f895be36eeeb3da88e2472cf773cb105
Author: LiuNanke <email address hidden>
Date: Tue Dec 29 11:53:12 2015 +0800

    Python 3 deprecated the logger.warn method in favor of warning

    Python 3 deprecated the logger.warn method, see:
    https://docs.python.org/3/library/logging.html#logging.warning, so we
    prefer to use warning to avoid DeprecationWarning.

    Closes-Bug: #1529913

    Change-Id: I5d6d85b1ee4a63ebfb3348c093e37ab48b713e40

Changed in nova:
status: In Progress → Fix Released

Change abandoned by Ravi Shekhar Jethani (<email address hidden>) on branch: master
Review: https://review.openstack.org/263732
Reason: Patch fixing the same issue already committed: https://review.openstack.org/#/c/263082/

This issue was fixed in the openstack/trove 5.0.0.0b2 development milestone.

This issue was fixed in the openstack/nova 13.0.0.0b2 development milestone.

This issue was fixed in the openstack/horizon 9.0.0.0b2 development milestone.

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

Other bug subscribers