Tempest auth provider uses v2 token with v3 Auth Provider

Bug #1369557 reported by Andrea Frittoli
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
Undecided
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:
http://logs.openstack.org/79/115279/7/check/check-tempest-dsvm-full/53e9126/logs/tempest.txt.gz#_2014-09-15_11_00_51_901

2014-09-15 11:00:51.492 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST http://127.0.0.1:35357/v3/domains 0.042s
2014-09-15 11:00:51.545 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST http://127.0.0.1:35357/v3/projects 0.051s
2014-09-15 11:00:51.653 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST http://127.0.0.1:35357/v3/users 0.108s
2014-09-15 11:00:51.701 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 200 GET http://127.0.0.1:35357/v3/roles 0.046s
2014-09-15 11:00:51.763 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 204 PUT http://127.0.0.1:35357/v3/projects/24365d1aa0a0436fa4b2c0305288bd28/users/b1ba3a2847b34a9faadc900141c27cbd/roles/6c1531898aba4a5dbbf2a53d0397141e 0.061s
2014-09-15 11:00:51.883 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 201 POST http://127.0.0.1:5000/v3/auth/tokens
2014-09-15 11:00:51.901 30836 INFO tempest.common.rest_client [-] Request (TestKeystoneSanity:test_v3_identity): 401 POST http://127.0.0.1:5000/v2.0/tokens

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  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers