Re: [Openstack] use of internal endpoint url instead of public url

2013-03-02 Thread Patrick Petit

On Feb 13, 2013, at 6:14 PM, Mac Innes, Kiall wrote:

 On 13/02/13 17:07, Scott Devoid wrote:
 We're also lacking support for setting --endpoint-type in keystone. In
 my case, it's trying to use adminURL when publicURL is the only one
 externally reachable.
 
 The keystone client doesn't use the --endpoint-type flag, since you have
 to supply a URL in the first place! Usually via an env var.
 
 Are all of these effectively the same?
 --os-endpoint service-endpoint
 --endpoint-type xURL
 --bypass-url url
 
 No. endpoint-type takes in a type (Either publicURL, internalURL
 or adminURL) and not an actual URL. This type is then used to lookup
 the URL from keystone's catalog.
 

Thank you the clarification!
So, that's what endpoint-type is used for… Sounds obvious once you know it.
I think it would work better if spelled out accordingly in nova help with 
something like:

--endpoint-type endpoint-type
Defaults to env[NOVA_ENDPOINT_TYPE]
Allowed values are:   publicURL (default), 
internalURL and adminURL

--bypass-url bypass-url
Use this API endpoint instead of the Service Catalog's 
default endpoint URLs


 --os-endpoint and --bypass-url appear to be the same thing though..
 
 Thanks,
 Kiall
 


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] use of internal endpoint url instead of public url

2013-02-13 Thread Sylvain Bauza

  --bypass-url bypass-url
Use this API endpoint instead of the Service 
Catalog


In client.py :
if self.bypass_url:
self.set_management_url(self.bypass_url)

Is this what you expect ?

-Sylvain

Le 13/02/2013 12:08, Patrick Petit a écrit :

Dear All,

How can I direct nova CLI to use the internal service endpoint URL 
instead of the public one? Same question applies to cinder CLI. I 
managed to find my way through with glance CLI which supports an 
OS_IMAGE_URL environment variable whereas OS_COMPUTE_URL and 
OS_VOLUME_URL seem to have not effect.

Any help would be greatly appreciated.
Thanks
Patrick

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] use of internal endpoint url instead of public url

2013-02-13 Thread Sylvain Bauza
I forgot to mention, cinderclient doesn't support this attribute yet, 
but it's worth to add it.


-Sylvain

Le 13/02/2013 12:46, Sylvain Bauza a écrit :

--bypass-url bypass-url
Use this API endpoint instead of the Service 
Catalog


In client.py :
if self.bypass_url:
self.set_management_url(self.bypass_url)

Is this what you expect ?

-Sylvain

Le 13/02/2013 12:08, Patrick Petit a écrit :

Dear All,

How can I direct nova CLI to use the internal service endpoint URL 
instead of the public one? Same question applies to cinder CLI. I 
managed to find my way through with glance CLI which supports an 
OS_IMAGE_URL environment variable whereas OS_COMPUTE_URL and 
OS_VOLUME_URL seem to have not effect.

Any help would be greatly appreciated.
Thanks
Patrick

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp





___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] use of internal endpoint url instead of public url

2013-02-13 Thread Scott Devoid
We're also lacking support for setting --endpoint-type in keystone. In
my case, it's trying to use adminURL when publicURL is the only one
externally reachable.

Are all of these effectively the same?
--os-endpoint service-endpoint
--endpoint-type xURL
--bypass-url url

~ Scott

On Wed, Feb 13, 2013 at 8:15 AM, Mac Innes, Kiall ki...@hp.com wrote:
 Hi Patrick,

 Both the cinder and nova CLI's support a --endpoint-type argument, it
 defaults to publicURL.

 If you use '--endpoint-type internalURL' it should do the right thing..

 Thanks,
 Kiall


 On 13/02/13 11:09, Patrick Petit wrote:
 Dear All,

 How can I direct nova CLI to use the internal service endpoint URL
 instead of the public one? Same question applies to cinder CLI. I
 managed to find my way through with glance CLI which supports an
 OS_IMAGE_URL environment variable whereas OS_COMPUTE_URL and
 OS_VOLUME_URL seem to have not effect.
 Any help would be greatly appreciated.
 Thanks
 Patrick

 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp