Handle session timeout in the VMware store

Bug #1311960 reported by Arnaud Legendre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Arnaud Legendre

Bug Description

The current implementation can potentially lead to a timeout when the invoke_api is not triggered (for example PUT/GET: direct HTTP access to the datastore).
We need to recreate the session responses and retry when getting 401 HTTP responses.

Changed in glance:
assignee: nobody → Arnaud Legendre (arnaudleg)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to glance (master)

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

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

Reviewed: https://review.openstack.org/89989
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=e5e76fffbddddf8e6cd8e0b0b1173d4cca53fafe
Submitter: Jenkins
Branch: master

commit e5e76fffbddddf8e6cd8e0b0b1173d4cca53fafe
Author: Arnaud Legendre <email address hidden>
Date: Wed May 28 17:00:16 2014 -0700

    Handle session timeout in the VMware store

    The current implementation can lead to session timeouts. This
    will occur when accessing the datastore directly through HTTP.
    This patch provides a retry mechanism by recreating the session
    when getting a 401 status code.

    Change-Id: I54cc9e30c9bc374a2cf82dec4beb9b06594835f8
    Closes-Bug: #1311960

Changed in glance:
status: In Progress → Fix Committed
Changed in glance:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: juno-2 → 2014.2
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.