← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1786498] Re: placement api produces many warnings about policy scope check failures

 

Reviewed:  https://review.openstack.org/590445
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=94617a71761710544cf9505ffda5b6403a645a7e
Submitter: Zuul
Branch:    master

commit 94617a71761710544cf9505ffda5b6403a645a7e
Author: Matt Riedemann <mriedem.os@xxxxxxxxx>
Date:   Thu Aug 9 13:32:10 2018 -0400

    placement: ignore policy scope check failures if not enforcing scope
    
    Rather than spam the placement API logs with scope check
    warnings from oslo.policy when placement isn't configured
    for scope type enforcement, ignore those warnings.
    
    Note that the same warnings filter in the placement WarningsFixture
    is left intact because the configuration defaults setting code in
    wsgi.py which allows the warning filter to be set in deploy.py,
    is not run by the functional tests. In future changes this will
    be resolved by unifying configuration handling.
    
    Closes-Bug: #1786498
    Related-Bug: #1784663
    Change-Id: I34e4e550c9c31a654308e555210588156418f9e3


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1786498

Title:
  placement api produces many warnings about policy scope check failures

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) rocky series:
  In Progress

Bug description:
  When oslo policy checks were added to placement, fixtures and
  functional tests were updated to hide warnings related to scope checks
  that cannot (yet) work in the way placement is managing policy.

  Those some warnings happen with every request on an actually running
  service. The warnings need to be stifled there too.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1786498/+subscriptions


References