use warning to avoid DeprecationWarning

Bug #1529913 reported by LiuNanke
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
In Progress
Undecided
LiuNanke
OpenStack Compute (nova)
Fix Released
Undecided
LiuNanke
OpenStack DBaaS (Trove)
Fix Released
Undecided
LiuNanke
OpenStack Dashboard (Horizon)
Fix Released
Undecided
LiuNanke
OpenStack Identity (keystone)
In Progress
Undecided
Ankit Agrawal
OpenStack Shared File Systems Service (Manila)
In Progress
Undecided
Ravi Shekhar Jethani

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)
Changed in glance:
status: New → In Progress
assignee: nobody → LiuNanke (nanke-liu)
Revision history for this message
LiuNanke (nanke-liu) wrote :
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)
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
Revision history for this message
LiuNanke (nanke-liu) wrote :
LiuNanke (nanke-liu)
no longer affects: horizon
LiuNanke (nanke-liu)
Changed in nova:
assignee: Ravi Shekhar Jethani (ravishekar-jethani) → LiuNanke (nanke-liu)
status: New → In Progress
LiuNanke (nanke-liu)
Changed in horizon:
assignee: nobody → LiuNanke (nanke-liu)
status: New → In Progress
Changed in trove:
assignee: nobody → LiuNanke (nanke-liu)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

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
Revision history for this message
janonymous (janonymous) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/263732

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (master)

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/

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/trove 5.0.0.0b2

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

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/nova 13.0.0.0b2

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

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 9.0.0.0b2

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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