[systests] Keystone client returns 'Unauthorized: The request you have made requires authentication. (HTTP 401)'

Bug #1365376 reported by Artem Panchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Artem Panchenko

Bug Description

System tests failed on CI due to 401 unauthorized error from keystone:

http://jenkins-product.srt.mirantis.net:8080/view/0_master_swarm/job/master_fuelmain.system_test.centos.upgrade/25/consoleFull

Here is the part of keystone logs:

2014-09-04 01:47:10.367 602 WARNING keystone.token.controllers [-] User 2b29ca1b166a49cf845f9066fb818321 is unauthorized for tenant 13a00ed0599e4967801b28347507b04d
2014-09-04 01:47:10.368 602 WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from 172.17.42.1
2014-09-04 01:47:10.428 602 WARNING keystone.token.controllers [-] User 2b29ca1b166a49cf845f9066fb818321 is unauthorized for tenant 13a00ed0599e4967801b28347507b04d
2014-09-04 01:47:10.429 602 WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from 172.17.42.1

Probably, these errors are caused by time shifting after VMs snapshots reverting and time synchronization.

Tags: system-tests
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Panchenko (apanchenko-8)
status: New → In Progress
Revision history for this message
Artem Panchenko (apanchenko-8) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/119003
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=0967c59e0e27f54f582dc49bec504a4402ab5415
Submitter: Jenkins
Branch: master

commit 0967c59e0e27f54f582dc49bec504a4402ab5415
Author: Artem Panchenko <email address hidden>
Date: Thu Sep 4 11:40:47 2014 +0300

    Add handling of 401 error from keystone (systests)

    Sometimes after reverting VMs snapshots keystone client
    can't get authorization token due to 401 unauthorized error.
    We should handle this exception in tests and try to redo
    keystone authorization.

    Change-Id: I499855a6b13eacee4894a837d3170b9f550cf74d
    Closes-bug: #1365376

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
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.