← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1229104] Re: glance unittest might try access the system policy.json file

 

** Changed in: glance
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1229104

Title:
  glance unittest might try access the system policy.json file

Status in OpenStack Image Registry and Delivery Service (Glance):
  Won't Fix

Bug description:
  ======================================================================
  ERROR: glance.tests.unit.test_swift_store.TestStoreAuthV2.test_write_acls
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
    File "/home/afazekas/git/glance/glance/tests/unit/test_swift_store.py", line 634, in test_write_acls
      context = glance.context.RequestContext()
    File "/home/afazekas/git/glance/glance/context.py", line 46, in __init__
      self.policy_enforcer.check_is_admin(self)
    File "/home/afazekas/git/glance/glance/api/policy.py", line 155, in check_is_admin
      return self.check(context, 'context_is_admin', target)
    File "/home/afazekas/git/glance/glance/api/policy.py", line 145, in check
      return self._check(context, action, target)
    File "/home/afazekas/git/glance/glance/api/policy.py", line 115, in _check
      self.load_rules()
    File "/home/afazekas/git/glance/glance/api/policy.py", line 67, in load_rules
      rules = self._read_policy_file()
    File "/home/afazekas/git/glance/glance/api/policy.py", line 97, in _read_policy_file
      with open(self.policy_path) as fap:
  IOError: [Errno 13] Permission denied: '/etc/glance/policy.json'

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