Basic operations for Keystone policies don't work

Bug #1418973 reported by Yaroslav Lobankov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Yaroslav Lobankov
6.0.x
Fix Released
High
Yaroslav Lobankov

Bug Description

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  api: "1.0"
  build_number: "101"
  build_id: "2015-02-05_22-55-01"
  nailgun_sha: "d6c6d63600e3b36606be332b23a0c5490a00fbcf"
  python-fuelclient_sha: "521c2491f7f04f31d8c85db68499cd193d4904e3"
  astute_sha: "cf25925680814745facc7ffaf1e0b08eed6f9cb5"
  fuellib_sha: "bc99ea769cd67121f91f49c48dffca58e3f53fdf"
  ostf_sha: "6c046b69d29021524906109f18092363505ee222"
  fuelmain_sha: ""

ENVIRONMENT:
Ubuntu, HA mode with one controller, Neutron with GRE segmentation, Cinder LVM

HOW TO REPRODUCE:
Run Tempest tests:

tempest.api.identity.admin.v3.test_policies.PoliciesTestJSON.test_create_update_delete_policy
tempest.api.identity.admin.v3.test_policies.PoliciesTestJSON.test_list_policies

EXPECTED RESULT:
Both tests have success

ACTUAL RESULT:
Both tests fail with the following error:

NotImplemented: Got NotImplemented error
Details: Got NotImplemented error
Details: The action you have requested has not been implemented.

The reason of this error is related to driver "keystone.policy.backends.rules.Policy". Operations create/list/get/update/delete policy are not implemented in this driver https://github.com/openstack/keystone/blob/stable/juno/keystone/policy/backends/rules.py#L96. If default driver keystone.policy.backends.sql.Policy is used, Tempest tests for Keystone policies will have success.

Changed in mos:
milestone: none → 6.1
status: New → Triaged
importance: Undecided → High
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :
Changed in mos:
status: Triaged → In Progress
Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Yaroslav Lobankov (ylobankov) wrote :

Fix is verified for

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  api: "1.0"
  build_number: "109"
  build_id: "2015-02-09_22-54-44"
  nailgun_sha: "71cb1dc573103e0faa6f54be687dd9fba57f6c8c"
  python-fuelclient_sha: "521c2491f7f04f31d8c85db68499cd193d4904e3"
  astute_sha: "7e6e6f9188bd69c603853b10d4a55149363323cc"
  fuellib_sha: "4d04e7bb0472225e7d9f1f782f0525c8dba8cf06"
  ostf_sha: "6c046b69d29021524906109f18092363505ee222"
  fuelmain_sha: ""

Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Yaroslav Lobankov (ylobankov) wrote :
summary: - Tempest tests for Keystone policies fail
+ Basic operations for Keystone policies don't work
Revision history for this message
Yaroslav Lobankov (ylobankov) wrote :

Fix for 6.0.1 is verified for

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.0.1"
  api: "1.0"
  build_number: "85"
  build_id: "2015-02-12_08-28-24"
  astute_sha: "f7cda2171b0b677dfaeb59693d980a2d3ee4c3e0"
  fuellib_sha: "c05541e54f2a127f9c38f7ddb6abf30584fc55e4"
  ostf_sha: "3b57985d4d2155510894a1f6d03b478b201f7780"
  nailgun_sha: "ccfca118720372dc89418870bb706a5edb61fab0"
  fuelmain_sha: "c799e3a6d88289e58db764a6be7910aab7da3149"

tags: added: tempest
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.