** Changed in: glance/grizzly Importance: Undecided => Medium ** Changed in: glance/grizzly Status: New => Fix Released
** Changed in: glance/grizzly Milestone: None => 2013.1 ** Changed in: glance/grizzly Assignee: (unassigned) => Mark Washenberger (markwash) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1098687 Title: Permission denied: '/etc/glance/policy.json' when running tests Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Status in Glance grizzly series: Fix Released Bug description: I'm seeing the following error when running Glance's unit tests on my laptop: ====================================================================== ERROR: Missing default policy file should result in a default ruleset ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/dprince/projects/glance/glance/tests/unit/test_policy.py", line 134, in test_policy_file_default_not_found enforcer.enforce(context, 'get_image', {}) File "/home/dprince/projects/glance/glance/api/policy.py", line 132, in enforce exception.Forbidden, action=action) File "/home/dprince/projects/glance/glance/api/policy.py", line 112, in _check self.load_rules() File "/home/dprince/projects/glance/glance/api/policy.py", line 64, in load_rules rules = self._read_policy_file() File "/home/dprince/projects/glance/glance/api/policy.py", line 94, in _read_policy_file with open(self.policy_path) as fap: IOError: [Errno 13] Permission denied: '/etc/glance/policy.json' ----------- The issue appears to be due to the fact that I *also* have the openstack-glance RPM installed (which creates an /etc/glance/policy.json file that I can read). To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1098687/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp