Change LOG.warn to LOG.warning

Bug #1530742 reported by zhurong on 2016-01-04
This bug report is a duplicate of:  Bug #1508442: LOG.warn is deprecated. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CloudPulse
Undecided
zhangguoqing
Evoque
Undecided
zhangguoqing
Gnocchi
Fix Committed
Undecided
zhangguoqing
Kingbird
Undecided
zhangguoqing
Mistral
Undecided
zhangguoqing
Murano
Undecided
zhurong
OpenStack Dashboard (Horizon)
Undecided
zhurong
OpenStack Identity (keystone)
Low
David Stanek
Stackalytics
Undecided
zhangguoqing
ceilometer-powervm
Undecided
zhangguoqing
keystoneauth
Low
zhangguoqing
openstack-ansible
Undecided
zhangguoqing
oslo.messaging
Undecided
zhangguoqing
oslo.middleware
Undecided
zhangguoqing
oslo.vmware
Undecided
zhangguoqing
python-cloudpulseclient
Undecided
zhangguoqing
python-evoqueclient
Undecided
zhangguoqing
python-heatclient
Fix Released
Undecided
zhangguoqing
python-muranoclient
Undecided
zhurong
senlin
Undecided
zhurong
tacker
Undecided
zhangguoqing
tempest
Undecided
zhangguoqing

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.

zhurong (zhu-rong) on 2016-01-04
Changed in horizon:
assignee: nobody → zhurong (zhu-rong)
Changed in horizon:
status: New → In Progress
zhurong (zhu-rong) on 2016-01-04
Changed in murano:
assignee: nobody → zhurong (zhu-rong)
Changed in python-muranoclient:
assignee: nobody → zhurong (zhu-rong)
Changed in murano:
status: New → In Progress
Changed in python-muranoclient:
status: New → In Progress
zhurong (zhu-rong) on 2016-01-04
Changed in senlin:
assignee: nobody → zhurong (zhu-rong)

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

Changed in senlin:
status: New → In Progress
Changed in evoque:
assignee: nobody → zhangguoqing (474751729-o)
status: New → In Progress

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

Changed in gnocchi:
assignee: nobody → zhangguoqing (474751729-o)
status: New → In Progress
Changed in keystone:
importance: Undecided → Low

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

Changed in keystone:
assignee: nobody → zhangguoqing (474751729-o)
status: New → In Progress
Changed in mistral:
assignee: nobody → zhangguoqing (474751729-o)
Changed in python-evoqueclient:
assignee: nobody → zhangguoqing (474751729-o)

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

Changed in python-evoqueclient:
status: New → In Progress
Changed in keystoneauth:
assignee: nobody → zhangguoqing (474751729-o)

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

Changed in keystoneauth:
status: New → In Progress
Changed in python-heatclient:
assignee: nobody → zhangguoqing (474751729-o)

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

Changed in python-heatclient:
status: New → In Progress
Changed in keystoneauth:
importance: Undecided → Low
Changed in oslo.messaging:
assignee: nobody → zhangguoqing (474751729-o)

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

Changed in oslo.messaging:
status: New → In Progress
Changed in oslo.middleware:
assignee: nobody → zhangguoqing (474751729-o)
Changed in tempest:
assignee: nobody → zhangguoqing (474751729-o)

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

Changed in tempest:
status: New → In Progress

Reviewed: https://review.openstack.org/263090
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=b3cde506957c3fe6496beffd68e7f9a5c981e40b
Submitter: Jenkins
Branch: master

commit b3cde506957c3fe6496beffd68e7f9a5c981e40b
Author: zhurong <email address hidden>
Date: Tue Dec 22 09:40:07 2015 +0800

    Change LOG.warn to LOG.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.

    Change-Id: Ic7496d4dc765586e1bc79c3202b80c444443faf0
    Closes-Bug: #1530742

Changed in senlin:
status: In Progress → Fix Released
LiuNanke (nanke-liu) wrote :
lei zhang (zhang-lei) on 2016-01-04
Changed in glance:
assignee: nobody → lei zhang (zhang-lei)

Reviewed: https://review.openstack.org/263105
Committed: https://git.openstack.org/cgit/openstack/evoque/commit/?id=8ca7ece349e6227dcde1a9fa3344500c4142d738
Submitter: Jenkins
Branch: master

commit 8ca7ece349e6227dcde1a9fa3344500c4142d738
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 04:09:49 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: Ib88d6b3b5583c564ad2b43dab4a54da870753547
    Closes-Bug: #1530742

Changed in evoque:
status: In Progress → Fix Released

Change abandoned by zhurong (<email address hidden>) on branch: master
Review: https://review.openstack.org/263014
Reason: duplicate with https://review.openstack.org/#/c/262126/

Changed in ceilometer-powervm:
assignee: nobody → zhangguoqing (474751729-o)
Changed in openstack-ansible:
assignee: nobody → zhangguoqing (474751729-o)

Reviewed: https://review.openstack.org/263239
Committed: https://git.openstack.org/cgit/openstack/ceilometer-powervm/commit/?id=936773daa14254cda2191ad1accb81f04933a2dd
Submitter: Jenkins
Branch: master

