As far as my experience goes, you have to use %(tenant_id)s. I ran into this problem the first time I did it as well. $ makes the shell think it's a variable.

David Kranz
Quanta Research Cambridge



On 4/13/2012 9:28 AM, Guilherme Birk wrote:
I've tried to execute the following command:

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 ?

Thanks.

------------------------------------------------------------------------
From: a...@openstack.org
Date: Thu, 12 Apr 2012 15:28:21 -0500
Subject: Re: [Openstack] Endpoints problems
To: guib...@hotmail.com
CC: openstack@lists.launchpad.net

Hi Guilherme -
Sorry you ran into a doc bug - https://bugs.launchpad.net/openstack-manuals/+bug/977905.

Basically, the bug states that the nova endpoint definition should be:

keystone --token 012345SECRET99TOKEN012345 --endpoint http://192.168.206.130:35357/v2.0 endpoint-create \

                       --region RegionOne \
                       --service_id=abc0f03c02904c24abdcc3b7910e2eed \
--publicurl http://192.168.206.130:8774/v2/$(tenant_id)s <http://192.168.206.130:8774/v2/%24%28tenant_id%29s> \ --adminurl http://192.168.206.130:8774/v2/$(tenant_id)s <http://192.168.206.130:8774/v2/%24%28tenant_id%29s> \ --internalurl http://192.168.206.130:8774/v2/$(tenant_id)s <http://192.168.206.130:8774/v2/%24%28tenant_id%29s>


I haven't fixed this yet because I'm not sure if the $(tenant_id)s is literal or which tenant_id specifically to use (the Service tenant for the adminurl possibly)?

If someone on the list could offer more input here and on the doc bug it would be greatly appreciated!
Anne

On Thu, Apr 12, 2012 at 12:25 PM, Guilherme Birk <guib...@hotmail.com <mailto:guib...@hotmail.com>> wrote:

    I'm having problems setting up the nova endpoint. I've followed
    the manual
    
http://docs.openstack.org/trunk/openstack-compute/install/content/setting-up-tenants-users-and-roles.html,
    putting the tenant id on the url's, like the manual says to do.
    But when I try execute "nova list" I got a malformed url error.
    When I set the endpoint without the tenant id on the url's I got a
    404 error. Anyone having the same problem?

    I can access the dashboard normally, but I'm unable to retrieve
    instance list.

    _______________________________________________
    Mailing list: https://launchpad.net/~openstack
    <https://launchpad.net/%7Eopenstack>
    Post to     : openstack@lists.launchpad.net
    <mailto:openstack@lists.launchpad.net>
    Unsubscribe : https://launchpad.net/~openstack
    <https://launchpad.net/%7Eopenstack>
    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

Reply via email to