Policy "os_compute_api:os-server-usage":"rule:admin_or_owner" was deprecated for removal in 17.0.0

Bug #1748123 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Fix Released
High
James Page

Bug Description

Nova fails in autopkgtest
autopkgtest [15:24:49]: test nova-daemons: [-----------------------
/usr/lib/python2.7/dist-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-extended-volumes":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compute_api:os-extended-volumes" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
  'reason': default.deprecated_reason

All other tests work well, only nova-daemon is affected

Testing in a Bionic container showed:
- 17.0.0~b3-0ubuntu3 "fails" but works

That means it actually works:
OK
OK
OK
OK
OK
root@bionic-test:~/nova-17.0.0~b3/debian/tests# echo $?
0

But due to lib changes in python the above warning pops out on stderr.
Since it doesn't have allow-stderr it fails.

This is NOT due to the libvirt or qemu uploads (tested, is the same with old/new versions).

For now I'll add a badtest for now to avoid blocking everybody with this false-positive of a autopkgtest, but I'd ask to adapt nova to either add allow-stderr or update nova to handle the deprecation correctly.

By the message it seems it really is something that changed in Pike queens should have proper code for that I'd expect?

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI Currently blocks:
- openssl
- python-oslo-policy
- qemu
- libvirt
- tntnet
- python-os-vif

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

MP for the badtest to unblock the others in b-proposed for now [1].
@James / Corey - please take a look and ack there if ok with you, so that a release team member can merge it.

[1]: https://code.launchpad.net/~paelzer/britney/hints-ubuntu-mask-nova-for-oslo-policy-deprecation/+merge/337331

Changed in nova (Ubuntu):
importance: Undecided → High
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Version https://launchpad.net/ubuntu/+source/nova/2:17.0.0~b3-0ubuntu4 with a fix inbound (allow stderr for now).

Thanks James for the quick response!

James Page (james-page)
Changed in nova (Ubuntu):
status: New → In Progress
assignee: nobody → James Page (james-page)
milestone: none → ubuntu-18.02
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2:17.0.0~b3-0ubuntu4

---------------
nova (2:17.0.0~b3-0ubuntu4) bionic; urgency=medium

  * d/tests/control: allow-stderr to avoid test failures due to
    deprecation notices being printed to stderr (LP: #1748123).

 -- James Page <email address hidden> Thu, 08 Feb 2018 09:11:59 +0000

Changed in nova (Ubuntu):
status: In Progress → Fix Released
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.