commit 936773daa14254cda2191ad1accb81f04933a2dd
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 12:53:50 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I2d71a52f6c86bc2def2c3abd0750236a86ccc6cf
    Closes-Bug: #1530742

Changed in ceilometer-powervm:
status: New → Fix Released

Reviewed: https://review.openstack.org/263291
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=ff28020ab78f610baa0cc113fe36d7f71afa86eb
Submitter: Jenkins
Branch: master

commit ff28020ab78f610baa0cc113fe36d7f71afa86eb
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 14:45:04 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: Iafbe78cdcfac329d3795853fe8cc38e549279375
    Closes-Bug: #1530742

Changed in tacker:
status: New → Fix Released

Reviewed: https://review.openstack.org/263008
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=d07c76b0ea83f9764f7eff75a818f728880e13ab
Submitter: Jenkins
Branch: master

commit d07c76b0ea83f9764f7eff75a818f728880e13ab
Author: zhurong <email address hidden>
Date: Tue Dec 22 07:52:53 2015 +0800

    Change LOG.warn to LOG.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: #1530742
    Change-Id: Ifb5fba442ccaaf065f0959b2a19b625d07ab0c47

Changed in python-muranoclient:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/263006
Committed: https://git.openstack.org/cgit/openstack/murano-dashboard/commit/?id=b3d5dfd3d92159e9e3f75fa9f6e69f751d87f0be
Submitter: Jenkins
Branch: master

commit b3d5dfd3d92159e9e3f75fa9f6e69f751d87f0be
Author: zhurong <email address hidden>
Date: Tue Dec 22 07:46:45 2015 +0800

    Change LOG.warn to LOG.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: #1530742
    Change-Id: I9f9f303d7482d0ecc44461bab5ed8f92926436f4

Changed in murano:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/263107
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=c365c1db3bae0822cc8b000ca53a087927e321b6
Submitter: Jenkins
Branch: master

commit c365c1db3bae0822cc8b000ca53a087927e321b6
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 04:23:28 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I932a82be1e0f88bb1e333a9a7c3fc5bf87fa9e79
    Closes-Bug: #1530742

Changed in gnocchi:
status: In Progress → Fix Committed
Changed in cloudpulse:
assignee: nobody → zhangguoqing (474751729-o)
Changed in kingbird:
assignee: nobody → zhangguoqing (474751729-o)
Changed in stackalytics:
assignee: nobody → zhangguoqing (474751729-o)
Changed in oslo.vmware:
assignee: nobody → zhangguoqing (474751729-o)
Changed in python-cloudpulseclient:
assignee: nobody → zhangguoqing (474751729-o)
Changed in tacker:
assignee: nobody → zhangguoqing (474751729-o)
lei zhang (zhang-lei) on 2016-01-05
no longer affects: glance

Reviewed: https://review.openstack.org/263269
Committed: https://git.openstack.org/cgit/openstack/python-cloudpulseclient/commit/?id=e72c9d5ef8883f93ca02f662f11525e5320e6aab
Submitter: Jenkins
Branch: master

commit e72c9d5ef8883f93ca02f662f11525e5320e6aab
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 14:05:29 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I6916a95800f003e96736c7e8fe45f3cfe242d983
    Closes-Bug: #1530742

Changed in python-cloudpulseclient:
status: New → Fix Released
Changed in cloudpulse:
status: New → Fix Released

Reviewed: https://review.openstack.org/263250
Committed: https://git.openstack.org/cgit/openstack/cloudpulse/commit/?id=f274731dfa4a329aaf06f84f1de994da9526d7f4
Submitter: Jenkins
Branch: master

commit f274731dfa4a329aaf06f84f1de994da9526d7f4
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 13:17:26 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I6e925af4568062fa294e0f1c67b506cd06671bd6
    Closes-Bug: #1530742

Reviewed: https://review.openstack.org/263125
Committed: https://git.openstack.org/cgit/openstack/tempest-lib/commit/?id=771402f2e92d9977a33a88da0ec2210365d0a16a
Submitter: Jenkins
Branch: master

commit 771402f2e92d9977a33a88da0ec2210365d0a16a
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 06:01:28 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I912333466ac65aa3ad06732f3a16e7130b21e282
    Closes-Bug: #1530742

Changed in tempest:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/263118
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=b65817fa43fa12dc7dbade45c7954714e7179860
Submitter: Jenkins
Branch: master

commit b65817fa43fa12dc7dbade45c7954714e7179860
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 05:25:40 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: Id0c5d67a763121c3245316955c4901a0dbea73ad
    Closes-Bug: #1530742

Changed in python-heatclient:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/263131
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=6c0966470c6b9cadcadbfe14191a6d68a8a8b5b2
Submitter: Jenkins
Branch: master

commit 6c0966470c6b9cadcadbfe14191a6d68a8a8b5b2
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 06:17:21 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I3a057080b7b888b2c246ad9910ddba564b07dbd9
    Closes-Bug: #1530742

Reviewed: https://review.openstack.org/263264
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=c92954ee9d3ccc28e94c0d824bf6ec0e34e56916
Submitter: Jenkins
Branch: master

