Re: [openstack-dev] [Keystone] Should region name be case insensitive?

2015-01-07 Thread Denis Makogon
Hello Zhou.

On Wed, Jan 7, 2015 at 10:39 AM, Zhou, Zhenzan zhenzan.z...@intel.com
wrote:

 Hi,



 I meet such an issue when using glance/nova client deployed with Devstack
 to talk with a cloud deployed with TripleO:



 [minicloud@minicloud allinone]$ glance image-list

 public endpoint for image service in RegionOne region not found



Both glance/nova python client libraries allows users to specify region
name (see http://docs.openstack.org/user-guide/content/sdk_auth_nova.html).
So, you are free to metion any region you want.


  The reason is that Devstack uses “RegionOne” as default but TripleO uses
 “regionOne” and

 keystoneclient/service_catalog.py: get_endpoints() does a case sensitive
 string compare.



 I’m not a DB expert but normally database does case insensitive collation,
 so should we use do case insensitive compare here?

 Thanks a lot.



 BR

 Zhou Zhenzan

 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Kind regards,
Denis M.
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Keystone] Should region name be case insensitive?

2015-01-07 Thread Zhou, Zhenzan
Hi,

I meet such an issue when using glance/nova client deployed with Devstack to 
talk with a cloud deployed with TripleO:

[minicloud@minicloud allinone]$ glance image-list
public endpoint for image service in RegionOne region not found

The reason is that Devstack uses “RegionOne” as default but TripleO uses 
“regionOne” and
keystoneclient/service_catalog.py: get_endpoints() does a case sensitive string 
compare.

I’m not a DB expert but normally database does case insensitive collation, so 
should we use do case insensitive compare here?
Thanks a lot.

BR
Zhou Zhenzan
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Keystone] Should region name be case insensitive?

2015-01-07 Thread Sean Dague
On 01/07/2015 06:36 AM, James Downs wrote:
 
 On Jan 7, 2015, at 12:59 AM, Denis Makogon dmako...@mirantis.com
 mailto:dmako...@mirantis.com wrote:
 

 Hello Zhou.

 On Wed, Jan 7, 2015 at 10:39 AM, Zhou, Zhenzan zhenzan.z...@intel.com
 mailto:zhenzan.z...@intel.com wrote:

 Hi, 

 __ __

 I meet such an issue when using glance/nova client deployed with
 Devstack to talk with a cloud deployed with TripleO:

 __ __

 [minicloud@minicloud allinone]$ glance image-list

 public endpoint for image service in RegionOne region not found

 __ 

 Both glance/nova python client libraries allows users to specify
 region name
 (see http://docs.openstack.org/user-guide/content/sdk_auth_nova.html).
 So, you are free to metion any region you want.
 
 That’s true, but the OP was asking whether the region name should be
 case sensitive or not. 
 
 I think it probably makes sense that regionOne should be the same as
 RegionONE, or RegionOne.

The general standard in OpenStack has been case sensitivity. There are
performance and security implications on case insensitive environments.

It just sounds like tripleo is using a bad default here, and that's what
should be addressed.

-Sean

-- 
Sean Dague
http://dague.net

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Keystone] Should region name be case insensitive?

2015-01-07 Thread James Downs

On Jan 7, 2015, at 12:59 AM, Denis Makogon dmako...@mirantis.com wrote:

 
 Hello Zhou.
 
 On Wed, Jan 7, 2015 at 10:39 AM, Zhou, Zhenzan zhenzan.z...@intel.com wrote:
 Hi,
 
  
 
 I meet such an issue when using glance/nova client deployed with Devstack to 
 talk with a cloud deployed with TripleO:
 
  
 
 [minicloud@minicloud allinone]$ glance image-list
 
 public endpoint for image service in RegionOne region not found
 
  
 
 Both glance/nova python client libraries allows users to specify region name 
 (see http://docs.openstack.org/user-guide/content/sdk_auth_nova.html). So, 
 you are free to metion any region you want.

That’s true, but the OP was asking whether the region name should be case 
sensitive or not. 

I think it probably makes sense that regionOne should be the same as RegionONE, 
or RegionOne.

Cheers,
-j___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Keystone] Should region name be case insensitive?

2015-01-07 Thread Ben Nemec
On 01/07/2015 06:18 AM, Sean Dague wrote:
 On 01/07/2015 06:36 AM, James Downs wrote:

 On Jan 7, 2015, at 12:59 AM, Denis Makogon dmako...@mirantis.com
 mailto:dmako...@mirantis.com wrote:


 Hello Zhou.

 On Wed, Jan 7, 2015 at 10:39 AM, Zhou, Zhenzan zhenzan.z...@intel.com
 mailto:zhenzan.z...@intel.com wrote:

 Hi, 

 __ __

 I meet such an issue when using glance/nova client deployed with
 Devstack to talk with a cloud deployed with TripleO:

 __ __

 [minicloud@minicloud allinone]$ glance image-list

 public endpoint for image service in RegionOne region not found

 __ 

 Both glance/nova python client libraries allows users to specify
 region name
 (see http://docs.openstack.org/user-guide/content/sdk_auth_nova.html).
 So, you are free to metion any region you want.

 That’s true, but the OP was asking whether the region name should be
 case sensitive or not. 

 I think it probably makes sense that regionOne should be the same as
 RegionONE, or RegionOne.
 
 The general standard in OpenStack has been case sensitivity. There are
 performance and security implications on case insensitive environments.
 
 It just sounds like tripleo is using a bad default here, and that's what
 should be addressed.

I agree that it's somewhat unfortunate tripleo is using a different
default region name than devstack, but at the same time I wouldn't
expect to be able to use a devstack rc file to talk to a tripleo cloud.
 Tripleo has its own rc files to be used for that.

 
   -Sean
 


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev