On Mon, Aug 04, 2014 at 03:38:56PM -0600, Chris Custine wrote:
> > Ideally jclouds should follow the best practice of whatever HP
> > recommends and what other language bindings implement. We should not
> > gratuitously change the defaults; if I understand it correctly, we will
> > impose three transitions to users of the default region:
> > 
> > 1.7.3 swift = default region region-a.geo-1
> > 1.8.0 swift = default region region-b.geo-1
> > 1.8.1 swift = default region changes back to region-a.geo-1?
> > openstack-swift = error without default region
> > 
> > How can we minimize this pain?
> 
> In a nutshell, the previous behavior of selecting the first region was more 
> of an accident due to the way HP lists its object storage endpoint versions.  
> The default endpoint selection in the keystone provider and other overrides 
> is to pick the last matching endpoint where service type and version 
> match[1][2][3]. The HP parent SwiftApiMetdata version is “1.0", and HP has 
> region-a as “1.0” but region-b as “1” in keystone (they are aware of this but 
> I have been told it is unlikely to be changed), so as a consequence, this 
> logic always returned region-a which happens to be first.  It also meant that 
> you could never talk to region-b because it would never match the version. My 
> fixes for the HP provider are currently ignoring api version when it matches 
> so that you can actually talk to region-b if you want to.  As a side effect, 
> the intended behavior works and if you don’t specify region it returns the 
> last one just like all other openstack providers.
> 
> So having said all of that, I am fine with returning the old (broken) 
> behavior if that is the community consensus, but I wanted to present the 
> facts and make sure that this fix wasn’t seen as gratuitously changing 
> defaults or otherwise having a disregard for impact on users.  
> 
> If this is a lone blocker, I also take ownership and volunteer to cut the 
> next RC if it is necessary. :-)

While I appreciate the technical background on this issue, I am more
worried about the user experience.  Can you address my question about
how many times we plan to change the default region for users?  Most
hpcloud-objectstorage users likely use the default and will find
multiple changes confusing.  Further, if we are going to change the
default, can we align with other language bindings like fog?

-- 
Andrew Gaul
http://gaul.org/

Reply via email to