← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1255564] Re: policy.v3cloudsample.json out of sync with policy.json

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => icehouse-2

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

Title:
  policy.v3cloudsample.json out of sync with policy.json

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  These two files should be tested against each other, perhaps with
  documented exceptions (there are rules in policy.v3cloudsample.json
  that do not belong in policy.json, for example). The following giant
  one liner should produce an empty set today:

  >>>
  list(set(json.loads(file('etc/policy.json').read()).keys()).difference(set(json.loads(file('etc/policy.v3cloudsample.json').read()).keys())))

  Instead, it produces a bunch of policy entries in policy.json that are
  not reflected in policy.v3cloudsample.json:

  [u'identity:delete_consumer', u'identity:authorize_request_token',
  u'identity:list_consumers', u'identity:list_endpoints_for_project',
  u'identity:list_projects_for_endpoint',
  u'identity:delete_access_token', u'identity:get_consumer',
  u'identity:check_endpoint_in_project',
  u'identity:remove_endpoint_from_project', u'identity:update_consumer',
  u'identity:list_access_token_roles', u'identity:list_access_tokens',
  u'identity:add_endpoint_to_project',
  u'identity:get_access_token_role', u'identity:get_access_token',
  u'identity:create_consumer']

  Printed a bit more friendly, these currently include:

  identity:add_endpoint_to_project
  identity:authorize_request_token
  identity:check_endpoint_in_project
  identity:create_consumer
  identity:delete_access_token
  identity:delete_consumer
  identity:get_access_token
  identity:get_access_token_role
  identity:get_consumer
  identity:list_access_token_roles
  identity:list_access_tokens
  identity:list_consumers
  identity:list_endpoints_for_project
  identity:list_projects_for_endpoint
  identity:remove_endpoint_from_project
  identity:update_consumer

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