policy.py cannot be updated in subordinate projects

Bug #1068318 reported by Michael Still
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Invalid
Undecided
Unassigned

Bug Description

It causes test failures like this (this one from nova):

CinderTestCase
    test_cinder_endpoint_template ERROR 0.04
    test_context_with_catalog ERROR 0.04

======================================================================
ERROR: test_cinder_endpoint_template (nova.tests.test_cinder.CinderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/src/openstack/nova/nova/tests/test_cinder.py", line 131, in setUp
    service_catalog=catalog)
  File "/data/src/openstack/nova/nova/context.py", line 70, in __init__
    self.is_admin = policy.check_is_admin(self.roles)
  File "/data/src/openstack/nova/nova/policy.py", line 106, in check_is_admin
    init()
  File "/data/src/openstack/nova/nova/policy.py", line 63, in init
    reload_func=_set_brain)
  File "/data/src/openstack/nova/nova/utils.py", line 1142, in read_cached_file
    reload_func(cache_info['data'])
  File "/data/src/openstack/nova/nova/policy.py", line 68, in _set_brain
    policy.set_brain(policy.Brain.load_json(data, default_rule))
AttributeError: 'module' object has no attribute 'set_brain'

Mark McLoughlin (markmc)
affects: openstack-common → oslo
Revision history for this message
Mark McLoughlin (markmc) wrote :

Yep, it was a significant API change that we knew was going to break projects

We have the incubator precisely so we can make such API changes

Fixed by these updates: https://review.openstack.org/#/q/I2951a0de3751bd2ec868e7a661070fed624e4af2,n,z

Changed in oslo:
status: New → Invalid
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.