It's possible that you're hitting a code path that doesn't go through the RetryOnRenew handler that Andrew linked.
This could be especially true if you're using the OpenStack Icehouse release, as the default token expiration was changed to 1 hour from 24 hours for this cycle, and the KeystoneAuthenticationModule [1] in JClouds hardcodes expiration for cached tokens at 11 hours. Jasdeep [1] https://github.com/jclouds/jclouds/blob/744cd5d7ebb5c2135ce1330ca0ee5c4ae48ff2cb/apis/openstack-keystone/src/main/java/org/jclouds/openstack/keystone/v2_0/config/KeystoneAuthenticationModule.java#L223 On Thu, Aug 21, 2014 at 11:25 AM, Daniel Hsueh <[email protected]> wrote: > Hello Andrew, > > I'm using org.jclouds.openstack.swift.v1.SwiftApi with a v2 auth > endpoint. I don't have an exception output text offhand (logs have been > rotated out) but the message specifically indicated auth token expiry. > > Daniel Hsueh > mailto:[email protected] > > -----Original Message----- > From: Andrew Phillips [mailto:[email protected]] > Sent: August 19, 2014 1:51 PM > To: [email protected] > Subject: Re: JClouds BlobStore re-authentication when auth token expires > > > I've done some google searches and haven't found much information on > > this -- is there a standard way (or automatic within jclouds) to > > perform re-authentication when the token expires? > > Which provider are you talking about specifically? There a quite a few > APIs in jclouds the try to renew authentication automatically, see e.g. [1]. > > I assume that catching an authentication exception in your calling code > and retrying isn't an option for you? > > Regards > > ap > > [1] > > https://github.com/jclouds/jclouds/blob/master/common/openstack/src/main/java/org/jclouds/openstack/handlers/RetryOnRenew.java > >
