Tempest auth provider uses v2 token with v3 Auth Provider

Bug #1369557 reported by Andrea Frittoli
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
Andrea Frittoli

Bug Description

If a test uses auth.KeystoneV3AuthProvide and the configuration specifies identiy/auth_version=v2, the KeystoneV3AuthProvider will attempt to use v2 to obtain tokens and v3 for the rest.

See for instance: https://review.openstack.org/#/c/115279/7:

2014-09-15 11:00:51.492 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST 0.042s
2014-09-15 11:00:51.545 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST 0.051s
2014-09-15 11:00:51.653 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST 0.108s
2014-09-15 11:00:51.701 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 200 GET 0.046s
2014-09-15 11:00:51.763 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 204 PUT 0.061s
2014-09-15 11:00:51.883 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST
2014-09-15 11:00:51.901 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 401 POST

Changed in tempest:
assignee: nobody → Andrea Frittoli (andrea-frittoli)
status: New → Confirmed
milestone: none → juno-rc
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/121562

Changed in tempest:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/121562
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=1781188e1a44cc41bb4991e85bda5f362a915a58
Submitter: Jenkins
Branch: master

commit 1781188e1a44cc41bb4991e85bda5f362a915a58
Author: Andrea Frittoli <email address hidden>
Date: Mon Sep 15 14:46:47 2014 +0100

    Select AuthProvider type from credentials type

    auth_version is used to get defaul credentials as well as to
    select the AuthProvider class. If credentials of an API version
    different from the configured one are used, a mismatch happens.

    Instantiating the AuthProvider class that corresponds to the
    version of API represented by the credentials object.

    Closes-Bug: #1369557

    Change-Id: I1ed6da90ce0abed805cf39190cb1ac3baa3f63b6

Changed in tempest:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.