[Openstack] Endpoints problems

Justin Shepherd jshepher at rackspace.com
Fri Apr 13 18:12:48 UTC 2012


So why would the preferred method be the one that you have to do all sort of magic stuff to protect from bash extrapolation.. and also given that the code converts those to %(tenant_id).. why wouldn't the "%(" way be the preferred way?

Sounds like an artifact of the CLI being a second class use case..

--shep
On Apr 13, 2012, at 8:48 AM, Dean Troyer wrote:

> On Fri, Apr 13, 2012 at 8:28 AM, Guilherme Birk <guibirk at hotmail.com> wrote:
>> keystone --token ADMIN --endpoint http://192.168.100.142:35357/v2.0
>> endpoint-create --region RegionOne
>> --service_id=1fd7b5f1add74aa4b6efc514fd153e72
>> --publicurl="http://192.168.100.142:8774/v2/$(tenant_id)s"
>> --adminurl="http://192.168.100.142:8774/v2/$(tenant_id)s"
>> --internalurl="http://192.168.100.142:8774/v2/$(tenant_id)s"
>> 
>> But I'm getting a "tenant_id: command not found". When I list the endpoints
>> all my url's are like "http://192.168.100.142:8774/v2/s" for the created
>> endpoint.
>> Am I doing something wrong ?
> 
> You need to escape the '$'s in your URLs or change the double quotes
> around them to single quotes.  The shell sees the $(tenant_id) and
> attempts to execute a command called tenant_id.
> 
> dt
> 
> -- 
> 
> Dean Troyer
> dtroyer at gmail.com
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list