[openstack-dev] [oslo] trying to understand CORS deprecation

Jay Pipes jaypipes at gmail.com
Mon Jul 24 16:46:56 UTC 2017

On 07/24/2017 12:43 PM, Sean Dague wrote:
> I'm trying to knock out common deprecation messages which are generating
> noise in the test runs. There is a deprecation message emitted all the
> time during test runs in Nova which is:
> DeprecationWarning: Method 'CORS.set_latent()' has moved to
> 'method.set_defaults()': CORS.set_latent has been deprecated in favor of
> oslo_middleware.cors.set_defaults"
> But from what I can see it's primary caller is the cors middleware
> itself -
> https://github.com/openstack/oslo.middleware/blob/1cf39ee5c3739c18fed78946532438550f56356f/oslo_middleware/cors.py#L133-L137
> At least I'm having a hard time finding anyone else in this stack
> calling set_latent. Is this just a circular bug on the cors.py module?

FYI: https://bugs.launchpad.net/oslo.middleware/+bug/1642008

It's bothered me for a while but never been able to get to the bottom of it.


More information about the OpenStack-dev mailing list