commit c92954ee9d3ccc28e94c0d824bf6ec0e34e56916
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 13:53:13 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I9a99477f3f41884e86c984ffde9f46498953e933
    Closes-Bug: #1530742

Changed in openstack-ansible:
status: New → Fix Released

Reviewed: https://review.openstack.org/263007
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=a12b0afde87cb94f9cc7d8d6a387916a6351a11b
Submitter: Jenkins
Branch: master

commit a12b0afde87cb94f9cc7d8d6a387916a6351a11b
Author: zhurong <email address hidden>
Date: Tue Dec 22 07:50:57 2015 +0800

    Change LOG.warn to LOG.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: #1530742
    Change-Id: I36e77a086872c87cf93ab62455379d845aaa11df

Change abandoned by zhangguoqing (zhang.guoqing@99cloud.net) on branch: master
Review: https://review.openstack.org/263286

Related fix proposed to branch: master
Review: https://review.openstack.org/264334

Changed in keystone:
assignee: zhangguoqing (474751729-o) → David Stanek (dstanek)

Reviewed: https://review.openstack.org/263116
Committed: https://git.openstack.org/cgit/openstack/keystoneauth/commit/?id=ba0f1d473025e2b356c1229e8f34840b5ba72809
Submitter: Jenkins
Branch: master

commit ba0f1d473025e2b356c1229e8f34840b5ba72809
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 05:19:23 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: Ie3b4871b38cd2a1c38a99e63a6bf83f2b5d48704
    Closes-Bug: #1530742

Changed in keystoneauth:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/263113
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=624675f6949659501461f9841d95ca0cecb8683e
Submitter: Jenkins
Branch: master

commit 624675f6949659501461f9841d95ca0cecb8683e
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 04:56:07 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I7d20b2f8003ee89069d7cfd896729c6c78d5beb9
    Closes-Bug: #1530742

Changed in keystone:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/264334
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=1bb3e8fa8dbb8ffde54825b37939b6aa4fd0a8e2
Submitter: Jenkins
Branch: master

commit 1bb3e8fa8dbb8ffde54825b37939b6aa4fd0a8e2
Author: David Stanek <email address hidden>
Date: Wed Jan 6 19:13:53 2016 +0000

    Adds a hacking check looking for Logger.warn usage

    Python3 has deprecated Logger.warn in favor of Logger.warning. Let's not
    allow Logger.warn to be used in our codebase.

    Change-Id: I271662ee8ab5f6843180cbde173aec9135ddb529
    Related-Bug: #1530742

Reviewed: https://review.openstack.org/263251
Committed: https://git.openstack.org/cgit/openstack/kingbird/commit/?id=0161d781ae1d76045b5a64e330da1c99691a8b20
Submitter: Jenkins
Branch: master

commit 0161d781ae1d76045b5a64e330da1c99691a8b20
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 13:25:08 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I3b8651ee69c9c817ad47db13b06f2f92077a3923
    Closes-Bug: #1530742

Changed in kingbird:
status: New → Fix Released

Reviewed: https://review.openstack.org/264099
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=9ce9291ab30854e822fa0fc8654186e993fa5d4f
Submitter: Jenkins
Branch: liberty

commit 9ce9291ab30854e822fa0fc8654186e993fa5d4f
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 13:53:13 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I9a99477f3f41884e86c984ffde9f46498953e933
    Closes-Bug: #1530742
    (cherry picked from commit c92954ee9d3ccc28e94c0d824bf6ec0e34e56916)

tags: added: in-liberty

This issue was fixed in the openstack/keystoneauth 2.2.0 release.

This issue was fixed in the openstack/oslo.middleware 3.5.0 release.

Reviewed: https://review.openstack.org/263112
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=39a025fce45dd5d5721d6263439b70c48359d798
Submitter: Jenkins
Branch: master

commit 39a025fce45dd5d5721d6263439b70c48359d798
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Mon Jan 4 04:52:39 2016 +0000

    Change LOG.warn to LOG.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.

    Change-Id: I2c7db9f6a97b131700c3aad5d49b6a206141f34b
    Closes-Bug: #1530742

Changed in mistral:
status: New → Fix Released

This issue was fixed in the openstack/neutron-fwaas 8.0.0.0b2 development milestone.

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

This issue was fixed in the openstack/mistral 2.0.0.0b2 development milestone.

This issue was fixed in the openstack/senlin 1.0.0.0b2 development milestone.

This issue was fixed in the openstack/python-heatclient 0.9.0 release.

This issue was fixed in the openstack/openstack-ansible 12.0.8 release.

This issue was fixed in the openstack/openstack-ansible 12.0.9 release.

This issue was fixed in the openstack/tacker 0.3.0 release.

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

This issue was fixed in the openstack/openstack-ansible 12.0.11 release.

Change abandoned by zhangguoqing (zhang.guoqing@99cloud.net) on branch: master
Review: https://review.openstack.org/263115

Change abandoned by ChangBo Guo(gcb) (<email address hidden>) on branch: master
Review: https://review.openstack.org/263120
Reason: Please restore it if you want to continue working on this.

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

Other bug subscribers