Deprecation warnings about pecan's _route and CORS

Bug #1668240 reported by Vladyslav Drok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Medium
Vladyslav Drok

Bug Description

During unittests run, one can see the following issues:

/home/vdrok/work/ironic/.tox/py27/local/lib/python2.7/site-packages/pecan/__init__.py:122: RuntimeWarning: `static_root` is only used when `debug` is True, ignoring

ironic/api/app.py:89: DeprecationWarning: Method 'instancemethod.set_latent()' has moved to 'instancemethod.set_defaults()': CORS.set_latent has been deprecated in favor of oslo_middleware.cors.set_defaults

/home/vdrok/work/ironic/.tox/py27/local/lib/python2.7/site-packages/pecan/routing.py:242: DeprecationWarning: The function signature for ironic.api.controllers.root.RootController._route is changing in the next version of pecan.
     Please update to: `def _route(self, args, request)`.

No handlers could be found for logger "ironic.drivers.modules.deploy_utils"

/home/vdrok/work/ironic/.tox/py27/local/lib/python2.7/site-packages/oslo_versionedobjects/fields.py:363: FutureWarning: uuid is an invalid UUID. Using UUIDFields with invalid UUIDs is no longer supported, and will be removed in a future release. Please update your code to input valid UUIDs or accept ValueErrors for invalid UUIDs. See http://docs.openstack.org/developer/oslo.versionedobjects/api/fields.html#oslo_versionedobjects.fields.UUIDField for further details

Changed in ironic:
assignee: nobody → Vladyslav Drok (vdrok)
status: New → In Progress
Vladyslav Drok (vdrok)
description: updated
Vladyslav Drok (vdrok)
Changed in ironic:
importance: Undecided → Medium
Revision history for this message
Vladyslav Drok (vdrok) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/413113
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=7fd26bf8031041a0e6df261c71101e29e8bf9610
Submitter: Jenkins
Branch: master

commit 7fd26bf8031041a0e6df261c71101e29e8bf9610
Author: Vladyslav Drok <email address hidden>
Date: Mon Feb 27 13:37:37 2017 +0200

    Fix usage of various deprecated methods

    Our unittest output complains about some of the codebase,
    described in more detail in the referred bug. This change
    fixes all of those places.

    static_root is now set only if debug=True is set in pecan
    configuration.

    Logging is now setup as part of the conf module import,
    so that unittests can use it.

    Closes-Bug: #1668240
    Change-Id: I2536bd2b174e0d224ddf6806f1be37bd29017669

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

This issue was fixed in the openstack/ironic 8.0.0 release.

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.